bhl-forms 0.7.2 → 0.7.4

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