bhl-forms 0.7.3 → 0.7.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 (101) hide show
  1. package/dist/bhl-forms.es.js +551 -543
  2. package/dist/bhl-forms.iife.js +4 -4
  3. package/dist/bhl-forms.modern.es.js +649 -649
  4. package/dist/bhl-forms.modern.iife.js +7 -7
  5. package/dist/bhl-forms.modern.umd.js +7 -7
  6. package/dist/bhl-forms.umd.js +4 -4
  7. package/dist/forms/accidentsAndInjuries.es.js +1461 -1151
  8. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  9. package/dist/forms/accidentsAndInjuries.json +1 -1
  10. package/dist/forms/appraisals.es.js +138 -137
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/business.es.js +1434 -1149
  13. package/dist/forms/business.iife.js +1 -1
  14. package/dist/forms/business.json +1 -1
  15. package/dist/forms/childAndFamily.es.js +1329 -1043
  16. package/dist/forms/childAndFamily.iife.js +1 -1
  17. package/dist/forms/childAndFamily.json +1 -1
  18. package/dist/forms/childAndFamilySingle.es.js +1528 -1378
  19. package/dist/forms/childAndFamilySingle.iife.js +1 -1
  20. package/dist/forms/childAndFamilySingle.json +1 -1
  21. package/dist/forms/civilLawsuit.es.js +2000 -1807
  22. package/dist/forms/civilLawsuit.iife.js +1 -1
  23. package/dist/forms/civilLawsuit.json +1 -1
  24. package/dist/forms/coins.es.js +138 -137
  25. package/dist/forms/coins.iife.js +1 -1
  26. package/dist/forms/contracts.es.js +1349 -1050
  27. package/dist/forms/contracts.iife.js +1 -1
  28. package/dist/forms/contracts.json +1 -1
  29. package/dist/forms/criminal.es.js +1832 -1711
  30. package/dist/forms/criminal.iife.js +1 -1
  31. package/dist/forms/criminal.json +1 -1
  32. package/dist/forms/divorce.es.js +1541 -1385
  33. package/dist/forms/divorce.iife.js +1 -1
  34. package/dist/forms/divorce.json +1 -1
  35. package/dist/forms/employmentAndWorkplace.es.js +1833 -1678
  36. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  37. package/dist/forms/employmentAndWorkplace.json +1 -1
  38. package/dist/forms/generalHomeImprovement.es.js +2381 -2010
  39. package/dist/forms/generalHomeImprovement.iife.js +1 -1
  40. package/dist/forms/generalHomeImprovement.json +1 -1
  41. package/dist/forms/generalHomeImprovementThankYou.es.js +1795 -2008
  42. package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
  43. package/dist/forms/generalHomeImprovementThankYou.json +1 -1
  44. package/dist/forms/generalLegal.es.js +3037 -2535
  45. package/dist/forms/generalLegal.iife.js +1 -1
  46. package/dist/forms/generalLegal.json +1 -1
  47. package/dist/forms/generalLegalJustAnswer.es.js +3216 -2872
  48. package/dist/forms/generalLegalJustAnswer.iife.js +1 -1
  49. package/dist/forms/generalLegalJustAnswer.json +1 -1
  50. package/dist/forms/generalLegalPopUnder.es.js +3037 -2535
  51. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  52. package/dist/forms/generalLegalPopUnder.json +1 -1
  53. package/dist/forms/generalLegalPopUnderSingle.es.js +3216 -2872
  54. package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
  55. package/dist/forms/generalLegalPopUnderSingle.json +1 -1
  56. package/dist/forms/generalLegalSingle.es.js +3216 -2872
  57. package/dist/forms/generalLegalSingle.iife.js +1 -1
  58. package/dist/forms/generalLegalSingle.json +1 -1
  59. package/dist/forms/generalLegalThankYou.es.js +2825 -2303
  60. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  61. package/dist/forms/generalLegalThankYou.json +1 -1
  62. package/dist/forms/generalLegalThankYouConsultation.es.js +3216 -2872
  63. package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
  64. package/dist/forms/generalLegalThankYouConsultation.json +1 -1
  65. package/dist/forms/harassmentAndDiscrimination.es.js +1425 -1120
  66. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  67. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  68. package/dist/forms/landlordTenant.es.js +1395 -1106
  69. package/dist/forms/landlordTenant.iife.js +1 -1
  70. package/dist/forms/landlordTenant.json +1 -1
  71. package/dist/forms/malpractice.es.js +1531 -1223
  72. package/dist/forms/malpractice.iife.js +1 -1
  73. package/dist/forms/malpractice.json +1 -1
  74. package/dist/forms/mechanics.es.js +702 -530
  75. package/dist/forms/mechanics.iife.js +1 -1
  76. package/dist/forms/mechanics.json +1 -1
  77. package/dist/forms/patentsAndIP.es.js +1830 -1652
  78. package/dist/forms/patentsAndIP.iife.js +1 -1
  79. package/dist/forms/patentsAndIP.json +1 -1
  80. package/dist/forms/realEstate.es.js +2852 -2405
  81. package/dist/forms/realEstate.iife.js +1 -1
  82. package/dist/forms/realEstate.json +1 -1
  83. package/dist/forms/repossession.es.js +1568 -1251
  84. package/dist/forms/repossession.iife.js +1 -1
  85. package/dist/forms/repossession.json +1 -1
  86. package/dist/forms/ssdi.es.js +635 -520
  87. package/dist/forms/ssdi.iife.js +1 -1
  88. package/dist/forms/ssdi.json +1 -1
  89. package/dist/forms/testForm.es.js +409 -371
  90. package/dist/forms/testForm.iife.js +1 -1
  91. package/dist/forms/testForm.json +1 -1
  92. package/dist/forms/testRedirects.es.js +421 -316
  93. package/dist/forms/testRedirects.iife.js +1 -1
  94. package/dist/forms/testRedirects.json +1 -1
  95. package/dist/forms/vets.es.js +138 -137
  96. package/dist/forms/vets.iife.js +1 -1
  97. package/dist/forms/willsAndTrusts.es.js +1428 -1112
  98. package/dist/forms/willsAndTrusts.iife.js +1 -1
  99. package/dist/forms/willsAndTrusts.json +1 -1
  100. package/dist/main.css +1 -1
  101. package/package.json +1 -1
@@ -6,96 +6,101 @@ function LegalRedirectUrl() {
6
6
  return 'https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}'
7
7
  }
8
8
 
9
- const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
10
- const DEFAULT_COMMENTS_LABEL_LEGAL = 'Please briefly describe your legal issue in a few words:';
11
- const DEFAULT_FINAL_HEADLINE_LEGAL = 'Submit Your Case';
12
- const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
13
- const DEFAULT_FINAL_SUBHEADLINE_LEGAL = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
14
- const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
15
- const TCPA_LANGUAGE_LEGAL = "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.";
9
+ const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL =
10
+ '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
11
+ const DEFAULT_COMMENTS_LABEL_LEGAL = "Please briefly describe your legal issue in a few words:";
12
+ const DEFAULT_FINAL_HEADLINE_LEGAL = "Submit Your Case";
13
+ const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL =
14
+ '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
15
+ const DEFAULT_FINAL_SUBHEADLINE_LEGAL =
16
+ "You may benefit from speaking with a legal professional. Please verify your contact information.";
17
+ const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL =
18
+ '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
19
+ const TCPA_LANGUAGE_LEGAL =
20
+ "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.";
16
21
  const defaultLegalImprovementCrossSells = {
17
- 'Auto and Car Accidents': 'Injured in a Car Accident',
18
- 'Personal Injury': 'Personal or Workplace Injury',
19
- 'DUI and DWI': 'Involved in a DUI/DWI',
20
- 'Wills and Trusts': 'Need a Will or Trust',
21
- 'Power of Attorney': 'Update Power of Attorney',
22
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
22
+ "Auto and Car Accidents": "Injured in a Car Accident",
23
+ "Personal Injury": "Personal or Workplace Injury",
24
+ "DUI and DWI": "Involved in a DUI/DWI",
25
+ "Wills and Trusts": "Need a Will or Trust",
26
+ "Power of Attorney": "Update Power of Attorney",
27
+ "Social Security Disability and Insurance": "Interest in Disability Benefits",
23
28
  };
24
29
  const CROSS_SELL_OPTION_MAP_LEGAL = {
25
30
  // Values can be a list or a map of value -> display value
26
- 'Auto and Car Accidents': {
27
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
28
- 'Wills and Trusts': 'Need a Will or Trust',
29
- 'Workers Compensation': 'Workplace Injury',
30
- 'Power of Attorney': 'Update Power of Attorney',
31
- 'Divorce and Separation': 'Need a Divorce or Separation',
32
- 'Child Custody': 'Need help with Child Custody',
31
+ "Auto and Car Accidents": {
32
+ "Social Security Disability and Insurance": "Interest in Disability Benefits",
33
+ "Wills and Trusts": "Need a Will or Trust",
34
+ "Workers Compensation": "Workplace Injury",
35
+ "Power of Attorney": "Update Power of Attorney",
36
+ "Divorce and Separation": "Need a Divorce or Separation",
37
+ "Child Custody": "Need help with Child Custody",
33
38
  },
34
39
  "Personal Injury": {
35
- 'DUI and DWI': 'Involved in a DUI/DWI',
36
- 'Wills and Trusts': 'Need a Will or Trust',
37
- 'Power of Attorney': 'Update Power of Attorney',
38
- 'Divorce and Separation': 'Need a Divorce or Separation',
39
- 'Child Custody': 'Need help with Child Custody',
40
+ "DUI and DWI": "Involved in a DUI/DWI",
41
+ "Wills and Trusts": "Need a Will or Trust",
42
+ "Power of Attorney": "Update Power of Attorney",
43
+ "Divorce and Separation": "Need a Divorce or Separation",
44
+ "Child Custody": "Need help with Child Custody",
40
45
  // TODO add one more?
41
46
  },
42
47
  "Workers Compensation": {
43
- 'DUI and DWI': 'Involved in a DUI/DWI',
44
- 'Wills and Trusts': 'Need a Will or Trust',
45
- 'Power of Attorney': 'Update Power of Attorney',
46
- 'Divorce and Separation': 'Need a Divorce or Separation',
47
- 'Child Custody': 'Need help with Child Custody',
48
+ "DUI and DWI": "Involved in a DUI/DWI",
49
+ "Wills and Trusts": "Need a Will or Trust",
50
+ "Power of Attorney": "Update Power of Attorney",
51
+ "Divorce and Separation": "Need a Divorce or Separation",
52
+ "Child Custody": "Need help with Child Custody",
48
53
  // TODO add one more?
49
54
  },
50
55
  "DUI and DWI": {
51
- 'Personal Injury': 'Personal or Workplace Injury',
52
- 'Wills and Trusts': 'Need a Will or Trust',
53
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
54
- 'Power of Attorney': 'Update Power of Attorney',
55
- 'Divorce and Separation': 'Need a Divorce or Separation',
56
- 'Child Custody': 'Need help with Child Custody',
56
+ "Personal Injury": "Personal or Workplace Injury",
57
+ "Wills and Trusts": "Need a Will or Trust",
58
+ "Social Security Disability and Insurance": "Interest in Disability Benefits",
59
+ "Power of Attorney": "Update Power of Attorney",
60
+ "Divorce and Separation": "Need a Divorce or Separation",
61
+ "Child Custody": "Need help with Child Custody",
57
62
  },
58
63
  "Wills and Trusts": {
59
- 'Auto and Car Accidents': 'Injured in a Car Accident',
60
- 'Personal Injury': 'Personal or Workplace Injury',
61
- 'DUI and DWI': 'Involved in a DUI/DWI',
62
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
63
- 'Divorce and Separation': 'Need a Divorce or Separation',
64
- 'Child Custody': 'Need help with Child Custody',
64
+ "Auto and Car Accidents": "Injured in a Car Accident",
65
+ "Personal Injury": "Personal or Workplace Injury",
66
+ "DUI and DWI": "Involved in a DUI/DWI",
67
+ "Social Security Disability and Insurance": "Interest in Disability Benefits",
68
+ "Divorce and Separation": "Need a Divorce or Separation",
69
+ "Child Custody": "Need help with Child Custody",
65
70
  },
66
71
  "Probate and Estates": {
67
- 'Auto and Car Accidents': 'Injured in a Car Accident',
68
- 'Personal Injury': 'Personal or Workplace Injury',
69
- 'DUI and DWI': 'Involved in a DUI/DWI',
70
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
71
- 'Divorce and Separation': 'Need a Divorce or Separation',
72
- 'Child Custody': 'Need help with Child Custody',
72
+ "Auto and Car Accidents": "Injured in a Car Accident",
73
+ "Personal Injury": "Personal or Workplace Injury",
74
+ "DUI and DWI": "Involved in a DUI/DWI",
75
+ "Social Security Disability and Insurance": "Interest in Disability Benefits",
76
+ "Divorce and Separation": "Need a Divorce or Separation",
77
+ "Child Custody": "Need help with Child Custody",
73
78
  },
74
79
  "Power of Attorney": {
75
- 'Auto and Car Accidents': 'Injured in a Car Accident',
76
- 'Personal Injury': 'Personal or Workplace Injury',
77
- 'DUI and DWI': 'Involved in a DUI/DWI',
78
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
79
- 'Divorce and Separation': 'Need a Divorce or Separation',
80
- 'Child Custody': 'Need help with Child Custody',
80
+ "Auto and Car Accidents": "Injured in a Car Accident",
81
+ "Personal Injury": "Personal or Workplace Injury",
82
+ "DUI and DWI": "Involved in a DUI/DWI",
83
+ "Social Security Disability and Insurance": "Interest in Disability Benefits",
84
+ "Divorce and Separation": "Need a Divorce or Separation",
85
+ "Child Custody": "Need help with Child Custody",
81
86
  },
82
87
  "Long Term Disability": {
83
- 'Auto and Car Accidents': 'Injured in a Car Accident',
84
- 'DUI and DWI': 'Involved in a DUI/DWI',
85
- 'Wills and Trusts': 'Need a Will or Trust',
86
- 'Power of Attorney': 'Update Power of Attorney',
87
- 'Divorce and Separation': 'Need a Divorce or Separation',
88
- 'Child Custody': 'Need help with Child Custody',
88
+ "Auto and Car Accidents": "Injured in a Car Accident",
89
+ "DUI and DWI": "Involved in a DUI/DWI",
90
+ "Wills and Trusts": "Need a Will or Trust",
91
+ "Power of Attorney": "Update Power of Attorney",
92
+ "Divorce and Separation": "Need a Divorce or Separation",
93
+ "Child Custody": "Need help with Child Custody",
89
94
  },
90
95
  "Social Security Disability and Insurance": {
91
- 'Auto and Car Accidents': 'Injured in a Car Accident',
92
- 'DUI and DWI': 'Involved in a DUI/DWI',
93
- 'Wills and Trusts': 'Need a Will or Trust',
94
- 'Power of Attorney': 'Update Power of Attorney',
95
- 'Divorce and Separation': 'Need a Divorce or Separation',
96
- 'Child Custody': 'Need help with Child Custody',
96
+ "Auto and Car Accidents": "Injured in a Car Accident",
97
+ "DUI and DWI": "Involved in a DUI/DWI",
98
+ "Wills and Trusts": "Need a Will or Trust",
99
+ "Power of Attorney": "Update Power of Attorney",
100
+ "Divorce and Separation": "Need a Divorce or Separation",
101
+ "Child Custody": "Need help with Child Custody",
97
102
  },
98
- '*': defaultLegalImprovementCrossSells,
103
+ "*": defaultLegalImprovementCrossSells,
99
104
  };
100
105
 
101
106
  // ------ Common Base Settings
@@ -104,32 +109,49 @@ const checkbox = (updates) => {
104
109
  if (updates.name && !updates.id) {
105
110
  updates.id = updates.name;
106
111
  }
107
- return merge({
108
- $formkit: 'checkbox',
109
- validation: 'required',
110
- validationMessages: {
111
- required: 'Field is required'
112
- }
113
- }, updates)
112
+ return merge(
113
+ {
114
+ $formkit: "checkbox",
115
+ validation: "required",
116
+ validationMessages: {
117
+ required: "Field is required",
118
+ },
119
+ },
120
+ updates
121
+ )
114
122
  };
115
123
 
116
124
  const sbsCheckbox = (updates) => {
117
- updates.legendClass = 'legend-left required';
118
- updates.fieldsetClass = '$reset side-by-side';
119
- updates.optionsClass = 't-pl-1';
120
- updates.innerClass = 't-flex t-items-center';
121
- updates.wrapperClass = 't-mb-3';
125
+ updates.legendClass = "legend-left required";
126
+ updates.fieldsetClass = "$reset side-by-side";
127
+ updates.optionsClass = "t-pl-1";
128
+ updates.innerClass = "t-flex t-items-center";
129
+ updates.wrapperClass = "t-mb-3";
122
130
  return checkbox(updates)
123
131
  };
124
132
 
125
133
  const col2Checkbox = (updates) => {
126
134
  if (!updates || !updates.legendClass) {
127
- updates.legendClass = 'required';
135
+ updates.legendClass = "required";
136
+ }
137
+ updates.fieldsetClass = "$reset";
138
+ updates.optionsClass = "t-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
139
+ updates.innerClass = "t-items-start";
140
+ updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
141
+ return checkbox(updates)
142
+ };
143
+
144
+ const verticalCol2Checkbox = (updates) => {
145
+ if (!updates || !updates.legendClass) {
146
+ updates.legendClass = "required t-w-[100%] t-text-center";
128
147
  }
129
- updates.fieldsetClass = '$reset';
130
- updates.optionsClass = 't-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
131
- updates.innerClass = 't-items-start';
132
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
148
+ updates.fieldsetClass = "$reset t-flex t-justify-center t-flex-col";
149
+ updates.innerClass = "t-items-start";
150
+ updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
151
+ updates.optionClass = "t-pl-4 md:t-pl-16 md:t-min-w-[200px]";
152
+ updates.optionsClass = "t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
153
+ updates.messagesClass = "t-flex t-justify-center";
154
+ updates.helpClass = "t-mt-0 t-mb-4 !t-text-sm t-text-center";
133
155
  return checkbox(updates)
134
156
  };
135
157
 
@@ -137,72 +159,85 @@ const radio = (updates) => {
137
159
  if (updates.name && !updates.id) {
138
160
  updates.id = updates.name;
139
161
  }
140
- return merge({
141
- $formkit: 'radio',
142
- validation: 'required',
143
- validationMessages: {
144
- required: 'Field is required'
162
+ return merge(
163
+ {
164
+ $formkit: "radio",
165
+ validation: "required",
166
+ validationMessages: {
167
+ required: "Field is required",
168
+ },
169
+ optionsClass: "t-pt-3 t-pl-1",
170
+ legendClass: "required",
145
171
  },
146
- optionsClass: 't-pt-3 t-pl-1',
147
- legendClass: 'required'
148
- }, updates)
172
+ updates
173
+ )
149
174
  };
150
175
 
176
+ const col2Radio = (updates) => {
177
+ updates.legendClass = "required";
178
+ updates.fieldsetClass = "$reset";
179
+ updates.optionsClass = "t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
180
+ updates.innerClass = "t-items-start";
181
+ updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
182
+ return radio(updates)
183
+ };
184
+
185
+ // TODO: rename
151
186
  const col2RadioCenter = (updates) => {
152
- updates.legendClass = 'required t-w-[100%] t-text-center';
153
- if (typeof updates.fieldsetClass === 'undefined') {
154
- updates.fieldsetClass = '$reset t-flex t-justify-center';
187
+ updates.legendClass = "required t-w-[100%] t-text-center";
188
+ if (typeof updates.fieldsetClass === "undefined") {
189
+ updates.fieldsetClass = "$reset t-flex t-justify-center";
155
190
  }
156
- updates.optionsClass = 't-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
157
- updates.innerClass = 't-items-start';
158
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
159
- updates.optionClass = 't-pl-4 md:t-pl-8 md:t-min-w-[200px]';
160
- updates.messagesClass = 't-flex t-justify-center';
161
- updates.helpClass = 't-mt-0 t-mb-4 !t-text-sm t-text-center';
191
+ updates.innerClass = "t-items-start";
192
+ updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
193
+ updates.optionClass = "t-pl-4 md:t-pl-8 md:t-min-w-[200px]";
194
+ updates.optionsClass = "t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
195
+ updates.messagesClass = "t-flex t-justify-center";
196
+ updates.helpClass = "t-mt-0 t-mb-4 !t-text-sm t-text-center";
162
197
  return radio(updates)
163
198
  };
164
199
 
165
200
  const sbs2ColRadio = (updates) => {
166
- updates.legendClass = 'legend-left-flex md:t-max-w-[40%] required';
167
- updates.fieldsetClass = '$reset side-by-side-flex';
168
- updates.optionsClass = 'md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125';
169
- updates.innerClass = 't-flex t-items-start';
170
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
201
+ updates.legendClass = "legend-left-flex md:t-max-w-[40%] required";
202
+ updates.fieldsetClass = "$reset side-by-side-flex";
203
+ updates.optionsClass = "md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125";
204
+ updates.innerClass = "t-flex t-items-start";
205
+ updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
171
206
  return radio(updates)
172
207
  };
173
208
 
174
209
  const sbs2ItemRadio = (updates) => {
175
- updates.legendClass = 'legend-left t-pb-1 required';
176
- updates.fieldsetClass = '$reset side-by-side t-items-center';
177
- updates.optionsClass = 't-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center';
178
- updates.innerClass = 't-flex t-items-center';
179
- updates.optionClass = 't-pr-1';
210
+ updates.legendClass = "legend-left t-pb-1 required";
211
+ updates.fieldsetClass = "$reset side-by-side t-items-center";
212
+ updates.optionsClass = "t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center";
213
+ updates.innerClass = "t-flex t-items-center";
214
+ updates.optionClass = "t-pr-1";
180
215
  return radio(updates)
181
216
  };
182
217
 
183
218
  const sbsYesNoRadio = (updates) => {
184
- updates.options = ['Yes', 'No'];
219
+ updates.options = ["Yes", "No"];
185
220
  return sbs2ItemRadio(updates)
186
221
  };
187
222
 
188
223
  const verticalButtonRadio = (updates) => {
189
- updates.legendClass = 'legend-left';
190
- updates.fieldsetClass = '$reset t-flex t-justify-center t-flex-col-reverse t-items-center';
191
- if (typeof updates.optionsClass === 'undefined') {
192
- updates.optionsClass = 't-flex t-flex-col sm:t-flex-row t-justify-center t-my-3';
224
+ updates.legendClass = "legend-left";
225
+ updates.fieldsetClass = "$reset t-flex t-justify-center t-flex-col-reverse t-items-center";
226
+ if (typeof updates.optionsClass === "undefined") {
227
+ updates.optionsClass = "t-flex t-flex-col sm:t-flex-row t-justify-center t-my-3";
193
228
  }
194
- updates.optionClass = 'radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5';
195
- updates.wrapperClass = '$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]';
196
- updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
229
+ updates.optionClass = "radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5";
230
+ updates.wrapperClass = "$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]";
231
+ updates.labelClass = "t-font-semibold t-text-[#1e448f] t-w-[100%]";
197
232
  updates.decoratorIcon = false;
198
- updates.messagesClass = 't-flex t-justify-center';
199
- updates.helpClass = 't-mt-2.5 !t-text-sm t-text-center';
233
+ updates.messagesClass = "t-flex t-justify-center";
234
+ updates.helpClass = "t-mt-2.5 !t-text-sm t-text-center";
200
235
  return radio(updates)
201
236
  };
202
237
 
203
238
  const verticalYesNoRadio = (updates) => {
204
- updates.options = ['Yes', 'No'];
205
- updates.optionsClass = 't-flex t-justify-center t-my-3';
239
+ updates.options = ["Yes", "No"];
240
+ updates.optionsClass = "t-flex t-justify-center t-my-3";
206
241
  return verticalButtonRadio(updates)
207
242
  };
208
243
 
@@ -210,32 +245,35 @@ const select = (updates) => {
210
245
  if (updates.name && !updates.id) {
211
246
  updates.id = updates.name;
212
247
  }
213
- return merge({
214
- $formkit: 'select',
215
- placeholder: "Please Select",
216
- validation: 'required',
217
- validationMessages: {
218
- required: 'Field is required'
248
+ return merge(
249
+ {
250
+ $formkit: "select",
251
+ placeholder: "Please Select",
252
+ validation: "required",
253
+ validationMessages: {
254
+ required: "Field is required",
255
+ },
256
+ inputClass: "t-bg-white",
257
+ labelClass: "required",
219
258
  },
220
- inputClass: 't-bg-white',
221
- labelClass: 'required'
222
- }, updates)
259
+ updates
260
+ )
223
261
  };
224
262
 
225
263
  const sbsSelect = (updates) => {
226
- updates.labelClass = 'required';
227
- updates.wrapperClass = 'side-by-side t-items-center';
228
- updates.innerClass = 'select-height-content';
229
- updates.helpClass = 't-mt-2.5 md:t-text-right md:t-mt-[-5px]';
264
+ updates.labelClass = "required";
265
+ updates.wrapperClass = "side-by-side t-items-center";
266
+ updates.innerClass = "select-height-content";
267
+ updates.helpClass = "t-mt-2.5 md:t-text-right md:t-mt-[-5px]";
230
268
  return select(updates)
231
269
  };
232
270
 
233
271
  const verticalSelect = (updates) => {
234
- updates.labelClass = 'required';
235
- updates.wrapperClass = 't-flex t-justify-center';
236
- updates.messagesClass = 't-flex t-justify-center';
237
- updates.inputClass = 't-min-w-[150px] t-bg-white';
238
- updates.helpClass = 't-mt-2.5 t-text-center';
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";
276
+ updates.helpClass = "t-mt-2.5 t-text-center";
239
277
  return select(updates)
240
278
  };
241
279
 
@@ -243,26 +281,29 @@ const text = (updates) => {
243
281
  if (updates.name && !updates.id) {
244
282
  updates.id = updates.name;
245
283
  }
246
- return merge({
247
- $formkit: 'text',
248
- validation: 'required',
249
- validationMessages: {
250
- required: 'Field is required'
284
+ return merge(
285
+ {
286
+ $formkit: "text",
287
+ validation: "required",
288
+ validationMessages: {
289
+ required: "Field is required",
290
+ },
291
+ labelClass: "required",
251
292
  },
252
- labelClass: 'required'
253
- }, updates)
293
+ updates
294
+ )
254
295
  };
255
296
 
256
297
  const sbsText = (updates) => {
257
- updates.wrapperClass = 'side-by-side t-items-center';
298
+ updates.wrapperClass = "side-by-side t-items-center";
258
299
  return text(updates)
259
300
  };
260
301
 
261
302
  const verticalText = (updates) => {
262
- updates.wrapperClass = 't-flex t-justify-center';
263
- updates.messagesClass = 't-flex t-justify-center';
264
- updates.inputClass = 't-text-center';
265
- updates.helpClass = 't-mt-2.5 !t-text-sm t-text-center';
303
+ updates.wrapperClass = "t-flex t-justify-center";
304
+ updates.messagesClass = "t-flex t-justify-center";
305
+ updates.inputClass = "t-text-center";
306
+ updates.helpClass = "t-mt-2.5 !t-text-sm t-text-center";
266
307
  return text(updates)
267
308
  };
268
309
 
@@ -270,572 +311,848 @@ const textArea = (updates) => {
270
311
  if (updates.name && !updates.id) {
271
312
  updates.id = updates.name;
272
313
  }
273
- return merge({
274
- $formkit: 'textarea',
275
- rows: 5,
276
- maxlength: 500,
277
- validation: 'required',
278
- validationMessages: {
279
- required: 'Field is required'
314
+ return merge(
315
+ {
316
+ $formkit: "textarea",
317
+ rows: 5,
318
+ maxlength: 500,
319
+ validation: "required",
320
+ validationMessages: {
321
+ required: "Field is required",
322
+ },
323
+ innerClass: "t-max-w-xl",
324
+ labelClass: "required",
280
325
  },
281
- innerClass: 't-max-w-xl',
282
- labelClass: 'required'
283
- }, updates)
326
+ updates
327
+ )
284
328
  };
285
329
 
286
330
  const date = (updates) => {
287
331
  if (updates.name && !updates.id) {
288
332
  updates.id = updates.name;
289
333
  }
290
- return merge({
291
- $formkit: 'DatePicker',
292
- validation: 'required',
293
- validationMessages: {
294
- required: 'Field is required'
334
+ return merge(
335
+ {
336
+ $formkit: "DatePicker",
337
+ validation: "required",
338
+ validationMessages: {
339
+ required: "Field is required",
340
+ },
341
+ labelClass: "required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500",
342
+ innerClass:
343
+ "t-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500",
295
344
  },
296
- labelClass: 'required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500',
297
- innerClass: 't-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500'
298
- }, updates)
345
+ updates
346
+ )
299
347
  };
300
348
 
301
349
  const sbsDate = (updates) => {
302
- updates.wrapperClass = 'side-by-side t-items-center';
350
+ updates.wrapperClass = "side-by-side t-items-center";
303
351
  return date(updates)
304
352
  };
305
353
 
306
- const email = (scope) => sbsText({
307
- $formkit: 'email',
308
- name: scope ? scope + ':' + 'Email' : 'Email',
309
- label: 'Email Address:',
310
- placeholder: 'email@domain.com',
311
- autocomplete: 'email',
312
- 'data-tf-sensitive': 'false',
313
- validation: 'required|email',
314
- validationMessages: {
315
- required: 'Email is required',
316
- email: 'Invalid Email'
317
- }
318
- });
354
+ const verticalDate = (updates) => {
355
+ updates.wrapperClass = "t-flex t-justify-center";
356
+ updates.inputClass = "t-text-center";
357
+ updates.messagesClass = "t-flex t-justify-center";
358
+ return date(updates)
359
+ };
319
360
 
320
- const firstName = (scope) => sbsText({
321
- label: 'First Name:',
322
- placeholder: 'First',
323
- name: scope ? scope + ':' + 'First_Name' : 'First_Name',
324
- autocomplete: "given-name",
325
- validationMessages: {
326
- required: 'First Name is required'
327
- }
328
- });
361
+ const email = (scope, vertical, updates = {}) => {
362
+ const func = vertical ? verticalText : sbsText;
363
+ const label = vertical ? updates.label : "Email Address:";
364
+ return func({
365
+ $formkit: "email",
366
+ name: scope ? scope + ":" + "Email" : "Email",
367
+ label,
368
+ placeholder: "email@domain.com",
369
+ autocomplete: "email",
370
+ "data-tf-sensitive": "false",
371
+ validation: "required|email",
372
+ validationMessages: {
373
+ required: "Email is required",
374
+ email: "Invalid Email",
375
+ },
376
+ ...updates,
377
+ })
378
+ };
329
379
 
330
- const lastName = (scope) => sbsText({
331
- label: 'Last Name:',
332
- placeholder: 'Last',
333
- name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
334
- autocomplete: "family-name",
335
- validationMessages: {
336
- required: 'Last Name is required'
337
- }
338
- });
380
+ const firstName = (scope, vertical, updates = {}) => {
381
+ const func = vertical ? verticalText : sbsText;
382
+ const label = vertical ? updates.label : "First Name:";
383
+ return func({
384
+ label,
385
+ placeholder: "First",
386
+ name: scope ? scope + ":" + "First_Name" : "First_Name",
387
+ autocomplete: "given-name",
388
+ validationMessages: {
389
+ required: "First Name is required",
390
+ },
391
+ ...updates,
392
+ })
393
+ };
339
394
 
340
- const phone = (scope) => sbsText({
341
- $formkit: 'tel',
342
- name: scope ? scope + ':' + 'Primary_Phone' : 'Primary_Phone',
343
- label: 'Phone Number:',
344
- placeholder: '###-###-####',
345
- maxlength: 12,
346
- help: '10-digit phone number, hyphens optional',
347
- autocomplete: 'tel-national',
348
- 'data-tf-sensitive': 'false',
349
- validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
350
- validationMessages: {
351
- required: 'Field is required',
352
- matches: 'Invalid Phone Format, use ###-###-####',
353
- valid_phone: 'Invalid Phone Number'
354
- },
355
- helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
356
- });
395
+ const lastName = (scope, vertical, updates = {}) => {
396
+ const func = vertical ? verticalText : sbsText;
397
+ const label = vertical ? updates.label : "Last Name:";
398
+ return func({
399
+ label,
400
+ placeholder: "Last",
401
+ name: scope ? scope + ":" + "Last_Name" : "Last_Name",
402
+ autocomplete: "family-name",
403
+ validationMessages: {
404
+ required: "Last Name is required",
405
+ },
406
+ ...updates,
407
+ })
408
+ };
357
409
 
410
+ const phone = (scope, vertical, updates = {}) => {
411
+ const func = vertical ? verticalText : sbsText;
412
+ const label = vertical ? updates.label : "Phone Number:";
413
+ return func({
414
+ $formkit: "tel",
415
+ name: scope ? scope + ":" + "Primary_Phone" : "Primary_Phone",
416
+ label,
417
+ placeholder: "###-###-####",
418
+ maxlength: 12,
419
+ help: "10-digit phone number, hyphens optional",
420
+ autocomplete: "tel-national",
421
+ "data-tf-sensitive": "false",
422
+ validation: "required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone",
423
+ validationMessages: {
424
+ required: "Phone Number is required",
425
+ matches: "Invalid Phone Format, use ###-###-####",
426
+ valid_phone: "Invalid Phone Number",
427
+ },
428
+ helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]",
429
+ ...updates,
430
+ })
431
+ };
358
432
 
359
433
  const zipcode$1 = (scope, vertical, updates = {}) => {
360
434
  const func = vertical ? verticalText : sbsText;
361
- const label = vertical ? (updates.label) : 'Zip Code:';
362
- const help = vertical ? (updates.help ?? "We try to match you with local help") : null;
435
+ const label = vertical ? updates.label : "Zip Code:";
436
+ const help = vertical ? updates.help ?? "We try to match you with local help" : null;
363
437
  return func({
364
438
  label,
365
439
  help,
366
- placeholder: '#####',
367
- name: scope ? scope + ':' + 'Zip' : 'Zip',
440
+ placeholder: "#####",
441
+ name: scope ? scope + ":" + "Zip" : "Zip",
368
442
  maxlength: 5,
369
443
  inputmode: "numeric",
370
- autocomplete: 'postal-code',
371
- validation: 'required|matches:/^[0-9]{5}$/',
444
+ autocomplete: "postal-code",
445
+ validation: "required|matches:/^[0-9]{5}$/",
372
446
  validationMessages: {
373
- required: 'Zip Code is required',
374
- matches: 'Invalid Zip Code'
447
+ required: "Zip Code is required",
448
+ matches: "Invalid Zip Code",
375
449
  },
376
- ...updates
450
+ ...updates,
377
451
  })
378
452
  };
379
453
 
380
454
  const applicantAge = (scope, vertical, updates = {}) => {
381
455
  const func = vertical ? verticalText : sbsText;
382
- const label = vertical ? (updates.label) : 'Age of Applicant?';
383
- const value = vertical ? (updates.value ?? "50") : null;
384
- return func(merge({
385
- label,
386
- placeholder: 'Age between 18 and 65',
387
- name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
388
- value,
389
- maxlength: 2,
390
- inputmode: "numeric",
391
- validation: "required|min:18,max:65",
392
- validationMessages: {
393
- required: 'Applicant Age is required',
394
- min: 'Invalid Age - must be between 18 and 65',
395
- max: 'Invalid Age - must be between 18 and 65',
396
- },
397
- ...updates
398
- }))
456
+ const label = vertical ? updates.label : "Age of Applicant?";
457
+ const value = vertical ? updates.value ?? "50" : null;
458
+ return func(
459
+ merge({
460
+ label,
461
+ placeholder: "Age between 18 and 65",
462
+ name: scope ? scope + ":" + "Applicant_Age" : "Applicant_Age",
463
+ value,
464
+ maxlength: 2,
465
+ inputmode: "numeric",
466
+ validation: "required|min:18,max:65",
467
+ validationMessages: {
468
+ required: "Applicant Age is required",
469
+ min: "Invalid Age - must be between 18 and 65",
470
+ max: "Invalid Age - must be between 18 and 65",
471
+ },
472
+ ...updates,
473
+ })
474
+ )
399
475
  };
400
476
 
401
- const atFault = (scope) => sbsYesNoRadio({
402
- name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
403
- label: 'Were You at Fault?'
404
- });
405
-
406
- const bankruptcyCrossSell = () => sbsCheckbox({
407
- label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
408
- help: "Note: you will be contacted separately by a bankruptcy/debt expert",
409
- name: 'CrossSell_Bankruptcy',
410
- id: 'CrossSell_Bankruptcy',
411
- if: '$getVal($get(form), "Type_Of_Legal_Problem") != "Bankruptcy" && ($getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe" || $getVal($get(form), "Degree_Of_Interest") == "Probably")',
412
- validation: null,
413
- helpClass: "!t-text-sm"
414
- });
477
+ const atFault = (scope, vertical, updates = {}) => {
478
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
479
+ const label = vertical ? updates.label : "Were You at Fault?";
480
+ return func(
481
+ merge(
482
+ {
483
+ label,
484
+ name: scope ? scope + ":" + "At_Fault" : "At_Fault",
485
+ },
486
+ updates
487
+ )
488
+ )
489
+ };
415
490
 
416
- const bloodContentAlcoholTest = (scope) => sbsSelect({
417
- name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
418
- label: 'Blood Alcohol Content Measured by Test:',
419
- options: [
420
- "No Test",
421
- "0.00% - 0.04%",
422
- "0.05% - 0.08%",
423
- "0.09% - 0.12%",
424
- "0.13% - 0.16%",
425
- "0.17% - 0.20%",
426
- "More than 0.20%",
427
- "Don't know"
428
- ]
429
- });
491
+ const bankruptcyCrossSell = (scope) =>
492
+ sbsCheckbox({
493
+ label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
494
+ help: "Note: you will be contacted separately by a bankruptcy/debt expert",
495
+ name: scope ? scope + ":CrossSell_Bankruptcy" : "CrossSell_Bankruptcy",
496
+ id: scope ? scope + ":CrossSell_Bankruptcy" : "CrossSell_Bankruptcy",
497
+ if: '$getVal($get(form), "Type_Of_Legal_Problem") != "Bankruptcy" && ($getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe" || $getVal($get(form), "Degree_Of_Interest") == "Probably")',
498
+ validation: null,
499
+ helpClass: "!t-text-sm",
500
+ });
501
+
502
+ const bloodContentAlcoholTest = (scope, vertical, updates = {}) => {
503
+ const func = vertical ? verticalSelect : sbsSelect;
504
+ const label = vertical ? updates.label : "Blood Alcohol Content Measured by Test:";
505
+ return func(
506
+ merge(
507
+ {
508
+ label,
509
+ name: scope ? scope + ":" + "Blood_Alcohol_Content_Test" : "Blood_Alcohol_Content_Test",
510
+ options: [
511
+ "No Test",
512
+ "0.00% - 0.04%",
513
+ "0.05% - 0.08%",
514
+ "0.09% - 0.12%",
515
+ "0.13% - 0.16%",
516
+ "0.17% - 0.20%",
517
+ "More than 0.20%",
518
+ "Don't know",
519
+ ],
520
+ },
521
+ updates
522
+ )
523
+ )
524
+ };
430
525
 
431
- const businessServicesCenter = () => col2RadioCenter({
432
- id: 'Business_Services',
433
- name: 'Business_Services',
434
- options: [
435
- "Business Formation",
436
- "Contracts",
437
- "Insurance and Liability",
438
- "Mergers and Acquisition",
439
- "Regulatory Compliance",
440
- "Employee Dispute",
441
- "Other"
442
- ]
443
- });
526
+ const businessServices$1 = (scope, vertical, updates = {}) => {
527
+ const func = vertical ? col2RadioCenter : sbsSelect;
528
+ const label = vertical ? updates.label : "Legal Services Needed for Your Business:";
529
+ return func(
530
+ merge(
531
+ {
532
+ label,
533
+ name: scope ? scope + ":" + "Business_Services" : "Business_Services",
534
+ options: [
535
+ "Business Formation",
536
+ "Contracts",
537
+ "Insurance and Liability",
538
+ "Mergers and Acquisition",
539
+ "Regulatory Compliance",
540
+ "Employee Dispute",
541
+ "Other",
542
+ ],
543
+ },
544
+ updates
545
+ )
546
+ )
547
+ };
444
548
 
445
- const businessTypeCenter = () => verticalButtonRadio({
446
- name: 'Business_Type',
447
- options: [
448
- "Public",
449
- "Private"
450
- ]
451
- });
549
+ const businessType$1 = (scope, vertical, updates = {}) => {
550
+ const func = vertical ? verticalButtonRadio : sbs2ColRadio;
551
+ const label = vertical ? updates.label : "Is the Business Public or Private?";
552
+ return func(
553
+ merge(
554
+ {
555
+ label,
556
+ name: scope ? scope + ":" + "Business_Type" : "Business_Type",
557
+ options: ["Public", "Private"],
558
+ },
559
+ updates
560
+ )
561
+ )
562
+ };
452
563
 
453
- const causeOfInjury = (scope) => sbsSelect({
454
- name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
455
- label: 'Cause of Injury:',
456
- options: [
457
- "Traumatic Physical Injury (Accident)",
458
- "Repeated Trauma Injury",
459
- "Mental Injury",
460
- "Occupational Disease",
461
- "Not Sure"
462
- ]
463
- });
564
+ const causeOfInjury = (scope, vertical, updates = {}) => {
565
+ const func = vertical ? col2RadioCenter : sbsSelect;
566
+ const label = vertical ? updates.label : "Cause of Injury:";
567
+ return func(
568
+ merge(
569
+ {
570
+ label,
571
+ name: scope ? scope + ":" + "Cause_Of_Injury" : "Cause_Of_Injury",
572
+ options: [
573
+ "Traumatic Physical Injury (Accident)",
574
+ "Repeated Trauma Injury",
575
+ "Mental Injury",
576
+ "Occupational Disease",
577
+ "Not Sure",
578
+ ],
579
+ },
580
+ updates
581
+ )
582
+ )
583
+ };
464
584
 
465
- const childHome = (scope) => sbsSelect({
466
- name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
467
- label: 'With Whom Do the Children Currently Live?',
468
- options: [
469
- 'Mother',
470
- 'Father',
471
- 'Grandparents',
472
- 'Other'
473
- ]
474
- });
585
+ const childHome = (scope, vertical, updates = {}) => {
586
+ const func = vertical ? col2RadioCenter : sbsSelect;
587
+ const label = vertical ? updates.label : "With Whom Do the Children Currently Live?";
588
+ return func(
589
+ merge(
590
+ {
591
+ label,
592
+ name: scope ? scope + ":" + "Child_Home" : "Child_Home",
593
+ options: ["Mother", "Father", "Grandparents", "Other"],
594
+ },
595
+ updates
596
+ )
597
+ )
598
+ };
475
599
 
476
- const childPrimaryCaregiver = (scope) => sbsSelect({
477
- name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
478
- label: 'Who is the Primary Caregiver?',
479
- options: [
480
- 'Mother',
481
- 'Father',
482
- 'Other'
483
- ]
484
- });
600
+ const childPrimaryCaregiver = (scope, vertical, updates = {}) => {
601
+ const func = vertical ? verticalButtonRadio : sbsSelect;
602
+ const label = vertical ? updates.label : "Who is the Primary Caregiver?";
603
+ return func(
604
+ merge(
605
+ {
606
+ label,
607
+ name: scope ? scope + ":" + "Child_Primary_Caregiver" : "Child_Primary_Caregiver",
608
+ options: ["Mother", "Father", "Other"],
609
+ },
610
+ updates
611
+ )
612
+ )
613
+ };
485
614
 
486
- const childRelationship = (scope) => sbsSelect({
487
- name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
488
- label: 'Your Relationship to Child(ren):',
489
- options: [
490
- 'Father',
491
- 'Mother',
492
- 'Grandparent',
493
- 'Aunt/Uncle',
494
- 'Other'
495
- ]
496
- });
615
+ const childRelationship = (scope, vertical, updates = {}) => {
616
+ const func = vertical ? col2RadioCenter : sbsSelect;
617
+ const label = vertical ? updates.label : "Your Relationship to Child(ren):";
618
+ return func(
619
+ merge(
620
+ {
621
+ label,
622
+ name: scope ? scope + ":" + "Child_Relationship" : "Child_Relationship",
623
+ options: ["Father", "Mother", "Grandparent", "Aunt/Uncle", "Other"],
624
+ },
625
+ updates
626
+ )
627
+ )
628
+ };
497
629
 
498
- const claimStatus = (scope) => sbsSelect({
499
- name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
500
- label: "Status of Claim:",
501
- options: [
502
- "No action taken yet",
503
- "Demand for compensation made",
504
- "Lawsuit filed",
505
- "Other"
506
- ]
507
- });
630
+ const claimStatus = (scope, vertical, updates = {}) => {
631
+ const func = vertical ? col2RadioCenter : sbsSelect;
632
+ const label = vertical ? updates.label : "Status of Claim:";
633
+ return func(
634
+ merge(
635
+ {
636
+ label,
637
+ name: scope ? scope + ":" + "Claim_Status" : "Claim_Status",
638
+ options: ["No action taken yet", "Demand for compensation made", "Lawsuit filed", "Other"],
639
+ },
640
+ updates
641
+ )
642
+ )
643
+ };
508
644
 
509
- const comments = (updates, scope) => textArea(
510
- merge({
511
- name: scope ? scope + ':' + 'Comments' : 'Comments',
512
- label: 'Please briefly describe your situation in a few words:',
513
- placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
514
- }, updates)
515
- );
516
-
517
- const degreeOfInterest$1 = (scope, help) => sbsSelect({
518
- name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
519
- id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
520
- label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
521
- help: help,
522
- options: [
523
- 'Definitely',
524
- 'Probably',
525
- 'Maybe',
526
- "Absolutely Can't Afford"
527
- ]
528
- });
645
+ // TODO: vertical not supported yet
646
+ const comments = (scope, vertical, updates) =>
647
+ textArea(
648
+ merge(
649
+ {
650
+ name: scope ? scope + ":" + "Comments" : "Comments",
651
+ label: "Please briefly describe your situation in a few words:",
652
+ placeholder:
653
+ 'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
654
+ },
655
+ updates
656
+ )
657
+ );
529
658
 
530
- const degreeOfInterestCenter = (scope, help) => col2RadioCenter({
531
- name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
532
- id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
533
- help: help,
534
- options: [
535
- 'Definitely',
536
- 'Probably',
537
- 'Maybe',
538
- "Absolutely Can't Afford"
539
- ]
540
- });
659
+ const degreeOfInterest$1 = (scope, vertical, updates = {}) => {
660
+ const func = vertical ? col2RadioCenter : sbsSelect;
661
+ const label = vertical ? updates.label : "How Likely Are You to Pay if Your Issue Could be Resolved?";
662
+ const help = vertical ? updates.help : "No payment necessary to speak with lawyers.";
663
+ return func(
664
+ merge(
665
+ {
666
+ name: scope ? scope + ":" + "Degree_Of_Interest" : "Degree_Of_Interest",
667
+ id: scope ? scope + ":" + "Degree_Of_Interest" : "Degree_Of_Interest",
668
+ label,
669
+ help,
670
+ options: ["Definitely", "Probably", "Maybe", "Absolutely Can't Afford"],
671
+ },
672
+ updates
673
+ )
674
+ )
675
+ };
541
676
 
542
- const degreeOfInterestHelp = (scope) => degreeOfInterest$1(scope, 'No payment necessary to speak with lawyers.');
677
+ const degreeOfInterestHelp = (scope, vertical, updates = {}) =>
678
+ degreeOfInterest$1(scope, vertical, merge(updates, { help: "No payment necessary to speak with lawyers." }));
543
679
 
544
- const disabilityConditionStopWork = (scope) => sbsYesNoRadio({
545
- name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
546
- label: 'Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?'
547
- });
680
+ const disabilityConditionStopWork = (scope, vertical, updates = {}) => {
681
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
682
+ const label = vertical
683
+ ? updates.label
684
+ : "Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?";
685
+ return func(
686
+ merge(
687
+ {
688
+ name: scope ? scope + ":" + "Disability_Condition_Stop_Work" : "Disability_Condition_Stop_Work",
689
+ label,
690
+ },
691
+ updates
692
+ )
693
+ )
694
+ };
548
695
 
549
- const disabilityWorkHistory = (scope) => sbsYesNoRadio({
550
- name: scope ? scope + ':' + 'Disability_Work_History' : 'Disability_Work_History',
551
- label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
552
- });
696
+ const disabilityWorkHistory = (scope, vertical, updates = {}) => {
697
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
698
+ const label = vertical ? updates.label : "Have You Had a Full-Time Job Within the Past 5 Years?";
699
+ return func(
700
+ merge(
701
+ {
702
+ name: scope ? scope + ":" + "Disability_Work_History" : "Disability_Work_History",
703
+ label,
704
+ },
705
+ updates
706
+ )
707
+ )
708
+ };
553
709
 
554
- const doctorTreatment = (scope) => sbsYesNoRadio({
555
- name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
556
- label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
557
- });
710
+ const doctorTreatment = (scope, vertical, updates = {}) => {
711
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
712
+ const label = vertical ? updates.label : "Have You Recently Been Treated by a Doctor, Hospital or Clinic?";
713
+ return func(
714
+ merge(
715
+ {
716
+ name: scope ? scope + ":" + "Doctor_Treatment" : "Doctor_Treatment",
717
+ label,
718
+ },
719
+ updates
720
+ )
721
+ )
722
+ };
558
723
 
559
- const estateLegalServicesNeeded = (scope) => sbsSelect({
560
- name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
561
- label: "Legal Services Needed for Your Estate:",
562
- options: [
563
- "Charitable Giving",
564
- "Contested Wills",
565
- "Drafting Wills or Trust",
566
- "Estate Administration",
567
- "Asset Protection",
568
- "Other"
569
- ]
570
- });
724
+ const estateLegalServicesNeeded = (scope, vertical, updates = {}) => {
725
+ const func = vertical ? col2RadioCenter : sbsSelect;
726
+ const label = vertical ? updates.label : "Legal Services Needed for Your Estate:";
727
+ return func(
728
+ merge(
729
+ {
730
+ name: scope ? scope + ":" + "Estate_Legal_Services_Needed" : "Estate_Legal_Services_Needed",
731
+ label,
732
+ options: [
733
+ "Charitable Giving",
734
+ "Contested Wills",
735
+ "Drafting Wills or Trust",
736
+ "Estate Administration",
737
+ "Asset Protection",
738
+ "Other",
739
+ ],
740
+ },
741
+ updates
742
+ )
743
+ )
744
+ };
571
745
 
572
- const haveAttorney$1 = (scope) => sbsYesNoRadio({
573
- name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
574
- label: 'Already Working with An Attorney?'
575
- });
746
+ const haveAttorney$1 = (scope, vertical, updates = {}) => {
747
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
748
+ const label = vertical ? updates.label : "Already Working with An Attorney?";
749
+ return func(
750
+ merge(
751
+ {
752
+ label,
753
+ name: scope ? scope + ":" + "Have_Attorney" : "Have_Attorney",
754
+ },
755
+ updates
756
+ )
757
+ )
758
+ };
576
759
 
577
- const haveAttorneyCenter = (scope) => verticalYesNoRadio({
578
- name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
579
- });
760
+ const haveChildren = (scope, vertical, updates = {}) => {
761
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
762
+ const label = vertical ? updates.label : "Do You Have Children?";
763
+ return func(
764
+ merge(
765
+ {
766
+ name: scope ? scope + ":" + "Have_Children" : "Have_Children",
767
+ label,
768
+ },
769
+ updates
770
+ )
771
+ )
772
+ };
580
773
 
581
- const haveChildren = (scope) => sbsYesNoRadio({
582
- name: scope ? scope + ':' + 'Have_Children' : 'Have_Children',
583
- label: 'Do You Have Children?'
584
- });
774
+ const incidentDate = (scope, vertical, updates = {}) => {
775
+ const func = vertical ? verticalDate : sbsDate;
776
+ const label = vertical ? updates.label : "Date of Incident:";
777
+ return func(
778
+ merge(
779
+ {
780
+ label,
781
+ name: scope ? scope + ":" + "Incident_Date" : "Incident_Date",
782
+ },
783
+ updates
784
+ )
785
+ )
786
+ };
585
787
 
586
- const incidentDate = (scope) => sbsDate({
587
- name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
588
- label: 'Date of Incident:',
589
- });
788
+ const lawyerPaymentMethod = (scope, vertical, updates = {}) => {
789
+ const func = vertical ? col2RadioCenter : sbsSelect;
790
+ const label = vertical ? updates.label : "How Will You Pay for Legal Fees if You Hire a Lawyer?";
791
+ const help = vertical ? updates.help : "No payment necessary to start a consultation.";
792
+ const options = vertical
793
+ ? {
794
+ Cash: "Cash",
795
+ "Credit Card": "Credit Card",
796
+ Family: "Family or Friend",
797
+ Other: "Other",
798
+ }
799
+ : ["Cash", "Check", "Credit Card", "Friend", "Family", "Other"];
800
+ return func(
801
+ merge(
802
+ {
803
+ label,
804
+ help,
805
+ name: scope ? scope + ":" + "Lawyer_Payment_Method" : "Lawyer_Payment_Method",
806
+ options,
807
+ fieldsetClass: vertical ? "$reset t-flex t-flex-col t-items-center" : undefined,
808
+ },
809
+ updates
810
+ )
811
+ )
812
+ };
590
813
 
591
- const lawyerPaymentMethod = (scope) => sbsSelect({
592
- name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
593
- label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
594
- help: 'No payment necessary to speak with lawyers.',
595
- options: [
596
- 'Cash',
597
- 'Check',
598
- 'Credit Card',
599
- 'Friend',
600
- 'Family',
601
- 'Other'
602
- ]
603
- });
814
+ const legalCrossSells$1 = () =>
815
+ col2Checkbox({
816
+ id: "Legal_CrossSells",
817
+ name: "Legal_CrossSells",
818
+ help: 'Just hit "Next" if none apply',
819
+ helpClass: "t-text-center !t-text-sm",
820
+ validation: null,
821
+ options: '$getCrossSellOptions($get(form), $getVal($get(form), "Type_Of_Legal_Problem"))',
822
+ });
823
+
824
+ const maritalStatus = (scope, vertical, updates = {}) => {
825
+ const func = vertical ? col2RadioCenter : sbsSelect;
826
+ const label = vertical ? updates.label : "Marital Status:";
827
+ return func(
828
+ merge(
829
+ {
830
+ label,
831
+ name: scope ? scope + ":" + "Marital_Status" : "Marital_Status",
832
+ options: [
833
+ "Unmarried, Living Together",
834
+ "Unmarried, Do Not Live Together",
835
+ "Married, Living Together",
836
+ "Separated",
837
+ "Divorced",
838
+ "Other",
839
+ ],
840
+ },
841
+ updates
842
+ )
843
+ )
844
+ };
604
845
 
605
- const legalCrossSells$1 = () => col2Checkbox({
606
- id: 'Legal_CrossSells',
607
- name: 'Legal_CrossSells',
608
- help: 'Just hit "Next" if none apply',
609
- helpClass: 't-text-center !t-text-sm',
610
- validation: null,
611
- options: '$getCrossSellOptions($get(form), $getVal($get(form), "Type_Of_Legal_Problem"))',
612
- });
846
+ const numEmployeesOfBusiness$1 = (scope, vertical, updates = {}) => {
847
+ const func = vertical ? col2RadioCenter : sbsSelect;
848
+ const label = vertical ? updates.label : "Total Employees of Business? (estimated)";
849
+ return func(
850
+ merge(
851
+ {
852
+ label,
853
+ name: scope ? scope + ":" + "Num_Employees_Of_Business" : "Num_Employees_Of_Business",
854
+ options: ["1-5", "6-20", "21-50", "51-100", "101-500", "501-1,000", "More than 1,000"],
855
+ },
856
+ updates
857
+ )
858
+ )
859
+ };
613
860
 
614
- const maritalStatus = (scope) => sbsSelect({
615
- name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
616
- label: 'Marital Status:',
617
- options: [
618
- 'Unmarried, Living Together',
619
- 'Unmarried, Do Not Live Together',
620
- 'Married, Living Together',
621
- 'Separated',
622
- 'Divorced',
623
- 'Other'
624
- ]
625
- });
861
+ const patentsAndIPTOLPDisplay = (scope, vertical, updates = {}) => {
862
+ const func = vertical ? col2RadioCenter : col2Radio;
863
+ const label = vertical ? updates.label : "Select The Type of Legal Problem:";
864
+ return func(
865
+ merge(
866
+ {
867
+ label,
868
+ name: scope ? scope + ":" + "Type_Of_Legal_Problem_Display" : "Type_Of_Legal_Problem_Display",
869
+ options: [
870
+ "Copyrights",
871
+ "Trademarks",
872
+ "Patents",
873
+ "Business Lawyers",
874
+ "Business Consulting",
875
+ "Not Sure or Other",
876
+ ],
877
+ },
878
+ updates
879
+ )
880
+ )
881
+ };
626
882
 
627
- const numEmployeesOfBusinessCenter = () => col2RadioCenter({
628
- name: 'Num_Employees_Of_Business',
629
- options: [
630
- "1-5",
631
- "6-20",
632
- "21-50",
633
- "51-100",
634
- "101-500",
635
- "501-1,000",
636
- "More than 1,000"
637
- ]
638
- });
883
+ const patentAssistanceType$1 = (scope, vertical, updates = {}) => {
884
+ const func = vertical ? verticalSelect : sbsSelect;
885
+ const label = vertical ? updates.label : "Legal Assistance Needed:";
886
+ return func(
887
+ merge(
888
+ {
889
+ label,
890
+ name: scope ? scope + ":" + "Patent_Assistance_Type" : "Patent_Assistance_Type",
891
+ options: [
892
+ "Obtaining a Patent",
893
+ "Avoiding Patent Infringement",
894
+ "Suing for Patent Infringement",
895
+ "Defending Against a Claim of Patent Infringement",
896
+ "Other",
897
+ ],
898
+ },
899
+ updates
900
+ )
901
+ )
902
+ };
639
903
 
640
- const patentsAndIPTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
641
- name: 'Type_Of_Legal_Problem_Display',
642
- options: [
643
- 'Copyrights',
644
- 'Trademarks',
645
- 'Patents',
646
- 'Business Lawyers',
647
- 'Business Consulting',
648
- 'Not Sure or Other',
649
- ]
650
- }, updates));
651
-
652
- const patentAssistanceTypeCenter = () => verticalSelect({
653
- name: 'Patent_Assistance_Type',
654
- options: [
655
- "Obtaining a Patent",
656
- "Avoiding Patent Infringement",
657
- "Suing for Patent Infringement",
658
- "Defending Against a Claim of Patent Infringement",
659
- "Other"
660
- ]
661
- });
904
+ const patentFor$1 = (scope, vertical, updates = {}) => {
905
+ const func = vertical ? col2RadioCenter : sbsSelect;
906
+ const label = vertical ? updates.label : "The Patent is for a:";
907
+ return func(
908
+ merge(
909
+ {
910
+ label,
911
+ name: scope ? scope + ":" + "Patent_For" : "Patent_For",
912
+ options: [
913
+ "Product or Machine",
914
+ "Process",
915
+ "Computer Software",
916
+ "Living Organism or Plant",
917
+ "Ornamental Design",
918
+ "Other",
919
+ ],
920
+ },
921
+ updates
922
+ )
923
+ )
924
+ };
662
925
 
663
- const patentForCenter = () => col2RadioCenter({
664
- name: 'Patent_For',
665
- options: [
666
- "Product or Machine",
667
- "Process",
668
- "Computer Software",
669
- "Living Organism or Plant",
670
- "Ornamental Design",
671
- "Other"
672
- ]
673
- });
926
+ // XXX HERE
674
927
 
675
- const pendingCharges = (scope) => sbsYesNoRadio({
676
- name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
677
- label: 'Do you currently have any pending charges?'
678
- });
928
+ const pendingCharges = (scope, vertical, updates = {}) => {
929
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
930
+ const label = vertical ? updates.label : "Do you currently have any pending charges?";
931
+ return func(
932
+ merge(
933
+ {
934
+ name: scope ? scope + ":" + "Pending_Charges" : "Pending_Charges",
935
+ label,
936
+ },
937
+ updates
938
+ )
939
+ )
940
+ };
679
941
 
680
- const primaryInjury = (scope) => sbs2ColRadio({
681
- name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
682
- label: 'Primary Injury:',
683
- options: [
684
- "Anxiety",
685
- "Back or Neck Pain",
686
- "Broken Bones",
687
- "Cuts and Bruises",
688
- "Headaches",
689
- "Memory Loss",
690
- "Loss of Limb",
691
- "Not Sure or Other"
692
- ]
693
- });
942
+ const primaryInjury = (scope, vertical, updates = {}) => {
943
+ const func = vertical ? col2RadioCenter : sbs2ColRadio;
944
+ const label = vertical ? updates.label : "Primary Injury:";
945
+ return func(
946
+ merge(
947
+ {
948
+ label,
949
+ name: scope ? scope + ":" + "Primary_Injury" : "Primary_Injury",
950
+ options: [
951
+ "Anxiety",
952
+ "Back or Neck Pain",
953
+ "Broken Bones",
954
+ "Cuts and Bruises",
955
+ "Headaches",
956
+ "Memory Loss",
957
+ "Loss of Limb",
958
+ "Not Sure or Other",
959
+ ],
960
+ },
961
+ updates
962
+ )
963
+ )
964
+ };
694
965
 
695
- const priorAlcoholOffenses = (scope) => sbsYesNoRadio({
696
- name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
697
- label: 'Any Prior Alcohol Related Offenses?'
698
- });
966
+ const priorAlcoholOffenses = (scope, vertical, updates = {}) => {
967
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
968
+ const label = vertical ? updates.label : "Any Prior Alcohol Related Offenses?";
969
+ return func(
970
+ merge(
971
+ {
972
+ name: scope ? scope + ":" + "Prior_Alcohol_Offenses" : "Prior_Alcohol_Offenses",
973
+ label,
974
+ },
975
+ updates
976
+ )
977
+ )
978
+ };
699
979
 
700
- const policeReportFiled = (scope) => sbsYesNoRadio({
701
- name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
702
- label: 'Was a Police Report Filed?'
703
- });
980
+ const policeReportFiled = (scope, vertical, updates = {}) => {
981
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
982
+ const label = vertical ? updates.label : "Was a Police Report Filed?";
983
+ return func(
984
+ merge(
985
+ {
986
+ name: scope ? scope + ":" + "Police_Report_Filed" : "Police_Report_Filed",
987
+ label,
988
+ },
989
+ updates
990
+ )
991
+ )
992
+ };
704
993
 
705
- const roleInMatterProbate = (scope) => sbsSelect({
706
- name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
707
- label: "What Is Your Role in this Matter?",
708
- options: [
709
- "Preparing My Will",
710
- "Executor",
711
- "Heir",
712
- "Other"
713
- ]
714
- });
994
+ const roleInMatterProbate = (scope, vertical, updates = {}) => {
995
+ const func = vertical ? col2RadioCenter : sbsSelect;
996
+ const label = vertical ? updates.label : "What is Your Role in this Matter?";
997
+ return func(
998
+ merge(
999
+ {
1000
+ label,
1001
+ name: scope ? scope + ":" + "Role_In_Matter_Probate" : "Role_In_Matter_Probate",
1002
+ options: ["Preparing My Will", "Executor", "Heir", "Other"],
1003
+ },
1004
+ updates
1005
+ )
1006
+ )
1007
+ };
715
1008
 
716
- const socialSecurityDisabilityReceivingBenefits = (scope) => sbsYesNoRadio({
717
- name: scope ? scope + ':' + 'Social_Security_Disability_Receiving_Benefits' : 'Social_Security_Disability_Receiving_Benefits',
718
- label: 'Are You Currently Receiving Social Security Disability Benefits?'
719
- });
1009
+ const socialSecurityDisabilityReceivingBenefits = (scope, vertical, updates = {}) => {
1010
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
1011
+ const label = vertical ? updates.label : "Are You Currently Receiving Social Security Disability Benefits?";
1012
+ return func(
1013
+ merge(
1014
+ {
1015
+ name: scope
1016
+ ? scope + ":" + "Social_Security_Disability_Receiving_Benefits"
1017
+ : "Social_Security_Disability_Receiving_Benefits",
1018
+ label,
1019
+ },
1020
+ updates
1021
+ )
1022
+ )
1023
+ };
720
1024
 
721
1025
  const TCPAConsent = (scope) => ({
722
- $formkit: 'checkbox',
723
- label: '$meta.tcpaLanguage',
724
- name: scope ? scope + ':' + 'TCPA_Opt_In' : 'TCPA_Opt_In',
725
- 'data-tf-sensitive': 'false',
726
- validation: 'required|accepted',
1026
+ $formkit: "checkbox",
1027
+ label: "$meta.tcpaLanguage",
1028
+ // Necessary to get links to work in the tcpa language
1029
+ __raw__sectionsSchema: {
1030
+ label: { attrs: { innerHTML: "$label" } },
1031
+ },
1032
+ name: scope ? scope + ":" + "TCPA_Opt_In" : "TCPA_Opt_In",
1033
+ "data-tf-sensitive": "false",
1034
+ validation: "required|accepted",
727
1035
  validationMessages: {
728
- required: 'Consent is required',
729
- accepted: 'Consent is required'
1036
+ required: "Consent is required",
1037
+ accepted: "Consent is required",
730
1038
  },
731
1039
  classes: {
732
- label: "t-text-xs t-text-slate-500 t-font-normal"
733
- }
1040
+ label: "t-text-xs t-text-slate-500 t-font-normal",
1041
+ },
734
1042
  });
735
1043
 
736
- const typeOfAlcoholTest = (scope) => sbsSelect({
737
- name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
738
- label: 'Type of Alcohol Test Performed?',
739
- options: [
740
- "No Test",
741
- "Refused Test",
742
- "Breath Test",
743
- "Blood Test",
744
- "Urine Test",
745
- "Don't Know"
746
- ]
747
- });
1044
+ const typeOfAlcoholTest = (scope, vertical, updates = {}) => {
1045
+ const func = vertical ? col2RadioCenter : sbsSelect;
1046
+ const label = vertical ? updates.label : "Type of Alcohol Test Performed?";
1047
+ return func(
1048
+ merge(
1049
+ {
1050
+ label,
1051
+ name: scope ? scope + ":" + "Type_Of_Alcohol_Test" : "Type_Of_Alcohol_Test",
1052
+ options: ["No Test", "Refused Test", "Breath Test", "Blood Test", "Urine Test", "Don't Know"],
1053
+ },
1054
+ updates
1055
+ )
1056
+ )
1057
+ };
748
1058
 
749
- const typeOfAssets = (scope) => col2Checkbox({
750
- name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
751
- label: 'Type of Assets:',
752
- options: [
753
- "Business Interests",
754
- "Cash",
755
- "Life Insurance Policies",
756
- "Pensions/Retirement",
757
- "Personal Possessions",
758
- "Property",
759
- "Stock/Bonds"
760
- ]
761
- });
1059
+ const typeOfAssets = (scope, vertical, updates = {}) => {
1060
+ const func = vertical ? verticalCol2Checkbox : col2Checkbox;
1061
+ const label = vertical ? updates.label : "Type of Assets:";
1062
+ return func(
1063
+ merge(
1064
+ {
1065
+ label,
1066
+ name: scope ? scope + ":" + "Type_Of_Assets" : "Type_Of_Assets",
1067
+ options: [
1068
+ "Business Interests",
1069
+ "Cash",
1070
+ "Life Insurance Policies",
1071
+ "Pensions/Retirement",
1072
+ "Personal Possessions",
1073
+ "Property",
1074
+ "Stock/Bonds",
1075
+ ],
1076
+ },
1077
+ updates
1078
+ )
1079
+ )
1080
+ };
762
1081
 
763
- const valueOfAssets = (scope) => sbsSelect({
764
- name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
765
- label: 'Value of Your Assets?',
766
- options: [
767
- "Less than 50K",
768
- "50K to 100K",
769
- "100K to 250K",
770
- "250K to 500K",
771
- "500K to 1M",
772
- "More than 1M"
773
- ]
774
- });
1082
+ const valueOfAssets = (scope, vertical, updates = {}) => {
1083
+ const func = vertical ? col2RadioCenter : sbsSelect;
1084
+ const label = vertical ? updates.label : "Value of Your Assets?";
1085
+ return func(
1086
+ merge(
1087
+ {
1088
+ label,
1089
+ name: scope ? scope + ":" + "Value_Of_Assets" : "Value_Of_Assets",
1090
+ options: ["Less than 50K", "50K to 100K", "100K to 250K", "250K to 500K", "500K to 1M", "More than 1M"],
1091
+ },
1092
+ updates
1093
+ )
1094
+ )
1095
+ };
775
1096
 
776
- // ------ Question Groups
1097
+ // ------ Question Groups - TODO: move these go separate file groups.js
777
1098
 
778
1099
  // NOTE: name must be unique within a form!
779
1100
  const group = (name, updates) => {
780
- return merge({
781
- $cmp: 'FormKit',
782
- props: {
783
- type: 'group',
784
- key: name,
785
- id: name,
786
- name: name
787
- }
788
- }, updates)
1101
+ return merge(
1102
+ {
1103
+ $cmp: "FormKit",
1104
+ props: {
1105
+ type: "group",
1106
+ key: name,
1107
+ id: name,
1108
+ name: name,
1109
+ },
1110
+ },
1111
+ updates
1112
+ )
789
1113
  };
790
1114
 
791
- const AutoAndCarAccidentsQuestions = (condition, scope) => group(
792
- 'AutoAndCarAccidentsQuestions',
793
- {
794
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
1115
+ const AutoAndCarAccidentsQuestions = (condition, scope) =>
1116
+ group("AutoAndCarAccidentsQuestions", {
1117
+ if: condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
795
1118
  children: [
796
1119
  haveAttorney$1(scope),
797
1120
  incidentDate(scope),
798
1121
  atFault(scope),
799
1122
  primaryInjury(scope),
800
1123
  doctorTreatment(scope),
801
- policeReportFiled(scope)
802
- ]
803
- }
804
- );
1124
+ policeReportFiled(scope),
1125
+ ],
1126
+ });
805
1127
 
806
- const ChildCustodyQuestions = (condition, scope) => group(
807
- 'ChildCustodyQuestions',
808
- {
809
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
1128
+ const ChildCustodyQuestions = (condition, scope) =>
1129
+ group("ChildCustodyQuestions", {
1130
+ if: condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"',
810
1131
  children: [
811
1132
  haveAttorney$1(scope),
812
1133
  childRelationship(scope),
813
1134
  childHome(scope),
814
1135
  childPrimaryCaregiver(scope),
815
1136
  degreeOfInterest$1(scope),
816
- lawyerPaymentMethod(scope)
817
- ]
818
- }
819
- );
1137
+ lawyerPaymentMethod(scope),
1138
+ ],
1139
+ });
820
1140
 
821
- const DivorceQuestions = (condition, scope) => group(
822
- 'DivorceQuestions',
823
- {
824
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
1141
+ const DivorceQuestions = (condition, scope) =>
1142
+ group("DivorceQuestions", {
1143
+ if: condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
825
1144
  children: [
826
1145
  haveAttorney$1(scope),
827
1146
  maritalStatus(scope),
828
1147
  haveChildren(scope),
829
1148
  degreeOfInterest$1(scope),
830
- lawyerPaymentMethod(scope)
831
- ]
832
- }
833
- );
1149
+ lawyerPaymentMethod(scope),
1150
+ ],
1151
+ });
834
1152
 
835
- const DUIAndDWIQuestions = (condition, scope) => group(
836
- 'DUIAndDWIQuestions',
837
- {
838
- if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
1153
+ const DUIAndDWIQuestions = (condition, scope) =>
1154
+ group("DUIAndDWIQuestions", {
1155
+ if: condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
839
1156
  children: [
840
1157
  haveAttorney$1(scope),
841
1158
  incidentDate(scope),
@@ -843,93 +1160,81 @@ const DUIAndDWIQuestions = (condition, scope) => group(
843
1160
  typeOfAlcoholTest(scope),
844
1161
  bloodContentAlcoholTest(scope),
845
1162
  pendingCharges(scope),
846
- degreeOfInterestHelp(scope)
847
- ]
848
- }
849
- );
1163
+ degreeOfInterestHelp(scope),
1164
+ ],
1165
+ });
850
1166
 
851
- const PersonalInjuryQuestions = (condition, scope) => group(
852
- 'PersonalInjuryQuestions',
853
- {
854
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
1167
+ const PersonalInjuryQuestions = (condition, scope) =>
1168
+ group("PersonalInjuryQuestions", {
1169
+ if: condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
855
1170
  children: [
856
1171
  haveAttorney$1(scope),
857
1172
  incidentDate(scope),
858
1173
  claimStatus(scope),
859
1174
  atFault(scope),
860
1175
  primaryInjury(scope),
861
- doctorTreatment(scope)
862
- ]
863
- }
864
- );
1176
+ doctorTreatment(scope),
1177
+ ],
1178
+ });
865
1179
 
866
- const PowerofAttorneyQuestions = (condition, scope) => group(
867
- 'PowerofAttorneyQuestions',
868
- {
869
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
870
- children: [
871
- haveAttorney$1(scope),
872
- degreeOfInterestHelp(scope)
873
- ]
874
- }
875
- );
1180
+ const PowerofAttorneyQuestions = (condition, scope) =>
1181
+ group("PowerofAttorneyQuestions", {
1182
+ if: condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
1183
+ children: [haveAttorney$1(scope), degreeOfInterestHelp(scope)],
1184
+ });
876
1185
 
877
- const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) => group(
878
- 'SocialSecurityDisabilityAndInsuranceQuestions',
879
- {
880
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"'),
1186
+ const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) =>
1187
+ group("SocialSecurityDisabilityAndInsuranceQuestions", {
1188
+ if: condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"',
881
1189
  children: [
882
1190
  haveAttorney$1(scope),
883
1191
  applicantAge(scope),
884
1192
  disabilityConditionStopWork(scope),
885
1193
  disabilityWorkHistory(scope),
886
1194
  socialSecurityDisabilityReceivingBenefits(scope),
887
- doctorTreatment(scope)
888
- ]
889
- }
890
- );
1195
+ doctorTreatment(scope),
1196
+ ],
1197
+ });
891
1198
 
892
- const WillsAndTrustsQuestions = (condition, scope) => group(
893
- 'WillsAndTrustsQuestions',
894
- {
895
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
1199
+ const WillsAndTrustsQuestions = (condition, scope) =>
1200
+ group("WillsAndTrustsQuestions", {
1201
+ if: condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
896
1202
  children: [
897
1203
  haveAttorney$1(scope),
898
1204
  valueOfAssets(scope),
899
1205
  typeOfAssets(scope),
900
1206
  roleInMatterProbate(scope),
901
1207
  estateLegalServicesNeeded(scope),
902
- degreeOfInterestHelp(scope)
903
- ]
904
- }
905
- );
1208
+ degreeOfInterestHelp(scope),
1209
+ ],
1210
+ });
906
1211
 
907
- const WorkersCompensationQuestions = (condition, scope) => group(
908
- 'WorkersCompensationQuestions',
909
- {
910
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
1212
+ const WorkersCompensationQuestions = (condition, scope) =>
1213
+ group("WorkersCompensationQuestions", {
1214
+ if: condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
911
1215
  children: [
912
1216
  haveAttorney$1(scope),
913
1217
  incidentDate(scope),
914
1218
  claimStatus(scope),
915
1219
  primaryInjury(scope),
916
1220
  causeOfInjury(scope),
917
- doctorTreatment(scope)
918
- ]
919
- }
920
- );
1221
+ doctorTreatment(scope),
1222
+ ],
1223
+ });
921
1224
 
922
- const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
923
- const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
1225
+ const NEXT_ON_ENTER = "$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
1226
+ const NEXT_ON_INPUT = "$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
924
1227
 
925
- const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
1228
+ const isInput = (n) => {
1229
+ return n.type !== "group" && n.type !== "section" && n.type !== "form" && n.$formkit !== "hidden" && !n.children
1230
+ };
926
1231
 
927
1232
  const findLastInput = (n) => {
928
1233
  if (isInput(n)) {
929
1234
  return n
930
1235
  }
931
1236
  for (var i = n.children.length - 1; i >= 0; i--) {
932
- if (typeof n.children === 'string') {
1237
+ if (typeof n.children === "string") {
933
1238
  continue
934
1239
  }
935
1240
  const child = n.children[i];
@@ -945,136 +1250,154 @@ const findLastInput = (n) => {
945
1250
  };
946
1251
 
947
1252
  const secureIconDefault = {
948
- $el: 'div',
949
- if: '$activeStep === $lastStep()',
1253
+ $el: "div",
1254
+ if: "$activeStep === $lastStep()",
950
1255
  attrs: {
951
- class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
1256
+ class: "t-flex t-justify-center t-items-center t-text-sm t-text-gray-500",
952
1257
  },
953
1258
  children: [
954
1259
  {
955
- $el: 'img',
1260
+ $el: "img",
956
1261
  attrs: {
957
- loading: 'lazy',
958
- alt: '',
1262
+ loading: "lazy",
1263
+ alt: "",
959
1264
  style: {
960
- border: 0
1265
+ border: 0,
961
1266
  },
962
- width: '25',
963
- height: '25',
964
- src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
965
- }
1267
+ width: "25",
1268
+ height: "25",
1269
+ src: "https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg",
1270
+ },
966
1271
  },
967
1272
  {
968
- $el: 'span',
969
- children: 'Secure & Encrypted',
1273
+ $el: "span",
1274
+ children: "Secure & Encrypted",
970
1275
  attrs: {
971
- class: 't-pl-2 t-pt-1 t-font-medium'
972
- }
973
- }
974
- ]
1276
+ class: "t-pl-2 t-pt-1 t-font-medium",
1277
+ },
1278
+ },
1279
+ ],
975
1280
  };
976
1281
 
977
1282
  function secureIcon(updates) {
978
- return merge(
979
- secureIconDefault,
980
- updates
981
- )
1283
+ return merge(secureIconDefault, updates)
982
1284
  }
983
1285
 
984
1286
  function crossSellQuestionsStepHeadline(updates) {
985
1287
  return {
986
- $el: 'h3',
987
- children: updates.headline || 'Tell Us About Your Situation',
1288
+ $el: "h3",
1289
+ children: updates.headline || "Tell Us About Your Situation",
988
1290
  attrs: {
989
- 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'
990
- }
1291
+ 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",
1292
+ },
991
1293
  }
992
1294
  }
993
1295
 
994
1296
  function crossSellQuestionsStepSubHeadline(updates) {
995
1297
  return {
996
- $el: 'h5',
997
- children: updates.subheadline || 'Tell us about your situation:',
1298
+ $el: "h5",
1299
+ children: updates.subheadline || "Tell us about your situation:",
998
1300
  attrs: {
999
- 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'
1000
- }
1301
+ 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",
1302
+ },
1001
1303
  }
1002
1304
  }
1003
1305
 
1004
1306
  function verticalStepHeadline(updates) {
1005
1307
  return {
1006
- $el: 'h3',
1007
- children: updates.headline || 'Tell Us About Your Situation',
1308
+ $el: "h3",
1309
+ children: updates.headline || "Tell Us About Your Situation",
1008
1310
  attrs: {
1009
- 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 || '')
1010
- }
1311
+ class:
1312
+ "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" +
1313
+ " " +
1314
+ (updates.headlineClass || ""),
1315
+ },
1011
1316
  }
1012
1317
  }
1013
1318
 
1014
1319
  function verticalStepSubHeadline(updates) {
1015
1320
  return {
1016
- $el: 'h5',
1017
- children: updates.subheadline || '',
1321
+ $el: "h5",
1322
+ children: updates.subheadline || "",
1018
1323
  attrs: {
1019
- 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 || '')
1020
- }
1324
+ class:
1325
+ "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" +
1326
+ " " +
1327
+ (updates.subheadlineClass || ""),
1328
+ },
1021
1329
  }
1022
1330
  }
1023
1331
 
1024
1332
  function commentsStepHeadline(updates) {
1025
1333
  return {
1026
- $el: 'h3',
1027
- children: updates.headline || 'Additional Details',
1334
+ $el: "h3",
1335
+ children: updates.headline || "Additional Details",
1028
1336
  attrs: {
1029
- 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' + ' ' + (updates.headlineClass || '')
1030
- }
1337
+ class:
1338
+ "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" +
1339
+ " " +
1340
+ (updates.headlineClass || ""),
1341
+ },
1031
1342
  }
1032
1343
  }
1033
1344
 
1034
1345
  function commentsStepHeadlineLegal(updates) {
1035
1346
  return commentsStepHeadline({
1036
- headline: updates.headline || 'Additional Case Details',
1037
- headlineClass: updates.headlineClass
1347
+ headline: updates.headline || "Additional Case Details",
1348
+ headlineClass: updates.headlineClass,
1038
1349
  })
1039
1350
  }
1040
1351
 
1041
1352
  function firstAndLastStepHeadline(updates) {
1042
1353
  return {
1043
- $el: 'h3',
1044
- children: updates.headline || 'Please Provide a Contact Name',
1354
+ $el: "h3",
1355
+ children: updates.headline || "Please Provide a Contact Name",
1045
1356
  attrs: {
1046
- 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' + ' ' + (updates.headlineClass || '')
1047
- }
1357
+ class:
1358
+ "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" +
1359
+ " " +
1360
+ (updates.headlineClass || ""),
1361
+ },
1048
1362
  }
1049
1363
  }
1050
1364
 
1051
1365
  function legalCrossSellsStepHeadline(updates) {
1052
1366
  return {
1053
- $el: 'h3',
1054
- children: updates.headline || 'Do any of the following situations apply?',
1367
+ $el: "h3",
1368
+ children: updates.headline || "Do any of the following situations apply?",
1055
1369
  attrs: {
1056
- 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' + ' ' + (updates.headlineClass || '')
1057
- }
1370
+ class:
1371
+ "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" +
1372
+ " " +
1373
+ (updates.headlineClass || ""),
1374
+ },
1058
1375
  }
1059
1376
  }
1060
1377
 
1061
1378
  function contactStepHeadline(updates) {
1062
1379
  return {
1063
- $el: 'h3',
1380
+ $el: "h3",
1064
1381
  children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL,
1065
1382
  attrs: {
1066
- class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
1067
- }
1383
+ class:
1384
+ "t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1" +
1385
+ " " +
1386
+ (updates.headlineClass || ""),
1387
+ },
1068
1388
  }
1069
1389
  }
1070
1390
 
1071
1391
  function contactStepSubHeadline(updates) {
1072
1392
  return {
1073
- $el: 'h5',
1393
+ $el: "h5",
1074
1394
  children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL,
1075
1395
  attrs: {
1076
- class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3' + ' ' + (updates.subheadlineClass || '')
1077
- }
1396
+ class:
1397
+ "t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3" +
1398
+ " " +
1399
+ (updates.subheadlineClass || ""),
1400
+ },
1078
1401
  }
1079
1402
  }
1080
1403
 
@@ -1096,19 +1419,19 @@ const TRUSTED_FORM_JS = `(function() {
1096
1419
 
1097
1420
  function trustedFormScript() {
1098
1421
  return {
1099
- $el: 'script',
1100
- if: '$activeStep === $lastStep()',
1101
- children: TRUSTED_FORM_JS
1422
+ $el: "script",
1423
+ if: "$activeStep === $lastStep()",
1424
+ children: TRUSTED_FORM_JS,
1102
1425
  }
1103
1426
  }
1104
1427
 
1105
1428
  const stepDefaults = (step, stepKey) => ({
1106
- $el: 'section',
1429
+ $el: "section",
1107
1430
  if: '$stepEnabled("' + step + '")',
1108
1431
  attrs: {
1109
1432
  hidden: '$activeStep !== "' + step + '"',
1110
- key: stepKey ? stepKey : step
1111
- }
1433
+ key: stepKey ? stepKey : step,
1434
+ },
1112
1435
  });
1113
1436
 
1114
1437
  function step(name, inputs, updates = {}) {
@@ -1131,35 +1454,35 @@ function step(name, inputs, updates = {}) {
1131
1454
  }
1132
1455
  }
1133
1456
 
1134
- return merge(
1135
- stepDefaults(name, stepKey),
1136
- {
1137
- children: [
1138
- {
1139
- $formkit: 'group',
1140
- id: name,
1141
- name: name,
1142
- nextStepMap: nextStepMap,
1143
- triggerRedirectMap: triggerRedirectMap,
1144
- autoFocus: autoFocus,
1145
- children: inputs
1146
- }
1147
- ]
1148
- }
1149
- )
1457
+ return merge(stepDefaults(name, stepKey), {
1458
+ children: [
1459
+ {
1460
+ $formkit: "group",
1461
+ id: name,
1462
+ name: name,
1463
+ nextStepMap: nextStepMap,
1464
+ triggerRedirectMap: triggerRedirectMap,
1465
+ autoFocus: autoFocus,
1466
+ children: inputs,
1467
+ },
1468
+ ],
1469
+ })
1150
1470
  }
1151
1471
 
1152
1472
  // Single question step
1153
1473
  function sqstep(name, input, defaultHeadline, updates = {}) {
1154
- if (typeof updates.nextOnInput === 'undefined') {
1474
+ if (typeof updates.nextOnInput === "undefined") {
1155
1475
  updates.nextOnInput = true;
1156
1476
  }
1157
-
1477
+
1158
1478
  return step(
1159
1479
  name,
1160
1480
  [
1161
- verticalStepHeadline({ headline: updates.headline ?? defaultHeadline, headlineClass: updates.headlineClass }),
1162
- ...Array.isArray(input) ? input : [input],
1481
+ verticalStepHeadline({
1482
+ headline: updates.headline ?? defaultHeadline,
1483
+ headlineClass: updates.headlineClass,
1484
+ }),
1485
+ ...(Array.isArray(input) ? input : [input]),
1163
1486
  ],
1164
1487
  updates
1165
1488
  )
@@ -1167,7 +1490,7 @@ function sqstep(name, input, defaultHeadline, updates = {}) {
1167
1490
 
1168
1491
  function contactInfo(updates = {}) {
1169
1492
  return step(
1170
- 'contactInfo',
1493
+ "contactInfo",
1171
1494
  [
1172
1495
  contactStepHeadline(updates),
1173
1496
  contactStepSubHeadline(updates),
@@ -1175,63 +1498,58 @@ function contactInfo(updates = {}) {
1175
1498
  email(updates.scope),
1176
1499
  phone(updates.scope),
1177
1500
  TCPAConsent(updates.scope),
1178
- secureIcon()
1501
+ secureIcon(),
1179
1502
  ],
1180
1503
  { nextOnEnter: false }
1181
1504
  )
1182
1505
  }
1183
1506
 
1184
- function firstAndLastV3(updates = {}, scope) {
1507
+ function firstAndLastV3(updates = {}) {
1185
1508
  return step(
1186
- 'firstAndLast',
1509
+ "firstAndLast",
1187
1510
  [
1188
1511
  firstAndLastStepHeadline({
1189
- headline: updates.headline ?? 'Who is looking for help?',
1190
- headlineClass: updates.headlineClass
1512
+ headline: updates.headline ?? "Who is looking for help?",
1513
+ headlineClass: updates.headlineClass,
1191
1514
  }),
1192
1515
  verticalStepSubHeadline({
1193
- subheadline: updates.subheadline ?? 'Note: we never share info without consent',
1194
- subheadlineClass: '!t-text-sm !t-text-gray-500'
1516
+ subheadline: updates.subheadline ?? "Note: we never share info without consent",
1517
+ subheadlineClass: "!t-text-sm !t-text-gray-500",
1195
1518
  }),
1196
- firstName(scope),
1197
- lastName(scope)
1519
+ firstName(updates.scope),
1520
+ lastName(updates.scope),
1198
1521
  ],
1199
1522
  updates
1200
1523
  )
1201
1524
  }
1202
1525
 
1203
1526
  function zipcode(updates = {}) {
1204
- return sqstep(
1205
- 'zipcode',
1206
- zipcode$1(updates.scope, true, updates),
1207
- 'Please verify your Zip Code',
1208
- updates
1209
- )
1527
+ return sqstep("zipcode", zipcode$1(updates.scope, true, updates.input), "Please verify your Zip Code", updates)
1210
1528
  }
1211
1529
 
1212
1530
  function commentsWithBankruptcy(updates = {}) {
1213
1531
  return step(
1214
- 'commentsWithBankruptcy',
1532
+ "commentsWithBankruptcy",
1215
1533
  [
1216
1534
  commentsStepHeadlineLegal(updates),
1217
- comments({
1218
- label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL_LEGAL : updates.label,
1535
+ comments(updates.scope, false, {
1536
+ label: typeof updates.label === "undefined" ? DEFAULT_COMMENTS_LABEL_LEGAL : updates.label,
1219
1537
  placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
1220
- inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
1221
- }, updates.scope),
1538
+ inputClass: typeof updates.inputClass === "undefined" ? "!t-h-32" : updates.inputClass,
1539
+ }),
1222
1540
  // TODO: needs scope support
1223
1541
  bankruptcyCrossSell(),
1224
1542
  {
1225
- $el: 'div',
1226
- if: '$get(CrossSell_Bankruptcy).value == true',
1543
+ $el: "div",
1544
+ if: "$get(CrossSell_Bankruptcy).value == true",
1227
1545
  children: [
1228
- comments({
1229
- label: 'Bankruptcy or debt details:',
1230
- placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
1231
- inputClass: '!t-h-16'
1232
- }, 'CrossSell:Bankruptcy')
1546
+ comments("CrossSell:Bankruptcy", false, {
1547
+ label: "Bankruptcy or debt details:",
1548
+ placeholder: "Please describe your bankrtupcy or debt situation in a few words...",
1549
+ inputClass: "!t-h-16",
1550
+ }),
1233
1551
  ],
1234
- }
1552
+ },
1235
1553
  ],
1236
1554
  { nextOnEnter: false }
1237
1555
  )
@@ -1239,19 +1557,20 @@ function commentsWithBankruptcy(updates = {}) {
1239
1557
 
1240
1558
  function autoAndCarAccidentCrossSellQuestions(updates = {}) {
1241
1559
  return step(
1242
- 'autoAndCarAccidentCrossSellQuestions',
1560
+ "autoAndCarAccidentCrossSellQuestions",
1243
1561
  [
1244
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Compensation' }),
1245
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your accident:' }),
1246
- AutoAndCarAccidentsQuestions("true", 'CrossSell:Auto_and_Car_Accidents'),
1247
- comments(
1248
- {
1249
- label: 'Accident Description:',
1250
- placeholder: 'Please describe your accident in a few words...',
1251
- inputClass: '!t-h-16'
1252
- },
1253
- 'CrossSell:Auto_and_Car_Accidents'
1254
- )
1562
+ crossSellQuestionsStepHeadline({
1563
+ headline: "You May Be Entitled To Compensation",
1564
+ }),
1565
+ crossSellQuestionsStepSubHeadline({
1566
+ subheadline: "Tell us about your accident:",
1567
+ }),
1568
+ AutoAndCarAccidentsQuestions("true", "CrossSell:Auto_and_Car_Accidents"),
1569
+ comments("CrossSell:Auto_and_Car_Accidents", false, {
1570
+ label: "Accident Description:",
1571
+ placeholder: "Please describe your accident in a few words...",
1572
+ inputClass: "!t-h-16",
1573
+ }),
1255
1574
  ],
1256
1575
  updates
1257
1576
  )
@@ -1259,18 +1578,15 @@ function autoAndCarAccidentCrossSellQuestions(updates = {}) {
1259
1578
 
1260
1579
  function childCustodyCrossSellQuestions(updates = {}) {
1261
1580
  return step(
1262
- 'childCustodyCrossSellQuestions',
1581
+ "childCustodyCrossSellQuestions",
1263
1582
  [
1264
- crossSellQuestionsStepHeadline({ headline: 'Child Custody Information' }),
1265
- ChildCustodyQuestions("true", 'CrossSell:Child_Custody'),
1266
- comments(
1267
- {
1268
- label: 'Description:',
1269
- placeholder: 'Please describe your situation in a few words...',
1270
- inputClass: '!t-h-16'
1271
- },
1272
- 'CrossSell:Child_Custody'
1273
- )
1583
+ crossSellQuestionsStepHeadline({ headline: "Child Custody Information" }),
1584
+ ChildCustodyQuestions("true", "CrossSell:Child_Custody"),
1585
+ comments("CrossSell:Child_Custody", false, {
1586
+ label: "Description:",
1587
+ placeholder: "Please describe your situation in a few words...",
1588
+ inputClass: "!t-h-16",
1589
+ }),
1274
1590
  ],
1275
1591
  updates
1276
1592
  )
@@ -1278,18 +1594,17 @@ function childCustodyCrossSellQuestions(updates = {}) {
1278
1594
 
1279
1595
  function divorceAndSeparationCrossSellQuestions(updates = {}) {
1280
1596
  return step(
1281
- 'divorceAndSeparationCrossSellQuestions',
1597
+ "divorceAndSeparationCrossSellQuestions",
1282
1598
  [
1283
- crossSellQuestionsStepHeadline({ headline: 'Divorce or Separation Information' }),
1284
- DivorceQuestions("true", 'CrossSell:Divorce_and_Separation'),
1285
- comments(
1286
- {
1287
- label: 'Description:',
1288
- placeholder: 'Please describe your situation in a few words...',
1289
- inputClass: '!t-h-16'
1290
- },
1291
- 'CrossSell:Divorce_and_Separation'
1292
- )
1599
+ crossSellQuestionsStepHeadline({
1600
+ headline: "Divorce or Separation Information",
1601
+ }),
1602
+ DivorceQuestions("true", "CrossSell:Divorce_and_Separation"),
1603
+ comments("CrossSell:Divorce_and_Separation", false, {
1604
+ label: "Description:",
1605
+ placeholder: "Please describe your situation in a few words...",
1606
+ inputClass: "!t-h-16",
1607
+ }),
1293
1608
  ],
1294
1609
  updates
1295
1610
  )
@@ -1297,18 +1612,15 @@ function divorceAndSeparationCrossSellQuestions(updates = {}) {
1297
1612
 
1298
1613
  function duiAndDWICrossSellQuestions(updates = {}) {
1299
1614
  return step(
1300
- 'duiAndDWICrossSellQuestions',
1615
+ "duiAndDWICrossSellQuestions",
1301
1616
  [
1302
- crossSellQuestionsStepHeadline({ headline: 'About Your DUI/DWI' }),
1303
- DUIAndDWIQuestions("true", 'CrossSell:DUI_and_DWI'),
1304
- comments(
1305
- {
1306
- label: 'Incident Description:',
1307
- placeholder: 'Please describe your incident in a few words...',
1308
- inputClass: '!t-h-16'
1309
- },
1310
- 'CrossSell:DUI_and_DWI'
1311
- )
1617
+ crossSellQuestionsStepHeadline({ headline: "About Your DUI/DWI" }),
1618
+ DUIAndDWIQuestions("true", "CrossSell:DUI_and_DWI"),
1619
+ comments("CrossSell:DUI_and_DWI", false, {
1620
+ label: "Incident Description:",
1621
+ placeholder: "Please describe your incident in a few words...",
1622
+ inputClass: "!t-h-16",
1623
+ }),
1312
1624
  ],
1313
1625
  updates
1314
1626
  )
@@ -1316,19 +1628,20 @@ function duiAndDWICrossSellQuestions(updates = {}) {
1316
1628
 
1317
1629
  function ssdiCrossSellQuestions(updates = {}) {
1318
1630
  return step(
1319
- 'ssdiCrossSellQuestions',
1631
+ "ssdiCrossSellQuestions",
1320
1632
  [
1321
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Benefits' }),
1322
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your disability:' }),
1323
- SocialSecurityDisabilityAndInsuranceQuestions("true", 'CrossSell:Social_Security_Disability_and_Insurance'),
1324
- comments(
1325
- {
1326
- label: 'Description:',
1327
- placeholder: 'Please describe your situation in a few words...',
1328
- inputClass: '!t-h-16'
1329
- },
1330
- 'CrossSell:Social_Security_Disability_and_Insurance'
1331
- )
1633
+ crossSellQuestionsStepHeadline({
1634
+ headline: "You May Be Entitled To Benefits",
1635
+ }),
1636
+ crossSellQuestionsStepSubHeadline({
1637
+ subheadline: "Tell us about your disability:",
1638
+ }),
1639
+ SocialSecurityDisabilityAndInsuranceQuestions("true", "CrossSell:Social_Security_Disability_and_Insurance"),
1640
+ comments("CrossSell:Social_Security_Disability_and_Insurance", false, {
1641
+ label: "Description:",
1642
+ placeholder: "Please describe your situation in a few words...",
1643
+ inputClass: "!t-h-16",
1644
+ }),
1332
1645
  ],
1333
1646
  updates
1334
1647
  )
@@ -1336,19 +1649,20 @@ function ssdiCrossSellQuestions(updates = {}) {
1336
1649
 
1337
1650
  function personalInjuryCrossSellQuestions(updates = {}) {
1338
1651
  return step(
1339
- 'personalInjuryCrossSellQuestions',
1652
+ "personalInjuryCrossSellQuestions",
1340
1653
  [
1341
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Compensation' }),
1342
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your injury:' }),
1343
- PersonalInjuryQuestions("true", 'CrossSell:Personal_Injury'),
1344
- comments(
1345
- {
1346
- label: 'Injury Description:',
1347
- placeholder: 'Please describe your injury in a few words...',
1348
- inputClass: '!t-h-16'
1349
- },
1350
- 'CrossSell:Personal_Injury'
1351
- )
1654
+ crossSellQuestionsStepHeadline({
1655
+ headline: "You May Be Entitled To Compensation",
1656
+ }),
1657
+ crossSellQuestionsStepSubHeadline({
1658
+ subheadline: "Tell us about your injury:",
1659
+ }),
1660
+ PersonalInjuryQuestions("true", "CrossSell:Personal_Injury"),
1661
+ comments("CrossSell:Personal_Injury", false, {
1662
+ label: "Injury Description:",
1663
+ placeholder: "Please describe your injury in a few words...",
1664
+ inputClass: "!t-h-16",
1665
+ }),
1352
1666
  ],
1353
1667
  updates
1354
1668
  )
@@ -1356,18 +1670,17 @@ function personalInjuryCrossSellQuestions(updates = {}) {
1356
1670
 
1357
1671
  function powerOfAttorneyCrossSellQuestions(updates = {}) {
1358
1672
  return step(
1359
- 'powerOfAttorneyCrossSellQuestions',
1673
+ "powerOfAttorneyCrossSellQuestions",
1360
1674
  [
1361
- crossSellQuestionsStepHeadline({ headline: 'Power of Attorney Information' }),
1362
- PowerofAttorneyQuestions("true", 'CrossSell:Power_of_Attorney'),
1363
- comments(
1364
- {
1365
- label: 'Description:',
1366
- placeholder: 'Please describe your situation in a few words...',
1367
- inputClass: '!t-h-16'
1368
- },
1369
- 'CrossSell:Power_of_Attorney'
1370
- )
1675
+ crossSellQuestionsStepHeadline({
1676
+ headline: "Power of Attorney Information",
1677
+ }),
1678
+ PowerofAttorneyQuestions("true", "CrossSell:Power_of_Attorney"),
1679
+ comments("CrossSell:Power_of_Attorney", false, {
1680
+ label: "Description:",
1681
+ placeholder: "Please describe your situation in a few words...",
1682
+ inputClass: "!t-h-16",
1683
+ }),
1371
1684
  ],
1372
1685
  updates
1373
1686
  )
@@ -1375,18 +1688,15 @@ function powerOfAttorneyCrossSellQuestions(updates = {}) {
1375
1688
 
1376
1689
  function willsAndTrustsCrossSellQuestions(updates = {}) {
1377
1690
  return step(
1378
- 'willsAndTrustsCrossSellQuestions',
1691
+ "willsAndTrustsCrossSellQuestions",
1379
1692
  [
1380
- crossSellQuestionsStepHeadline({ headline: 'Will or Trust Information' }),
1381
- WillsAndTrustsQuestions("true", 'CrossSell:Wills_and_Trusts'),
1382
- comments(
1383
- {
1384
- label: 'Description:',
1385
- placeholder: 'Please describe your situation in a few words...',
1386
- inputClass: '!t-h-16'
1387
- },
1388
- 'CrossSell:Wills_and_Trusts'
1389
- )
1693
+ crossSellQuestionsStepHeadline({ headline: "Will or Trust Information" }),
1694
+ WillsAndTrustsQuestions("true", "CrossSell:Wills_and_Trusts"),
1695
+ comments("CrossSell:Wills_and_Trusts", false, {
1696
+ label: "Description:",
1697
+ placeholder: "Please describe your situation in a few words...",
1698
+ inputClass: "!t-h-16",
1699
+ }),
1390
1700
  ],
1391
1701
  updates
1392
1702
  )
@@ -1394,19 +1704,20 @@ function willsAndTrustsCrossSellQuestions(updates = {}) {
1394
1704
 
1395
1705
  function workersCompensationCrossSellQuestions(updates = {}) {
1396
1706
  return step(
1397
- 'workersCompensationCrossSellQuestions',
1707
+ "workersCompensationCrossSellQuestions",
1398
1708
  [
1399
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Benefits' }),
1400
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your injury:' }),
1401
- WorkersCompensationQuestions("true", 'CrossSell:Workers_Compensation'),
1402
- comments(
1403
- {
1404
- label: 'Injury Description:',
1405
- placeholder: 'Please describe your injury in a few words...',
1406
- inputClass: '!t-h-16'
1407
- },
1408
- 'CrossSell:Workers_Compensation'
1409
- )
1709
+ crossSellQuestionsStepHeadline({
1710
+ headline: "You May Be Entitled To Benefits",
1711
+ }),
1712
+ crossSellQuestionsStepSubHeadline({
1713
+ subheadline: "Tell us about your injury:",
1714
+ }),
1715
+ WorkersCompensationQuestions("true", "CrossSell:Workers_Compensation"),
1716
+ comments("CrossSell:Workers_Compensation", false, {
1717
+ label: "Injury Description:",
1718
+ placeholder: "Please describe your injury in a few words...",
1719
+ inputClass: "!t-h-16",
1720
+ }),
1410
1721
  ],
1411
1722
  updates
1412
1723
  )
@@ -1414,73 +1725,66 @@ function workersCompensationCrossSellQuestions(updates = {}) {
1414
1725
 
1415
1726
  function legalCrossSells(updates = {}) {
1416
1727
  updates.nextOnInput = false;
1417
- updates.stepKey = '$get(Type_Of_Legal_Problem).value';
1418
- return step(
1419
- 'legalCrossSells',
1420
- [
1421
- legalCrossSellsStepHeadline(updates),
1422
- legalCrossSells$1(),
1423
- ],
1424
- updates
1425
- )
1728
+ updates.stepKey = "$get(Type_Of_Legal_Problem).value";
1729
+ return step("legalCrossSells", [legalCrossSellsStepHeadline(updates), legalCrossSells$1()], updates)
1426
1730
  }
1427
1731
 
1428
1732
  function haveAttorney(updates = {}) {
1429
1733
  return sqstep(
1430
- 'haveAttorney',
1431
- haveAttorneyCenter(updates.scope),
1432
- 'Already working with an attorney?',
1734
+ "haveAttorney",
1735
+ haveAttorney$1(updates.scope, true, updates.input),
1736
+ "Already working with an attorney?",
1433
1737
  updates
1434
1738
  )
1435
1739
  }
1436
1740
 
1437
1741
  function degreeOfInterest(updates = {}) {
1438
1742
  return sqstep(
1439
- 'degreeOfInterest',
1440
- degreeOfInterestCenter(),
1441
- 'Could you pay if your issue could be resolved?',
1743
+ "degreeOfInterest",
1744
+ degreeOfInterest$1(updates.scope, true, updates.input),
1745
+ "Could you pay if your issue could be resolved?",
1442
1746
  updates
1443
1747
  )
1444
1748
  }
1445
1749
 
1446
1750
  function businessServices(updates = {}) {
1447
1751
  return sqstep(
1448
- 'businessServices',
1449
- businessServicesCenter(),
1450
- 'What legal services do you need?',
1752
+ "businessServices",
1753
+ businessServices$1(updates.scope, true, updates.input),
1754
+ "What legal services do you need?",
1451
1755
  updates
1452
1756
  )
1453
1757
  }
1454
1758
 
1455
1759
  function businessType(updates = {}) {
1456
1760
  return sqstep(
1457
- 'businessType',
1458
- businessTypeCenter(),
1459
- 'Is the business public or private?',
1761
+ "businessType",
1762
+ businessType$1(updates.scope, true, updates.input),
1763
+ "Is the business public or private?",
1460
1764
  updates
1461
1765
  )
1462
1766
  }
1463
1767
 
1464
1768
  function numEmployeesOfBusiness(updates = {}) {
1465
1769
  return sqstep(
1466
- 'numEmployeesOfBusiness',
1467
- numEmployeesOfBusinessCenter(),
1468
- 'How many employees does the business have?',
1770
+ "numEmployeesOfBusiness",
1771
+ numEmployeesOfBusiness$1(updates.scope, true, updates.input),
1772
+ "How many employees does the business have?",
1469
1773
  updates
1470
1774
  )
1471
1775
  }
1472
1776
 
1473
1777
  function patentsAndIPTOLP(updates = {}) {
1474
1778
  return step(
1475
- 'patentsAndIPTOLP',
1779
+ "patentsAndIPTOLP",
1476
1780
  [
1477
1781
  {
1478
- $formkit: 'hidden',
1782
+ $formkit: "hidden",
1479
1783
  name: "Type_Of_Legal_Problem",
1480
1784
  id: "Type_Of_Legal_Problem",
1481
- value: "Patents and Intellectual Property"
1785
+ value: "Patents and Intellectual Property",
1482
1786
  },
1483
- patentsAndIPTOLPDisplayCenter(),
1787
+ patentsAndIPTOLPDisplay(updates.scope, true, updates.input),
1484
1788
  ],
1485
1789
  updates
1486
1790
  )
@@ -1488,128 +1792,123 @@ function patentsAndIPTOLP(updates = {}) {
1488
1792
 
1489
1793
  function patentAssistanceType(updates = {}) {
1490
1794
  return sqstep(
1491
- 'patentAssistanceType',
1492
- patentAssistanceTypeCenter(),
1493
- 'What type of assistance do you need?',
1795
+ "patentAssistanceType",
1796
+ patentAssistanceType$1(updates.scope, true, updates.input),
1797
+ "What type of assistance do you need?",
1494
1798
  updates
1495
1799
  )
1496
1800
  }
1497
1801
 
1498
1802
  function patentFor(updates = {}) {
1499
- return sqstep(
1500
- 'patentFor',
1501
- patentForCenter(),
1502
- 'What is the patent for?',
1503
- updates
1504
- )
1803
+ return sqstep("patentFor", patentFor$1(updates.scope, true, updates.input), "What is the patent for?", updates)
1505
1804
  }
1506
1805
 
1507
1806
  const formNavigation = (updates = {}) => ({
1508
- $el: 'div',
1807
+ $el: "div",
1509
1808
  attrs: {
1510
- class: 'step-nav'
1809
+ class: "step-nav",
1511
1810
  },
1512
1811
  children: [
1513
1812
  {
1514
- $formkit: 'button',
1515
- name: 'back_button',
1516
- onClick: '$setPreviousStep($prevStepFunc($get(form)))',
1517
- children: 'Back',
1813
+ $formkit: "button",
1814
+ name: "back_button",
1815
+ onClick: "$setPreviousStep($prevStepFunc($get(form)))",
1816
+ children: "Back",
1518
1817
  style: {
1519
- if: '$activeStep === $firstStep()',
1520
- then: 'visibility: hidden;'
1521
- }
1818
+ if: "$activeStep === $firstStep()",
1819
+ then: "visibility: hidden;",
1820
+ },
1522
1821
  },
1523
1822
  {
1524
- $formkit: 'button',
1525
- name: 'next_button',
1526
- onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
1823
+ $formkit: "button",
1824
+ name: "next_button",
1825
+ onClick: "$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",
1527
1826
  children: {
1528
- if: '$activeStep === $firstStep()',
1529
- then: 'Start',
1530
- else: 'Next'
1827
+ if: "$activeStep === $firstStep()",
1828
+ then: "Start",
1829
+ else: "Next",
1531
1830
  },
1532
1831
  outerClass: {
1533
- if: '$activeStep === $lastStep()',
1534
- then: 't-hidden',
1535
- else: ''
1832
+ if: "$activeStep === $lastStep()",
1833
+ then: "t-hidden",
1834
+ else: "",
1536
1835
  },
1537
1836
  style: {
1538
- if: '$activeStep === $lastStep()',
1539
- then: 'display: none;'
1540
- }
1837
+ if: "$activeStep === $lastStep()",
1838
+ then: "display: none;",
1839
+ },
1541
1840
  },
1542
1841
  {
1543
- $formkit: 'submit',
1544
- name: 'submit_button',
1545
- label: updates.submitLabel || 'Submit',
1546
- if: '$activeStep === $lastStep()',
1842
+ $formkit: "submit",
1843
+ name: "submit_button",
1844
+ label: updates.submitLabel || "Submit",
1845
+ if: "$activeStep === $lastStep()",
1547
1846
  style: {
1548
- if: '$activeStep !== $lastStep()',
1549
- then: 'display: none;'
1550
- }
1551
- }
1552
- ]
1847
+ if: "$activeStep !== $lastStep()",
1848
+ then: "display: none;",
1849
+ },
1850
+ },
1851
+ ],
1553
1852
  });
1554
1853
 
1555
1854
  const formDetails = () => ({
1556
- $el: 'pre',
1855
+ $el: "pre",
1557
1856
  if: '$urlParam("fdbg", "") == 1',
1558
1857
  children: [
1559
1858
  {
1560
- $el: 'pre',
1561
- children: '$stringify( $get(form).value )',
1859
+ $el: "pre",
1860
+ children: "$stringify( $get(form).value )",
1562
1861
  attrs: {
1563
- class: 't-text-xs',
1564
- style: 'overflow: scroll'
1565
- }
1862
+ class: "t-text-xs",
1863
+ style: "overflow: scroll",
1864
+ },
1566
1865
  },
1567
1866
  {
1568
- $el: 'pre',
1569
- children: ['activeStep: ', '$activeStep'],
1867
+ $el: "pre",
1868
+ children: ["activeStep: ", "$activeStep"],
1570
1869
  attrs: {
1571
- class: 't-text-xs',
1572
- style: 'overflow: scroll'
1573
- }
1870
+ class: "t-text-xs",
1871
+ style: "overflow: scroll",
1872
+ },
1574
1873
  },
1575
1874
  {
1576
- $el: 'pre',
1577
- children: ['stepHistory: ', '$stepHistory'],
1875
+ $el: "pre",
1876
+ children: ["stepHistory: ", "$stepHistory"],
1578
1877
  attrs: {
1579
- class: 't-text-xs',
1580
- style: 'overflow: scroll'
1581
- }
1878
+ class: "t-text-xs",
1879
+ style: "overflow: scroll",
1880
+ },
1582
1881
  },
1583
1882
  {
1584
- $el: 'pre',
1585
- children: ['stepQueue: ', '$stepQueue'],
1883
+ $el: "pre",
1884
+ children: ["stepQueue: ", "$stepQueue"],
1586
1885
  attrs: {
1587
- class: 't-text-xs',
1588
- style: 'overflow: scroll'
1589
- }
1886
+ class: "t-text-xs",
1887
+ style: "overflow: scroll",
1888
+ },
1590
1889
  },
1591
1890
  {
1592
- $el: 'pre',
1593
- children: ['steps: ', '$stepKeys()'],
1891
+ $el: "pre",
1892
+ children: ["steps: ", "$stepKeys()"],
1594
1893
  attrs: {
1595
- class: 't-text-xs',
1596
- style: 'overflow: scroll'
1597
- }
1598
- }
1599
- ]
1894
+ class: "t-text-xs",
1895
+ style: "overflow: scroll",
1896
+ },
1897
+ },
1898
+ ],
1600
1899
  });
1601
1900
 
1602
1901
  const formPropDefaults = {
1603
- type: 'form',
1604
- id: 'form',
1605
- config: { validationVisibility: 'submit' },
1902
+ type: "form",
1903
+ id: "form",
1904
+ config: { validationVisibility: "submit" },
1606
1905
  onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
1607
- plugins: '$plugins',
1906
+ plugins: "$plugins",
1608
1907
  actions: false,
1609
- anchorElement: 'form-anchor',
1908
+ anchorElement: "form-anchor",
1610
1909
  useLocalStorage: true,
1611
1910
  prepop: {
1612
- fromURL: true
1911
+ fromURL: true,
1613
1912
  },
1614
1913
  errorCodes: {
1615
1914
  403: { message: "An Error Occurred", abort: false },
@@ -1617,13 +1916,11 @@ const formPropDefaults = {
1617
1916
  429: "An Error Occurred",
1618
1917
  504: { message: "An Error Occurred", abort: false },
1619
1918
  },
1620
- formClass: '!t-max-w-[40rem]'
1919
+ formClass: "!t-max-w-[40rem]",
1621
1920
  };
1622
1921
 
1623
1922
  function filterMapByKey(obj, keyList) {
1624
- return Object.fromEntries(
1625
- Object.entries(obj).filter(([key]) => keyList.includes(key))
1626
- );
1923
+ return Object.fromEntries(Object.entries(obj).filter(([key]) => keyList.includes(key)))
1627
1924
  }
1628
1925
 
1629
1926
  // export function filteredNextStepsMapLegal(keyList) {
@@ -1633,10 +1930,7 @@ function filterMapByKey(obj, keyList) {
1633
1930
  // }
1634
1931
 
1635
1932
  function formProps(updates) {
1636
- const props = merge(
1637
- formPropDefaults,
1638
- updates
1639
- );
1933
+ const props = merge(formPropDefaults, updates);
1640
1934
  if (props.formId && !props.name) {
1641
1935
  props.name = props.formId;
1642
1936
  }
@@ -1646,13 +1940,10 @@ function formProps(updates) {
1646
1940
  const metaDefaults = {};
1647
1941
 
1648
1942
  function metaProps(updates) {
1649
- const data = merge(
1650
- metaDefaults,
1651
- updates
1652
- );
1943
+ const data = merge(metaDefaults, updates);
1653
1944
  return {
1654
- type: 'meta',
1655
- data
1945
+ type: "meta",
1946
+ data,
1656
1947
  }
1657
1948
  }
1658
1949
 
@@ -1672,475 +1963,474 @@ function defaultMetaPropsLegal(tolps = null) {
1672
1963
  defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_LEGAL,
1673
1964
  finalHeadlines: finalHeadlines,
1674
1965
  defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_LEGAL,
1675
- finalSubHeadlines: finalSubHeadlines
1966
+ finalSubHeadlines: finalSubHeadlines,
1676
1967
  })
1677
1968
  }
1678
1969
 
1679
- function dynamicSchemaNode(field = 'Type_Of_Legal_Problem') {
1970
+ function dynamicSchemaNode(field = "Type_Of_Legal_Problem") {
1680
1971
  return {
1681
- $cmp: 'FormKitSchema',
1682
- if: '$get(' + field + ').value',
1972
+ $cmp: "FormKitSchema",
1973
+ if: "$get(" + field + ").value",
1683
1974
  props: {
1684
- schema: '$meta.dynamicSchema',
1685
- data: '$buildData($meta)'
1686
- }
1975
+ schema: "$meta.dynamicSchema",
1976
+ data: "$buildData($meta)",
1977
+ },
1687
1978
  }
1688
1979
  }
1689
1980
 
1690
1981
  const formAnchorDefaults = {
1691
- $el: 'div',
1982
+ $el: "div",
1692
1983
  children: [
1693
1984
  {
1694
- $el: 'div',
1985
+ $el: "div",
1695
1986
  attrs: {
1696
- id: 'form-anchor',
1697
- class: 't-absolute',
1698
- style: { top: '-30px', left: 0 }
1699
- }
1700
- }
1987
+ id: "form-anchor",
1988
+ class: "t-absolute",
1989
+ style: { top: "-30px", left: 0 },
1990
+ },
1991
+ },
1701
1992
  ],
1702
1993
  attrs: {
1703
- class: 't-relative'
1704
- }
1994
+ class: "t-relative",
1995
+ },
1705
1996
  };
1706
1997
 
1707
1998
  function formAnchor(updates) {
1708
- return merge(
1709
- formAnchorDefaults,
1710
- updates
1711
- )
1999
+ return merge(formAnchorDefaults, updates)
1712
2000
  }
1713
2001
 
1714
2002
  const progressBarDefaults = {
1715
- $el: 'div',
2003
+ $el: "div",
1716
2004
  attrs: {
1717
- class: 't-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center',
2005
+ class: "t-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center",
1718
2006
  style: {
1719
- if: '$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())',
1720
- then: 'display: none'
2007
+ if: "$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",
2008
+ then: "display: none",
1721
2009
  },
1722
2010
  },
1723
2011
  children: [
1724
2012
  {
1725
- $el: 'div',
2013
+ $el: "div",
1726
2014
  attrs: {
1727
- class: 't-flex t-justify-center'
2015
+ class: "t-flex t-justify-center",
1728
2016
  },
1729
2017
  children: [
1730
2018
  {
1731
- $el: 'span',
2019
+ $el: "span",
1732
2020
  attrs: {
1733
- id: 'progress-bar-text',
1734
- class: 't-text-sm t-mb-1'
2021
+ id: "progress-bar-text",
2022
+ class: "t-text-sm t-mb-1",
1735
2023
  },
1736
- children: [
1737
- "0% Complete"
1738
- ]
2024
+ children: ["0% Complete"],
1739
2025
  },
1740
- ]
2026
+ ],
1741
2027
  },
1742
2028
  {
1743
- $el: 'div',
2029
+ $el: "div",
1744
2030
  attrs: {
1745
- class: 't-bg-gray-100 t-w-9/12 t-rounded'
2031
+ class: "t-bg-gray-100 t-w-9/12 t-rounded",
1746
2032
  },
1747
2033
  children: [
1748
2034
  {
1749
- $el: 'div',
2035
+ $el: "div",
1750
2036
  attrs: {
1751
- id: 'progress-bar',
1752
- 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]',
2037
+ id: "progress-bar",
2038
+ class:
2039
+ "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]",
1753
2040
  style: {
1754
- transition: 'width 0.5s ease'
2041
+ transition: "width 0.5s ease",
1755
2042
  },
1756
2043
  },
1757
- }
1758
- ]
1759
- }
1760
- ]
2044
+ },
2045
+ ],
2046
+ },
2047
+ ],
1761
2048
  };
1762
2049
 
1763
2050
  function progressBar(updates) {
1764
- return merge(
1765
- progressBarDefaults,
1766
- updates
1767
- )
2051
+ return merge(progressBarDefaults, updates)
1768
2052
  }
1769
2053
 
1770
2054
  function headlineDefaults(updates = {}) {
1771
2055
  return {
1772
- $el: 'h1',
2056
+ $el: "h1",
1773
2057
  attrs: {
1774
- class: 't-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3' + ' ' + (updates.headlineClass || '')
1775
- }
2058
+ class:
2059
+ "t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3" +
2060
+ " " +
2061
+ (updates.headlineClass || ""),
2062
+ },
1776
2063
  }
1777
2064
  }
1778
2065
 
1779
2066
  function headline(updates = {}) {
1780
- return merge(
1781
- headlineDefaults(updates),
1782
- updates
1783
- )
2067
+ return merge(headlineDefaults(updates), updates)
1784
2068
  }
1785
2069
 
1786
2070
  function subHeadlineDefaults(updates = {}) {
1787
2071
  return {
1788
- $el: 'h3',
2072
+ $el: "h3",
1789
2073
  attrs: {
1790
- class: 't-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10' + ' ' + (updates.subheadlineClass || '')
1791
- }
2074
+ class:
2075
+ "t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10" +
2076
+ " " +
2077
+ (updates.subheadlineClass || ""),
2078
+ },
1792
2079
  }
1793
2080
  }
1794
2081
 
1795
2082
  function subHeadline(updates = {}) {
1796
- return merge(
1797
- subHeadlineDefaults(updates),
1798
- updates
1799
- )
2083
+ return merge(subHeadlineDefaults(updates), updates)
1800
2084
  }
1801
2085
 
1802
2086
  function defaultSubHeadline() {
1803
2087
  return subHeadline({
1804
2088
  children: '$urlParam("shl", "Our Service is Fast and Free!")',
1805
- if: '$activeStep === $firstStep()'
2089
+ if: "$activeStep === $firstStep()",
1806
2090
  })
1807
2091
  }
1808
2092
 
1809
2093
  const hiddenInputsBase = [
1810
2094
  {
1811
- $formkit: 'hidden',
2095
+ $formkit: "hidden",
1812
2096
  name: "gclid",
1813
- value: null
2097
+ value: null,
1814
2098
  },
1815
2099
  {
1816
- $formkit: 'hidden',
2100
+ $formkit: "hidden",
1817
2101
  name: "campaignid",
1818
- value: null
2102
+ value: null,
1819
2103
  },
1820
2104
  {
1821
- $formkit: 'hidden',
2105
+ $formkit: "hidden",
1822
2106
  name: "s",
1823
- value: null
1824
- }
2107
+ value: null,
2108
+ },
1825
2109
  ];
1826
2110
 
1827
2111
  const hiddenInputsLegal = [
1828
2112
  {
1829
- $formkit: 'hidden',
2113
+ $formkit: "hidden",
1830
2114
  name: "vertical",
1831
- value: "Legal"
2115
+ value: "Legal",
1832
2116
  },
1833
2117
  {
1834
- $formkit: 'hidden',
2118
+ $formkit: "hidden",
1835
2119
  name: "TCPA_Language",
1836
- value: "$meta.tcpaLanguage"
2120
+ value: "$meta.tcpaLanguage",
1837
2121
  },
1838
- ...hiddenInputsBase
2122
+ ...hiddenInputsBase,
1839
2123
  ];
1840
2124
 
1841
2125
  const legalRedirectMapDefaults = {
1842
- '*': LegalRedirectUrl()
2126
+ "*": LegalRedirectUrl(),
1843
2127
  };
1844
2128
 
1845
-
1846
2129
  function legalRedirectMap(updates) {
1847
- return merge(
1848
- legalRedirectMapDefaults,
1849
- updates
1850
- )
2130
+ return merge(legalRedirectMapDefaults, updates)
1851
2131
  }
1852
2132
 
1853
2133
  const businessServicesOverrideMap = {
1854
- 'Business_Services_Display': {
2134
+ Business_Services_Display: {
1855
2135
  "Business Formation": {
1856
- 'Business_Services': 'Business Formation'
2136
+ Business_Services: "Business Formation",
1857
2137
  },
1858
- "Contracts": {
1859
- 'Business_Services': 'Contracts'
2138
+ Contracts: {
2139
+ Business_Services: "Contracts",
1860
2140
  },
1861
2141
  "Insurance and Liability": {
1862
- 'Business_Services': 'Insurance and Liability'
2142
+ Business_Services: "Insurance and Liability",
1863
2143
  },
1864
2144
  "Mergers and Acquisition": {
1865
- 'Business_Services': 'Mergers and Acquisition'
2145
+ Business_Services: "Mergers and Acquisition",
1866
2146
  },
1867
2147
  "Regulatory Compliance": {
1868
- 'Business_Services': 'Regulatory Compliance'
2148
+ Business_Services: "Regulatory Compliance",
1869
2149
  },
1870
2150
  "Employee Dispute": {
1871
- 'Business_Services': 'Employee Dispute'
2151
+ Business_Services: "Employee Dispute",
1872
2152
  },
1873
2153
  "Advice and Consulting": {
1874
- 'Business_Services': 'Other',
2154
+ Business_Services: "Other",
2155
+ },
2156
+ Other: {
2157
+ Business_Services: "Other",
1875
2158
  },
1876
- "Other": {
1877
- 'Business_Services': 'Other'
1878
- }
1879
2159
  },
1880
2160
  };
1881
2161
 
1882
2162
  const patentsAndIPTOLPDisplayOverrideMap = {
1883
- 'Copyrights': {
1884
- 'Type_Of_Legal_Problem': 'Copyrights and Trademarks'
2163
+ Copyrights: {
2164
+ Type_Of_Legal_Problem: "Copyrights and Trademarks",
1885
2165
  },
1886
- 'Trademarks': {
1887
- 'Type_Of_Legal_Problem': 'Copyrights and Trademarks'
2166
+ Trademarks: {
2167
+ Type_Of_Legal_Problem: "Copyrights and Trademarks",
1888
2168
  },
1889
- 'Patents': {
1890
- 'Type_Of_Legal_Problem': 'Patents and Intellectual Property'
2169
+ Patents: {
2170
+ Type_Of_Legal_Problem: "Patents and Intellectual Property",
1891
2171
  },
1892
- 'Business Lawyers': {
1893
- 'Type_Of_Legal_Problem': 'Business Lawyers'
2172
+ "Business Lawyers": {
2173
+ Type_Of_Legal_Problem: "Business Lawyers",
1894
2174
  },
1895
- 'Business Consulting': {
1896
- 'Type_Of_Legal_Problem': 'Business Lawyers'
2175
+ "Business Consulting": {
2176
+ Type_Of_Legal_Problem: "Business Lawyers",
1897
2177
  },
1898
- 'Not Sure or Other': {
1899
- 'Type_Of_Legal_Problem': 'Not Sure or Other'
2178
+ "Not Sure or Other": {
2179
+ Type_Of_Legal_Problem: "Not Sure or Other",
1900
2180
  },
1901
2181
  };
1902
2182
 
1903
2183
  ({
1904
- 'Civil_Defense': {
1905
- 'Yes': {
1906
- 'Type_Of_Legal_Problem': 'Defend a Lawsuit'
2184
+ Civil_Defense: {
2185
+ Yes: {
2186
+ Type_Of_Legal_Problem: "Defend a Lawsuit",
2187
+ },
2188
+ No: {
2189
+ Type_Of_Legal_Problem: "File a Lawsuit",
1907
2190
  },
1908
- 'No': {
1909
- 'Type_Of_Legal_Problem': 'File a Lawsuit'
1910
- }
1911
2191
  },
1912
2192
  businessServicesOverrideMap,
1913
- 'Type_Of_Legal_Problem_Display': {
2193
+ Type_Of_Legal_Problem_Display: {
1914
2194
  ...patentsAndIPTOLPDisplayOverrideMap,
1915
2195
  // Accidents and PI
1916
- 'Auto Accident': {
1917
- 'Type_Of_Legal_Problem': 'Auto and Car Accidents'
2196
+ "Auto Accident": {
2197
+ Type_Of_Legal_Problem: "Auto and Car Accidents",
1918
2198
  },
1919
- 'Dog Bite': {
1920
- 'Type_Of_Legal_Problem': 'Personal Injury'
2199
+ "Dog Bite": {
2200
+ Type_Of_Legal_Problem: "Personal Injury",
1921
2201
  },
1922
- 'Slip and Fall': {
1923
- 'Type_Of_Legal_Problem': 'Personal Injury'
2202
+ "Slip and Fall": {
2203
+ Type_Of_Legal_Problem: "Personal Injury",
1924
2204
  },
1925
- 'Workplace Injury': {
1926
- 'Type_Of_Legal_Problem': 'Workers Compensation'
2205
+ "Workplace Injury": {
2206
+ Type_Of_Legal_Problem: "Workers Compensation",
1927
2207
  },
1928
- 'Trucking Accident': {
1929
- 'Type_Of_Legal_Problem': 'Auto and Car Accidents'
2208
+ "Trucking Accident": {
2209
+ Type_Of_Legal_Problem: "Auto and Car Accidents",
1930
2210
  },
1931
- 'Motorcycle Accident': {
1932
- 'Type_Of_Legal_Problem': 'Auto and Car Accidents',
2211
+ "Motorcycle Accident": {
2212
+ Type_Of_Legal_Problem: "Auto and Car Accidents",
1933
2213
  },
1934
- 'Other Accidents or Injuries': {
1935
- 'Type_Of_Legal_Problem': 'Personal Injury'
2214
+ "Other Accidents or Injuries": {
2215
+ Type_Of_Legal_Problem: "Personal Injury",
1936
2216
  },
1937
2217
  // Civil
1938
- 'Automobile Accident': {
1939
- 'Type_Of_Legal_Problem': 'Auto and Car Accidents'
2218
+ "Automobile Accident": {
2219
+ Type_Of_Legal_Problem: "Auto and Car Accidents",
1940
2220
  },
1941
- 'Contract Disputes': {
1942
- 'Type_Of_Legal_Problem': 'Business Lawyers'
2221
+ "Contract Disputes": {
2222
+ Type_Of_Legal_Problem: "Business Lawyers",
1943
2223
  },
1944
- 'Defamation and Slander': {
1945
- 'Type_Of_Legal_Problem': 'File a Lawsuit'
2224
+ "Defamation and Slander": {
2225
+ Type_Of_Legal_Problem: "File a Lawsuit",
1946
2226
  },
1947
- 'Dog Bite': {
1948
- 'Type_Of_Legal_Problem': 'Personal Injury'
2227
+ "Dog Bite": {
2228
+ Type_Of_Legal_Problem: "Personal Injury",
1949
2229
  },
1950
- 'Employment and Workplace': {
1951
- 'Type_Of_Legal_Problem': 'Employment and Workplace'
2230
+ "Employment and Workplace": {
2231
+ Type_Of_Legal_Problem: "Employment and Workplace",
1952
2232
  },
1953
- 'Fraud': {
1954
- 'Type_Of_Legal_Problem': 'Consumer Lawyers'
2233
+ Fraud: {
2234
+ Type_Of_Legal_Problem: "Consumer Lawyers",
1955
2235
  },
1956
- 'Medical Malpractice': {
1957
- 'Type_Of_Legal_Problem': 'Medical Malpractice'
2236
+ "Medical Malpractice": {
2237
+ Type_Of_Legal_Problem: "Medical Malpractice",
1958
2238
  },
1959
- 'Personal Injury': {
1960
- 'Type_Of_Legal_Problem': 'Personal Injury'
2239
+ "Personal Injury": {
2240
+ Type_Of_Legal_Problem: "Personal Injury",
1961
2241
  },
1962
- 'Property Damage': {
1963
- 'Type_Of_Legal_Problem': 'Property Damage'
2242
+ "Property Damage": {
2243
+ Type_Of_Legal_Problem: "Property Damage",
1964
2244
  },
1965
- 'Small Claims': {
1966
- 'Type_Of_Legal_Problem': 'File a Lawsuit'
2245
+ "Small Claims": {
2246
+ Type_Of_Legal_Problem: "File a Lawsuit",
1967
2247
  },
1968
- 'Real Estate': {
1969
- 'Type_Of_Legal_Problem': 'Real Estate'
2248
+ "Real Estate": {
2249
+ Type_Of_Legal_Problem: "Real Estate",
1970
2250
  },
1971
- 'Other (describe on next page)': {
1972
- 'Type_Of_Legal_Problem': 'Not Sure or Other'
2251
+ "Other (describe on next page)": {
2252
+ Type_Of_Legal_Problem: "Not Sure or Other",
1973
2253
  },
1974
2254
  // Contracts
1975
- 'Contract Creation': {
1976
- 'Type_Of_Legal_Problem': 'Business Lawyers',
1977
- 'Business_Services': 'Contracts'
2255
+ "Contract Creation": {
2256
+ Type_Of_Legal_Problem: "Business Lawyers",
2257
+ Business_Services: "Contracts",
1978
2258
  },
1979
- 'Contract Enforcement': {
1980
- 'Type_Of_Legal_Problem': 'Business Lawyers',
1981
- 'Business_Services': 'Contracts'
2259
+ "Contract Enforcement": {
2260
+ Type_Of_Legal_Problem: "Business Lawyers",
2261
+ Business_Services: "Contracts",
1982
2262
  },
1983
- 'Contract Cancellation': {
1984
- 'Type_Of_Legal_Problem': 'Business Lawyers',
1985
- 'Business_Services': 'Contracts'
2263
+ "Contract Cancellation": {
2264
+ Type_Of_Legal_Problem: "Business Lawyers",
2265
+ Business_Services: "Contracts",
1986
2266
  },
1987
- 'Contract Fraud': {
1988
- 'Type_Of_Legal_Problem': 'Business Lawyers',
1989
- 'Business_Services': 'Contracts'
2267
+ "Contract Fraud": {
2268
+ Type_Of_Legal_Problem: "Business Lawyers",
2269
+ Business_Services: "Contracts",
1990
2270
  },
1991
- 'Breach of Contract': {
1992
- 'Type_Of_Legal_Problem': 'Business Lawyers',
1993
- 'Business_Services': 'Contracts'
2271
+ "Breach of Contract": {
2272
+ Type_Of_Legal_Problem: "Business Lawyers",
2273
+ Business_Services: "Contracts",
1994
2274
  },
1995
- 'Other Contract Issues': {
1996
- 'Type_Of_Legal_Problem': 'Business Lawyers',
1997
- 'Business_Services': 'Contracts'
2275
+ "Other Contract Issues": {
2276
+ Type_Of_Legal_Problem: "Business Lawyers",
2277
+ Business_Services: "Contracts",
1998
2278
  },
1999
2279
  // Criminal
2000
- 'Criminal Defense': {
2001
- 'Type_Of_Legal_Problem': 'Criminal and Felony'
2280
+ "Criminal Defense": {
2281
+ Type_Of_Legal_Problem: "Criminal and Felony",
2002
2282
  },
2003
- 'Victim of a Crime': {
2004
- 'Type_Of_Legal_Problem': 'Victim of a Crime'
2283
+ "Victim of a Crime": {
2284
+ Type_Of_Legal_Problem: "Victim of a Crime",
2005
2285
  },
2006
- 'DUI and DWI': {
2007
- 'Type_Of_Legal_Problem': 'DUI and DWI'
2286
+ "DUI and DWI": {
2287
+ Type_Of_Legal_Problem: "DUI and DWI",
2008
2288
  },
2009
- 'Expungement': {
2010
- 'Type_Of_Legal_Problem': 'Expungement'
2289
+ Expungement: {
2290
+ Type_Of_Legal_Problem: "Expungement",
2011
2291
  },
2012
- 'Harassment': {
2013
- 'Type_Of_Legal_Problem': 'Criminal and Felony'
2292
+ Harassment: {
2293
+ Type_Of_Legal_Problem: "Criminal and Felony",
2014
2294
  },
2015
- 'Not Sure or Other': {
2016
- 'Type_Of_Legal_Problem': 'Not Sure or Other'
2295
+ "Not Sure or Other": {
2296
+ Type_Of_Legal_Problem: "Not Sure or Other",
2017
2297
  },
2018
2298
  // Employment and Workplace
2019
- 'Workplace Harassment': {
2020
- 'Type_Of_Legal_Problem': 'Workplace Harassment'
2299
+ "Workplace Harassment": {
2300
+ Type_Of_Legal_Problem: "Workplace Harassment",
2021
2301
  },
2022
- 'Workplace Discrimination': {
2023
- 'Type_Of_Legal_Problem': 'Workplace Discrimination'
2302
+ "Workplace Discrimination": {
2303
+ Type_Of_Legal_Problem: "Workplace Discrimination",
2024
2304
  },
2025
- 'Wrongful Termination': {
2026
- 'Type_Of_Legal_Problem': 'Wrongful Termination'
2305
+ "Wrongful Termination": {
2306
+ Type_Of_Legal_Problem: "Wrongful Termination",
2027
2307
  },
2028
- 'Payment Disputes': {
2029
- 'Type_Of_Legal_Problem': 'Employment and Workplace'
2308
+ "Payment Disputes": {
2309
+ Type_Of_Legal_Problem: "Employment and Workplace",
2030
2310
  },
2031
- 'Workers Compensation': {
2032
- 'Type_Of_Legal_Problem': 'Workers Compensation'
2311
+ "Workers Compensation": {
2312
+ Type_Of_Legal_Problem: "Workers Compensation",
2033
2313
  },
2034
- 'Unemployment': {
2035
- 'Type_Of_Legal_Problem': 'Unemployment'
2314
+ Unemployment: {
2315
+ Type_Of_Legal_Problem: "Unemployment",
2036
2316
  },
2037
- 'Other Workplace Issues': {
2038
- 'Type_Of_Legal_Problem': 'Employment and Workplace'
2317
+ "Other Workplace Issues": {
2318
+ Type_Of_Legal_Problem: "Employment and Workplace",
2039
2319
  },
2040
2320
  // Malpractice
2041
- 'Attorney Malpractice': {
2042
- 'Type_Of_Legal_Problem': 'Civil Lawsuit'
2321
+ "Attorney Malpractice": {
2322
+ Type_Of_Legal_Problem: "Civil Lawsuit",
2043
2323
  },
2044
- 'Other Malpractice Issues': {
2045
- 'Type_Of_Legal_Problem': 'Not Sure or Other'
2324
+ "Other Malpractice Issues": {
2325
+ Type_Of_Legal_Problem: "Not Sure or Other",
2046
2326
  },
2047
2327
  // Repossession
2048
- 'Vehicle Repossession': {
2049
- 'Type_Of_Legal_Problem': 'Bankruptcy'
2328
+ "Vehicle Repossession": {
2329
+ Type_Of_Legal_Problem: "Bankruptcy",
2050
2330
  },
2051
- 'Property Repossession': {
2052
- 'Type_Of_Legal_Problem': 'Bankruptcy'
2331
+ "Property Repossession": {
2332
+ Type_Of_Legal_Problem: "Bankruptcy",
2053
2333
  },
2054
- 'Other Repossession Issues': {
2055
- 'Type_Of_Legal_Problem': 'Not Sure or Other'
2334
+ "Other Repossession Issues": {
2335
+ Type_Of_Legal_Problem: "Not Sure or Other",
2056
2336
  },
2057
2337
  // Real Estate
2058
- 'Contracts and Agreements': {
2059
- 'Type_Of_Legal_Problem': 'Real Estate'
2338
+ "Contracts and Agreements": {
2339
+ Type_Of_Legal_Problem: "Real Estate",
2060
2340
  },
2061
- 'Deeds, Liens, and Titles': {
2062
- 'Type_Of_Legal_Problem': 'Real Estate'
2341
+ "Deeds, Liens, and Titles": {
2342
+ Type_Of_Legal_Problem: "Real Estate",
2063
2343
  },
2064
- 'Foreclosure': {
2065
- 'Type_Of_Legal_Problem': 'Foreclosure'
2344
+ Foreclosure: {
2345
+ Type_Of_Legal_Problem: "Foreclosure",
2066
2346
  },
2067
- 'Insurance': {
2068
- 'Type_Of_Legal_Problem': 'Insurance'
2347
+ Insurance: {
2348
+ Type_Of_Legal_Problem: "Insurance",
2069
2349
  },
2070
- 'Landlord and Tenant': {
2071
- 'Type_Of_Legal_Problem': 'Landlord and Tenant',
2350
+ "Landlord and Tenant": {
2351
+ Type_Of_Legal_Problem: "Landlord and Tenant",
2072
2352
  },
2073
- 'Loans and Mortgages': {
2074
- 'Type_Of_Legal_Problem': 'Real Estate',
2353
+ "Loans and Mortgages": {
2354
+ Type_Of_Legal_Problem: "Real Estate",
2075
2355
  },
2076
- 'Wills, Trusts, and Estates': {
2077
- 'Type_Of_Legal_Problem': 'Wills and Trusts'
2356
+ "Wills, Trusts, and Estates": {
2357
+ Type_Of_Legal_Problem: "Wills and Trusts",
2078
2358
  },
2079
- 'Property Damage': {
2080
- 'Type_Of_Legal_Problem': 'Property Damage'
2359
+ "Property Damage": {
2360
+ Type_Of_Legal_Problem: "Property Damage",
2081
2361
  },
2082
- 'Other Real Estate Issues': {
2083
- 'Type_Of_Legal_Problem': 'Real Estate'
2084
- }
2085
- }
2362
+ "Other Real Estate Issues": {
2363
+ Type_Of_Legal_Problem: "Real Estate",
2364
+ },
2365
+ },
2086
2366
  });
2087
2367
 
2088
2368
  const TOLPCommentsPlaceholders = {
2089
- 'Adoption': 'Example: "I need help with adoption forms"',
2090
- 'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
2091
- 'Auto and Car Accidents': 'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',
2092
- 'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
2093
- 'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
2094
- 'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
2095
- 'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
2096
- 'Child Custody': 'Example: "Need help getting custody"',
2097
- 'Child Support': 'Example: "Issues with child support payments"',
2098
- 'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
2099
- 'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
2100
- 'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
2101
- 'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
2102
- 'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
2103
- 'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
2104
- 'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
2105
- 'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
2106
- 'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
2107
- 'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
2108
- 'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
2109
- 'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
2110
- 'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
2111
- 'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
2112
- 'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
2113
- 'Guardianship': 'Example: "I need help with guardianship documents"',
2114
- 'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
2115
- 'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
2116
- 'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
2117
- 'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
2118
- 'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
2119
- 'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
2120
- 'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
2121
- 'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
2122
- 'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
2123
- 'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
2124
- 'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
2125
- 'Long Term Disability': 'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',
2126
- 'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
2127
- 'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
2128
- 'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
2129
- 'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
2130
- 'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
2131
- 'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
2132
- 'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
2133
- 'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
2134
- 'Social Security Disability and Insurance': 'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',
2135
- 'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
2136
- 'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
2137
- 'Unemployment': 'Example: "I need help filing for unemployment benefits"',
2138
- 'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
2139
- 'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
2140
- 'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
2141
- 'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
2142
- 'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
2143
- 'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
2369
+ Adoption: 'Example: "I need help with adoption forms"',
2370
+ "Asbestos and Mesothelioma": 'Example: "I was exposed to asbestos at work and would like to file a claim"',
2371
+ "Auto and Car Accidents":
2372
+ 'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',
2373
+ Bankruptcy: 'Example: "I need help filing for bankruptcy"',
2374
+ "Birth Certificate and Name Change": 'Example: "Just married and would like to change my last name"',
2375
+ "Business Lawyers": 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
2376
+ "Child Custody and Support": 'Example: "Need help getting custody" or "Issues with child support payments"',
2377
+ "Child Custody": 'Example: "Need help getting custody"',
2378
+ "Child Support": 'Example: "Issues with child support payments"',
2379
+ "Civil Rights and Discrimination": 'Example: "Police brutality" or "Coworker keeps harassing me"',
2380
+ "Civil Lawsuit":
2381
+ 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
2382
+ "File a Lawsuit": 'Example: "A contractor took my money and never completed the job"',
2383
+ "Defend a Lawsuit": 'Example: "I am being sued by a neighbor"',
2384
+ "Consumer Lawyers":
2385
+ 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
2386
+ "Copyrights and Trademarks": 'Example: "I would like to register a trademark or copyright a name"',
2387
+ "Criminal and Felony":
2388
+ 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
2389
+ "Debt and Collections": 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
2390
+ "Divorce and Separation": 'Example: "I would like to file for an uncontested divorce"',
2391
+ "DUI and DWI": 'Example: "I was arrested for DUI and need legal defense"',
2392
+ "Elder Law": 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
2393
+ "Employment and Workplace": 'Example: "I was injured while on the job" or "My company is discriminating against me"',
2394
+ Expungement: 'Example: "I would like to file for an expungement and clear my record"',
2395
+ "Family Issues": 'Example: "I need help with guardianship" or "I need a simple will created"',
2396
+ Foreclosure: 'Example: "I need help to avoid foreclosure on my house"',
2397
+ Guardianship: 'Example: "I need help with guardianship documents"',
2398
+ "Harassment and Discrimination": 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
2399
+ "Sexual Harassment": 'Example: "I am being sexually harassed by a coworker"',
2400
+ "Workplace Harassment": 'Example: "My coworker is being aggressive towards me"',
2401
+ "Non-Workplace Harassment": 'Example: "My neighbor is harassing me"',
2402
+ "Workplace Discrimination": 'Example: "I am being discriminated at work based on my age"',
2403
+ "Non-Workplace Discrimination": 'Example: "I am being discriminated against by a local official"',
2404
+ "Identity Theft": 'Example: "Someone stole my identity and I need help fixing the issue"',
2405
+ "Immigration and Visas": 'Example: "I need help filing for a visa" or "Help with a green card"',
2406
+ Insurance: 'Example: "I need help filing an insurance claim for damage to my house"',
2407
+ "Landlord and Tenant":
2408
+ 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
2409
+ "Lemon Law": 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
2410
+ "Long Term Disability":
2411
+ 'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',
2412
+ "Medical Malpractice": 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
2413
+ "Patents and Intellectual Property": 'Example: "I would like to file for a patent" or "I need to copyright a name"',
2414
+ "Personal Injury": 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
2415
+ "Power of Attorney": 'Example: "I need help with a limited or general power of attorney"',
2416
+ "Probate and Estates":
2417
+ 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
2418
+ "Product Liability": 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
2419
+ "Property Damage": 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
2420
+ "Real Estate":
2421
+ 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
2422
+ "Social Security Disability and Insurance":
2423
+ 'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',
2424
+ "Tax and IRS": 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
2425
+ "Traffic and Tickets":
2426
+ 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
2427
+ Unemployment: 'Example: "I need help filing for unemployment benefits"',
2428
+ "Victim of a Crime": 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
2429
+ "Wills and Trusts": 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
2430
+ "Workers Compensation": 'Example: "I was injured at work and would like to file for workers compensation benefits"',
2431
+ "Wrongful Death": 'Example: "A family member was killed on the job and we need legal representation"',
2432
+ "Wrongful Termination": 'Example: "I was fired by my employer without cause"',
2433
+ "Not Sure or Other": 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"',
2144
2434
  };
2145
2435
 
2146
2436
  const TOLPFinalHeadlines = {
@@ -2148,49 +2438,64 @@ const TOLPFinalHeadlines = {
2148
2438
  };
2149
2439
 
2150
2440
  const TOLPFinalSubHeadlines = {
2151
- 'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
2441
+ Adoption: "You may benefit from speaking with an adoption professional. Please verify your contact information.",
2152
2442
  // 'Asbestos and Mesothelioma': '',
2153
- 'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
2154
- 'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
2443
+ "Auto and Car Accidents":
2444
+ "You may benefit from speaking with an accident professional. Please verify your contact information.",
2445
+ Bankruptcy: "You may benefit from speaking with a bankruptcy professional. Please verify your contact information.",
2155
2446
  // 'Birth Certificate and Name Change': '',
2156
2447
  // 'Business Lawyers': '',
2157
2448
  // 'Child Custody and Support': '',
2158
2449
  // 'Civil Rights and Discrimination': '',
2159
2450
  // 'Civil Lawsuit': '',
2160
2451
  // 'Consumer Lawyers': '',
2161
- 'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
2452
+ "Copyrights and Trademarks":
2453
+ "You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.",
2162
2454
  // 'Criminal and Felony': '',
2163
2455
  // 'Debt and Collections': '',
2164
- 'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
2165
- 'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
2166
- 'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
2456
+ "Divorce and Separation":
2457
+ "You may benefit from speaking with a divorce professional. Please verify your contact information.",
2458
+ "DUI and DWI": "You may benefit from speaking with a DUI professional. Please verify your contact information.",
2459
+ "Elder Law": "You may benefit from speaking with an elder law professional. Please verify your contact information.",
2167
2460
  // 'Employment and Workplace': '',
2168
2461
  // 'Expungement': '',
2169
2462
  // 'Family Issues': '',
2170
- 'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
2171
- 'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
2463
+ Foreclosure: "You may benefit from speaking with a foreclosure professional. Please verify your contact information.",
2464
+ Guardianship:
2465
+ "You may benefit from speaking with a guardianship professional. Please verify your contact information.",
2172
2466
  // 'Harassment and Discrimination': '',
2173
2467
  // 'Identity Theft': '',
2174
- 'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
2468
+ "Immigration and Visas":
2469
+ "You may benefit from speaking with a immigration professional. Please verify your contact information.",
2175
2470
  // 'Insurance': '',
2176
- 'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
2471
+ "Landlord and Tenant":
2472
+ "You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.",
2177
2473
  // 'Lemon Law': '',
2178
- 'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
2179
- 'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
2180
- 'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
2181
- 'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
2474
+ "Long Term Disability":
2475
+ "You may benefit from speaking with a disability legal professional. Please verify your contact information.",
2476
+ "Medical Malpractice":
2477
+ "You may benefit from speaking with a malpractice professional. Please verify your contact information.",
2478
+ "Patents and Intellectual Property":
2479
+ "You may benefit from speaking with a patent professional. Please verify your contact information.",
2480
+ "Personal Injury":
2481
+ "You may benefit from speaking with a personal injury professional. Please verify your contact information.",
2182
2482
  // 'Power of Attorney': '',
2183
- 'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
2483
+ "Probate and Estates":
2484
+ "You may benefit from speaking with a probate and estate professional. Please verify your contact information.",
2184
2485
  // 'Product Liability': '',
2185
2486
  // 'Property Damage': '',
2186
- 'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
2187
- 'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
2188
- 'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
2487
+ "Real Estate":
2488
+ "You may benefit from speaking with a real estate professional. Please verify your contact information.",
2489
+ "Social Security Disability and Insurance":
2490
+ "You may benefit from speaking with an SSDI professional. Please verify your contact information.",
2491
+ "Tax and IRS": "You may benefit from speaking with a tax professional. Please verify your contact information.",
2189
2492
  // 'Traffic and Tickets': '',
2190
- 'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
2493
+ Unemployment:
2494
+ "You may benefit from speaking with an unemployment professional. Please verify your contact information.",
2191
2495
  // 'Victim of a Crime': '',
2192
2496
  // 'Wills and Trusts': '',
2193
- 'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
2497
+ "Workers Compensation":
2498
+ "You may benefit from speaking with a workers compensation professional. Please verify your contact information.",
2194
2499
  // 'Wrongful Death': '',
2195
2500
  // 'Wrongful Termination': '',
2196
2501
  // 'Not Sure or Other': ''
@@ -2202,428 +2507,301 @@ const TOLPFinalSubHeadlines = {
2202
2507
  };
2203
2508
 
2204
2509
  const nextStepsLegalDefault = [
2205
- 'haveAttorney',
2206
- 'degreeOfInterest',
2207
- 'commentsWithBankruptcy',
2208
- 'zipcode',
2209
- 'legalCrossSells',
2210
- 'firstAndLast',
2211
- 'contactInfo',
2510
+ "haveAttorney",
2511
+ "degreeOfInterest",
2512
+ "commentsWithBankruptcy",
2513
+ "zipcode",
2514
+ "legalCrossSells",
2515
+ "firstAndLast",
2516
+ "contactInfo",
2212
2517
  ];
2213
2518
 
2214
2519
  const nextStepsLegalDefaultLPM = [
2215
- 'haveAttorney',
2216
- 'degreeOfInterest',
2217
- 'lawyerPaymentMethod',
2218
- 'commentsWithBankruptcy',
2219
- 'zipcode',
2220
- 'legalCrossSells',
2221
- 'firstAndLast',
2222
- 'contactInfo',
2520
+ "haveAttorney",
2521
+ "degreeOfInterest",
2522
+ "lawyerPaymentMethod",
2523
+ "commentsWithBankruptcy",
2524
+ "zipcode",
2525
+ "legalCrossSells",
2526
+ "firstAndLast",
2527
+ "contactInfo",
2223
2528
  ];
2224
2529
 
2225
2530
  const nextStepsLegalNoDOI = [
2226
- 'haveAttorney',
2227
- 'commentsWithBankruptcy',
2228
- 'zipcode',
2229
- 'legalCrossSells',
2230
- 'firstAndLast',
2231
- 'contactInfo',
2531
+ "haveAttorney",
2532
+ "commentsWithBankruptcy",
2533
+ "zipcode",
2534
+ "legalCrossSells",
2535
+ "firstAndLast",
2536
+ "contactInfo",
2232
2537
  ];
2233
2538
 
2234
2539
  const nextStepsLegalNoHA = [
2235
- 'degreeOfInterest',
2236
- 'commentsWithBankruptcy',
2237
- 'zipcode',
2238
- 'legalCrossSells',
2239
- 'firstAndLast',
2240
- 'contactInfo',
2540
+ "degreeOfInterest",
2541
+ "commentsWithBankruptcy",
2542
+ "zipcode",
2543
+ "legalCrossSells",
2544
+ "firstAndLast",
2545
+ "contactInfo",
2241
2546
  ];
2242
2547
 
2243
2548
  const nextStepsMapGeneralLegal = {
2244
2549
  values: {
2245
- 'Type_Of_Legal_Problem': {
2246
- 'Adoption': [
2247
- 'maritalStatus',
2248
- 'haveChildren',
2249
- ...nextStepsLegalDefaultLPM
2250
- ],
2251
- 'Asbestos and Mesothelioma': [
2252
- 'incidentDate',
2253
- 'doctorTreatment',
2254
- ...nextStepsLegalDefault
2255
- ],
2256
- 'Auto and Car Accidents': [
2257
- 'incidentDate',
2258
- 'atFault',
2259
- 'primaryInjury',
2260
- 'doctorTreatment',
2261
- 'policeReportFiled',
2262
- ...nextStepsLegalNoDOI
2263
- ],
2264
- 'Bankruptcy': [
2265
- 'totalMonthlyIncome',
2266
- 'totalDebt',
2267
- 'ownRealEstate',
2268
- 'valueOfAssets',
2269
- ...nextStepsLegalDefault
2270
- ],
2271
- 'Business Lawyers': [
2272
- 'businessServices',
2273
- 'businessType',
2274
- 'numEmployeesOfBusiness',
2275
- ...nextStepsLegalDefault
2276
- ],
2277
- 'Child Custody': [
2278
- 'childRelationship',
2279
- 'childHome',
2280
- 'childPrimaryCaregiver',
2281
- ...nextStepsLegalDefaultLPM
2282
- ],
2283
- 'Child Support': [
2284
- 'childRelationship',
2285
- 'childHome',
2286
- 'childPrimaryCaregiver',
2287
- ...nextStepsLegalDefaultLPM
2288
- ],
2289
- 'Civil Rights and Discrimination': [
2290
- 'civilRightsType',
2291
- ...nextStepsLegalDefault
2292
- ],
2293
- 'Civil Lawsuit': [
2294
- 'civilDefense',
2295
- 'lawsuitOtherParty',
2296
- ...nextStepsLegalDefault
2297
- ],
2298
- 'File a Lawsuit': [
2299
- 'civilLawsuitTOLPDisplay',
2300
- 'lawsuitOtherParty',
2301
- ...nextStepsLegalDefault
2302
- ],
2303
- 'Defend a Lawsuit': [
2304
- 'lawsuitOtherParty',
2305
- ...nextStepsLegalDefault
2306
- ],
2307
- 'Consumer Lawyers': [
2308
- 'consumerLawyerType',
2309
- 'incidentDate',
2310
- 'lawsuitOtherParty',
2311
- ...nextStepsLegalDefault
2312
- ],
2313
- 'Criminal and Felony': [
2314
- 'criminalTOLPDisplay',
2315
- 'crimeCommittedDate',
2316
- 'roleInMatterCriminal',
2317
- 'pendingCharges',
2318
- ...nextStepsLegalDefaultLPM
2319
- ],
2320
- 'Debt and Collections': [
2321
- 'totalMonthlyIncome',
2322
- 'totalDebt',
2323
- 'ownRealEstate',
2324
- 'valueOfAssets',
2325
- ...nextStepsLegalDefault
2326
- ],
2327
- 'Divorce and Separation': [
2328
- 'maritalStatus',
2329
- 'haveChildren',
2330
- ...nextStepsLegalDefaultLPM
2331
- ],
2332
- 'DUI and DWI': [
2333
- 'incidentDate',
2334
- 'priorAlcoholOffenses',
2335
- 'typeOfAlcoholTest',
2336
- 'bloodContentAlcoholTest',
2337
- 'pendingCharges',
2338
- ...nextStepsLegalDefault
2550
+ Type_Of_Legal_Problem: {
2551
+ Adoption: ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
2552
+ "Asbestos and Mesothelioma": ["incidentDate", "doctorTreatment", ...nextStepsLegalDefault],
2553
+ "Auto and Car Accidents": [
2554
+ "incidentDate",
2555
+ "atFault",
2556
+ "primaryInjury",
2557
+ "doctorTreatment",
2558
+ "policeReportFiled",
2559
+ ...nextStepsLegalNoDOI,
2339
2560
  ],
2340
- 'Employment and Workplace': [
2341
- 'employmentAndWorkplaceTOLPDisplay',
2342
- 'numEmployeesOfBusiness',
2343
- 'employerType',
2344
- 'employeeAtCompany',
2345
- ...nextStepsLegalDefault
2561
+ Bankruptcy: ["totalMonthlyIncome", "totalDebt", "ownRealEstate", "valueOfAssets", ...nextStepsLegalDefault],
2562
+ "Business Lawyers": ["businessServices", "businessType", "numEmployeesOfBusiness", ...nextStepsLegalDefault],
2563
+ "Child Custody": ["childRelationship", "childHome", "childPrimaryCaregiver", ...nextStepsLegalDefaultLPM],
2564
+ "Child Support": ["childRelationship", "childHome", "childPrimaryCaregiver", ...nextStepsLegalDefaultLPM],
2565
+ "Civil Rights and Discrimination": ["civilRightsType", ...nextStepsLegalDefault],
2566
+ "Civil Lawsuit": ["civilDefense", "lawsuitOtherParty", ...nextStepsLegalDefault],
2567
+ "File a Lawsuit": ["civilLawsuitTOLPDisplay", "lawsuitOtherParty", ...nextStepsLegalDefault],
2568
+ "Defend a Lawsuit": ["lawsuitOtherParty", ...nextStepsLegalDefault],
2569
+ "Consumer Lawyers": ["consumerLawyerType", "incidentDate", "lawsuitOtherParty", ...nextStepsLegalDefault],
2570
+ "Criminal and Felony": [
2571
+ "criminalTOLPDisplay",
2572
+ "crimeCommittedDate",
2573
+ "roleInMatterCriminal",
2574
+ "pendingCharges",
2575
+ ...nextStepsLegalDefaultLPM,
2346
2576
  ],
2347
- 'Expungement': [
2348
- 'incidentDate',
2349
- 'criminalChargeType',
2350
- ...nextStepsLegalDefaultLPM
2577
+ "Debt and Collections": [
2578
+ "totalMonthlyIncome",
2579
+ "totalDebt",
2580
+ "ownRealEstate",
2581
+ "valueOfAssets",
2582
+ ...nextStepsLegalDefault,
2351
2583
  ],
2352
- 'Family Issues': [
2353
- 'maritalStatus',
2354
- 'haveChildren',
2355
- ...nextStepsLegalDefaultLPM
2584
+ "Divorce and Separation": ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
2585
+ "DUI and DWI": [
2586
+ "incidentDate",
2587
+ "priorAlcoholOffenses",
2588
+ "typeOfAlcoholTest",
2589
+ "bloodContentAlcoholTest",
2590
+ "pendingCharges",
2591
+ ...nextStepsLegalDefault,
2356
2592
  ],
2357
- 'Foreclosure': [
2358
- 'ownRealEstate',
2359
- 'typeOfProperty',
2360
- 'amountPaymentsPastDue',
2361
- 'loanAmount',
2362
- 'defaultNotice',
2363
- ...nextStepsLegalDefault
2593
+ "Employment and Workplace": [
2594
+ "employmentAndWorkplaceTOLPDisplay",
2595
+ "numEmployeesOfBusiness",
2596
+ "employerType",
2597
+ "employeeAtCompany",
2598
+ ...nextStepsLegalDefault,
2364
2599
  ],
2365
- 'Guardianship': [
2366
- 'maritalStatus',
2367
- 'haveChildren',
2368
- ...nextStepsLegalDefaultLPM
2600
+ Expungement: ["incidentDate", "criminalChargeType", ...nextStepsLegalDefaultLPM],
2601
+ "Family Issues": ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
2602
+ Foreclosure: [
2603
+ "ownRealEstate",
2604
+ "typeOfProperty",
2605
+ "amountPaymentsPastDue",
2606
+ "loanAmount",
2607
+ "defaultNotice",
2608
+ ...nextStepsLegalDefault,
2369
2609
  ],
2370
- 'Immigration and Visas': [
2371
- 'countryOfCitizenship',
2372
- 'immigrationLocation',
2373
- 'immigrationEntry',
2374
- 'immigrationType',
2375
- 'immigrationStatus',
2376
- 'immigrationDetails',
2377
- ...nextStepsLegalDefault
2610
+ Guardianship: ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
2611
+ "Immigration and Visas": [
2612
+ "countryOfCitizenship",
2613
+ "immigrationLocation",
2614
+ "immigrationEntry",
2615
+ "immigrationType",
2616
+ "immigrationStatus",
2617
+ "immigrationDetails",
2618
+ ...nextStepsLegalDefault,
2378
2619
  ],
2379
- 'Landlord and Tenant': [
2380
- 'landlordTenantIssue',
2381
- 'landlordTenantParty',
2382
- ...nextStepsLegalDefault
2620
+ "Landlord and Tenant": ["landlordTenantIssue", "landlordTenantParty", ...nextStepsLegalDefault],
2621
+ "Lemon Law": ["incidentDate", "lawsuitOtherParty", ...nextStepsLegalDefault],
2622
+ "Long Term Disability": [
2623
+ "applicantOccupation",
2624
+ "applicantAge",
2625
+ "applicantLTDisabilityPolicy",
2626
+ "applicantDisabilityHowObtain",
2627
+ "applicantPreviouslyAppliedLtdBenefits",
2628
+ "applicantReceivedDisabilityBenefits",
2629
+ "applicantMonthlySalary",
2630
+ ...nextStepsLegalNoDOI,
2383
2631
  ],
2384
- 'Lemon Law': [
2385
- 'incidentDate',
2386
- 'lawsuitOtherParty',
2387
- ...nextStepsLegalDefault
2632
+ "Medical Malpractice": [
2633
+ "incidentDate",
2634
+ "claimStatus",
2635
+ "doctorTreatment",
2636
+ "medicalMalpracticeInjuries",
2637
+ ...nextStepsLegalDefault,
2388
2638
  ],
2389
- 'Long Term Disability': [
2390
- 'applicantOccupation',
2391
- 'applicantAge',
2392
- 'applicantLTDisabilityPolicy',
2393
- 'applicantDisabilityHowObtain',
2394
- 'applicantPreviouslyAppliedLtdBenefits',
2395
- 'applicantReceivedDisabilityBenefits',
2396
- 'applicantMonthlySalary',
2397
- ...nextStepsLegalNoDOI
2639
+ "Patents and Intellectual Property": ["patentAssistanceType", "patentFor", ...nextStepsLegalDefault],
2640
+ "Personal Injury": [
2641
+ "incidentDate",
2642
+ "claimStatus",
2643
+ "atFault",
2644
+ "primaryInjury",
2645
+ "doctorTreatment",
2646
+ ...nextStepsLegalNoDOI,
2398
2647
  ],
2399
- 'Medical Malpractice': [
2400
- 'incidentDate',
2401
- 'claimStatus',
2402
- 'doctorTreatment',
2403
- 'medicalMalpracticeInjuries',
2404
- ...nextStepsLegalDefault
2648
+ "Probate and Estates": [
2649
+ "valueOfAssets",
2650
+ "typeOfAssets",
2651
+ "roleInMatterProbate",
2652
+ "estateLegalServicesNeeded",
2653
+ ...nextStepsLegalDefault,
2405
2654
  ],
2406
- 'Patents and Intellectual Property': [
2407
- 'patentAssistanceType',
2408
- 'patentFor',
2409
- ...nextStepsLegalDefault
2655
+ "Property Damage": ["realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
2656
+ "Real Estate": ["realEstateTOLPDisplay", "realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
2657
+ "Social Security Disability and Insurance": [
2658
+ "applicantAge",
2659
+ "disabilityConditionStopWork",
2660
+ "disabilityWorkHistory",
2661
+ "socialSecurityDisabilityReceivingBenefits",
2662
+ "doctorTreatment",
2663
+ ...nextStepsLegalNoDOI,
2410
2664
  ],
2411
- 'Personal Injury': [
2412
- 'incidentDate',
2413
- 'claimStatus',
2414
- 'atFault',
2415
- 'primaryInjury',
2416
- 'doctorTreatment',
2417
- ...nextStepsLegalNoDOI
2665
+ "Tax and IRS": ["totalDebt", "taxProblemDetails", "taxLevel", "taxIssueType", ...nextStepsLegalDefault],
2666
+ "Traffic and Tickets": ["driversLicenseType", "trafficViolations", "haveCourtDate", ...nextStepsLegalDefault],
2667
+ Unemployment: ["numEmployeesOfBusiness", "employerType", ...nextStepsLegalNoHA],
2668
+ "Victim of a Crime": [
2669
+ "crimeCommittedDate",
2670
+ "roleInMatterCriminal",
2671
+ "pendingCharges",
2672
+ ...nextStepsLegalDefaultLPM,
2418
2673
  ],
2419
- 'Probate and Estates': [
2420
- 'valueOfAssets',
2421
- 'typeOfAssets',
2422
- 'roleInMatterProbate',
2423
- 'estateLegalServicesNeeded',
2424
- ...nextStepsLegalDefault
2674
+ "Wills and Trusts": [
2675
+ "valueOfAssets",
2676
+ "typeOfAssets",
2677
+ "roleInMatterProbate",
2678
+ "estateLegalServicesNeeded",
2679
+ ...nextStepsLegalDefault,
2425
2680
  ],
2426
- 'Property Damage': [
2427
- 'realEstateArea',
2428
- 'wouldLikeLawyerTo',
2429
- ...nextStepsLegalDefault
2681
+ "Workers Compensation": [
2682
+ "incidentDate",
2683
+ "claimStatus",
2684
+ "primaryInjury",
2685
+ "causeOfInjury",
2686
+ "doctorTreatment",
2687
+ ...nextStepsLegalNoDOI,
2430
2688
  ],
2431
- 'Real Estate': [
2432
- 'realEstateTOLPDisplay',
2433
- 'realEstateArea',
2434
- 'wouldLikeLawyerTo',
2435
- ...nextStepsLegalDefault
2689
+ "Workplace Harassment": ["numEmployeesOfBusiness", "employerType", "employeeAtCompany", ...nextStepsLegalDefault],
2690
+ "Workplace Discrimination": [
2691
+ "numEmployeesOfBusiness",
2692
+ "employerType",
2693
+ "employeeAtCompany",
2694
+ ...nextStepsLegalDefault,
2436
2695
  ],
2437
- 'Social Security Disability and Insurance': [
2438
- 'applicantAge',
2439
- 'disabilityConditionStopWork',
2440
- 'disabilityWorkHistory',
2441
- 'socialSecurityDisabilityReceivingBenefits',
2442
- 'doctorTreatment',
2443
- ...nextStepsLegalNoDOI
2444
- ],
2445
- 'Tax and IRS': [
2446
- 'totalDebt',
2447
- 'taxProblemDetails',
2448
- 'taxLevel',
2449
- 'taxIssueType',
2450
- ...nextStepsLegalDefault
2451
- ],
2452
- 'Traffic and Tickets': [
2453
- 'driversLicenseType',
2454
- 'trafficViolations',
2455
- 'haveCourtDate',
2456
- ...nextStepsLegalDefault
2457
- ],
2458
- 'Unemployment': [
2459
- 'numEmployeesOfBusiness',
2460
- 'employerType',
2461
- ...nextStepsLegalNoHA
2462
- ],
2463
- 'Victim of a Crime': [
2464
- 'crimeCommittedDate',
2465
- 'roleInMatterCriminal',
2466
- 'pendingCharges',
2467
- ...nextStepsLegalDefaultLPM
2468
- ],
2469
- 'Wills and Trusts': [
2470
- 'valueOfAssets',
2471
- 'typeOfAssets',
2472
- 'roleInMatterProbate',
2473
- 'estateLegalServicesNeeded',
2474
- ...nextStepsLegalDefault
2475
- ],
2476
- 'Workers Compensation': [
2477
- 'incidentDate',
2478
- 'claimStatus',
2479
- 'primaryInjury',
2480
- 'causeOfInjury',
2481
- 'doctorTreatment',
2482
- ...nextStepsLegalNoDOI
2483
- ],
2484
- 'Workplace Harassment': [
2485
- 'numEmployeesOfBusiness',
2486
- 'employerType',
2487
- 'employeeAtCompany',
2488
- ...nextStepsLegalDefault
2489
- ],
2490
- 'Workplace Discrimination': [
2491
- 'numEmployeesOfBusiness',
2492
- 'employerType',
2493
- 'employeeAtCompany',
2494
- ...nextStepsLegalDefault
2495
- ],
2496
- 'Wrongful Death': [
2497
- 'incidentDate',
2498
- 'relationshipToVictim',
2499
- 'criminalChargesFiled',
2500
- 'causeOfDeath',
2501
- ...nextStepsLegalNoDOI
2502
- ],
2503
- 'Wrongful Termination': [
2504
- 'numEmployeesOfBusiness',
2505
- 'employerType',
2506
- ...nextStepsLegalDefault
2696
+ "Wrongful Death": [
2697
+ "incidentDate",
2698
+ "relationshipToVictim",
2699
+ "criminalChargesFiled",
2700
+ "causeOfDeath",
2701
+ ...nextStepsLegalNoDOI,
2507
2702
  ],
2703
+ "Wrongful Termination": ["numEmployeesOfBusiness", "employerType", ...nextStepsLegalDefault],
2508
2704
  },
2509
- '*': nextStepsLegalDefault
2510
- }
2705
+ "*": nextStepsLegalDefault,
2706
+ },
2511
2707
  };
2512
2708
 
2513
2709
  const TOLPNextSteps = nextStepsMapGeneralLegal["values"]["Type_Of_Legal_Problem"];
2514
2710
 
2515
2711
  ({
2516
2712
  values: {
2517
- 'Civil_Defense': {
2518
- 'Yes': TOLPNextSteps["Defend a Lawsuit"],
2519
- 'No': TOLPNextSteps["File a Lawsuit"],
2713
+ Civil_Defense: {
2714
+ Yes: TOLPNextSteps["Defend a Lawsuit"],
2715
+ No: TOLPNextSteps["File a Lawsuit"],
2520
2716
  },
2521
- '*': [
2522
- 'lawsuitOtherParty',
2523
- ...nextStepsLegalDefault
2524
- ]
2525
- }
2717
+ "*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
2718
+ },
2526
2719
  });
2527
2720
 
2528
2721
  ({
2529
2722
  values: {
2530
- 'Type_Of_Legal_Problem': {
2531
- 'Defend a Lawsuit': TOLPNextSteps["Defend a Lawsuit"],
2532
- 'File a Lawsuit': TOLPNextSteps["File a Lawsuit"],
2723
+ Type_Of_Legal_Problem: {
2724
+ "Defend a Lawsuit": TOLPNextSteps["Defend a Lawsuit"],
2725
+ "File a Lawsuit": TOLPNextSteps["File a Lawsuit"],
2533
2726
  },
2534
- '*': [
2535
- 'lawsuitOtherParty',
2536
- ...nextStepsLegalDefault
2537
- ]
2538
- }
2727
+ "*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
2728
+ },
2539
2729
  });
2540
2730
 
2541
2731
  ({
2542
2732
  values: {
2543
- 'Type_Of_Legal_Problem_Display': {
2544
- 'Automobile Accident': TOLPNextSteps["Auto and Car Accidents"],
2545
- 'Contract Disputes': TOLPNextSteps["Business Lawyers"],
2546
- 'Dog Bite': TOLPNextSteps["Personal Injury"],
2547
- 'Employment and Workplace': TOLPNextSteps["Employment and Workplace"],
2548
- 'Fraud': TOLPNextSteps["Consumer Lawyers"],
2549
- 'Medical Malpractice': TOLPNextSteps["Medical Malpractice"],
2550
- 'Personal Injury': TOLPNextSteps["Personal Injury"],
2551
- 'Property Damage': TOLPNextSteps["Property Damage"],
2552
- 'Real Estate': TOLPNextSteps["Real Estate"],
2553
- 'Not Sure or Other': nextStepsMapGeneralLegal["values"]["*"],
2554
- },
2555
- '*': [
2556
- 'lawsuitOtherParty',
2557
- ...nextStepsLegalDefault
2558
- ]
2559
- }
2733
+ Type_Of_Legal_Problem_Display: {
2734
+ "Automobile Accident": TOLPNextSteps["Auto and Car Accidents"],
2735
+ "Contract Disputes": TOLPNextSteps["Business Lawyers"],
2736
+ "Dog Bite": TOLPNextSteps["Personal Injury"],
2737
+ "Employment and Workplace": TOLPNextSteps["Employment and Workplace"],
2738
+ Fraud: TOLPNextSteps["Consumer Lawyers"],
2739
+ "Medical Malpractice": TOLPNextSteps["Medical Malpractice"],
2740
+ "Personal Injury": TOLPNextSteps["Personal Injury"],
2741
+ "Property Damage": TOLPNextSteps["Property Damage"],
2742
+ "Real Estate": TOLPNextSteps["Real Estate"],
2743
+ "Not Sure or Other": nextStepsMapGeneralLegal["values"]["*"],
2744
+ },
2745
+ "*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
2746
+ },
2560
2747
  });
2561
2748
 
2562
2749
  ({
2563
2750
  values: {
2564
- 'Type_Of_Legal_Problem_Display': {
2565
- 'Wrongful Termination': TOLPNextSteps["Wrongful Termination"],
2566
- 'Workers Compensation': TOLPNextSteps["Workers Compensation"],
2567
- 'Personal Injury': TOLPNextSteps["Personal Injury"],
2568
- 'Unemployment': TOLPNextSteps["Unemployment"],
2569
- },
2570
- '*': [
2571
- 'numEmployeesOfBusiness',
2572
- 'employerType',
2573
- 'employeeAtCompany',
2574
- ...nextStepsLegalDefault
2575
- ]
2576
- }
2751
+ Type_Of_Legal_Problem_Display: {
2752
+ "Wrongful Termination": TOLPNextSteps["Wrongful Termination"],
2753
+ "Workers Compensation": TOLPNextSteps["Workers Compensation"],
2754
+ "Personal Injury": TOLPNextSteps["Personal Injury"],
2755
+ Unemployment: TOLPNextSteps["Unemployment"],
2756
+ },
2757
+ "*": ["numEmployeesOfBusiness", "employerType", "employeeAtCompany", ...nextStepsLegalDefault],
2758
+ },
2577
2759
  });
2578
2760
 
2579
2761
  const nextStepsMapPatentsAndIPTOLPDisplay = {
2580
2762
  values: {
2581
- 'Type_Of_Legal_Problem_Display': {
2582
- 'Patents': TOLPNextSteps["Patents and Intellectual Property"],
2583
- 'Business Lawyers': TOLPNextSteps["Business Lawyers"],
2584
- 'Business Consulting': TOLPNextSteps["Business Lawyers"],
2763
+ Type_Of_Legal_Problem_Display: {
2764
+ Patents: TOLPNextSteps["Patents and Intellectual Property"],
2765
+ "Business Lawyers": TOLPNextSteps["Business Lawyers"],
2766
+ "Business Consulting": TOLPNextSteps["Business Lawyers"],
2585
2767
  },
2586
- '*': nextStepsMapGeneralLegal["values"]["*"],
2587
- }
2768
+ "*": nextStepsMapGeneralLegal["values"]["*"],
2769
+ },
2588
2770
  };
2589
2771
 
2590
2772
  ({
2591
2773
  values: {
2592
- 'Type_Of_Legal_Problem_Display': {
2593
- 'Foreclosure': TOLPNextSteps["Foreclosure"],
2594
- 'Landlord and Tenant': TOLPNextSteps["Landlord and Tenant"],
2595
- 'Wills, Trusts, and Estates': TOLPNextSteps["Wills and Trusts"],
2596
- 'Property Damage': TOLPNextSteps['Property Damage'],
2597
- },
2598
- '*': [
2599
- 'realEstateArea',
2600
- 'wouldLikeLawyerTo',
2601
- ...nextStepsLegalDefault
2602
- ]
2603
- }
2774
+ Type_Of_Legal_Problem_Display: {
2775
+ Foreclosure: TOLPNextSteps["Foreclosure"],
2776
+ "Landlord and Tenant": TOLPNextSteps["Landlord and Tenant"],
2777
+ "Wills, Trusts, and Estates": TOLPNextSteps["Wills and Trusts"],
2778
+ "Property Damage": TOLPNextSteps["Property Damage"],
2779
+ },
2780
+ "*": ["realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
2781
+ },
2604
2782
  });
2605
2783
 
2606
2784
  const nextStepsMapLegalCrossSells = {
2607
2785
  values: {
2608
- 'Legal_CrossSells': {
2609
- 'Auto and Car Accidents': ['autoAndCarAccidentCrossSellQuestions'],
2610
- 'Personal Injury': ['personalInjuryCrossSellQuestions'],
2611
- 'Workers Compensation': ['workersCompensationCrossSellQuestions'],
2612
- 'DUI and DWI': ['duiAndDWICrossSellQuestions'],
2613
- 'Long Term Disability': ['longTermDisabilityCrossSellQuestions'],
2614
- 'Social Security Disability and Insurance': ['ssdiCrossSellQuestions'],
2615
- 'Bankruptcy': ['bankruptcyCrossSellQuestions'],
2616
- 'Power of Attorney': ['powerOfAttorneyCrossSellQuestions'],
2617
- 'Wills and Trusts': ['willsAndTrustsCrossSellQuestions'],
2618
- 'Divorce and Separation': ['divorceAndSeparationCrossSellQuestions'],
2619
- 'Child Custody': ['childCustodyCrossSellQuestions'],
2620
- },
2621
- '*': ['firstAndLast', 'contactInfo'],
2786
+ Legal_CrossSells: {
2787
+ "Auto and Car Accidents": ["autoAndCarAccidentCrossSellQuestions"],
2788
+ "Personal Injury": ["personalInjuryCrossSellQuestions"],
2789
+ "Workers Compensation": ["workersCompensationCrossSellQuestions"],
2790
+ "DUI and DWI": ["duiAndDWICrossSellQuestions"],
2791
+ "Long Term Disability": ["longTermDisabilityCrossSellQuestions"],
2792
+ "Social Security Disability and Insurance": ["ssdiCrossSellQuestions"],
2793
+ Bankruptcy: ["bankruptcyCrossSellQuestions"],
2794
+ "Power of Attorney": ["powerOfAttorneyCrossSellQuestions"],
2795
+ "Wills and Trusts": ["willsAndTrustsCrossSellQuestions"],
2796
+ "Divorce and Separation": ["divorceAndSeparationCrossSellQuestions"],
2797
+ "Child Custody": ["childCustodyCrossSellQuestions"],
2798
+ },
2799
+ "*": ["firstAndLast", "contactInfo"],
2622
2800
  },
2623
-
2801
+
2624
2802
  // NOTE: this assumes a certain placement of the cross sell question
2625
2803
  // in the form flow.
2626
- appendSteps: ['firstAndLast', 'contactInfo'],
2804
+ appendSteps: ["firstAndLast", "contactInfo"],
2627
2805
  matchesAllowed: 1,
2628
2806
  };
2629
2807