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