bhl-forms 0.7.2 → 0.7.4

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