bhl-forms 0.7.3 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/bhl-forms.es.js +551 -543
  2. package/dist/bhl-forms.iife.js +4 -4
  3. package/dist/bhl-forms.modern.es.js +649 -649
  4. package/dist/bhl-forms.modern.iife.js +7 -7
  5. package/dist/bhl-forms.modern.umd.js +7 -7
  6. package/dist/bhl-forms.umd.js +4 -4
  7. package/dist/forms/accidentsAndInjuries.es.js +1461 -1151
  8. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  9. package/dist/forms/accidentsAndInjuries.json +1 -1
  10. package/dist/forms/appraisals.es.js +138 -137
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/business.es.js +1434 -1149
  13. package/dist/forms/business.iife.js +1 -1
  14. package/dist/forms/business.json +1 -1
  15. package/dist/forms/childAndFamily.es.js +1329 -1043
  16. package/dist/forms/childAndFamily.iife.js +1 -1
  17. package/dist/forms/childAndFamily.json +1 -1
  18. package/dist/forms/childAndFamilySingle.es.js +1528 -1378
  19. package/dist/forms/childAndFamilySingle.iife.js +1 -1
  20. package/dist/forms/childAndFamilySingle.json +1 -1
  21. package/dist/forms/civilLawsuit.es.js +2000 -1807
  22. package/dist/forms/civilLawsuit.iife.js +1 -1
  23. package/dist/forms/civilLawsuit.json +1 -1
  24. package/dist/forms/coins.es.js +138 -137
  25. package/dist/forms/coins.iife.js +1 -1
  26. package/dist/forms/contracts.es.js +1349 -1050
  27. package/dist/forms/contracts.iife.js +1 -1
  28. package/dist/forms/contracts.json +1 -1
  29. package/dist/forms/criminal.es.js +1832 -1711
  30. package/dist/forms/criminal.iife.js +1 -1
  31. package/dist/forms/criminal.json +1 -1
  32. package/dist/forms/divorce.es.js +1541 -1385
  33. package/dist/forms/divorce.iife.js +1 -1
  34. package/dist/forms/divorce.json +1 -1
  35. package/dist/forms/employmentAndWorkplace.es.js +1833 -1678
  36. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  37. package/dist/forms/employmentAndWorkplace.json +1 -1
  38. package/dist/forms/generalHomeImprovement.es.js +2381 -2010
  39. package/dist/forms/generalHomeImprovement.iife.js +1 -1
  40. package/dist/forms/generalHomeImprovement.json +1 -1
  41. package/dist/forms/generalHomeImprovementThankYou.es.js +1795 -2008
  42. package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
  43. package/dist/forms/generalHomeImprovementThankYou.json +1 -1
  44. package/dist/forms/generalLegal.es.js +3037 -2535
  45. package/dist/forms/generalLegal.iife.js +1 -1
  46. package/dist/forms/generalLegal.json +1 -1
  47. package/dist/forms/generalLegalJustAnswer.es.js +3216 -2872
  48. package/dist/forms/generalLegalJustAnswer.iife.js +1 -1
  49. package/dist/forms/generalLegalJustAnswer.json +1 -1
  50. package/dist/forms/generalLegalPopUnder.es.js +3037 -2535
  51. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  52. package/dist/forms/generalLegalPopUnder.json +1 -1
  53. package/dist/forms/generalLegalPopUnderSingle.es.js +3216 -2872
  54. package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
  55. package/dist/forms/generalLegalPopUnderSingle.json +1 -1
  56. package/dist/forms/generalLegalSingle.es.js +3216 -2872
  57. package/dist/forms/generalLegalSingle.iife.js +1 -1
  58. package/dist/forms/generalLegalSingle.json +1 -1
  59. package/dist/forms/generalLegalThankYou.es.js +2825 -2303
  60. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  61. package/dist/forms/generalLegalThankYou.json +1 -1
  62. package/dist/forms/generalLegalThankYouConsultation.es.js +3216 -2872
  63. package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
  64. package/dist/forms/generalLegalThankYouConsultation.json +1 -1
  65. package/dist/forms/harassmentAndDiscrimination.es.js +1425 -1120
  66. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  67. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  68. package/dist/forms/landlordTenant.es.js +1395 -1106
  69. package/dist/forms/landlordTenant.iife.js +1 -1
  70. package/dist/forms/landlordTenant.json +1 -1
  71. package/dist/forms/malpractice.es.js +1531 -1223
  72. package/dist/forms/malpractice.iife.js +1 -1
  73. package/dist/forms/malpractice.json +1 -1
  74. package/dist/forms/mechanics.es.js +702 -530
  75. package/dist/forms/mechanics.iife.js +1 -1
  76. package/dist/forms/mechanics.json +1 -1
  77. package/dist/forms/patentsAndIP.es.js +1830 -1652
  78. package/dist/forms/patentsAndIP.iife.js +1 -1
  79. package/dist/forms/patentsAndIP.json +1 -1
  80. package/dist/forms/realEstate.es.js +2852 -2405
  81. package/dist/forms/realEstate.iife.js +1 -1
  82. package/dist/forms/realEstate.json +1 -1
  83. package/dist/forms/repossession.es.js +1568 -1251
  84. package/dist/forms/repossession.iife.js +1 -1
  85. package/dist/forms/repossession.json +1 -1
  86. package/dist/forms/ssdi.es.js +635 -520
  87. package/dist/forms/ssdi.iife.js +1 -1
  88. package/dist/forms/ssdi.json +1 -1
  89. package/dist/forms/testForm.es.js +409 -371
  90. package/dist/forms/testForm.iife.js +1 -1
  91. package/dist/forms/testForm.json +1 -1
  92. package/dist/forms/testRedirects.es.js +421 -316
  93. package/dist/forms/testRedirects.iife.js +1 -1
  94. package/dist/forms/testRedirects.json +1 -1
  95. package/dist/forms/vets.es.js +138 -137
  96. package/dist/forms/vets.iife.js +1 -1
  97. package/dist/forms/willsAndTrusts.es.js +1428 -1112
  98. package/dist/forms/willsAndTrusts.iife.js +1 -1
  99. package/dist/forms/willsAndTrusts.json +1 -1
  100. package/dist/main.css +1 -1
  101. package/package.json +1 -1
@@ -2,34 +2,42 @@ function merge() {
2
2
  return Object.assign({}, ...arguments)
3
3
  }
4
4
 
5
- const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
6
- const DEFAULT_FINAL_HEADLINE_LEGAL = 'Submit Your Case';
7
- const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
8
- const DEFAULT_FINAL_SUBHEADLINE_LEGAL = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
9
- const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
10
- 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.";
5
+ const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL =
6
+ '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
7
+ const DEFAULT_FINAL_HEADLINE_LEGAL = "Submit Your Case";
8
+ const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL =
9
+ '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
10
+ const DEFAULT_FINAL_SUBHEADLINE_LEGAL =
11
+ "You may benefit from speaking with a legal professional. Please verify your contact information.";
12
+ const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL =
13
+ '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
14
+ const TCPA_LANGUAGE_LEGAL =
15
+ "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.";
11
16
 
12
17
  const select = (updates) => {
13
18
  if (updates.name && !updates.id) {
14
19
  updates.id = updates.name;
15
20
  }
16
- return merge({
17
- $formkit: 'select',
18
- placeholder: "Please Select",
19
- validation: 'required',
20
- validationMessages: {
21
- required: 'Field is required'
21
+ return merge(
22
+ {
23
+ $formkit: "select",
24
+ placeholder: "Please Select",
25
+ validation: "required",
26
+ validationMessages: {
27
+ required: "Field is required",
28
+ },
29
+ inputClass: "t-bg-white",
30
+ labelClass: "required",
22
31
  },
23
- inputClass: 't-bg-white',
24
- labelClass: 'required'
25
- }, updates)
32
+ updates
33
+ )
26
34
  };
27
35
 
28
36
  const sbsSelect = (updates) => {
29
- updates.labelClass = 'required';
30
- updates.wrapperClass = 'side-by-side t-items-center';
31
- updates.innerClass = 'select-height-content';
32
- updates.helpClass = 't-mt-2.5 md:t-text-right md:t-mt-[-5px]';
37
+ updates.labelClass = "required";
38
+ updates.wrapperClass = "side-by-side t-items-center";
39
+ updates.innerClass = "select-height-content";
40
+ updates.helpClass = "t-mt-2.5 md:t-text-right md:t-mt-[-5px]";
33
41
  return select(updates)
34
42
  };
35
43
 
@@ -37,139 +45,165 @@ const text = (updates) => {
37
45
  if (updates.name && !updates.id) {
38
46
  updates.id = updates.name;
39
47
  }
40
- return merge({
41
- $formkit: 'text',
42
- validation: 'required',
43
- validationMessages: {
44
- required: 'Field is required'
48
+ return merge(
49
+ {
50
+ $formkit: "text",
51
+ validation: "required",
52
+ validationMessages: {
53
+ required: "Field is required",
54
+ },
55
+ labelClass: "required",
45
56
  },
46
- labelClass: 'required'
47
- }, updates)
57
+ updates
58
+ )
48
59
  };
49
60
 
50
61
  const sbsText = (updates) => {
51
- updates.wrapperClass = 'side-by-side t-items-center';
62
+ updates.wrapperClass = "side-by-side t-items-center";
52
63
  return text(updates)
53
64
  };
54
65
 
55
66
  const verticalText = (updates) => {
56
- updates.wrapperClass = 't-flex t-justify-center';
57
- updates.messagesClass = 't-flex t-justify-center';
58
- updates.inputClass = 't-text-center';
59
- updates.helpClass = 't-mt-2.5 !t-text-sm t-text-center';
67
+ updates.wrapperClass = "t-flex t-justify-center";
68
+ updates.messagesClass = "t-flex t-justify-center";
69
+ updates.inputClass = "t-text-center";
70
+ updates.helpClass = "t-mt-2.5 !t-text-sm t-text-center";
60
71
  return text(updates)
61
72
  };
62
73
 
63
- const email = (scope) => sbsText({
64
- $formkit: 'email',
65
- name: scope ? scope + ':' + 'Email' : 'Email',
66
- label: 'Email Address:',
67
- placeholder: 'email@domain.com',
68
- autocomplete: 'email',
69
- 'data-tf-sensitive': 'false',
70
- validation: 'required|email',
71
- validationMessages: {
72
- required: 'Email is required',
73
- email: 'Invalid Email'
74
- }
75
- });
76
-
77
- const firstName = (scope) => sbsText({
78
- label: 'First Name:',
79
- placeholder: 'First',
80
- name: scope ? scope + ':' + 'First_Name' : 'First_Name',
81
- autocomplete: "given-name",
82
- validationMessages: {
83
- required: 'First Name is required'
84
- }
85
- });
74
+ const email = (scope, vertical, updates = {}) => {
75
+ const func = vertical ? verticalText : sbsText;
76
+ const label = vertical ? updates.label : "Email Address:";
77
+ return func({
78
+ $formkit: "email",
79
+ name: scope ? scope + ":" + "Email" : "Email",
80
+ label,
81
+ placeholder: "email@domain.com",
82
+ autocomplete: "email",
83
+ "data-tf-sensitive": "false",
84
+ validation: "required|email",
85
+ validationMessages: {
86
+ required: "Email is required",
87
+ email: "Invalid Email",
88
+ },
89
+ ...updates,
90
+ })
91
+ };
86
92
 
87
- const lastName = (scope) => sbsText({
88
- label: 'Last Name:',
89
- placeholder: 'Last',
90
- name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
91
- autocomplete: "family-name",
92
- validationMessages: {
93
- required: 'Last Name is required'
94
- }
95
- });
93
+ const firstName = (scope, vertical, updates = {}) => {
94
+ const func = vertical ? verticalText : sbsText;
95
+ const label = vertical ? updates.label : "First Name:";
96
+ return func({
97
+ label,
98
+ placeholder: "First",
99
+ name: scope ? scope + ":" + "First_Name" : "First_Name",
100
+ autocomplete: "given-name",
101
+ validationMessages: {
102
+ required: "First Name is required",
103
+ },
104
+ ...updates,
105
+ })
106
+ };
96
107
 
97
- const phone = (scope) => sbsText({
98
- $formkit: 'tel',
99
- name: scope ? scope + ':' + 'Primary_Phone' : 'Primary_Phone',
100
- label: 'Phone Number:',
101
- placeholder: '###-###-####',
102
- maxlength: 12,
103
- help: '10-digit phone number, hyphens optional',
104
- autocomplete: 'tel-national',
105
- 'data-tf-sensitive': 'false',
106
- validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
107
- validationMessages: {
108
- required: 'Field is required',
109
- matches: 'Invalid Phone Format, use ###-###-####',
110
- valid_phone: 'Invalid Phone Number'
111
- },
112
- helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
113
- });
108
+ const lastName = (scope, vertical, updates = {}) => {
109
+ const func = vertical ? verticalText : sbsText;
110
+ const label = vertical ? updates.label : "Last Name:";
111
+ return func({
112
+ label,
113
+ placeholder: "Last",
114
+ name: scope ? scope + ":" + "Last_Name" : "Last_Name",
115
+ autocomplete: "family-name",
116
+ validationMessages: {
117
+ required: "Last Name is required",
118
+ },
119
+ ...updates,
120
+ })
121
+ };
114
122
 
123
+ const phone = (scope, vertical, updates = {}) => {
124
+ const func = vertical ? verticalText : sbsText;
125
+ const label = vertical ? updates.label : "Phone Number:";
126
+ return func({
127
+ $formkit: "tel",
128
+ name: scope ? scope + ":" + "Primary_Phone" : "Primary_Phone",
129
+ label,
130
+ placeholder: "###-###-####",
131
+ maxlength: 12,
132
+ help: "10-digit phone number, hyphens optional",
133
+ autocomplete: "tel-national",
134
+ "data-tf-sensitive": "false",
135
+ validation: "required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone",
136
+ validationMessages: {
137
+ required: "Phone Number is required",
138
+ matches: "Invalid Phone Format, use ###-###-####",
139
+ valid_phone: "Invalid Phone Number",
140
+ },
141
+ helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]",
142
+ ...updates,
143
+ })
144
+ };
115
145
 
116
146
  const zipcode = (scope, vertical, updates = {}) => {
117
147
  const func = vertical ? verticalText : sbsText;
118
- const label = vertical ? (updates.label) : 'Zip Code:';
119
- const help = vertical ? (updates.help ?? "We try to match you with local help") : null;
148
+ const label = vertical ? updates.label : "Zip Code:";
149
+ const help = vertical ? updates.help ?? "We try to match you with local help" : null;
120
150
  return func({
121
151
  label,
122
152
  help,
123
- placeholder: '#####',
124
- name: scope ? scope + ':' + 'Zip' : 'Zip',
153
+ placeholder: "#####",
154
+ name: scope ? scope + ":" + "Zip" : "Zip",
125
155
  maxlength: 5,
126
156
  inputmode: "numeric",
127
- autocomplete: 'postal-code',
128
- validation: 'required|matches:/^[0-9]{5}$/',
157
+ autocomplete: "postal-code",
158
+ validation: "required|matches:/^[0-9]{5}$/",
129
159
  validationMessages: {
130
- required: 'Zip Code is required',
131
- matches: 'Invalid Zip Code'
160
+ required: "Zip Code is required",
161
+ matches: "Invalid Zip Code",
132
162
  },
133
- ...updates
163
+ ...updates,
134
164
  })
135
165
  };
136
166
 
137
- const category = () => sbsSelect({
138
- label: 'Category:',
139
- name: 'category',
140
- id: 'category',
141
- options: [
142
- 'Fruits',
143
- 'Vegetables'
144
- ]
145
- });
167
+ const category = () =>
168
+ sbsSelect({
169
+ label: "Category:",
170
+ name: "category",
171
+ id: "category",
172
+ options: ["Fruits", "Vegetables"],
173
+ });
146
174
 
147
175
  const TCPAConsent = (scope) => ({
148
- $formkit: 'checkbox',
149
- label: '$meta.tcpaLanguage',
150
- name: scope ? scope + ':' + 'TCPA_Opt_In' : 'TCPA_Opt_In',
151
- 'data-tf-sensitive': 'false',
152
- validation: 'required|accepted',
176
+ $formkit: "checkbox",
177
+ label: "$meta.tcpaLanguage",
178
+ // Necessary to get links to work in the tcpa language
179
+ __raw__sectionsSchema: {
180
+ label: { attrs: { innerHTML: "$label" } },
181
+ },
182
+ name: scope ? scope + ":" + "TCPA_Opt_In" : "TCPA_Opt_In",
183
+ "data-tf-sensitive": "false",
184
+ validation: "required|accepted",
153
185
  validationMessages: {
154
- required: 'Consent is required',
155
- accepted: 'Consent is required'
186
+ required: "Consent is required",
187
+ accepted: "Consent is required",
156
188
  },
157
189
  classes: {
158
- label: "t-text-xs t-text-slate-500 t-font-normal"
159
- }
190
+ label: "t-text-xs t-text-slate-500 t-font-normal",
191
+ },
160
192
  });
161
193
 
162
- const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
163
- const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
194
+ const NEXT_ON_ENTER = "$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
195
+ const NEXT_ON_INPUT = "$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
164
196
 
165
- const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
197
+ const isInput = (n) => {
198
+ return n.type !== "group" && n.type !== "section" && n.type !== "form" && n.$formkit !== "hidden" && !n.children
199
+ };
166
200
 
167
201
  const findLastInput = (n) => {
168
202
  if (isInput(n)) {
169
203
  return n
170
204
  }
171
205
  for (var i = n.children.length - 1; i >= 0; i--) {
172
- if (typeof n.children === 'string') {
206
+ if (typeof n.children === "string") {
173
207
  continue
174
208
  }
175
209
  const child = n.children[i];
@@ -185,59 +219,62 @@ const findLastInput = (n) => {
185
219
  };
186
220
 
187
221
  const secureIconDefault = {
188
- $el: 'div',
189
- if: '$activeStep === $lastStep()',
222
+ $el: "div",
223
+ if: "$activeStep === $lastStep()",
190
224
  attrs: {
191
- class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
225
+ class: "t-flex t-justify-center t-items-center t-text-sm t-text-gray-500",
192
226
  },
193
227
  children: [
194
228
  {
195
- $el: 'img',
229
+ $el: "img",
196
230
  attrs: {
197
- loading: 'lazy',
198
- alt: '',
231
+ loading: "lazy",
232
+ alt: "",
199
233
  style: {
200
- border: 0
234
+ border: 0,
201
235
  },
202
- width: '25',
203
- height: '25',
204
- src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
205
- }
236
+ width: "25",
237
+ height: "25",
238
+ src: "https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg",
239
+ },
206
240
  },
207
241
  {
208
- $el: 'span',
209
- children: 'Secure & Encrypted',
242
+ $el: "span",
243
+ children: "Secure & Encrypted",
210
244
  attrs: {
211
- class: 't-pl-2 t-pt-1 t-font-medium'
212
- }
213
- }
214
- ]
245
+ class: "t-pl-2 t-pt-1 t-font-medium",
246
+ },
247
+ },
248
+ ],
215
249
  };
216
250
 
217
251
  function secureIcon(updates) {
218
- return merge(
219
- secureIconDefault,
220
- updates
221
- )
252
+ return merge(secureIconDefault, updates)
222
253
  }
223
254
 
224
255
  function contactStepHeadline(updates) {
225
256
  return {
226
- $el: 'h3',
257
+ $el: "h3",
227
258
  children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL,
228
259
  attrs: {
229
- 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 || '')
230
- }
260
+ class:
261
+ "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" +
262
+ " " +
263
+ (updates.headlineClass || ""),
264
+ },
231
265
  }
232
266
  }
233
267
 
234
268
  function contactStepSubHeadline(updates) {
235
269
  return {
236
- $el: 'h5',
270
+ $el: "h5",
237
271
  children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL,
238
272
  attrs: {
239
- 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 || '')
240
- }
273
+ class:
274
+ "t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3" +
275
+ " " +
276
+ (updates.subheadlineClass || ""),
277
+ },
241
278
  }
242
279
  }
243
280
 
@@ -259,19 +296,19 @@ const TRUSTED_FORM_JS = `(function() {
259
296
 
260
297
  function trustedFormScript() {
261
298
  return {
262
- $el: 'script',
263
- if: '$activeStep === $lastStep()',
264
- children: TRUSTED_FORM_JS
299
+ $el: "script",
300
+ if: "$activeStep === $lastStep()",
301
+ children: TRUSTED_FORM_JS,
265
302
  }
266
303
  }
267
304
 
268
305
  const stepDefaults = (step, stepKey) => ({
269
- $el: 'section',
306
+ $el: "section",
270
307
  if: '$stepEnabled("' + step + '")',
271
308
  attrs: {
272
309
  hidden: '$activeStep !== "' + step + '"',
273
- key: stepKey ? stepKey : step
274
- }
310
+ key: stepKey ? stepKey : step,
311
+ },
275
312
  });
276
313
 
277
314
  function step(name, inputs, updates = {}) {
@@ -294,38 +331,32 @@ function step(name, inputs, updates = {}) {
294
331
  }
295
332
  }
296
333
 
297
- return merge(
298
- stepDefaults(name, stepKey),
299
- {
300
- children: [
301
- {
302
- $formkit: 'group',
303
- id: name,
304
- name: name,
305
- nextStepMap: nextStepMap,
306
- triggerRedirectMap: triggerRedirectMap,
307
- autoFocus: autoFocus,
308
- children: inputs
309
- }
310
- ]
311
- }
312
- )
334
+ return merge(stepDefaults(name, stepKey), {
335
+ children: [
336
+ {
337
+ $formkit: "group",
338
+ id: name,
339
+ name: name,
340
+ nextStepMap: nextStepMap,
341
+ triggerRedirectMap: triggerRedirectMap,
342
+ autoFocus: autoFocus,
343
+ children: inputs,
344
+ },
345
+ ],
346
+ })
313
347
  }
314
348
 
315
349
  function categoryAndZip(updates = {}) {
316
350
  return step(
317
- 'categoryAndZip',
318
- [
319
- zipcode(),
320
- category()
321
- ],
351
+ "categoryAndZip",
352
+ [zipcode(updates.scope, false, updates.input), category(updates.scope, false, updates.input)],
322
353
  updates
323
354
  )
324
355
  }
325
356
 
326
357
  function contactInfo(updates = {}) {
327
358
  return step(
328
- 'contactInfo',
359
+ "contactInfo",
329
360
  [
330
361
  contactStepHeadline(updates),
331
362
  contactStepSubHeadline(updates),
@@ -333,129 +364,122 @@ function contactInfo(updates = {}) {
333
364
  email(updates.scope),
334
365
  phone(updates.scope),
335
366
  TCPAConsent(updates.scope),
336
- secureIcon()
367
+ secureIcon(),
337
368
  ],
338
369
  { nextOnEnter: false }
339
370
  )
340
371
  }
341
372
 
342
373
  function firstAndLast(updates = {}) {
343
- return step(
344
- 'firstAndLast',
345
- [
346
- firstName(),
347
- lastName()
348
- ],
349
- updates
350
- )
374
+ return step("firstAndLast", [firstName(updates.scope), lastName(updates.scope)], updates)
351
375
  }
352
376
 
353
377
  const formNavigation = (updates = {}) => ({
354
- $el: 'div',
378
+ $el: "div",
355
379
  attrs: {
356
- class: 'step-nav'
380
+ class: "step-nav",
357
381
  },
358
382
  children: [
359
383
  {
360
- $formkit: 'button',
361
- name: 'back_button',
362
- onClick: '$setPreviousStep($prevStepFunc($get(form)))',
363
- children: 'Back',
384
+ $formkit: "button",
385
+ name: "back_button",
386
+ onClick: "$setPreviousStep($prevStepFunc($get(form)))",
387
+ children: "Back",
364
388
  style: {
365
- if: '$activeStep === $firstStep()',
366
- then: 'visibility: hidden;'
367
- }
389
+ if: "$activeStep === $firstStep()",
390
+ then: "visibility: hidden;",
391
+ },
368
392
  },
369
393
  {
370
- $formkit: 'button',
371
- name: 'next_button',
372
- onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
394
+ $formkit: "button",
395
+ name: "next_button",
396
+ onClick: "$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",
373
397
  children: {
374
- if: '$activeStep === $firstStep()',
375
- then: 'Start',
376
- else: 'Next'
398
+ if: "$activeStep === $firstStep()",
399
+ then: "Start",
400
+ else: "Next",
377
401
  },
378
402
  outerClass: {
379
- if: '$activeStep === $lastStep()',
380
- then: 't-hidden',
381
- else: ''
403
+ if: "$activeStep === $lastStep()",
404
+ then: "t-hidden",
405
+ else: "",
382
406
  },
383
407
  style: {
384
- if: '$activeStep === $lastStep()',
385
- then: 'display: none;'
386
- }
408
+ if: "$activeStep === $lastStep()",
409
+ then: "display: none;",
410
+ },
387
411
  },
388
412
  {
389
- $formkit: 'submit',
390
- name: 'submit_button',
391
- label: updates.submitLabel || 'Submit',
392
- if: '$activeStep === $lastStep()',
413
+ $formkit: "submit",
414
+ name: "submit_button",
415
+ label: updates.submitLabel || "Submit",
416
+ if: "$activeStep === $lastStep()",
393
417
  style: {
394
- if: '$activeStep !== $lastStep()',
395
- then: 'display: none;'
396
- }
397
- }
398
- ]
418
+ if: "$activeStep !== $lastStep()",
419
+ then: "display: none;",
420
+ },
421
+ },
422
+ ],
399
423
  });
400
424
 
401
425
  const formDetails = () => ({
402
- $el: 'pre',
426
+ $el: "pre",
403
427
  if: '$urlParam("fdbg", "") == 1',
404
428
  children: [
405
429
  {
406
- $el: 'pre',
407
- children: '$stringify( $get(form).value )',
430
+ $el: "pre",
431
+ children: "$stringify( $get(form).value )",
408
432
  attrs: {
409
- class: 't-text-xs',
410
- style: 'overflow: scroll'
411
- }
433
+ class: "t-text-xs",
434
+ style: "overflow: scroll",
435
+ },
412
436
  },
413
437
  {
414
- $el: 'pre',
415
- children: ['activeStep: ', '$activeStep'],
438
+ $el: "pre",
439
+ children: ["activeStep: ", "$activeStep"],
416
440
  attrs: {
417
- class: 't-text-xs',
418
- style: 'overflow: scroll'
419
- }
441
+ class: "t-text-xs",
442
+ style: "overflow: scroll",
443
+ },
420
444
  },
421
445
  {
422
- $el: 'pre',
423
- children: ['stepHistory: ', '$stepHistory'],
446
+ $el: "pre",
447
+ children: ["stepHistory: ", "$stepHistory"],
424
448
  attrs: {
425
- class: 't-text-xs',
426
- style: 'overflow: scroll'
427
- }
449
+ class: "t-text-xs",
450
+ style: "overflow: scroll",
451
+ },
428
452
  },
429
453
  {
430
- $el: 'pre',
431
- children: ['stepQueue: ', '$stepQueue'],
454
+ $el: "pre",
455
+ children: ["stepQueue: ", "$stepQueue"],
432
456
  attrs: {
433
- class: 't-text-xs',
434
- style: 'overflow: scroll'
435
- }
457
+ class: "t-text-xs",
458
+ style: "overflow: scroll",
459
+ },
436
460
  },
437
461
  {
438
- $el: 'pre',
439
- children: ['steps: ', '$stepKeys()'],
462
+ $el: "pre",
463
+ children: ["steps: ", "$stepKeys()"],
440
464
  attrs: {
441
- class: 't-text-xs',
442
- style: 'overflow: scroll'
443
- }
444
- }
445
- ]
465
+ class: "t-text-xs",
466
+ style: "overflow: scroll",
467
+ },
468
+ },
469
+ ],
446
470
  });
447
471
 
448
472
  const formPropDefaults = {
449
- type: 'form',
450
- id: 'form',
451
- config: { validationVisibility: 'submit' },
473
+ type: "form",
474
+ id: "form",
475
+ config: { validationVisibility: "submit" },
452
476
  onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
453
- plugins: '$plugins',
477
+ plugins: "$plugins",
454
478
  actions: false,
455
- anchorElement: 'form-anchor',
479
+ anchorElement: "form-anchor",
456
480
  useLocalStorage: true,
457
481
  prepop: {
458
- fromURL: true
482
+ fromURL: true,
459
483
  },
460
484
  errorCodes: {
461
485
  403: { message: "An Error Occurred", abort: false },
@@ -463,13 +487,11 @@ const formPropDefaults = {
463
487
  429: "An Error Occurred",
464
488
  504: { message: "An Error Occurred", abort: false },
465
489
  },
466
- formClass: '!t-max-w-[40rem]'
490
+ formClass: "!t-max-w-[40rem]",
467
491
  };
468
492
 
469
493
  function filterMapByKey(obj, keyList) {
470
- return Object.fromEntries(
471
- Object.entries(obj).filter(([key]) => keyList.includes(key))
472
- );
494
+ return Object.fromEntries(Object.entries(obj).filter(([key]) => keyList.includes(key)))
473
495
  }
474
496
 
475
497
  // export function filteredNextStepsMapLegal(keyList) {
@@ -479,10 +501,7 @@ function filterMapByKey(obj, keyList) {
479
501
  // }
480
502
 
481
503
  function formProps(updates) {
482
- const props = merge(
483
- formPropDefaults,
484
- updates
485
- );
504
+ const props = merge(formPropDefaults, updates);
486
505
  if (props.formId && !props.name) {
487
506
  props.name = props.formId;
488
507
  }
@@ -492,13 +511,10 @@ function formProps(updates) {
492
511
  const metaDefaults = {};
493
512
 
494
513
  function metaProps(updates) {
495
- const data = merge(
496
- metaDefaults,
497
- updates
498
- );
514
+ const data = merge(metaDefaults, updates);
499
515
  return {
500
- type: 'meta',
501
- data
516
+ type: "meta",
517
+ data,
502
518
  }
503
519
  }
504
520
 
@@ -518,168 +534,175 @@ function defaultMetaPropsLegal(tolps = null) {
518
534
  defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_LEGAL,
519
535
  finalHeadlines: finalHeadlines,
520
536
  defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_LEGAL,
521
- finalSubHeadlines: finalSubHeadlines
537
+ finalSubHeadlines: finalSubHeadlines,
522
538
  })
523
539
  }
524
540
 
525
541
  const formAnchorDefaults = {
526
- $el: 'div',
542
+ $el: "div",
527
543
  children: [
528
544
  {
529
- $el: 'div',
545
+ $el: "div",
530
546
  attrs: {
531
- id: 'form-anchor',
532
- class: 't-absolute',
533
- style: { top: '-30px', left: 0 }
534
- }
535
- }
547
+ id: "form-anchor",
548
+ class: "t-absolute",
549
+ style: { top: "-30px", left: 0 },
550
+ },
551
+ },
536
552
  ],
537
553
  attrs: {
538
- class: 't-relative'
539
- }
554
+ class: "t-relative",
555
+ },
540
556
  };
541
557
 
542
558
  function formAnchor(updates) {
543
- return merge(
544
- formAnchorDefaults,
545
- updates
546
- )
559
+ return merge(formAnchorDefaults, updates)
547
560
  }
548
561
 
549
562
  function headlineDefaults(updates = {}) {
550
563
  return {
551
- $el: 'h1',
564
+ $el: "h1",
552
565
  attrs: {
553
- 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 || '')
554
- }
566
+ class:
567
+ "t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3" +
568
+ " " +
569
+ (updates.headlineClass || ""),
570
+ },
555
571
  }
556
572
  }
557
573
 
558
574
  function headline(updates = {}) {
559
- return merge(
560
- headlineDefaults(updates),
561
- updates
562
- )
575
+ return merge(headlineDefaults(updates), updates)
563
576
  }
564
577
 
565
578
  function defaultHeadline() {
566
579
  return headline({
567
580
  children: '$urlParam("hl", "Start Here For a Free Consultation")',
568
- if: '$activeStep === $firstStep()'
581
+ if: "$activeStep === $firstStep()",
569
582
  })
570
583
  }
571
584
 
572
585
  function subHeadlineDefaults(updates = {}) {
573
586
  return {
574
- $el: 'h3',
587
+ $el: "h3",
575
588
  attrs: {
576
- 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 || '')
577
- }
589
+ class:
590
+ "t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10" +
591
+ " " +
592
+ (updates.subheadlineClass || ""),
593
+ },
578
594
  }
579
595
  }
580
596
 
581
597
  function subHeadline(updates = {}) {
582
- return merge(
583
- subHeadlineDefaults(updates),
584
- updates
585
- )
598
+ return merge(subHeadlineDefaults(updates), updates)
586
599
  }
587
600
 
588
601
  function defaultSubHeadline() {
589
602
  return subHeadline({
590
603
  children: '$urlParam("shl", "Our Service is Fast and Free!")',
591
- if: '$activeStep === $firstStep()'
604
+ if: "$activeStep === $firstStep()",
592
605
  })
593
606
  }
594
607
 
595
608
  const hiddenInputsBase = [
596
609
  {
597
- $formkit: 'hidden',
610
+ $formkit: "hidden",
598
611
  name: "gclid",
599
- value: null
612
+ value: null,
600
613
  },
601
614
  {
602
- $formkit: 'hidden',
615
+ $formkit: "hidden",
603
616
  name: "campaignid",
604
- value: null
617
+ value: null,
605
618
  },
606
619
  {
607
- $formkit: 'hidden',
620
+ $formkit: "hidden",
608
621
  name: "s",
609
- value: null
610
- }
622
+ value: null,
623
+ },
611
624
  ];
612
625
 
613
626
  const hiddenInputsLegal = [
614
627
  {
615
- $formkit: 'hidden',
628
+ $formkit: "hidden",
616
629
  name: "vertical",
617
- value: "Legal"
630
+ value: "Legal",
618
631
  },
619
632
  {
620
- $formkit: 'hidden',
633
+ $formkit: "hidden",
621
634
  name: "TCPA_Language",
622
- value: "$meta.tcpaLanguage"
635
+ value: "$meta.tcpaLanguage",
623
636
  },
624
- ...hiddenInputsBase
637
+ ...hiddenInputsBase,
625
638
  ];
626
639
 
627
640
  const TOLPCommentsPlaceholders = {
628
- 'Adoption': 'Example: "I need help with adoption forms"',
629
- 'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
630
- '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"',
631
- 'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
632
- 'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
633
- 'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
634
- 'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
635
- 'Child Custody': 'Example: "Need help getting custody"',
636
- 'Child Support': 'Example: "Issues with child support payments"',
637
- 'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
638
- 'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
639
- 'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
640
- 'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
641
- 'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
642
- 'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
643
- 'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
644
- 'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
645
- 'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
646
- 'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
647
- 'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
648
- 'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
649
- 'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
650
- 'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
651
- 'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
652
- 'Guardianship': 'Example: "I need help with guardianship documents"',
653
- 'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
654
- 'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
655
- 'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
656
- 'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
657
- 'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
658
- 'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
659
- 'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
660
- 'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
661
- 'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
662
- 'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
663
- 'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
664
- '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"',
665
- 'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
666
- 'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
667
- 'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
668
- 'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
669
- 'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
670
- 'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
671
- 'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
672
- 'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
673
- '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"',
674
- 'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
675
- 'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
676
- 'Unemployment': 'Example: "I need help filing for unemployment benefits"',
677
- 'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
678
- 'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
679
- 'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
680
- 'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
681
- 'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
682
- 'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
641
+ Adoption: 'Example: "I need help with adoption forms"',
642
+ "Asbestos and Mesothelioma": 'Example: "I was exposed to asbestos at work and would like to file a claim"',
643
+ "Auto and Car Accidents":
644
+ 'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',
645
+ Bankruptcy: 'Example: "I need help filing for bankruptcy"',
646
+ "Birth Certificate and Name Change": 'Example: "Just married and would like to change my last name"',
647
+ "Business Lawyers": 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
648
+ "Child Custody and Support": 'Example: "Need help getting custody" or "Issues with child support payments"',
649
+ "Child Custody": 'Example: "Need help getting custody"',
650
+ "Child Support": 'Example: "Issues with child support payments"',
651
+ "Civil Rights and Discrimination": 'Example: "Police brutality" or "Coworker keeps harassing me"',
652
+ "Civil Lawsuit":
653
+ 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
654
+ "File a Lawsuit": 'Example: "A contractor took my money and never completed the job"',
655
+ "Defend a Lawsuit": 'Example: "I am being sued by a neighbor"',
656
+ "Consumer Lawyers":
657
+ 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
658
+ "Copyrights and Trademarks": 'Example: "I would like to register a trademark or copyright a name"',
659
+ "Criminal and Felony":
660
+ 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
661
+ "Debt and Collections": 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
662
+ "Divorce and Separation": 'Example: "I would like to file for an uncontested divorce"',
663
+ "DUI and DWI": 'Example: "I was arrested for DUI and need legal defense"',
664
+ "Elder Law": 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
665
+ "Employment and Workplace": 'Example: "I was injured while on the job" or "My company is discriminating against me"',
666
+ Expungement: 'Example: "I would like to file for an expungement and clear my record"',
667
+ "Family Issues": 'Example: "I need help with guardianship" or "I need a simple will created"',
668
+ Foreclosure: 'Example: "I need help to avoid foreclosure on my house"',
669
+ Guardianship: 'Example: "I need help with guardianship documents"',
670
+ "Harassment and Discrimination": 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
671
+ "Sexual Harassment": 'Example: "I am being sexually harassed by a coworker"',
672
+ "Workplace Harassment": 'Example: "My coworker is being aggressive towards me"',
673
+ "Non-Workplace Harassment": 'Example: "My neighbor is harassing me"',
674
+ "Workplace Discrimination": 'Example: "I am being discriminated at work based on my age"',
675
+ "Non-Workplace Discrimination": 'Example: "I am being discriminated against by a local official"',
676
+ "Identity Theft": 'Example: "Someone stole my identity and I need help fixing the issue"',
677
+ "Immigration and Visas": 'Example: "I need help filing for a visa" or "Help with a green card"',
678
+ Insurance: 'Example: "I need help filing an insurance claim for damage to my house"',
679
+ "Landlord and Tenant":
680
+ 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
681
+ "Lemon Law": 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
682
+ "Long Term Disability":
683
+ 'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',
684
+ "Medical Malpractice": 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
685
+ "Patents and Intellectual Property": 'Example: "I would like to file for a patent" or "I need to copyright a name"',
686
+ "Personal Injury": 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
687
+ "Power of Attorney": 'Example: "I need help with a limited or general power of attorney"',
688
+ "Probate and Estates":
689
+ 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
690
+ "Product Liability": 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
691
+ "Property Damage": 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
692
+ "Real Estate":
693
+ 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
694
+ "Social Security Disability and Insurance":
695
+ 'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',
696
+ "Tax and IRS": 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
697
+ "Traffic and Tickets":
698
+ 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
699
+ Unemployment: 'Example: "I need help filing for unemployment benefits"',
700
+ "Victim of a Crime": 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
701
+ "Wills and Trusts": 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
702
+ "Workers Compensation": 'Example: "I was injured at work and would like to file for workers compensation benefits"',
703
+ "Wrongful Death": 'Example: "A family member was killed on the job and we need legal representation"',
704
+ "Wrongful Termination": 'Example: "I was fired by my employer without cause"',
705
+ "Not Sure or Other": 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"',
683
706
  };
684
707
 
685
708
  const TOLPFinalHeadlines = {
@@ -687,49 +710,64 @@ const TOLPFinalHeadlines = {
687
710
  };
688
711
 
689
712
  const TOLPFinalSubHeadlines = {
690
- 'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
713
+ Adoption: "You may benefit from speaking with an adoption professional. Please verify your contact information.",
691
714
  // 'Asbestos and Mesothelioma': '',
692
- 'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
693
- 'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
715
+ "Auto and Car Accidents":
716
+ "You may benefit from speaking with an accident professional. Please verify your contact information.",
717
+ Bankruptcy: "You may benefit from speaking with a bankruptcy professional. Please verify your contact information.",
694
718
  // 'Birth Certificate and Name Change': '',
695
719
  // 'Business Lawyers': '',
696
720
  // 'Child Custody and Support': '',
697
721
  // 'Civil Rights and Discrimination': '',
698
722
  // 'Civil Lawsuit': '',
699
723
  // 'Consumer Lawyers': '',
700
- 'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
724
+ "Copyrights and Trademarks":
725
+ "You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.",
701
726
  // 'Criminal and Felony': '',
702
727
  // 'Debt and Collections': '',
703
- 'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
704
- 'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
705
- 'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
728
+ "Divorce and Separation":
729
+ "You may benefit from speaking with a divorce professional. Please verify your contact information.",
730
+ "DUI and DWI": "You may benefit from speaking with a DUI professional. Please verify your contact information.",
731
+ "Elder Law": "You may benefit from speaking with an elder law professional. Please verify your contact information.",
706
732
  // 'Employment and Workplace': '',
707
733
  // 'Expungement': '',
708
734
  // 'Family Issues': '',
709
- 'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
710
- 'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
735
+ Foreclosure: "You may benefit from speaking with a foreclosure professional. Please verify your contact information.",
736
+ Guardianship:
737
+ "You may benefit from speaking with a guardianship professional. Please verify your contact information.",
711
738
  // 'Harassment and Discrimination': '',
712
739
  // 'Identity Theft': '',
713
- 'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
740
+ "Immigration and Visas":
741
+ "You may benefit from speaking with a immigration professional. Please verify your contact information.",
714
742
  // 'Insurance': '',
715
- 'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
743
+ "Landlord and Tenant":
744
+ "You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.",
716
745
  // 'Lemon Law': '',
717
- 'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
718
- 'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
719
- 'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
720
- 'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
746
+ "Long Term Disability":
747
+ "You may benefit from speaking with a disability legal professional. Please verify your contact information.",
748
+ "Medical Malpractice":
749
+ "You may benefit from speaking with a malpractice professional. Please verify your contact information.",
750
+ "Patents and Intellectual Property":
751
+ "You may benefit from speaking with a patent professional. Please verify your contact information.",
752
+ "Personal Injury":
753
+ "You may benefit from speaking with a personal injury professional. Please verify your contact information.",
721
754
  // 'Power of Attorney': '',
722
- 'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
755
+ "Probate and Estates":
756
+ "You may benefit from speaking with a probate and estate professional. Please verify your contact information.",
723
757
  // 'Product Liability': '',
724
758
  // 'Property Damage': '',
725
- 'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
726
- 'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
727
- 'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
759
+ "Real Estate":
760
+ "You may benefit from speaking with a real estate professional. Please verify your contact information.",
761
+ "Social Security Disability and Insurance":
762
+ "You may benefit from speaking with an SSDI professional. Please verify your contact information.",
763
+ "Tax and IRS": "You may benefit from speaking with a tax professional. Please verify your contact information.",
728
764
  // 'Traffic and Tickets': '',
729
- 'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
765
+ Unemployment:
766
+ "You may benefit from speaking with an unemployment professional. Please verify your contact information.",
730
767
  // 'Victim of a Crime': '',
731
768
  // 'Wills and Trusts': '',
732
- 'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
769
+ "Workers Compensation":
770
+ "You may benefit from speaking with a workers compensation professional. Please verify your contact information.",
733
771
  // 'Wrongful Death': '',
734
772
  // 'Wrongful Termination': '',
735
773
  // 'Not Sure or Other': ''