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