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