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