bhl-forms 0.7.3 → 0.7.4

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