bhl-forms 0.7.2 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/bhl-forms.es.js +551 -543
  2. package/dist/bhl-forms.iife.js +4 -4
  3. package/dist/bhl-forms.modern.es.js +649 -649
  4. package/dist/bhl-forms.modern.iife.js +7 -7
  5. package/dist/bhl-forms.modern.umd.js +7 -7
  6. package/dist/bhl-forms.umd.js +4 -4
  7. package/dist/forms/accidentsAndInjuries.es.js +1459 -1151
  8. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  9. package/dist/forms/accidentsAndInjuries.json +1 -1
  10. package/dist/forms/appraisals.es.js +138 -137
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/business.es.js +1432 -1149
  13. package/dist/forms/business.iife.js +1 -1
  14. package/dist/forms/business.json +1 -1
  15. package/dist/forms/childAndFamily.es.js +1327 -1043
  16. package/dist/forms/childAndFamily.iife.js +1 -1
  17. package/dist/forms/childAndFamily.json +1 -1
  18. package/dist/forms/childAndFamilySingle.es.js +1526 -1378
  19. package/dist/forms/childAndFamilySingle.iife.js +1 -1
  20. package/dist/forms/childAndFamilySingle.json +1 -1
  21. package/dist/forms/civilLawsuit.es.js +1998 -1807
  22. package/dist/forms/civilLawsuit.iife.js +1 -1
  23. package/dist/forms/civilLawsuit.json +1 -1
  24. package/dist/forms/coins.es.js +138 -137
  25. package/dist/forms/coins.iife.js +1 -1
  26. package/dist/forms/contracts.es.js +1347 -1050
  27. package/dist/forms/contracts.iife.js +1 -1
  28. package/dist/forms/contracts.json +1 -1
  29. package/dist/forms/criminal.es.js +1830 -1711
  30. package/dist/forms/criminal.iife.js +1 -1
  31. package/dist/forms/criminal.json +1 -1
  32. package/dist/forms/divorce.es.js +1539 -1385
  33. package/dist/forms/divorce.iife.js +1 -1
  34. package/dist/forms/divorce.json +1 -1
  35. package/dist/forms/employmentAndWorkplace.es.js +1831 -1678
  36. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  37. package/dist/forms/employmentAndWorkplace.json +1 -1
  38. package/dist/forms/generalHomeImprovement.es.js +1361 -1975
  39. package/dist/forms/generalHomeImprovement.iife.js +1 -1
  40. package/dist/forms/generalHomeImprovement.json +1 -1
  41. package/dist/forms/generalHomeImprovementThankYou.es.js +1361 -1975
  42. package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
  43. package/dist/forms/generalHomeImprovementThankYou.json +1 -1
  44. package/dist/forms/generalLegal.es.js +3035 -2535
  45. package/dist/forms/generalLegal.iife.js +1 -1
  46. package/dist/forms/generalLegal.json +1 -1
  47. package/dist/forms/generalLegalJustAnswer.es.js +3214 -2872
  48. package/dist/forms/generalLegalJustAnswer.iife.js +1 -1
  49. package/dist/forms/generalLegalJustAnswer.json +1 -1
  50. package/dist/forms/generalLegalPopUnder.es.js +3035 -2535
  51. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  52. package/dist/forms/generalLegalPopUnder.json +1 -1
  53. package/dist/forms/generalLegalPopUnderSingle.es.js +3214 -2872
  54. package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
  55. package/dist/forms/generalLegalPopUnderSingle.json +1 -1
  56. package/dist/forms/generalLegalSingle.es.js +3214 -2872
  57. package/dist/forms/generalLegalSingle.iife.js +1 -1
  58. package/dist/forms/generalLegalSingle.json +1 -1
  59. package/dist/forms/generalLegalThankYou.es.js +2823 -2303
  60. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  61. package/dist/forms/generalLegalThankYou.json +1 -1
  62. package/dist/forms/generalLegalThankYouConsultation.es.js +3214 -2872
  63. package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
  64. package/dist/forms/generalLegalThankYouConsultation.json +1 -1
  65. package/dist/forms/harassmentAndDiscrimination.es.js +1423 -1120
  66. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  67. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  68. package/dist/forms/landlordTenant.es.js +1393 -1106
  69. package/dist/forms/landlordTenant.iife.js +1 -1
  70. package/dist/forms/landlordTenant.json +1 -1
  71. package/dist/forms/malpractice.es.js +1529 -1223
  72. package/dist/forms/malpractice.iife.js +1 -1
  73. package/dist/forms/malpractice.json +1 -1
  74. package/dist/forms/mechanics.es.js +701 -530
  75. package/dist/forms/mechanics.iife.js +1 -1
  76. package/dist/forms/mechanics.json +1 -1
  77. package/dist/forms/patentsAndIP.es.js +1828 -1652
  78. package/dist/forms/patentsAndIP.iife.js +1 -1
  79. package/dist/forms/patentsAndIP.json +1 -1
  80. package/dist/forms/realEstate.es.js +2850 -2405
  81. package/dist/forms/realEstate.iife.js +1 -1
  82. package/dist/forms/realEstate.json +1 -1
  83. package/dist/forms/repossession.es.js +1566 -1251
  84. package/dist/forms/repossession.iife.js +1 -1
  85. package/dist/forms/repossession.json +1 -1
  86. package/dist/forms/ssdi.es.js +635 -520
  87. package/dist/forms/ssdi.iife.js +1 -1
  88. package/dist/forms/ssdi.json +1 -1
  89. package/dist/forms/testForm.es.js +409 -371
  90. package/dist/forms/testForm.iife.js +1 -1
  91. package/dist/forms/testForm.json +1 -1
  92. package/dist/forms/testRedirects.es.js +420 -316
  93. package/dist/forms/testRedirects.iife.js +1 -1
  94. package/dist/forms/testRedirects.json +1 -1
  95. package/dist/forms/vets.es.js +138 -137
  96. package/dist/forms/vets.iife.js +1 -1
  97. package/dist/forms/willsAndTrusts.es.js +1426 -1112
  98. package/dist/forms/willsAndTrusts.iife.js +1 -1
  99. package/dist/forms/willsAndTrusts.json +1 -1
  100. package/dist/main.css +1 -1
  101. package/package.json +1 -1
@@ -6,13 +6,18 @@ function LegalRedirectUrl() {
6
6
  return 'https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}'
7
7
  }
8
8
 
9
- const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
10
- const DEFAULT_COMMENTS_LABEL_LEGAL = 'Please briefly describe your legal issue in a few words:';
11
- const DEFAULT_FINAL_HEADLINE_LEGAL = 'Submit Your Case';
12
- const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
13
- const DEFAULT_FINAL_SUBHEADLINE_LEGAL = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
14
- const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
15
- const TCPA_LANGUAGE_LEGAL = "By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.";
9
+ const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL =
10
+ '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
11
+ const DEFAULT_COMMENTS_LABEL_LEGAL = "Please briefly describe your legal issue in a few words:";
12
+ const DEFAULT_FINAL_HEADLINE_LEGAL = "Submit Your Case";
13
+ const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL =
14
+ '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
15
+ const DEFAULT_FINAL_SUBHEADLINE_LEGAL =
16
+ "You may benefit from speaking with a legal professional. Please verify your contact information.";
17
+ const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL =
18
+ '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
19
+ const TCPA_LANGUAGE_LEGAL =
20
+ "By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.";
16
21
 
17
22
  // ------ Common Base Settings
18
23
 
@@ -20,21 +25,24 @@ const checkbox = (updates) => {
20
25
  if (updates.name && !updates.id) {
21
26
  updates.id = updates.name;
22
27
  }
23
- return merge({
24
- $formkit: 'checkbox',
25
- validation: 'required',
26
- validationMessages: {
27
- required: 'Field is required'
28
- }
29
- }, updates)
28
+ return merge(
29
+ {
30
+ $formkit: "checkbox",
31
+ validation: "required",
32
+ validationMessages: {
33
+ required: "Field is required",
34
+ },
35
+ },
36
+ updates
37
+ )
30
38
  };
31
39
 
32
40
  const sbsCheckbox = (updates) => {
33
- updates.legendClass = 'legend-left required';
34
- updates.fieldsetClass = '$reset side-by-side';
35
- updates.optionsClass = 't-pl-1';
36
- updates.innerClass = 't-flex t-items-center';
37
- updates.wrapperClass = 't-mb-3';
41
+ updates.legendClass = "legend-left required";
42
+ updates.fieldsetClass = "$reset side-by-side";
43
+ updates.optionsClass = "t-pl-1";
44
+ updates.innerClass = "t-flex t-items-center";
45
+ updates.wrapperClass = "t-mb-3";
38
46
  return checkbox(updates)
39
47
  };
40
48
 
@@ -42,35 +50,52 @@ const radio = (updates) => {
42
50
  if (updates.name && !updates.id) {
43
51
  updates.id = updates.name;
44
52
  }
45
- return merge({
46
- $formkit: 'radio',
47
- validation: 'required',
48
- validationMessages: {
49
- required: 'Field is required'
53
+ return merge(
54
+ {
55
+ $formkit: "radio",
56
+ validation: "required",
57
+ validationMessages: {
58
+ required: "Field is required",
59
+ },
60
+ optionsClass: "t-pt-3 t-pl-1",
61
+ legendClass: "required",
50
62
  },
51
- optionsClass: 't-pt-3 t-pl-1',
52
- legendClass: 'required'
53
- }, updates)
63
+ updates
64
+ )
65
+ };
66
+
67
+ const sbs2ItemRadio = (updates) => {
68
+ updates.legendClass = "legend-left t-pb-1 required";
69
+ updates.fieldsetClass = "$reset side-by-side t-items-center";
70
+ updates.optionsClass = "t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center";
71
+ updates.innerClass = "t-flex t-items-center";
72
+ updates.optionClass = "t-pr-1";
73
+ return radio(updates)
74
+ };
75
+
76
+ const sbsYesNoRadio = (updates) => {
77
+ updates.options = ["Yes", "No"];
78
+ return sbs2ItemRadio(updates)
54
79
  };
55
80
 
56
81
  const verticalButtonRadio = (updates) => {
57
- updates.legendClass = 'legend-left';
58
- updates.fieldsetClass = '$reset t-flex t-justify-center t-flex-col-reverse t-items-center';
59
- if (typeof updates.optionsClass === 'undefined') {
60
- updates.optionsClass = 't-flex t-flex-col sm:t-flex-row t-justify-center t-my-3';
82
+ updates.legendClass = "legend-left";
83
+ updates.fieldsetClass = "$reset t-flex t-justify-center t-flex-col-reverse t-items-center";
84
+ if (typeof updates.optionsClass === "undefined") {
85
+ updates.optionsClass = "t-flex t-flex-col sm:t-flex-row t-justify-center t-my-3";
61
86
  }
62
- updates.optionClass = 'radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5';
63
- updates.wrapperClass = '$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]';
64
- updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
87
+ updates.optionClass = "radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5";
88
+ updates.wrapperClass = "$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]";
89
+ updates.labelClass = "t-font-semibold t-text-[#1e448f] t-w-[100%]";
65
90
  updates.decoratorIcon = false;
66
- updates.messagesClass = 't-flex t-justify-center';
67
- updates.helpClass = 't-mt-2.5 !t-text-sm t-text-center';
91
+ updates.messagesClass = "t-flex t-justify-center";
92
+ updates.helpClass = "t-mt-2.5 !t-text-sm t-text-center";
68
93
  return radio(updates)
69
94
  };
70
95
 
71
96
  const verticalYesNoRadio = (updates) => {
72
- updates.options = ['Yes', 'No'];
73
- updates.optionsClass = 't-flex t-justify-center t-my-3';
97
+ updates.options = ["Yes", "No"];
98
+ updates.optionsClass = "t-flex t-justify-center t-my-3";
74
99
  return verticalButtonRadio(updates)
75
100
  };
76
101
 
@@ -78,26 +103,29 @@ const text = (updates) => {
78
103
  if (updates.name && !updates.id) {
79
104
  updates.id = updates.name;
80
105
  }
81
- return merge({
82
- $formkit: 'text',
83
- validation: 'required',
84
- validationMessages: {
85
- required: 'Field is required'
106
+ return merge(
107
+ {
108
+ $formkit: "text",
109
+ validation: "required",
110
+ validationMessages: {
111
+ required: "Field is required",
112
+ },
113
+ labelClass: "required",
86
114
  },
87
- labelClass: 'required'
88
- }, updates)
115
+ updates
116
+ )
89
117
  };
90
118
 
91
119
  const sbsText = (updates) => {
92
- updates.wrapperClass = 'side-by-side t-items-center';
120
+ updates.wrapperClass = "side-by-side t-items-center";
93
121
  return text(updates)
94
122
  };
95
123
 
96
124
  const verticalText = (updates) => {
97
- updates.wrapperClass = 't-flex t-justify-center';
98
- updates.messagesClass = 't-flex t-justify-center';
99
- updates.inputClass = 't-text-center';
100
- updates.helpClass = 't-mt-2.5 !t-text-sm t-text-center';
125
+ updates.wrapperClass = "t-flex t-justify-center";
126
+ updates.messagesClass = "t-flex t-justify-center";
127
+ updates.inputClass = "t-text-center";
128
+ updates.helpClass = "t-mt-2.5 !t-text-sm t-text-center";
101
129
  return text(updates)
102
130
  };
103
131
 
@@ -105,178 +133,269 @@ const textArea = (updates) => {
105
133
  if (updates.name && !updates.id) {
106
134
  updates.id = updates.name;
107
135
  }
108
- return merge({
109
- $formkit: 'textarea',
110
- rows: 5,
111
- maxlength: 500,
112
- validation: 'required',
113
- validationMessages: {
114
- required: 'Field is required'
136
+ return merge(
137
+ {
138
+ $formkit: "textarea",
139
+ rows: 5,
140
+ maxlength: 500,
141
+ validation: "required",
142
+ validationMessages: {
143
+ required: "Field is required",
144
+ },
145
+ innerClass: "t-max-w-xl",
146
+ labelClass: "required",
115
147
  },
116
- innerClass: 't-max-w-xl',
117
- labelClass: 'required'
118
- }, updates)
148
+ updates
149
+ )
119
150
  };
120
151
 
121
- const email = (scope) => sbsText({
122
- $formkit: 'email',
123
- name: scope ? scope + ':' + 'Email' : 'Email',
124
- label: 'Email Address:',
125
- placeholder: 'email@domain.com',
126
- autocomplete: 'email',
127
- 'data-tf-sensitive': 'false',
128
- validation: 'required|email',
129
- validationMessages: {
130
- required: 'Email is required',
131
- email: 'Invalid Email'
132
- }
133
- });
134
-
135
- const firstName = (scope) => sbsText({
136
- label: 'First Name:',
137
- placeholder: 'First',
138
- name: scope ? scope + ':' + 'First_Name' : 'First_Name',
139
- autocomplete: "given-name",
140
- validationMessages: {
141
- required: 'First Name is required'
142
- }
143
- });
152
+ const email = (scope, vertical, updates = {}) => {
153
+ const func = vertical ? verticalText : sbsText;
154
+ const label = vertical ? updates.label : "Email Address:";
155
+ return func({
156
+ $formkit: "email",
157
+ name: scope ? scope + ":" + "Email" : "Email",
158
+ label,
159
+ placeholder: "email@domain.com",
160
+ autocomplete: "email",
161
+ "data-tf-sensitive": "false",
162
+ validation: "required|email",
163
+ validationMessages: {
164
+ required: "Email is required",
165
+ email: "Invalid Email",
166
+ },
167
+ ...updates,
168
+ })
169
+ };
144
170
 
145
- const lastName = (scope) => sbsText({
146
- label: 'Last Name:',
147
- placeholder: 'Last',
148
- name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
149
- autocomplete: "family-name",
150
- validationMessages: {
151
- required: 'Last Name is required'
152
- }
153
- });
171
+ const firstName = (scope, vertical, updates = {}) => {
172
+ const func = vertical ? verticalText : sbsText;
173
+ const label = vertical ? updates.label : "First Name:";
174
+ return func({
175
+ label,
176
+ placeholder: "First",
177
+ name: scope ? scope + ":" + "First_Name" : "First_Name",
178
+ autocomplete: "given-name",
179
+ validationMessages: {
180
+ required: "First Name is required",
181
+ },
182
+ ...updates,
183
+ })
184
+ };
154
185
 
155
- const phone = (scope) => sbsText({
156
- $formkit: 'tel',
157
- name: scope ? scope + ':' + 'Primary_Phone' : 'Primary_Phone',
158
- label: 'Phone Number:',
159
- placeholder: '###-###-####',
160
- maxlength: 12,
161
- help: '10-digit phone number, hyphens optional',
162
- autocomplete: 'tel-national',
163
- 'data-tf-sensitive': 'false',
164
- validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
165
- validationMessages: {
166
- required: 'Field is required',
167
- matches: 'Invalid Phone Format, use ###-###-####',
168
- valid_phone: 'Invalid Phone Number'
169
- },
170
- helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
171
- });
186
+ const lastName = (scope, vertical, updates = {}) => {
187
+ const func = vertical ? verticalText : sbsText;
188
+ const label = vertical ? updates.label : "Last Name:";
189
+ return func({
190
+ label,
191
+ placeholder: "Last",
192
+ name: scope ? scope + ":" + "Last_Name" : "Last_Name",
193
+ autocomplete: "family-name",
194
+ validationMessages: {
195
+ required: "Last Name is required",
196
+ },
197
+ ...updates,
198
+ })
199
+ };
172
200
 
201
+ const phone = (scope, vertical, updates = {}) => {
202
+ const func = vertical ? verticalText : sbsText;
203
+ const label = vertical ? updates.label : "Phone Number:";
204
+ return func({
205
+ $formkit: "tel",
206
+ name: scope ? scope + ":" + "Primary_Phone" : "Primary_Phone",
207
+ label,
208
+ placeholder: "###-###-####",
209
+ maxlength: 12,
210
+ help: "10-digit phone number, hyphens optional",
211
+ autocomplete: "tel-national",
212
+ "data-tf-sensitive": "false",
213
+ validation: "required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone",
214
+ validationMessages: {
215
+ required: "Phone Number is required",
216
+ matches: "Invalid Phone Format, use ###-###-####",
217
+ valid_phone: "Invalid Phone Number",
218
+ },
219
+ helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]",
220
+ ...updates,
221
+ })
222
+ };
173
223
 
174
224
  const zipcode = (scope, vertical, updates = {}) => {
175
225
  const func = vertical ? verticalText : sbsText;
176
- const label = vertical ? (updates.label) : 'Zip Code:';
177
- const help = vertical ? (updates.help ?? "We try to match you with local help") : null;
226
+ const label = vertical ? updates.label : "Zip Code:";
227
+ const help = vertical ? updates.help ?? "We try to match you with local help" : null;
178
228
  return func({
179
229
  label,
180
230
  help,
181
- placeholder: '#####',
182
- name: scope ? scope + ':' + 'Zip' : 'Zip',
231
+ placeholder: "#####",
232
+ name: scope ? scope + ":" + "Zip" : "Zip",
183
233
  maxlength: 5,
184
234
  inputmode: "numeric",
185
- autocomplete: 'postal-code',
186
- validation: 'required|matches:/^[0-9]{5}$/',
235
+ autocomplete: "postal-code",
236
+ validation: "required|matches:/^[0-9]{5}$/",
187
237
  validationMessages: {
188
- required: 'Zip Code is required',
189
- matches: 'Invalid Zip Code'
238
+ required: "Zip Code is required",
239
+ matches: "Invalid Zip Code",
190
240
  },
191
- ...updates
241
+ ...updates,
192
242
  })
193
243
  };
194
244
 
195
245
  const applicantAge = (scope, vertical, updates = {}) => {
196
246
  const func = vertical ? verticalText : sbsText;
197
- const label = vertical ? (updates.label) : 'Age of Applicant?';
198
- const value = vertical ? (updates.value ?? "50") : null;
199
- return func(merge({
200
- label,
201
- placeholder: 'Age between 18 and 65',
202
- name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
203
- value,
204
- maxlength: 2,
205
- inputmode: "numeric",
206
- validation: "required|min:18,max:65",
207
- validationMessages: {
208
- required: 'Applicant Age is required',
209
- min: 'Invalid Age - must be between 18 and 65',
210
- max: 'Invalid Age - must be between 18 and 65',
211
- },
212
- ...updates
213
- }))
247
+ const label = vertical ? updates.label : "Age of Applicant?";
248
+ const value = vertical ? updates.value ?? "50" : null;
249
+ return func(
250
+ merge({
251
+ label,
252
+ placeholder: "Age between 18 and 65",
253
+ name: scope ? scope + ":" + "Applicant_Age" : "Applicant_Age",
254
+ value,
255
+ maxlength: 2,
256
+ inputmode: "numeric",
257
+ validation: "required|min:18,max:65",
258
+ validationMessages: {
259
+ required: "Applicant Age is required",
260
+ min: "Invalid Age - must be between 18 and 65",
261
+ max: "Invalid Age - must be between 18 and 65",
262
+ },
263
+ ...updates,
264
+ })
265
+ )
214
266
  };
215
267
 
216
- const bankruptcyCrossSell = () => sbsCheckbox({
217
- label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
218
- help: "Note: you will be contacted separately by a bankruptcy/debt expert",
219
- name: 'CrossSell_Bankruptcy',
220
- id: 'CrossSell_Bankruptcy',
221
- 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")',
222
- validation: null,
223
- helpClass: "!t-text-sm"
224
- });
225
-
226
- const comments = (updates, scope) => textArea(
227
- merge({
228
- name: scope ? scope + ':' + 'Comments' : 'Comments',
229
- label: 'Please briefly describe your situation in a few words:',
230
- placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
231
- }, updates)
232
- );
268
+ const bankruptcyCrossSell = (scope) =>
269
+ sbsCheckbox({
270
+ label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
271
+ help: "Note: you will be contacted separately by a bankruptcy/debt expert",
272
+ name: scope ? scope + ":CrossSell_Bankruptcy" : "CrossSell_Bankruptcy",
273
+ id: scope ? scope + ":CrossSell_Bankruptcy" : "CrossSell_Bankruptcy",
274
+ 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")',
275
+ validation: null,
276
+ helpClass: "!t-text-sm",
277
+ });
278
+
279
+ // TODO: vertical not supported yet
280
+ const comments = (scope, vertical, updates) =>
281
+ textArea(
282
+ merge(
283
+ {
284
+ name: scope ? scope + ":" + "Comments" : "Comments",
285
+ label: "Please briefly describe your situation in a few words:",
286
+ placeholder:
287
+ 'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
288
+ },
289
+ updates
290
+ )
291
+ );
233
292
 
234
- const disabilityConditionStopWorkCenter = (scope) => verticalYesNoRadio({
235
- name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
236
- });
293
+ const disabilityConditionStopWork = (scope, vertical, updates = {}) => {
294
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
295
+ const label = vertical
296
+ ? updates.label
297
+ : "Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?";
298
+ return func(
299
+ merge(
300
+ {
301
+ name: scope ? scope + ":" + "Disability_Condition_Stop_Work" : "Disability_Condition_Stop_Work",
302
+ label,
303
+ },
304
+ updates
305
+ )
306
+ )
307
+ };
237
308
 
238
- const disabilityWorkHistoryCenter = (scope) => verticalYesNoRadio({
239
- name: scope ? scope + ':' + 'Disability_Work_History' : 'Disability_Work_History',
240
- });
309
+ const disabilityWorkHistory = (scope, vertical, updates = {}) => {
310
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
311
+ const label = vertical ? updates.label : "Have You Had a Full-Time Job Within the Past 5 Years?";
312
+ return func(
313
+ merge(
314
+ {
315
+ name: scope ? scope + ":" + "Disability_Work_History" : "Disability_Work_History",
316
+ label,
317
+ },
318
+ updates
319
+ )
320
+ )
321
+ };
241
322
 
242
- const doctorTreatmentCenter = (scope) => verticalYesNoRadio({
243
- name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
244
- });
323
+ const doctorTreatment = (scope, vertical, updates = {}) => {
324
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
325
+ const label = vertical ? updates.label : "Have You Recently Been Treated by a Doctor, Hospital or Clinic?";
326
+ return func(
327
+ merge(
328
+ {
329
+ name: scope ? scope + ":" + "Doctor_Treatment" : "Doctor_Treatment",
330
+ label,
331
+ },
332
+ updates
333
+ )
334
+ )
335
+ };
245
336
 
246
- const haveAttorneyCenter = (scope) => verticalYesNoRadio({
247
- name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
248
- });
337
+ const haveAttorney = (scope, vertical, updates = {}) => {
338
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
339
+ const label = vertical ? updates.label : "Already Working with An Attorney?";
340
+ return func(
341
+ merge(
342
+ {
343
+ label,
344
+ name: scope ? scope + ":" + "Have_Attorney" : "Have_Attorney",
345
+ },
346
+ updates
347
+ )
348
+ )
349
+ };
249
350
 
250
- const socialSecurityDisabilityReceivingBenefitsCenter = (scope) => verticalYesNoRadio({
251
- name: scope ? scope + ':' + 'Social_Security_Disability_Receiving_Benefits' : 'Social_Security_Disability_Receiving_Benefits',
252
- });
351
+ const socialSecurityDisabilityReceivingBenefits = (scope, vertical, updates = {}) => {
352
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
353
+ const label = vertical ? updates.label : "Are You Currently Receiving Social Security Disability Benefits?";
354
+ return func(
355
+ merge(
356
+ {
357
+ name: scope
358
+ ? scope + ":" + "Social_Security_Disability_Receiving_Benefits"
359
+ : "Social_Security_Disability_Receiving_Benefits",
360
+ label,
361
+ },
362
+ updates
363
+ )
364
+ )
365
+ };
253
366
 
254
367
  const TCPAConsent = (scope) => ({
255
- $formkit: 'checkbox',
256
- label: '$meta.tcpaLanguage',
257
- name: scope ? scope + ':' + 'TCPA_Opt_In' : 'TCPA_Opt_In',
258
- 'data-tf-sensitive': 'false',
259
- validation: 'required|accepted',
368
+ $formkit: "checkbox",
369
+ label: "$meta.tcpaLanguage",
370
+ // Necessary to get links to work in the tcpa language
371
+ __raw__sectionsSchema: {
372
+ label: { attrs: { innerHTML: "$label" } },
373
+ },
374
+ name: scope ? scope + ":" + "TCPA_Opt_In" : "TCPA_Opt_In",
375
+ "data-tf-sensitive": "false",
376
+ validation: "required|accepted",
260
377
  validationMessages: {
261
- required: 'Consent is required',
262
- accepted: 'Consent is required'
378
+ required: "Consent is required",
379
+ accepted: "Consent is required",
263
380
  },
264
381
  classes: {
265
- label: "t-text-xs t-text-slate-500 t-font-normal"
266
- }
382
+ label: "t-text-xs t-text-slate-500 t-font-normal",
383
+ },
267
384
  });
268
385
 
269
- const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
270
- const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
386
+ const NEXT_ON_ENTER = "$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
387
+ const NEXT_ON_INPUT = "$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
271
388
 
272
- const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
389
+ const isInput = (n) => {
390
+ return n.type !== "group" && n.type !== "section" && n.type !== "form" && n.$formkit !== "hidden" && !n.children
391
+ };
273
392
 
274
393
  const findLastInput = (n) => {
275
394
  if (isInput(n)) {
276
395
  return n
277
396
  }
278
397
  for (var i = n.children.length - 1; i >= 0; i--) {
279
- if (typeof n.children === 'string') {
398
+ if (typeof n.children === "string") {
280
399
  continue
281
400
  }
282
401
  const child = n.children[i];
@@ -292,96 +411,108 @@ const findLastInput = (n) => {
292
411
  };
293
412
 
294
413
  const secureIconDefault = {
295
- $el: 'div',
296
- if: '$activeStep === $lastStep()',
414
+ $el: "div",
415
+ if: "$activeStep === $lastStep()",
297
416
  attrs: {
298
- class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
417
+ class: "t-flex t-justify-center t-items-center t-text-sm t-text-gray-500",
299
418
  },
300
419
  children: [
301
420
  {
302
- $el: 'img',
421
+ $el: "img",
303
422
  attrs: {
304
- loading: 'lazy',
305
- alt: '',
423
+ loading: "lazy",
424
+ alt: "",
306
425
  style: {
307
- border: 0
426
+ border: 0,
308
427
  },
309
- width: '25',
310
- height: '25',
311
- src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
312
- }
428
+ width: "25",
429
+ height: "25",
430
+ src: "https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg",
431
+ },
313
432
  },
314
433
  {
315
- $el: 'span',
316
- children: 'Secure & Encrypted',
434
+ $el: "span",
435
+ children: "Secure & Encrypted",
317
436
  attrs: {
318
- class: 't-pl-2 t-pt-1 t-font-medium'
319
- }
320
- }
321
- ]
437
+ class: "t-pl-2 t-pt-1 t-font-medium",
438
+ },
439
+ },
440
+ ],
322
441
  };
323
442
 
324
443
  function secureIcon(updates) {
325
- return merge(
326
- secureIconDefault,
327
- updates
328
- )
444
+ return merge(secureIconDefault, updates)
329
445
  }
330
446
 
331
447
  function verticalStepHeadline(updates) {
332
448
  return {
333
- $el: 'h3',
334
- children: updates.headline || 'Tell Us About Your Situation',
449
+ $el: "h3",
450
+ children: updates.headline || "Tell Us About Your Situation",
335
451
  attrs: {
336
- 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 || '')
337
- }
452
+ class:
453
+ "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" +
454
+ " " +
455
+ (updates.headlineClass || ""),
456
+ },
338
457
  }
339
458
  }
340
459
 
341
460
  function commentsStepHeadline(updates) {
342
461
  return {
343
- $el: 'h3',
344
- children: updates.headline || 'Additional Details',
462
+ $el: "h3",
463
+ children: updates.headline || "Additional Details",
345
464
  attrs: {
346
- 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 || '')
347
- }
465
+ class:
466
+ "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" +
467
+ " " +
468
+ (updates.headlineClass || ""),
469
+ },
348
470
  }
349
471
  }
350
472
 
351
473
  function commentsStepHeadlineLegal(updates) {
352
474
  return commentsStepHeadline({
353
- headline: updates.headline || 'Additional Case Details',
354
- headlineClass: updates.headlineClass
475
+ headline: updates.headline || "Additional Case Details",
476
+ headlineClass: updates.headlineClass,
355
477
  })
356
478
  }
357
479
 
358
480
  function firstAndLastStepHeadline(updates) {
359
481
  return {
360
- $el: 'h3',
361
- children: updates.headline || 'Please Provide a Contact Name',
482
+ $el: "h3",
483
+ children: updates.headline || "Please Provide a Contact Name",
362
484
  attrs: {
363
- 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 || '')
364
- }
485
+ class:
486
+ "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" +
487
+ " " +
488
+ (updates.headlineClass || ""),
489
+ },
365
490
  }
366
491
  }
367
492
 
368
493
  function contactStepHeadline(updates) {
369
494
  return {
370
- $el: 'h3',
495
+ $el: "h3",
371
496
  children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL,
372
497
  attrs: {
373
- 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 || '')
374
- }
498
+ class:
499
+ "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" +
500
+ " " +
501
+ (updates.headlineClass || ""),
502
+ },
375
503
  }
376
504
  }
377
505
 
378
506
  function contactStepSubHeadline(updates) {
379
507
  return {
380
- $el: 'h5',
508
+ $el: "h5",
381
509
  children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL,
382
510
  attrs: {
383
- 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 || '')
384
- }
511
+ class:
512
+ "t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3" +
513
+ " " +
514
+ (updates.subheadlineClass || ""),
515
+ },
385
516
  }
386
517
  }
387
518
 
@@ -403,19 +534,19 @@ const TRUSTED_FORM_JS = `(function() {
403
534
 
404
535
  function trustedFormScript() {
405
536
  return {
406
- $el: 'script',
407
- if: '$activeStep === $lastStep()',
408
- children: TRUSTED_FORM_JS
537
+ $el: "script",
538
+ if: "$activeStep === $lastStep()",
539
+ children: TRUSTED_FORM_JS,
409
540
  }
410
541
  }
411
542
 
412
543
  const stepDefaults = (step, stepKey) => ({
413
- $el: 'section',
544
+ $el: "section",
414
545
  if: '$stepEnabled("' + step + '")',
415
546
  attrs: {
416
547
  hidden: '$activeStep !== "' + step + '"',
417
- key: stepKey ? stepKey : step
418
- }
548
+ key: stepKey ? stepKey : step,
549
+ },
419
550
  });
420
551
 
421
552
  function step(name, inputs, updates = {}) {
@@ -438,27 +569,24 @@ function step(name, inputs, updates = {}) {
438
569
  }
439
570
  }
440
571
 
441
- return merge(
442
- stepDefaults(name, stepKey),
443
- {
444
- children: [
445
- {
446
- $formkit: 'group',
447
- id: name,
448
- name: name,
449
- nextStepMap: nextStepMap,
450
- triggerRedirectMap: triggerRedirectMap,
451
- autoFocus: autoFocus,
452
- children: inputs
453
- }
454
- ]
455
- }
456
- )
572
+ return merge(stepDefaults(name, stepKey), {
573
+ children: [
574
+ {
575
+ $formkit: "group",
576
+ id: name,
577
+ name: name,
578
+ nextStepMap: nextStepMap,
579
+ triggerRedirectMap: triggerRedirectMap,
580
+ autoFocus: autoFocus,
581
+ children: inputs,
582
+ },
583
+ ],
584
+ })
457
585
  }
458
586
 
459
587
  function contactInfo(updates = {}) {
460
588
  return step(
461
- 'contactInfo',
589
+ "contactInfo",
462
590
  [
463
591
  contactStepHeadline(updates),
464
592
  contactStepSubHeadline(updates),
@@ -466,7 +594,7 @@ function contactInfo(updates = {}) {
466
594
  email(updates.scope),
467
595
  phone(updates.scope),
468
596
  TCPAConsent(updates.scope),
469
- secureIcon()
597
+ secureIcon(),
470
598
  ],
471
599
  { nextOnEnter: false }
472
600
  )
@@ -474,39 +602,35 @@ function contactInfo(updates = {}) {
474
602
 
475
603
  function firstAndLastV2(updates = {}) {
476
604
  return step(
477
- 'firstAndLast',
478
- [
479
- firstAndLastStepHeadline(updates),
480
- firstName(),
481
- lastName()
482
- ],
605
+ "firstAndLast",
606
+ [firstAndLastStepHeadline(updates), firstName(updates.scope), lastName(updates.scope)],
483
607
  updates
484
608
  )
485
609
  }
486
610
 
487
611
  function commentsWithBankruptcy(updates = {}) {
488
612
  return step(
489
- 'commentsWithBankruptcy',
613
+ "commentsWithBankruptcy",
490
614
  [
491
615
  commentsStepHeadlineLegal(updates),
492
- comments({
493
- label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL_LEGAL : updates.label,
616
+ comments(updates.scope, false, {
617
+ label: typeof updates.label === "undefined" ? DEFAULT_COMMENTS_LABEL_LEGAL : updates.label,
494
618
  placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
495
- inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
496
- }, updates.scope),
619
+ inputClass: typeof updates.inputClass === "undefined" ? "!t-h-32" : updates.inputClass,
620
+ }),
497
621
  // TODO: needs scope support
498
622
  bankruptcyCrossSell(),
499
623
  {
500
- $el: 'div',
501
- if: '$get(CrossSell_Bankruptcy).value == true',
624
+ $el: "div",
625
+ if: "$get(CrossSell_Bankruptcy).value == true",
502
626
  children: [
503
- comments({
504
- label: 'Bankruptcy or debt details:',
505
- placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
506
- inputClass: '!t-h-16'
507
- }, 'CrossSell:Bankruptcy')
627
+ comments("CrossSell:Bankruptcy", false, {
628
+ label: "Bankruptcy or debt details:",
629
+ placeholder: "Please describe your bankrtupcy or debt situation in a few words...",
630
+ inputClass: "!t-h-16",
631
+ }),
508
632
  ],
509
- }
633
+ },
510
634
  ],
511
635
  { nextOnEnter: false }
512
636
  )
@@ -517,15 +641,15 @@ function commentsWithBankruptcy(updates = {}) {
517
641
 
518
642
  function ssdiTOLPAndZip(updates = {}) {
519
643
  return step(
520
- 'ssdiTOLPAndZip',
644
+ "ssdiTOLPAndZip",
521
645
  [
522
646
  {
523
- $formkit: 'hidden',
647
+ $formkit: "hidden",
524
648
  name: "Type_Of_Legal_Problem",
525
649
  id: "Type_Of_Legal_Problem",
526
- value: "Social Security Disability and Insurance"
650
+ value: "Social Security Disability and Insurance",
527
651
  },
528
- zipcode(updates.scope, true, updates)
652
+ zipcode(updates.scope, true, updates.input),
529
653
  ],
530
654
  updates
531
655
  )
@@ -533,177 +657,158 @@ function ssdiTOLPAndZip(updates = {}) {
533
657
 
534
658
  function ssdiApplicantAge(updates = {}) {
535
659
  return step(
536
- 'ssdiApplicantAge',
537
- [
538
- verticalStepHeadline(updates),
539
- applicantAge(updates.scope, true, updates),
540
- ],
660
+ "ssdiApplicantAge",
661
+ [verticalStepHeadline(updates), applicantAge(updates.scope, true, updates.input)],
541
662
  updates
542
663
  )
543
664
  }
544
665
 
545
666
  function ssdiDisabilityConditionStopWork(updates = {}) {
546
667
  return step(
547
- 'ssdiDisabilityConditionStopWork',
548
- [
549
- verticalStepHeadline(updates),
550
- disabilityConditionStopWorkCenter(),
551
- ],
668
+ "ssdiDisabilityConditionStopWork",
669
+ [verticalStepHeadline(updates), disabilityConditionStopWork(updates.scope, true, updates.input)],
552
670
  updates
553
671
  )
554
672
  }
555
673
 
556
674
  function ssdiDisabilityWorkHistory(updates = {}) {
557
675
  return step(
558
- 'ssdiDisabilityWorkHistory',
559
- [
560
- verticalStepHeadline(updates),
561
- disabilityWorkHistoryCenter(),
562
- ],
676
+ "ssdiDisabilityWorkHistory",
677
+ [verticalStepHeadline(updates), disabilityWorkHistory(updates.scope, true, updates.input)],
563
678
  updates
564
679
  )
565
680
  }
566
681
 
567
682
  function ssdiSocialSecurityDisabilityReceivingBenefits(updates = {}) {
568
683
  return step(
569
- 'ssdiSocialSecurityDisabilityReceivingBenefits',
570
- [
571
- verticalStepHeadline(updates),
572
- socialSecurityDisabilityReceivingBenefitsCenter(),
573
- ],
684
+ "ssdiSocialSecurityDisabilityReceivingBenefits",
685
+ [verticalStepHeadline(updates), socialSecurityDisabilityReceivingBenefits(updates.scope, true, updates.input)],
574
686
  updates
575
687
  )
576
688
  }
577
689
 
578
690
  function ssdiDoctorTreatment(updates = {}) {
579
691
  return step(
580
- 'ssdiDoctorTreatment',
581
- [
582
- verticalStepHeadline(updates),
583
- doctorTreatmentCenter(),
584
- ],
692
+ "ssdiDoctorTreatment",
693
+ [verticalStepHeadline(updates), doctorTreatment(updates.scope, true, updates.input)],
585
694
  updates
586
695
  )
587
696
  }
588
697
 
589
-
590
698
  function ssdiHaveAttorney(updates = {}) {
591
699
  return step(
592
- 'ssdiHaveAttorney',
593
- [
594
- verticalStepHeadline(updates),
595
- haveAttorneyCenter(),
596
- ],
700
+ "ssdiHaveAttorney",
701
+ [verticalStepHeadline(updates), haveAttorney(updates.scope, true, updates.input)],
597
702
  updates
598
703
  )
599
704
  }
600
705
 
601
706
  const formNavigation = (updates = {}) => ({
602
- $el: 'div',
707
+ $el: "div",
603
708
  attrs: {
604
- class: 'step-nav'
709
+ class: "step-nav",
605
710
  },
606
711
  children: [
607
712
  {
608
- $formkit: 'button',
609
- name: 'back_button',
610
- onClick: '$setPreviousStep($prevStepFunc($get(form)))',
611
- children: 'Back',
713
+ $formkit: "button",
714
+ name: "back_button",
715
+ onClick: "$setPreviousStep($prevStepFunc($get(form)))",
716
+ children: "Back",
612
717
  style: {
613
- if: '$activeStep === $firstStep()',
614
- then: 'visibility: hidden;'
615
- }
718
+ if: "$activeStep === $firstStep()",
719
+ then: "visibility: hidden;",
720
+ },
616
721
  },
617
722
  {
618
- $formkit: 'button',
619
- name: 'next_button',
620
- onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
723
+ $formkit: "button",
724
+ name: "next_button",
725
+ onClick: "$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",
621
726
  children: {
622
- if: '$activeStep === $firstStep()',
623
- then: 'Start',
624
- else: 'Next'
727
+ if: "$activeStep === $firstStep()",
728
+ then: "Start",
729
+ else: "Next",
625
730
  },
626
731
  outerClass: {
627
- if: '$activeStep === $lastStep()',
628
- then: 't-hidden',
629
- else: ''
732
+ if: "$activeStep === $lastStep()",
733
+ then: "t-hidden",
734
+ else: "",
630
735
  },
631
736
  style: {
632
- if: '$activeStep === $lastStep()',
633
- then: 'display: none;'
634
- }
737
+ if: "$activeStep === $lastStep()",
738
+ then: "display: none;",
739
+ },
635
740
  },
636
741
  {
637
- $formkit: 'submit',
638
- name: 'submit_button',
639
- label: updates.submitLabel || 'Submit',
640
- if: '$activeStep === $lastStep()',
742
+ $formkit: "submit",
743
+ name: "submit_button",
744
+ label: updates.submitLabel || "Submit",
745
+ if: "$activeStep === $lastStep()",
641
746
  style: {
642
- if: '$activeStep !== $lastStep()',
643
- then: 'display: none;'
644
- }
645
- }
646
- ]
747
+ if: "$activeStep !== $lastStep()",
748
+ then: "display: none;",
749
+ },
750
+ },
751
+ ],
647
752
  });
648
753
 
649
754
  const formDetails = () => ({
650
- $el: 'pre',
755
+ $el: "pre",
651
756
  if: '$urlParam("fdbg", "") == 1',
652
757
  children: [
653
758
  {
654
- $el: 'pre',
655
- children: '$stringify( $get(form).value )',
759
+ $el: "pre",
760
+ children: "$stringify( $get(form).value )",
656
761
  attrs: {
657
- class: 't-text-xs',
658
- style: 'overflow: scroll'
659
- }
762
+ class: "t-text-xs",
763
+ style: "overflow: scroll",
764
+ },
660
765
  },
661
766
  {
662
- $el: 'pre',
663
- children: ['activeStep: ', '$activeStep'],
767
+ $el: "pre",
768
+ children: ["activeStep: ", "$activeStep"],
664
769
  attrs: {
665
- class: 't-text-xs',
666
- style: 'overflow: scroll'
667
- }
770
+ class: "t-text-xs",
771
+ style: "overflow: scroll",
772
+ },
668
773
  },
669
774
  {
670
- $el: 'pre',
671
- children: ['stepHistory: ', '$stepHistory'],
775
+ $el: "pre",
776
+ children: ["stepHistory: ", "$stepHistory"],
672
777
  attrs: {
673
- class: 't-text-xs',
674
- style: 'overflow: scroll'
675
- }
778
+ class: "t-text-xs",
779
+ style: "overflow: scroll",
780
+ },
676
781
  },
677
782
  {
678
- $el: 'pre',
679
- children: ['stepQueue: ', '$stepQueue'],
783
+ $el: "pre",
784
+ children: ["stepQueue: ", "$stepQueue"],
680
785
  attrs: {
681
- class: 't-text-xs',
682
- style: 'overflow: scroll'
683
- }
786
+ class: "t-text-xs",
787
+ style: "overflow: scroll",
788
+ },
684
789
  },
685
790
  {
686
- $el: 'pre',
687
- children: ['steps: ', '$stepKeys()'],
791
+ $el: "pre",
792
+ children: ["steps: ", "$stepKeys()"],
688
793
  attrs: {
689
- class: 't-text-xs',
690
- style: 'overflow: scroll'
691
- }
692
- }
693
- ]
794
+ class: "t-text-xs",
795
+ style: "overflow: scroll",
796
+ },
797
+ },
798
+ ],
694
799
  });
695
800
 
696
801
  const formPropDefaults = {
697
- type: 'form',
698
- id: 'form',
699
- config: { validationVisibility: 'submit' },
802
+ type: "form",
803
+ id: "form",
804
+ config: { validationVisibility: "submit" },
700
805
  onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
701
- plugins: '$plugins',
806
+ plugins: "$plugins",
702
807
  actions: false,
703
- anchorElement: 'form-anchor',
808
+ anchorElement: "form-anchor",
704
809
  useLocalStorage: true,
705
810
  prepop: {
706
- fromURL: true
811
+ fromURL: true,
707
812
  },
708
813
  errorCodes: {
709
814
  403: { message: "An Error Occurred", abort: false },
@@ -711,13 +816,11 @@ const formPropDefaults = {
711
816
  429: "An Error Occurred",
712
817
  504: { message: "An Error Occurred", abort: false },
713
818
  },
714
- formClass: '!t-max-w-[40rem]'
819
+ formClass: "!t-max-w-[40rem]",
715
820
  };
716
821
 
717
822
  function filterMapByKey(obj, keyList) {
718
- return Object.fromEntries(
719
- Object.entries(obj).filter(([key]) => keyList.includes(key))
720
- );
823
+ return Object.fromEntries(Object.entries(obj).filter(([key]) => keyList.includes(key)))
721
824
  }
722
825
 
723
826
  // export function filteredNextStepsMapLegal(keyList) {
@@ -727,10 +830,7 @@ function filterMapByKey(obj, keyList) {
727
830
  // }
728
831
 
729
832
  function formProps(updates) {
730
- const props = merge(
731
- formPropDefaults,
732
- updates
733
- );
833
+ const props = merge(formPropDefaults, updates);
734
834
  if (props.formId && !props.name) {
735
835
  props.name = props.formId;
736
836
  }
@@ -740,13 +840,10 @@ function formProps(updates) {
740
840
  const metaDefaults = {};
741
841
 
742
842
  function metaProps(updates) {
743
- const data = merge(
744
- metaDefaults,
745
- updates
746
- );
843
+ const data = merge(metaDefaults, updates);
747
844
  return {
748
- type: 'meta',
749
- data
845
+ type: "meta",
846
+ data,
750
847
  }
751
848
  }
752
849
 
@@ -766,210 +863,213 @@ function defaultMetaPropsLegal(tolps = null) {
766
863
  defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_LEGAL,
767
864
  finalHeadlines: finalHeadlines,
768
865
  defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_LEGAL,
769
- finalSubHeadlines: finalSubHeadlines
866
+ finalSubHeadlines: finalSubHeadlines,
770
867
  })
771
868
  }
772
869
 
773
870
  const formAnchorDefaults = {
774
- $el: 'div',
871
+ $el: "div",
775
872
  children: [
776
873
  {
777
- $el: 'div',
874
+ $el: "div",
778
875
  attrs: {
779
- id: 'form-anchor',
780
- class: 't-absolute',
781
- style: { top: '-30px', left: 0 }
782
- }
783
- }
876
+ id: "form-anchor",
877
+ class: "t-absolute",
878
+ style: { top: "-30px", left: 0 },
879
+ },
880
+ },
784
881
  ],
785
882
  attrs: {
786
- class: 't-relative'
787
- }
883
+ class: "t-relative",
884
+ },
788
885
  };
789
886
 
790
887
  function formAnchor(updates) {
791
- return merge(
792
- formAnchorDefaults,
793
- updates
794
- )
888
+ return merge(formAnchorDefaults, updates)
795
889
  }
796
890
 
797
891
  const progressBarDefaults = {
798
- $el: 'div',
892
+ $el: "div",
799
893
  attrs: {
800
- class: 't-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center',
894
+ class: "t-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center",
801
895
  style: {
802
- if: '$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())',
803
- then: 'display: none'
896
+ if: "$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",
897
+ then: "display: none",
804
898
  },
805
899
  },
806
900
  children: [
807
901
  {
808
- $el: 'div',
902
+ $el: "div",
809
903
  attrs: {
810
- class: 't-flex t-justify-center'
904
+ class: "t-flex t-justify-center",
811
905
  },
812
906
  children: [
813
907
  {
814
- $el: 'span',
908
+ $el: "span",
815
909
  attrs: {
816
- id: 'progress-bar-text',
817
- class: 't-text-sm t-mb-1'
910
+ id: "progress-bar-text",
911
+ class: "t-text-sm t-mb-1",
818
912
  },
819
- children: [
820
- "0% Complete"
821
- ]
913
+ children: ["0% Complete"],
822
914
  },
823
- ]
915
+ ],
824
916
  },
825
917
  {
826
- $el: 'div',
918
+ $el: "div",
827
919
  attrs: {
828
- class: 't-bg-gray-100 t-w-9/12 t-rounded'
920
+ class: "t-bg-gray-100 t-w-9/12 t-rounded",
829
921
  },
830
922
  children: [
831
923
  {
832
- $el: 'div',
924
+ $el: "div",
833
925
  attrs: {
834
- id: 'progress-bar',
835
- 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]',
926
+ id: "progress-bar",
927
+ class:
928
+ "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]",
836
929
  style: {
837
- transition: 'width 0.5s ease'
930
+ transition: "width 0.5s ease",
838
931
  },
839
932
  },
840
- }
841
- ]
842
- }
843
- ]
933
+ },
934
+ ],
935
+ },
936
+ ],
844
937
  };
845
938
 
846
939
  function progressBar(updates) {
847
- return merge(
848
- progressBarDefaults,
849
- updates
850
- )
940
+ return merge(progressBarDefaults, updates)
851
941
  }
852
942
 
853
943
  function headlineDefaults(updates = {}) {
854
944
  return {
855
- $el: 'h1',
945
+ $el: "h1",
856
946
  attrs: {
857
- 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 || '')
858
- }
947
+ class:
948
+ "t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3" +
949
+ " " +
950
+ (updates.headlineClass || ""),
951
+ },
859
952
  }
860
953
  }
861
954
 
862
955
  function headline(updates = {}) {
863
- return merge(
864
- headlineDefaults(updates),
865
- updates
866
- )
956
+ return merge(headlineDefaults(updates), updates)
867
957
  }
868
958
 
869
959
  function subHeadlineDefaults(updates = {}) {
870
960
  return {
871
- $el: 'h3',
961
+ $el: "h3",
872
962
  attrs: {
873
- 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 || '')
874
- }
963
+ class:
964
+ "t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10" +
965
+ " " +
966
+ (updates.subheadlineClass || ""),
967
+ },
875
968
  }
876
969
  }
877
970
 
878
971
  function subHeadline(updates = {}) {
879
- return merge(
880
- subHeadlineDefaults(updates),
881
- updates
882
- )
972
+ return merge(subHeadlineDefaults(updates), updates)
883
973
  }
884
974
 
885
975
  const hiddenInputsBase = [
886
976
  {
887
- $formkit: 'hidden',
977
+ $formkit: "hidden",
888
978
  name: "gclid",
889
- value: null
979
+ value: null,
890
980
  },
891
981
  {
892
- $formkit: 'hidden',
982
+ $formkit: "hidden",
893
983
  name: "campaignid",
894
- value: null
984
+ value: null,
895
985
  },
896
986
  {
897
- $formkit: 'hidden',
987
+ $formkit: "hidden",
898
988
  name: "s",
899
- value: null
900
- }
989
+ value: null,
990
+ },
901
991
  ];
902
992
 
903
993
  const hiddenInputsLegal = [
904
994
  {
905
- $formkit: 'hidden',
995
+ $formkit: "hidden",
906
996
  name: "vertical",
907
- value: "Legal"
997
+ value: "Legal",
908
998
  },
909
999
  {
910
- $formkit: 'hidden',
1000
+ $formkit: "hidden",
911
1001
  name: "TCPA_Language",
912
- value: "$meta.tcpaLanguage"
1002
+ value: "$meta.tcpaLanguage",
913
1003
  },
914
- ...hiddenInputsBase
1004
+ ...hiddenInputsBase,
915
1005
  ];
916
1006
 
917
1007
  const TOLPCommentsPlaceholders = {
918
- 'Adoption': 'Example: "I need help with adoption forms"',
919
- 'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
920
- '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"',
921
- 'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
922
- 'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
923
- 'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
924
- 'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
925
- 'Child Custody': 'Example: "Need help getting custody"',
926
- 'Child Support': 'Example: "Issues with child support payments"',
927
- 'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
928
- 'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
929
- 'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
930
- 'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
931
- 'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
932
- 'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
933
- 'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
934
- 'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
935
- 'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
936
- 'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
937
- 'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
938
- 'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
939
- 'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
940
- 'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
941
- 'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
942
- 'Guardianship': 'Example: "I need help with guardianship documents"',
943
- 'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
944
- 'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
945
- 'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
946
- 'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
947
- 'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
948
- 'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
949
- 'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
950
- 'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
951
- 'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
952
- 'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
953
- 'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
954
- '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"',
955
- 'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
956
- 'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
957
- 'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
958
- 'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
959
- 'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
960
- 'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
961
- 'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
962
- 'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
963
- '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"',
964
- 'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
965
- 'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
966
- 'Unemployment': 'Example: "I need help filing for unemployment benefits"',
967
- 'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
968
- 'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
969
- 'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
970
- 'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
971
- 'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
972
- 'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
1008
+ Adoption: 'Example: "I need help with adoption forms"',
1009
+ "Asbestos and Mesothelioma": 'Example: "I was exposed to asbestos at work and would like to file a claim"',
1010
+ "Auto and Car Accidents":
1011
+ 'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',
1012
+ Bankruptcy: 'Example: "I need help filing for bankruptcy"',
1013
+ "Birth Certificate and Name Change": 'Example: "Just married and would like to change my last name"',
1014
+ "Business Lawyers": 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
1015
+ "Child Custody and Support": 'Example: "Need help getting custody" or "Issues with child support payments"',
1016
+ "Child Custody": 'Example: "Need help getting custody"',
1017
+ "Child Support": 'Example: "Issues with child support payments"',
1018
+ "Civil Rights and Discrimination": 'Example: "Police brutality" or "Coworker keeps harassing me"',
1019
+ "Civil Lawsuit":
1020
+ 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
1021
+ "File a Lawsuit": 'Example: "A contractor took my money and never completed the job"',
1022
+ "Defend a Lawsuit": 'Example: "I am being sued by a neighbor"',
1023
+ "Consumer Lawyers":
1024
+ 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
1025
+ "Copyrights and Trademarks": 'Example: "I would like to register a trademark or copyright a name"',
1026
+ "Criminal and Felony":
1027
+ 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
1028
+ "Debt and Collections": 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
1029
+ "Divorce and Separation": 'Example: "I would like to file for an uncontested divorce"',
1030
+ "DUI and DWI": 'Example: "I was arrested for DUI and need legal defense"',
1031
+ "Elder Law": 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
1032
+ "Employment and Workplace": 'Example: "I was injured while on the job" or "My company is discriminating against me"',
1033
+ Expungement: 'Example: "I would like to file for an expungement and clear my record"',
1034
+ "Family Issues": 'Example: "I need help with guardianship" or "I need a simple will created"',
1035
+ Foreclosure: 'Example: "I need help to avoid foreclosure on my house"',
1036
+ Guardianship: 'Example: "I need help with guardianship documents"',
1037
+ "Harassment and Discrimination": 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
1038
+ "Sexual Harassment": 'Example: "I am being sexually harassed by a coworker"',
1039
+ "Workplace Harassment": 'Example: "My coworker is being aggressive towards me"',
1040
+ "Non-Workplace Harassment": 'Example: "My neighbor is harassing me"',
1041
+ "Workplace Discrimination": 'Example: "I am being discriminated at work based on my age"',
1042
+ "Non-Workplace Discrimination": 'Example: "I am being discriminated against by a local official"',
1043
+ "Identity Theft": 'Example: "Someone stole my identity and I need help fixing the issue"',
1044
+ "Immigration and Visas": 'Example: "I need help filing for a visa" or "Help with a green card"',
1045
+ Insurance: 'Example: "I need help filing an insurance claim for damage to my house"',
1046
+ "Landlord and Tenant":
1047
+ 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
1048
+ "Lemon Law": 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
1049
+ "Long Term Disability":
1050
+ 'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',
1051
+ "Medical Malpractice": 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
1052
+ "Patents and Intellectual Property": 'Example: "I would like to file for a patent" or "I need to copyright a name"',
1053
+ "Personal Injury": 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
1054
+ "Power of Attorney": 'Example: "I need help with a limited or general power of attorney"',
1055
+ "Probate and Estates":
1056
+ 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
1057
+ "Product Liability": 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
1058
+ "Property Damage": 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
1059
+ "Real Estate":
1060
+ 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
1061
+ "Social Security Disability and Insurance":
1062
+ 'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',
1063
+ "Tax and IRS": 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
1064
+ "Traffic and Tickets":
1065
+ 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
1066
+ Unemployment: 'Example: "I need help filing for unemployment benefits"',
1067
+ "Victim of a Crime": 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
1068
+ "Wills and Trusts": 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
1069
+ "Workers Compensation": 'Example: "I was injured at work and would like to file for workers compensation benefits"',
1070
+ "Wrongful Death": 'Example: "A family member was killed on the job and we need legal representation"',
1071
+ "Wrongful Termination": 'Example: "I was fired by my employer without cause"',
1072
+ "Not Sure or Other": 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"',
973
1073
  };
974
1074
 
975
1075
  const TOLPFinalHeadlines = {
@@ -977,49 +1077,64 @@ const TOLPFinalHeadlines = {
977
1077
  };
978
1078
 
979
1079
  const TOLPFinalSubHeadlines = {
980
- 'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
1080
+ Adoption: "You may benefit from speaking with an adoption professional. Please verify your contact information.",
981
1081
  // 'Asbestos and Mesothelioma': '',
982
- 'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
983
- 'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
1082
+ "Auto and Car Accidents":
1083
+ "You may benefit from speaking with an accident professional. Please verify your contact information.",
1084
+ Bankruptcy: "You may benefit from speaking with a bankruptcy professional. Please verify your contact information.",
984
1085
  // 'Birth Certificate and Name Change': '',
985
1086
  // 'Business Lawyers': '',
986
1087
  // 'Child Custody and Support': '',
987
1088
  // 'Civil Rights and Discrimination': '',
988
1089
  // 'Civil Lawsuit': '',
989
1090
  // 'Consumer Lawyers': '',
990
- 'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
1091
+ "Copyrights and Trademarks":
1092
+ "You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.",
991
1093
  // 'Criminal and Felony': '',
992
1094
  // 'Debt and Collections': '',
993
- 'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
994
- 'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
995
- 'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
1095
+ "Divorce and Separation":
1096
+ "You may benefit from speaking with a divorce professional. Please verify your contact information.",
1097
+ "DUI and DWI": "You may benefit from speaking with a DUI professional. Please verify your contact information.",
1098
+ "Elder Law": "You may benefit from speaking with an elder law professional. Please verify your contact information.",
996
1099
  // 'Employment and Workplace': '',
997
1100
  // 'Expungement': '',
998
1101
  // 'Family Issues': '',
999
- 'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
1000
- 'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
1102
+ Foreclosure: "You may benefit from speaking with a foreclosure professional. Please verify your contact information.",
1103
+ Guardianship:
1104
+ "You may benefit from speaking with a guardianship professional. Please verify your contact information.",
1001
1105
  // 'Harassment and Discrimination': '',
1002
1106
  // 'Identity Theft': '',
1003
- 'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
1107
+ "Immigration and Visas":
1108
+ "You may benefit from speaking with a immigration professional. Please verify your contact information.",
1004
1109
  // 'Insurance': '',
1005
- 'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
1110
+ "Landlord and Tenant":
1111
+ "You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.",
1006
1112
  // 'Lemon Law': '',
1007
- 'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
1008
- 'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
1009
- 'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
1010
- 'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
1113
+ "Long Term Disability":
1114
+ "You may benefit from speaking with a disability legal professional. Please verify your contact information.",
1115
+ "Medical Malpractice":
1116
+ "You may benefit from speaking with a malpractice professional. Please verify your contact information.",
1117
+ "Patents and Intellectual Property":
1118
+ "You may benefit from speaking with a patent professional. Please verify your contact information.",
1119
+ "Personal Injury":
1120
+ "You may benefit from speaking with a personal injury professional. Please verify your contact information.",
1011
1121
  // 'Power of Attorney': '',
1012
- 'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
1122
+ "Probate and Estates":
1123
+ "You may benefit from speaking with a probate and estate professional. Please verify your contact information.",
1013
1124
  // 'Product Liability': '',
1014
1125
  // 'Property Damage': '',
1015
- 'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
1016
- 'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
1017
- 'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
1126
+ "Real Estate":
1127
+ "You may benefit from speaking with a real estate professional. Please verify your contact information.",
1128
+ "Social Security Disability and Insurance":
1129
+ "You may benefit from speaking with an SSDI professional. Please verify your contact information.",
1130
+ "Tax and IRS": "You may benefit from speaking with a tax professional. Please verify your contact information.",
1018
1131
  // 'Traffic and Tickets': '',
1019
- 'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
1132
+ Unemployment:
1133
+ "You may benefit from speaking with an unemployment professional. Please verify your contact information.",
1020
1134
  // 'Victim of a Crime': '',
1021
1135
  // 'Wills and Trusts': '',
1022
- 'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
1136
+ "Workers Compensation":
1137
+ "You may benefit from speaking with a workers compensation professional. Please verify your contact information.",
1023
1138
  // 'Wrongful Death': '',
1024
1139
  // 'Wrongful Termination': '',
1025
1140
  // 'Not Sure or Other': ''