bhl-forms 0.7.2 → 0.7.4

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