bhl-forms 0.7.2 → 0.7.4

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