bhl-forms 0.7.3 → 0.7.5

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