bhl-forms 0.7.3 → 0.7.5

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