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