bhl-forms 0.6.15 → 0.7.0
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 +1757 -1759
- package/dist/bhl-forms.iife.js +4 -4
- package/dist/bhl-forms.modern.es.js +2804 -2811
- package/dist/bhl-forms.modern.iife.js +6 -6
- package/dist/bhl-forms.modern.umd.js +6 -6
- package/dist/bhl-forms.umd.js +4 -4
- package/dist/forms/accidentsAndInjuries.es.js +278 -215
- package/dist/forms/accidentsAndInjuries.iife.js +1 -1
- package/dist/forms/accidentsAndInjuries.json +1 -1
- package/dist/forms/appraisals.es.js +16 -7
- package/dist/forms/appraisals.iife.js +1 -1
- package/dist/forms/business.es.js +288 -226
- package/dist/forms/business.iife.js +1 -1
- package/dist/forms/business.json +1 -1
- package/dist/forms/childAndFamily.es.js +271 -214
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/childAndFamilySingle.es.js +614 -545
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -1
- package/dist/forms/civilLawsuit.es.js +608 -541
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/coins.es.js +16 -7
- package/dist/forms/coins.iife.js +1 -1
- package/dist/forms/contracts.es.js +275 -217
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/contracts.json +1 -1
- package/dist/forms/criminal.es.js +631 -562
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/divorce.es.js +614 -545
- package/dist/forms/divorce.iife.js +1 -1
- package/dist/forms/divorce.json +1 -1
- package/dist/forms/employmentAndWorkplace.es.js +555 -496
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -1
- package/dist/forms/generalHomeImprovement.es.js +3224 -0
- package/dist/forms/generalHomeImprovement.iife.js +1 -0
- package/dist/forms/generalHomeImprovement.json +1 -0
- package/dist/forms/generalLegal.es.js +274 -216
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalJustAnswer.es.js +4534 -0
- package/dist/forms/generalLegalJustAnswer.iife.js +1 -0
- package/dist/forms/generalLegalJustAnswer.json +1 -0
- package/dist/forms/generalLegalPopUnder.es.js +275 -217
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderSingle.es.js +645 -573
- package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderSingle.json +1 -1
- package/dist/forms/generalLegalSingle.es.js +645 -573
- package/dist/forms/generalLegalSingle.iife.js +1 -1
- package/dist/forms/generalLegalSingle.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +137 -130
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYouConsultation.es.js +645 -573
- package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
- package/dist/forms/generalLegalThankYouConsultation.json +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +271 -214
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.json +1 -1
- package/dist/forms/landlordTenant.es.js +287 -230
- package/dist/forms/landlordTenant.iife.js +1 -1
- package/dist/forms/landlordTenant.json +1 -1
- package/dist/forms/malpractice.es.js +276 -217
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/malpractice.json +1 -1
- package/dist/forms/mechanics.es.js +171 -165
- package/dist/forms/mechanics.iife.js +1 -1
- package/dist/forms/mechanics.json +1 -1
- package/dist/forms/patentsAndIP.es.js +617 -548
- package/dist/forms/patentsAndIP.iife.js +1 -1
- package/dist/forms/patentsAndIP.json +1 -1
- package/dist/forms/realEstate.es.js +272 -215
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/repossession.es.js +275 -217
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/repossession.json +1 -1
- package/dist/forms/ssdi.es.js +139 -138
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -1
- package/dist/forms/testForm.es.js +55 -52
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testRedirects.es.js +28 -22
- package/dist/forms/testRedirects.iife.js +1 -1
- package/dist/forms/vets.es.js +16 -7
- package/dist/forms/vets.iife.js +1 -1
- package/dist/forms/willsAndTrusts.es.js +272 -213
- package/dist/forms/willsAndTrusts.iife.js +1 -1
- package/dist/forms/willsAndTrusts.json +1 -1
- package/package.json +3 -3
|
@@ -11,14 +11,15 @@ function RedirectUrlComments(domain, vertical, category) {
|
|
|
11
11
|
return RedirectUrl(domain, vertical, category) + '&Comments=${properties.Comments}'
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your issue in a few words:';
|
|
15
|
+
const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC = '$getKey($meta, "commentsPlaceholders." + $get(Category).value, $meta.defaultCommentsPlaceholder)';
|
|
15
16
|
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
17
|
+
const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
|
|
18
|
+
const DEFAULT_FINAL_HEADLINE_LEGAL = 'Submit Your Case';
|
|
19
|
+
const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
|
|
20
|
+
const DEFAULT_FINAL_SUBHEADLINE_LEGAL = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
|
|
21
|
+
const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
|
|
22
|
+
const TCPA_LANGUAGE_LEGAL = "By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.";
|
|
22
23
|
|
|
23
24
|
const radio = (updates) => {
|
|
24
25
|
if (updates.name && !updates.id) {
|
|
@@ -128,32 +129,6 @@ const verticalDate = (updates) => {
|
|
|
128
129
|
return date(updates)
|
|
129
130
|
};
|
|
130
131
|
|
|
131
|
-
|
|
132
|
-
const autoDamageFromAccident$1 = (scope) => verticalYesNoRadio({
|
|
133
|
-
name: scope ? scope + ':' + 'Auto_Damage_From_Accident' : 'Auto_Damage_From_Accident',
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
const wouldLikeMVAConsultation$1 = (scope) => verticalYesNoRadio({
|
|
137
|
-
name: scope ? scope + ':' + 'Would_Like_MVA_Consultation' : 'Would_Like_MVA_Consultation',
|
|
138
|
-
help: "Note: we'll still connect you for a mechanic.",
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
const atFaultCenter = (scope) => verticalYesNoRadio({
|
|
142
|
-
name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
const comments = (updates, scope) => textArea(
|
|
146
|
-
merge({
|
|
147
|
-
name: scope ? scope + ':' + 'Comments' : 'Comments',
|
|
148
|
-
label: 'Please briefly describe your situation in a few words:',
|
|
149
|
-
placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
|
|
150
|
-
}, updates)
|
|
151
|
-
);
|
|
152
|
-
|
|
153
|
-
const doctorTreatmentCenter = (scope) => verticalYesNoRadio({
|
|
154
|
-
name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
|
|
155
|
-
});
|
|
156
|
-
|
|
157
132
|
const email = (scope) => sbsText({
|
|
158
133
|
$formkit: 'email',
|
|
159
134
|
name: scope ? scope + ':' + 'Email' : 'Email',
|
|
@@ -169,7 +144,6 @@ const email = (scope) => sbsText({
|
|
|
169
144
|
});
|
|
170
145
|
|
|
171
146
|
const firstName = (scope) => sbsText({
|
|
172
|
-
$formkit: 'text',
|
|
173
147
|
label: 'First Name:',
|
|
174
148
|
placeholder: 'First',
|
|
175
149
|
name: scope ? scope + ':' + 'First_Name' : 'First_Name',
|
|
@@ -179,16 +153,7 @@ const firstName = (scope) => sbsText({
|
|
|
179
153
|
}
|
|
180
154
|
});
|
|
181
155
|
|
|
182
|
-
const haveAttorneyCenter = (scope) => verticalYesNoRadio({
|
|
183
|
-
name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
const incidentDateCenter = (scope) => verticalDate({
|
|
187
|
-
name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
|
|
188
|
-
});
|
|
189
|
-
|
|
190
156
|
const lastName = (scope) => sbsText({
|
|
191
|
-
$formkit: 'text',
|
|
192
157
|
label: 'Last Name:',
|
|
193
158
|
placeholder: 'Last',
|
|
194
159
|
name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
|
|
@@ -198,21 +163,6 @@ const lastName = (scope) => sbsText({
|
|
|
198
163
|
}
|
|
199
164
|
});
|
|
200
165
|
|
|
201
|
-
const mechanicsCrossSells = () => radio({
|
|
202
|
-
id: 'Mechanics_CrossSells',
|
|
203
|
-
name: 'Mechanics_CrossSells',
|
|
204
|
-
// label: 'Click all that apply (optional):',
|
|
205
|
-
fieldsetClass: '$reset',
|
|
206
|
-
wrapperClass: 't-mb-2',
|
|
207
|
-
optionsClass: 't-pt-3',
|
|
208
|
-
legendClass: '',
|
|
209
|
-
validation: null,
|
|
210
|
-
options: {
|
|
211
|
-
// 'Auto and Car Accidents': "I was involved in a car accident",
|
|
212
|
-
'Auto Insurance': "I'd like to save on my auto insurance (optional)"
|
|
213
|
-
},
|
|
214
|
-
});
|
|
215
|
-
|
|
216
166
|
const phone = (scope) => sbsText({
|
|
217
167
|
$formkit: 'tel',
|
|
218
168
|
name: scope ? scope + ':' + 'Primary_Phone' : 'Primary_Phone',
|
|
@@ -231,6 +181,73 @@ const phone = (scope) => sbsText({
|
|
|
231
181
|
helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
|
|
232
182
|
});
|
|
233
183
|
|
|
184
|
+
const zipcodeCenter = (updates = {}, scope) => text({
|
|
185
|
+
placeholder: '#####',
|
|
186
|
+
help: updates.help ?? "We try to match you with local help",
|
|
187
|
+
name: scope ? scope + ':' + 'Zip' : 'Zip',
|
|
188
|
+
maxlength: 5,
|
|
189
|
+
inputmode: "numeric",
|
|
190
|
+
autocomplete: 'postal-code',
|
|
191
|
+
validation: 'required|matches:/^[0-9]{5}$/',
|
|
192
|
+
validationMessages: {
|
|
193
|
+
required: 'Zip Code is required',
|
|
194
|
+
matches: 'Invalid Zip Code'
|
|
195
|
+
},
|
|
196
|
+
wrapperClass: 't-flex t-justify-center',
|
|
197
|
+
messagesClass: 't-flex t-justify-center',
|
|
198
|
+
inputClass: 't-text-center',
|
|
199
|
+
helpClass: 't-mt-2.5 !t-text-sm t-text-center'
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
const autoDamageFromAccident$1 = (scope) => verticalYesNoRadio({
|
|
204
|
+
name: scope ? scope + ':' + 'Auto_Damage_From_Accident' : 'Auto_Damage_From_Accident',
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
const wouldLikeMVAConsultation$1 = (scope) => verticalYesNoRadio({
|
|
208
|
+
name: scope ? scope + ':' + 'Would_Like_MVA_Consultation' : 'Would_Like_MVA_Consultation',
|
|
209
|
+
help: "Note: we'll still connect you for a mechanic.",
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
const atFaultCenter = (scope) => verticalYesNoRadio({
|
|
213
|
+
name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
const comments = (updates, scope) => textArea(
|
|
217
|
+
merge({
|
|
218
|
+
name: scope ? scope + ':' + 'Comments' : 'Comments',
|
|
219
|
+
label: 'Please briefly describe your situation in a few words:',
|
|
220
|
+
placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
|
|
221
|
+
}, updates)
|
|
222
|
+
);
|
|
223
|
+
|
|
224
|
+
const doctorTreatmentCenter = (scope) => verticalYesNoRadio({
|
|
225
|
+
name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
const haveAttorneyCenter = (scope) => verticalYesNoRadio({
|
|
229
|
+
name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
const incidentDateCenter = (scope) => verticalDate({
|
|
233
|
+
name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
const mechanicsCrossSells = () => radio({
|
|
237
|
+
id: 'Mechanics_CrossSells',
|
|
238
|
+
name: 'Mechanics_CrossSells',
|
|
239
|
+
// label: 'Click all that apply (optional):',
|
|
240
|
+
fieldsetClass: '$reset',
|
|
241
|
+
wrapperClass: 't-mb-2',
|
|
242
|
+
optionsClass: 't-pt-3',
|
|
243
|
+
legendClass: '',
|
|
244
|
+
validation: null,
|
|
245
|
+
options: {
|
|
246
|
+
// 'Auto and Car Accidents': "I was involved in a car accident",
|
|
247
|
+
'Auto Insurance': "I'd like to save on my auto insurance (optional)"
|
|
248
|
+
},
|
|
249
|
+
});
|
|
250
|
+
|
|
234
251
|
const primaryInjuryCenter = (scope) => col2RadioCenter({
|
|
235
252
|
name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
|
|
236
253
|
options: [
|
|
@@ -264,24 +281,6 @@ const TCPAConsent = (scope) => ({
|
|
|
264
281
|
}
|
|
265
282
|
});
|
|
266
283
|
|
|
267
|
-
const zipcodeCenter = (updates = {}, scope) => text({
|
|
268
|
-
placeholder: '#####',
|
|
269
|
-
help: updates.help ?? "We try to match you with local legal help",
|
|
270
|
-
name: scope ? scope + ':' + 'Zip' : 'Zip',
|
|
271
|
-
maxlength: 5,
|
|
272
|
-
inputmode: "numeric",
|
|
273
|
-
autocomplete: 'postal-code',
|
|
274
|
-
validation: 'required|matches:/^[0-9]{5}$/',
|
|
275
|
-
validationMessages: {
|
|
276
|
-
required: 'Zip Code is required',
|
|
277
|
-
matches: 'Invalid Zip Code'
|
|
278
|
-
},
|
|
279
|
-
wrapperClass: 't-flex t-justify-center',
|
|
280
|
-
messagesClass: 't-flex t-justify-center',
|
|
281
|
-
inputClass: 't-text-center',
|
|
282
|
-
helpClass: 't-mt-2.5 !t-text-sm t-text-center'
|
|
283
|
-
});
|
|
284
|
-
|
|
285
284
|
const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
|
|
286
285
|
const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
|
|
287
286
|
|
|
@@ -367,7 +366,7 @@ function verticalStepSubHeadline(updates) {
|
|
|
367
366
|
function commentsStepHeadline(updates) {
|
|
368
367
|
return {
|
|
369
368
|
$el: 'h3',
|
|
370
|
-
children: updates.headline || 'Additional
|
|
369
|
+
children: updates.headline || 'Additional Details',
|
|
371
370
|
attrs: {
|
|
372
371
|
class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
|
|
373
372
|
}
|
|
@@ -387,7 +386,7 @@ function firstAndLastStepHeadline(updates) {
|
|
|
387
386
|
function contactStepHeadline(updates) {
|
|
388
387
|
return {
|
|
389
388
|
$el: 'h3',
|
|
390
|
-
children: updates.headline ||
|
|
389
|
+
children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL,
|
|
391
390
|
attrs: {
|
|
392
391
|
class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
|
|
393
392
|
}
|
|
@@ -397,7 +396,7 @@ function contactStepHeadline(updates) {
|
|
|
397
396
|
function contactStepSubHeadline(updates) {
|
|
398
397
|
return {
|
|
399
398
|
$el: 'h5',
|
|
400
|
-
children: updates.subheadline ||
|
|
399
|
+
children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL,
|
|
401
400
|
attrs: {
|
|
402
401
|
class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3' + ' ' + (updates.subheadlineClass || '')
|
|
403
402
|
}
|
|
@@ -437,10 +436,16 @@ const stepDefaults = (step, stepKey) => ({
|
|
|
437
436
|
}
|
|
438
437
|
});
|
|
439
438
|
|
|
440
|
-
function step(name, inputs,
|
|
441
|
-
|
|
442
|
-
nextOnEnter = true
|
|
443
|
-
|
|
439
|
+
function step(name, inputs, updates = {}) {
|
|
440
|
+
const {
|
|
441
|
+
nextOnEnter = true,
|
|
442
|
+
nextOnInput = false,
|
|
443
|
+
stepKey = undefined,
|
|
444
|
+
nextStepMap = undefined,
|
|
445
|
+
triggerRedirectMap = undefined,
|
|
446
|
+
autoFocus = undefined,
|
|
447
|
+
} = updates;
|
|
448
|
+
|
|
444
449
|
if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
|
|
445
450
|
const lastInput = findLastInput(inputs[inputs.length - 1]);
|
|
446
451
|
if (lastInput && nextOnEnter === true) {
|
|
@@ -460,6 +465,7 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
|
|
|
460
465
|
id: name,
|
|
461
466
|
name: name,
|
|
462
467
|
nextStepMap: nextStepMap,
|
|
468
|
+
triggerRedirectMap: triggerRedirectMap,
|
|
463
469
|
autoFocus: autoFocus,
|
|
464
470
|
children: inputs
|
|
465
471
|
}
|
|
@@ -470,64 +476,23 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
|
|
|
470
476
|
|
|
471
477
|
// Single question step
|
|
472
478
|
function sqstep(name, input, defaultHeadline, updates = {}) {
|
|
479
|
+
if (typeof updates.nextOnInput === 'undefined') {
|
|
480
|
+
updates.nextOnInput = true;
|
|
481
|
+
}
|
|
482
|
+
|
|
473
483
|
return step(
|
|
474
484
|
name,
|
|
475
485
|
[
|
|
476
486
|
verticalStepHeadline({ headline: updates.headline ?? defaultHeadline, headlineClass: updates.headlineClass }),
|
|
477
487
|
...Array.isArray(input) ? input : [input],
|
|
478
488
|
],
|
|
479
|
-
updates
|
|
480
|
-
typeof updates.nextOnInput === 'undefined' ? true : updates.nextOnInput,
|
|
481
|
-
updates.stepKey,
|
|
482
|
-
updates.nextStepMap
|
|
483
|
-
)
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
function autoDamageFromAccident(updates = {}) {
|
|
487
|
-
return step(
|
|
488
|
-
'autoDamageFromAccident',
|
|
489
|
-
[
|
|
490
|
-
autoDamageFromAccident$1(updates.scope),
|
|
491
|
-
],
|
|
492
|
-
updates.nextOnEnter,
|
|
493
|
-
updates.nextOnInput,
|
|
494
|
-
updates.stepKey,
|
|
495
|
-
updates.nextStepMap
|
|
496
|
-
)
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
function wouldLikeMVAConsultation(updates = {}) {
|
|
500
|
-
return step(
|
|
501
|
-
'wouldLikeMVAConsultation',
|
|
502
|
-
[
|
|
503
|
-
verticalStepHeadline({
|
|
504
|
-
headline: updates.headline ?? 'Do you want a free legal evaluation?',
|
|
505
|
-
}),
|
|
506
|
-
verticalStepSubHeadline({
|
|
507
|
-
subheadline: updates.subheadline ?? 'You may be entitled to compensation for your accident.',
|
|
508
|
-
subheadlineClass: '!t-text-blue-900 !t-font-semibold'
|
|
509
|
-
}),
|
|
510
|
-
{
|
|
511
|
-
$formkit: 'hidden',
|
|
512
|
-
name: "CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem",
|
|
513
|
-
id: "CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem",
|
|
514
|
-
value: "Auto and Car Accidents"
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
$formkit: 'hidden',
|
|
518
|
-
name: "CrossSell:Auto_and_Car_Accidents:vertical",
|
|
519
|
-
value: "Legal"
|
|
520
|
-
},
|
|
521
|
-
wouldLikeMVAConsultation$1(),
|
|
522
|
-
],
|
|
523
|
-
updates.nextOnEnter,
|
|
524
|
-
updates.nextOnInput,
|
|
525
|
-
updates.stepKey,
|
|
526
|
-
updates.nextStepMap
|
|
489
|
+
updates
|
|
527
490
|
)
|
|
528
491
|
}
|
|
529
492
|
|
|
530
493
|
function commentsHeadline(updates = {}) {
|
|
494
|
+
const mergedUpdates = { ...updates, nextOnEnter: false };
|
|
495
|
+
|
|
531
496
|
return step(
|
|
532
497
|
'comments',
|
|
533
498
|
[
|
|
@@ -538,7 +503,7 @@ function commentsHeadline(updates = {}) {
|
|
|
538
503
|
inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
|
|
539
504
|
}, updates.scope),
|
|
540
505
|
],
|
|
541
|
-
|
|
506
|
+
mergedUpdates
|
|
542
507
|
)
|
|
543
508
|
}
|
|
544
509
|
|
|
@@ -554,7 +519,7 @@ function commentsMechanics(updates = {}) {
|
|
|
554
519
|
}),
|
|
555
520
|
mechanicsCrossSells()
|
|
556
521
|
],
|
|
557
|
-
updates
|
|
522
|
+
updates
|
|
558
523
|
)
|
|
559
524
|
}
|
|
560
525
|
|
|
@@ -570,7 +535,7 @@ function contactInfo(updates = {}) {
|
|
|
570
535
|
TCPAConsent(updates.scope),
|
|
571
536
|
secureIcon()
|
|
572
537
|
],
|
|
573
|
-
false
|
|
538
|
+
{ nextOnEnter: false }
|
|
574
539
|
)
|
|
575
540
|
}
|
|
576
541
|
|
|
@@ -589,7 +554,7 @@ function firstAndLastV3(updates = {}, scope) {
|
|
|
589
554
|
firstName(scope),
|
|
590
555
|
lastName(scope)
|
|
591
556
|
],
|
|
592
|
-
updates
|
|
557
|
+
updates
|
|
593
558
|
)
|
|
594
559
|
}
|
|
595
560
|
|
|
@@ -602,6 +567,44 @@ function zipcode(updates = {}) {
|
|
|
602
567
|
)
|
|
603
568
|
}
|
|
604
569
|
|
|
570
|
+
function autoDamageFromAccident(updates = {}) {
|
|
571
|
+
return step(
|
|
572
|
+
'autoDamageFromAccident',
|
|
573
|
+
[
|
|
574
|
+
autoDamageFromAccident$1(updates.scope),
|
|
575
|
+
],
|
|
576
|
+
updates
|
|
577
|
+
)
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
function wouldLikeMVAConsultation(updates = {}) {
|
|
581
|
+
return step(
|
|
582
|
+
'wouldLikeMVAConsultation',
|
|
583
|
+
[
|
|
584
|
+
verticalStepHeadline({
|
|
585
|
+
headline: updates.headline ?? 'Do you want a free legal evaluation?',
|
|
586
|
+
}),
|
|
587
|
+
verticalStepSubHeadline({
|
|
588
|
+
subheadline: updates.subheadline ?? 'You may be entitled to compensation for your accident.',
|
|
589
|
+
subheadlineClass: '!t-text-blue-900 !t-font-semibold'
|
|
590
|
+
}),
|
|
591
|
+
{
|
|
592
|
+
$formkit: 'hidden',
|
|
593
|
+
name: "CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem",
|
|
594
|
+
id: "CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem",
|
|
595
|
+
value: "Auto and Car Accidents"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
$formkit: 'hidden',
|
|
599
|
+
name: "CrossSell:Auto_and_Car_Accidents:vertical",
|
|
600
|
+
value: "Legal"
|
|
601
|
+
},
|
|
602
|
+
wouldLikeMVAConsultation$1(),
|
|
603
|
+
],
|
|
604
|
+
updates
|
|
605
|
+
)
|
|
606
|
+
}
|
|
607
|
+
|
|
605
608
|
function haveAttorney(updates = {}) {
|
|
606
609
|
return sqstep(
|
|
607
610
|
'haveAttorney',
|
|
@@ -795,9 +798,7 @@ function formProps(updates) {
|
|
|
795
798
|
return props
|
|
796
799
|
}
|
|
797
800
|
|
|
798
|
-
const metaDefaults = {
|
|
799
|
-
tcpaLanguage: TCPA_LANGUAGE
|
|
800
|
-
};
|
|
801
|
+
const metaDefaults = {};
|
|
801
802
|
|
|
802
803
|
function metaProps(updates) {
|
|
803
804
|
const data = merge(
|
|
@@ -810,7 +811,7 @@ function metaProps(updates) {
|
|
|
810
811
|
}
|
|
811
812
|
}
|
|
812
813
|
|
|
813
|
-
function
|
|
814
|
+
function defaultMetaPropsLegal(tolps = null) {
|
|
814
815
|
let commentsPlaceholders = TOLPCommentsPlaceholders;
|
|
815
816
|
let finalHeadlines = TOLPFinalHeadlines;
|
|
816
817
|
let finalSubHeadlines = TOLPFinalSubHeadlines;
|
|
@@ -820,12 +821,13 @@ function defaultMetaProps(tolps = null) {
|
|
|
820
821
|
finalSubHeadlines = filterMapByKey(TOLPFinalSubHeadlines, tolps);
|
|
821
822
|
}
|
|
822
823
|
return metaProps({
|
|
823
|
-
|
|
824
|
+
tcpaLanguage: TCPA_LANGUAGE_LEGAL,
|
|
825
|
+
defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
|
|
824
826
|
commentsPlaceholders: commentsPlaceholders,
|
|
825
|
-
defaultFinalHeadline:
|
|
827
|
+
defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_LEGAL,
|
|
826
828
|
finalHeadlines: finalHeadlines,
|
|
827
|
-
defaultFinalSubHeadline:
|
|
828
|
-
finalSubHeadlines: finalSubHeadlines
|
|
829
|
+
defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_LEGAL,
|
|
830
|
+
finalSubHeadlines: finalSubHeadlines
|
|
829
831
|
})
|
|
830
832
|
}
|
|
831
833
|
|
|
@@ -1049,7 +1051,7 @@ const tolps = [
|
|
|
1049
1051
|
'Auto and Car Accidents',
|
|
1050
1052
|
];
|
|
1051
1053
|
|
|
1052
|
-
const meta =
|
|
1054
|
+
const meta = defaultMetaPropsLegal(tolps);
|
|
1053
1055
|
|
|
1054
1056
|
// All of the dynamic MVA questions get scoped
|
|
1055
1057
|
const scope = 'CrossSell:Auto_and_Car_Accidents';
|
|
@@ -1138,32 +1140,36 @@ const schema = [
|
|
|
1138
1140
|
autoDamageFromAccident({
|
|
1139
1141
|
nextOnInput: false,
|
|
1140
1142
|
nextStepMap: {
|
|
1141
|
-
|
|
1142
|
-
'
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1143
|
+
values: {
|
|
1144
|
+
'Auto_Damage_From_Accident': {
|
|
1145
|
+
'Yes': ['wouldLikeMVAConsultation', 'commentsMechanics'],
|
|
1146
|
+
'No': ['commentsMechanics'],
|
|
1147
|
+
},
|
|
1148
|
+
'*': ["commentsMechanics"]
|
|
1149
|
+
}
|
|
1146
1150
|
}
|
|
1147
1151
|
}),
|
|
1148
1152
|
wouldLikeMVAConsultation({
|
|
1149
1153
|
nextOnInput: true,
|
|
1150
1154
|
nextStepMap: {
|
|
1151
|
-
|
|
1152
|
-
'
|
|
1153
|
-
'
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1155
|
+
values: {
|
|
1156
|
+
'Would_Like_MVA_Consultation': {
|
|
1157
|
+
'Yes': [
|
|
1158
|
+
'incidentDate',
|
|
1159
|
+
'atFault',
|
|
1160
|
+
'primaryInjury',
|
|
1161
|
+
'doctorTreatment',
|
|
1162
|
+
'policeReportFiled',
|
|
1163
|
+
'haveAttorney',
|
|
1164
|
+
'comments',
|
|
1165
|
+
'zipcode',
|
|
1166
|
+
'firstAndLast',
|
|
1167
|
+
'contactInfo',
|
|
1168
|
+
],
|
|
1169
|
+
'No': ['commentsMechanics'],
|
|
1170
|
+
},
|
|
1171
|
+
'*': ["commentsMechanics"]
|
|
1172
|
+
}
|
|
1167
1173
|
}
|
|
1168
1174
|
}),
|
|
1169
1175
|
dynamicSchemaNode('Auto_Damage_From_Accident'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var mechanics=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e,t,a,n=4){return"https://listings."+e+"/api/v1/redirect?zone_id="+n+"&sub_id=${properties.vid}&vertical="+encodeURIComponent(t)+"&category="+encodeURIComponent(a)}const a='$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)',n="Please briefly describe your legal issue in a few words:",i='$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)',r='$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)',o=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},t)),s=e=>(e.options=["Yes","No"],e.optionsClass="t-flex t-justify-center t-my-3",(e=>(e.legendClass="legend-left",e.fieldsetClass="$reset t-flex t-justify-center t-flex-col-reverse t-items-center",void 0===e.optionsClass&&(e.optionsClass="t-flex t-flex-col sm:t-flex-row t-justify-center t-my-3"),e.optionClass="radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5",e.wrapperClass="$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]",e.labelClass="t-font-semibold t-text-[#1e448f] t-w-[100%]",e.decoratorIcon=!1,e.messagesClass="t-flex t-justify-center",e.helpClass="t-mt-2.5 !t-text-sm t-text-center",o(e)))(e)),l=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t)),d=e=>(e.wrapperClass="side-by-side t-items-center",l(e)),c=t=>(t.wrapperClass="t-flex t-justify-center",t.inputClass="t-text-center",t.messagesClass="t-flex t-justify-center",(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"DatePicker",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500",innerClass:"t-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500"},t)))(t)),m=e=>s({name:e?e+":Auto_Damage_From_Accident":"Auto_Damage_From_Accident"}),p=e=>s({name:e?e+":Would_Like_MVA_Consultation":"Would_Like_MVA_Consultation",help:"Note: we'll still connect you for a mechanic."}),u=(t,a)=>(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"textarea",rows:5,maxlength:500,validation:"required",validationMessages:{required:"Field is required"},innerClass:"t-max-w-xl",labelClass:"required"},t)))(e({name:a?a+":Comments":"Comments",label:"Please briefly describe your situation in a few words:",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},t)),f=e=>d({$formkit:"email",name:e?e+":Email":"Email",label:"Email Address:",placeholder:"email@domain.com",autocomplete:"email","data-tf-sensitive":"false",validation:"required|email",validationMessages:{required:"Email is required",email:"Invalid Email"}}),h=e=>d({$formkit:"text",label:"First Name:",placeholder:"First",name:e?e+":First_Name":"First_Name",autocomplete:"given-name",validationMessages:{required:"First Name is required"}}),y=e=>d({$formkit:"text",label:"Last Name:",placeholder:"Last",name:e?e+":Last_Name":"Last_Name",autocomplete:"family-name",validationMessages:{required:"Last Name is required"}}),g=e=>d({$formkit:"tel",name:e?e+":Primary_Phone":"Primary_Phone",label:"Phone Number:",placeholder:"###-###-####",maxlength:12,help:"10-digit phone number, hyphens optional",autocomplete:"tel-national","data-tf-sensitive":"false",validation:"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone",validationMessages:{required:"Field is required",matches:"Invalid Phone Format, use ###-###-####",valid_phone:"Invalid Phone Number"},helpClass:"t-mt-2.5 md:t-text-right md:t-mt-[-2px]"}),b=e=>{return(t={name:e?e+":Primary_Injury":"Primary_Injury",options:["Anxiety","Back or Neck Pain","Broken Bones","Cuts and Bruises","Headaches","Memory Loss","Loss of Limb","Not Sure or Other"]}).legendClass="required t-w-[100%] t-text-center",void 0===t.fieldsetClass&&(t.fieldsetClass="$reset t-flex t-justify-center"),t.optionsClass="t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2",t.innerClass="t-items-start",t.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",t.optionClass="t-pl-4 md:t-pl-8 md:t-min-w-[200px]",t.messagesClass="t-flex t-justify-center",t.helpClass="t-mt-0 t-mb-4 !t-text-sm t-text-center",o(t);var t},x=e=>({$formkit:"checkbox",label:"$meta.tcpaLanguage",name:e?e+":TCPA_Opt_In":"TCPA_Opt_In","data-tf-sensitive":"false",validation:"required|accepted",validationMessages:{required:"Consent is required",accepted:"Consent is required"},classes:{label:"t-text-xs t-text-slate-500 t-font-normal"}}),v="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",w="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",C=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,k=e=>{if(C(e))return e;for(var t=e.children.length-1;t>=0;t--){if("string"==typeof e.children)continue;const a=e.children[t];if(C(a))return a;const n=k(a);if(n)return n}return null},$={$el:"div",if:"$activeStep === $lastStep()",attrs:{class:"t-flex t-justify-center t-items-center t-text-sm t-text-gray-500"},children:[{$el:"img",attrs:{loading:"lazy",alt:"",style:{border:0},width:"25",height:"25",src:"https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg"}},{$el:"span",children:"Secure & Encrypted",attrs:{class:"t-pl-2 t-pt-1 t-font-medium"}}]};function I(t){return e($,t)}function _(e){return{$el:"h3",children:e.headline||"Tell Us About Your Situation",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function E(e){return{$el:"h5",children:e.subheadline||"",attrs:{class:"t-flex t-justify-center t-text-center !t-text-lg t-font-normal t-text-dark t-pb-5 t-pt-0 t-px-1 "+(e.subheadlineClass||"")}}}function S(e){return{$el:"h3",children:e.headline||"Additional Case Details",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function A(e){return{$el:"h3",children:e.headline||"Please Provide a Contact Name",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function P(e){return{$el:"h3",children:e.headline||i,attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function M(e){return{$el:"h5",children:e.subheadline||r,attrs:{class:"t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3 "+(e.subheadlineClass||"")}}}const F="(function() {\n if (window.xxTrustedFormLoaded) {\n return\n }\n var vid = '';\n if (typeof window.zar !== 'undefined') {\n vid = window.zar.getVID();\n }\n window.xxTrustedFormLoaded = true;\n var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'\n var tf = document.createElement('script');\n tf.type = 'text/javascript'; tf.async = true;\n tf.src = (\"https:\" == document.location.protocol ? 'https' : 'http') + \"://api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&identifier=\" + vid + \"&ping_field=xxTrustedFormPingUrl&provideReferrer=false&invert_field_sensitivity=true&sandbox=\" + sandbox + \"&l=\" + new Date().getTime() + Math.random();\n var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);\n})();";const L=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});function j(t,a,n=!0,i=!1,r=void 0,o=void 0,s=void 0){if(void 0===n&&(n=!0),a&&a.length&&(n||i)){const e=k(a[a.length-1]);e&&!0===n&&(e.onKeypress=v),e&&!0===i&&(e.onInput=w)}return e(L(t,r),{children:[{$formkit:"group",id:t,name:t,nextStepMap:o,autoFocus:s,children:a}]})}function D(e,t,a,n={}){return j(e,[_({headline:n.headline??a,headlineClass:n.headlineClass}),...Array.isArray(t)?t:[t]],n.nextOnEnter,void 0===n.nextOnInput||n.nextOnInput,n.stepKey,n.nextStepMap)}const q={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,anchorElement:"form-anchor",useLocalStorage:!0,prepop:{fromURL:!0},errorCodes:{403:{message:"An Error Occurred",abort:!1},409:{abort:!1},429:"An Error Occurred",504:{message:"An Error Occurred",abort:!1}},formClass:"!t-max-w-[40rem]"};function T(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>t.includes(e))))}const N={tcpaLanguage:"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."};const O={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const Y=[{$formkit:"hidden",name:"vertical",value:"AutoRepair"},{$formkit:"hidden",name:"Category",id:"Category",value:"Mechanics"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],W={Adoption:'Example: "I need help with adoption forms"',"Asbestos and Mesothelioma":'Example: "I was exposed to asbestos at work and would like to file a claim"',"Auto and Car Accidents":'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',Bankruptcy:'Example: "I need help filing for bankruptcy"',"Birth Certificate and Name Change":'Example: "Just married and would like to change my last name"',"Business Lawyers":'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',"Child Custody and Support":'Example: "Need help getting custody" or "Issues with child support payments"',"Child Custody":'Example: "Need help getting custody"',"Child Support":'Example: "Issues with child support payments"',"Civil Rights and Discrimination":'Example: "Police brutality" or "Coworker keeps harassing me"',"Civil Lawsuit":'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',"File a Lawsuit":'Example: "A contractor took my money and never completed the job"',"Defend a Lawsuit":'Example: "I am being sued by a neighbor"',"Consumer Lawyers":'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',"Copyrights and Trademarks":'Example: "I would like to register a trademark or copyright a name"',"Criminal and Felony":'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',"Debt and Collections":'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',"Divorce and Separation":'Example: "I would like to file for an uncontested divorce"',"DUI and DWI":'Example: "I was arrested for DUI and need legal defense"',"Elder Law":'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',"Employment and Workplace":'Example: "I was injured while on the job" or "My company is discriminating against me"',Expungement:'Example: "I would like to file for an expungement and clear my record"',"Family Issues":'Example: "I need help with guardianship" or "I need a simple will created"',Foreclosure:'Example: "I need help to avoid foreclosure on my house"',Guardianship:'Example: "I need help with guardianship documents"',"Harassment and Discrimination":'Example: "I am being discriminated at work" or "My neighbor is harassing me"',"Sexual Harassment":'Example: "I am being sexually harassed by a coworker"',"Workplace Harassment":'Example: "My coworker is being aggressive towards me"',"Non-Workplace Harassment":'Example: "My neighbor is harassing me"',"Workplace Discrimination":'Example: "I am being discriminated at work based on my age"',"Non-Workplace Discrimination":'Example: "I am being discriminated against by a local official"',"Identity Theft":'Example: "Someone stole my identity and I need help fixing the issue"',"Immigration and Visas":'Example: "I need help filing for a visa" or "Help with a green card"',Insurance:'Example: "I need help filing an insurance claim for damage to my house"',"Landlord and Tenant":'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',"Lemon Law":'Example: "I purchased a new vehicle that broke down already and seller will not assist"',"Long Term Disability":'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',"Medical Malpractice":'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',"Patents and Intellectual Property":'Example: "I would like to file for a patent" or "I need to copyright a name"',"Personal Injury":'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',"Power of Attorney":'Example: "I need help with a limited or general power of attorney"',"Probate and Estates":'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',"Product Liability":'Example: "My car battery caught on fire" or "I purchased a faulty product"',"Property Damage":'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',"Real Estate":'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',"Social Security Disability and Insurance":'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',"Tax and IRS":'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',"Traffic and Tickets":'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',Unemployment:'Example: "I need help filing for unemployment benefits"',"Victim of a Crime":'Example: "I was assaulted in the store" or "I am being discriminated against at work"',"Wills and Trusts":'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',"Workers Compensation":'Example: "I was injured at work and would like to file for workers compensation benefits"',"Wrongful Death":'Example: "A family member was killed on the job and we need legal representation"',"Wrongful Termination":'Example: "I was fired by my employer without cause"',"Not Sure or Other":'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'},H={},R={Adoption:"You may benefit from speaking with an adoption professional. Please verify your contact information.","Auto and Car Accidents":"You may benefit from speaking with an accident professional. Please verify your contact information.",Bankruptcy:"You may benefit from speaking with a bankruptcy professional. Please verify your contact information.","Copyrights and Trademarks":"You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.","Divorce and Separation":"You may benefit from speaking with a divorce professional. Please verify your contact information.","DUI and DWI":"You may benefit from speaking with a DUI professional. Please verify your contact information.","Elder Law":"You may benefit from speaking with an elder law professional. Please verify your contact information.",Foreclosure:"You may benefit from speaking with a foreclosure professional. Please verify your contact information.",Guardianship:"You may benefit from speaking with a guardianship professional. Please verify your contact information.","Immigration and Visas":"You may benefit from speaking with a immigration professional. Please verify your contact information.","Landlord and Tenant":"You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.","Long Term Disability":"You may benefit from speaking with a disability legal professional. Please verify your contact information.","Medical Malpractice":"You may benefit from speaking with a malpractice professional. Please verify your contact information.","Patents and Intellectual Property":"You may benefit from speaking with a patent professional. Please verify your contact information.","Personal Injury":"You may benefit from speaking with a personal injury professional. Please verify your contact information.","Probate and Estates":"You may benefit from speaking with a probate and estate professional. Please verify your contact information.","Real Estate":"You may benefit from speaking with a real estate professional. Please verify your contact information.","Social Security Disability and Insurance":"You may benefit from speaking with an SSDI professional. Please verify your contact information.","Tax and IRS":"You may benefit from speaking with a tax professional. Please verify your contact information.",Unemployment:"You may benefit from speaking with an unemployment professional. Please verify your contact information.","Workers Compensation":"You may benefit from speaking with a workers compensation professional. Please verify your contact information."},U=function(t=null){let n=W,i=H,r=R;return t&&(n=T(W,t),i=T(H,t),r=T(R,t)),{type:"meta",data:e(N,{defaultCommentsPlaceholder:a,commentsPlaceholders:n,defaultFinalHeadline:"Submit Your Case",finalHeadlines:i,defaultFinalSubHeadline:"You may benefit from speaking with a legal professional. Please verify your contact information.",finalSubHeadlines:r})}}(["Auto and Car Accidents"]),B="CrossSell:Auto_and_Car_Accidents";U.data.dynamicSchema=[function(e={}){return D("incidentDate",(e=>c({name:e?e+":Incident_Date":"Incident_Date"}))(e.scope),"When did the incident occur?",e)}({scope:B,nextOnInput:!1}),function(e={}){return D("atFault",(e=>s({name:e?e+":At_Fault":"At_Fault"}))(e.scope),"Were you at fault?",e)}({scope:B}),function(e={}){return D("primaryInjury",b(e.scope),"What was the primary injury?",e)}({scope:B}),function(e={}){return D("doctorTreatment",(e=>s({name:e?e+":Doctor_Treatment":"Doctor_Treatment"}))(e.scope),"Have you seen a doctor about this?",e)}({scope:B}),function(e={}){return D("policeReportFiled",(e=>s({name:e?e+":Police_Report_Filed":"Police_Report_Filed"}))(e.scope),"Was a police report filed?",e)}({scope:B}),function(e={}){return D("haveAttorney",(e=>s({name:e?e+":Have_Attorney":"Have_Attorney"}))(e.scope),"Already working with an attorney?",e)}({scope:B}),function(e={}){return j("comments",[S(e),u({label:void 0===e.label?n:e.label,placeholder:e.placeholder||a,inputClass:void 0===e.inputClass?"!t-h-32":e.inputClass},e.scope)],!1)}({scope:B,label:null,placeholder:'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',headline:"Please briefly describe the accident:",headlineClass:"!t-text-dark"}),function(e={}){return D("zipcode",((e={},t)=>l({placeholder:"#####",help:e.help??"We try to match you with local legal help",name:t?t+":Zip":"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"},wrapperClass:"t-flex t-justify-center",messagesClass:"t-flex t-justify-center",inputClass:"t-text-center",helpClass:"t-mt-2.5 !t-text-sm t-text-center"}))(e,e.scope),"Please verify your Zip Code",e)}({scope:B,help:"We try to match you with local help"}),function(e={},t){return j("firstAndLast",[A({headline:e.headline??"Who is looking for help?",headlineClass:e.headlineClass}),E({subheadline:e.subheadline??"Note: we never share info without consent",subheadlineClass:"!t-text-sm !t-text-gray-500"}),h(t),y(t)],e.nextOnEnter)}({scope:B,headlineClass:"!t-text-dark"}),function(e={}){return j("contactInfo",[P(e),M(e),{$el:"script",if:"$activeStep === $lastStep()",children:F},f(e.scope),g(e.scope),x(e.scope),I()],!1)}({scope:B,headline:"Connect Now - Final Step",subheadline:"After submitting you'll be connected for a mechanic chat and be contacted for an accident legal consultation."})];const K=[U,e(O,G),{$cmp:"FormKit",props:function(t){const a=e(q,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"mechanics",popUnderMap:{"properties.Mechanics_CrossSells":{"Auto Insurance":t("answers-now.com","Insurance","Auto Insurance")}},redirectMap:{"*":(V="answers-now.com",z="AutoRepair",Z="Mechanics",t(V,z,Z)+"&Comments=${properties.Comments}")},formClass:"!t-max-w-[38rem]"}),children:[function(t={}){return e(function(e={}){return{$el:"h1",attrs:{class:"t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")}}}(t),t)}({children:'$urlParam("hl", "Get Instant Car Advice Online")',if:"$activeStep === $firstStep()"}),function(t={}){return e(function(e={}){return{$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 "+(e.subheadlineClass||"")}}}(t),t)}({children:'$urlParam("shl", "Is the issue due to an auto accident?")',if:"$activeStep === $firstStep()",subheadlineClass:"!t-text-dark"}),...Y,{$formkit:"hidden",name:"CrossSell:Auto_and_Car_Accidents:TCPA_Language",value:"$meta.tcpaLanguage"},{$el:"div",attrs:{class:"form-body"},children:[function(e={}){return j("autoDamageFromAccident",[m(e.scope)],e.nextOnEnter,e.nextOnInput,e.stepKey,e.nextStepMap)}({nextOnInput:!1,nextStepMap:{Auto_Damage_From_Accident:{Yes:["wouldLikeMVAConsultation","commentsMechanics"],No:["commentsMechanics"]},"*":["commentsMechanics"]}}),function(e={}){return j("wouldLikeMVAConsultation",[_({headline:e.headline??"Do you want a free legal evaluation?"}),E({subheadline:e.subheadline??"You may be entitled to compensation for your accident.",subheadlineClass:"!t-text-blue-900 !t-font-semibold"}),{$formkit:"hidden",name:"CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem",id:"CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem",value:"Auto and Car Accidents"},{$formkit:"hidden",name:"CrossSell:Auto_and_Car_Accidents:vertical",value:"Legal"},p()],e.nextOnEnter,e.nextOnInput,e.stepKey,e.nextStepMap)}({nextOnInput:!0,nextStepMap:{Would_Like_MVA_Consultation:{Yes:["incidentDate","atFault","primaryInjury","doctorTreatment","policeReportFiled","haveAttorney","comments","zipcode","firstAndLast","contactInfo"],No:["commentsMechanics"]},"*":["commentsMechanics"]}}),function(e="Type_Of_Legal_Problem"){return{$cmp:"FormKitSchema",if:"$get("+e+").value",props:{schema:"$meta.dynamicSchema",data:"$buildData($meta)"}}}("Auto_Damage_From_Accident"),function(e={}){return j("commentsMechanics",[S(e),u({label:void 0===e.label?n:e.label,placeholder:e.placeholder||a,inputClass:"!t-h-20"}),o({id:"Mechanics_CrossSells",name:"Mechanics_CrossSells",fieldsetClass:"$reset",wrapperClass:"t-mb-2",optionsClass:"t-pt-3",legendClass:"",validation:null,options:{"Auto Insurance":"I'd like to save on my auto insurance (optional)"}})],e.nextOnEnter)}({headline:"Last Step: Describe your vehicle issue",headlineClass:"!t-text-dark",label:null,placeholder:'Example: "I\'m having transmission trouble", or "My car won\'t start"',nextOnEnter:!1}),((e={})=>({$el:"div",attrs:{class:"step-nav"},children:[{$formkit:"button",name:"back_button",onClick:"$setPreviousStep($prevStepFunc($get(form)))",children:"Back",style:{if:"$activeStep === $firstStep()",then:"visibility: hidden;"}},{$formkit:"button",name:"next_button",onClick:"$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",children:{if:"$activeStep === $firstStep()",then:"Start",else:"Next"},outerClass:{if:"$activeStep === $lastStep()",then:"t-hidden",else:""},style:{if:"$activeStep === $lastStep()",then:"display: none;"}},{$formkit:"submit",name:"submit_button",label:e.submitLabel||"Submit",if:"$activeStep === $lastStep()",style:{if:"$activeStep !== $lastStep()",then:"display: none;"}}]}))({submitLabel:"Chat Now"}),{$el:"pre",if:'$urlParam("fdbg", "") == 1',children:[{$el:"pre",children:"$stringify( $get(form).value )",attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["activeStep: ","$activeStep"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepHistory: ","$stepHistory"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepQueue: ","$stepQueue"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["steps: ","$stepKeys()"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}];var V,z,Z,G;return K}();
|
|
1
|
+
var mechanics=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e,t,a,n=4){return"https://listings."+e+"/api/v1/redirect?zone_id="+n+"&sub_id=${properties.vid}&vertical="+encodeURIComponent(t)+"&category="+encodeURIComponent(a)}const a="Please briefly describe your issue in a few words:",n='$getKey($meta, "commentsPlaceholders." + $get(Category).value, $meta.defaultCommentsPlaceholder)',i='$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)',r='$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)',o=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},t)),s=e=>(e.options=["Yes","No"],e.optionsClass="t-flex t-justify-center t-my-3",(e=>(e.legendClass="legend-left",e.fieldsetClass="$reset t-flex t-justify-center t-flex-col-reverse t-items-center",void 0===e.optionsClass&&(e.optionsClass="t-flex t-flex-col sm:t-flex-row t-justify-center t-my-3"),e.optionClass="radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5",e.wrapperClass="$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]",e.labelClass="t-font-semibold t-text-[#1e448f] t-w-[100%]",e.decoratorIcon=!1,e.messagesClass="t-flex t-justify-center",e.helpClass="t-mt-2.5 !t-text-sm t-text-center",o(e)))(e)),l=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t)),d=e=>(e.wrapperClass="side-by-side t-items-center",l(e)),c=t=>(t.wrapperClass="t-flex t-justify-center",t.inputClass="t-text-center",t.messagesClass="t-flex t-justify-center",(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"DatePicker",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500",innerClass:"t-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500"},t)))(t)),m=e=>d({$formkit:"email",name:e?e+":Email":"Email",label:"Email Address:",placeholder:"email@domain.com",autocomplete:"email","data-tf-sensitive":"false",validation:"required|email",validationMessages:{required:"Email is required",email:"Invalid Email"}}),u=e=>d({label:"First Name:",placeholder:"First",name:e?e+":First_Name":"First_Name",autocomplete:"given-name",validationMessages:{required:"First Name is required"}}),p=e=>d({label:"Last Name:",placeholder:"Last",name:e?e+":Last_Name":"Last_Name",autocomplete:"family-name",validationMessages:{required:"Last Name is required"}}),f=e=>d({$formkit:"tel",name:e?e+":Primary_Phone":"Primary_Phone",label:"Phone Number:",placeholder:"###-###-####",maxlength:12,help:"10-digit phone number, hyphens optional",autocomplete:"tel-national","data-tf-sensitive":"false",validation:"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone",validationMessages:{required:"Field is required",matches:"Invalid Phone Format, use ###-###-####",valid_phone:"Invalid Phone Number"},helpClass:"t-mt-2.5 md:t-text-right md:t-mt-[-2px]"}),h=e=>s({name:e?e+":Auto_Damage_From_Accident":"Auto_Damage_From_Accident"}),y=e=>s({name:e?e+":Would_Like_MVA_Consultation":"Would_Like_MVA_Consultation",help:"Note: we'll still connect you for a mechanic."}),g=(t,a)=>(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"textarea",rows:5,maxlength:500,validation:"required",validationMessages:{required:"Field is required"},innerClass:"t-max-w-xl",labelClass:"required"},t)))(e({name:a?a+":Comments":"Comments",label:"Please briefly describe your situation in a few words:",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},t)),b=e=>{return(t={name:e?e+":Primary_Injury":"Primary_Injury",options:["Anxiety","Back or Neck Pain","Broken Bones","Cuts and Bruises","Headaches","Memory Loss","Loss of Limb","Not Sure or Other"]}).legendClass="required t-w-[100%] t-text-center",void 0===t.fieldsetClass&&(t.fieldsetClass="$reset t-flex t-justify-center"),t.optionsClass="t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2",t.innerClass="t-items-start",t.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",t.optionClass="t-pl-4 md:t-pl-8 md:t-min-w-[200px]",t.messagesClass="t-flex t-justify-center",t.helpClass="t-mt-0 t-mb-4 !t-text-sm t-text-center",o(t);var t},x=e=>({$formkit:"checkbox",label:"$meta.tcpaLanguage",name:e?e+":TCPA_Opt_In":"TCPA_Opt_In","data-tf-sensitive":"false",validation:"required|accepted",validationMessages:{required:"Consent is required",accepted:"Consent is required"},classes:{label:"t-text-xs t-text-slate-500 t-font-normal"}}),v="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",w="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",C=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,$=e=>{if(C(e))return e;for(var t=e.children.length-1;t>=0;t--){if("string"==typeof e.children)continue;const a=e.children[t];if(C(a))return a;const n=$(a);if(n)return n}return null},k={$el:"div",if:"$activeStep === $lastStep()",attrs:{class:"t-flex t-justify-center t-items-center t-text-sm t-text-gray-500"},children:[{$el:"img",attrs:{loading:"lazy",alt:"",style:{border:0},width:"25",height:"25",src:"https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg"}},{$el:"span",children:"Secure & Encrypted",attrs:{class:"t-pl-2 t-pt-1 t-font-medium"}}]};function I(t){return e(k,t)}function _(e){return{$el:"h3",children:e.headline||"Tell Us About Your Situation",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function E(e){return{$el:"h5",children:e.subheadline||"",attrs:{class:"t-flex t-justify-center t-text-center !t-text-lg t-font-normal t-text-dark t-pb-5 t-pt-0 t-px-1 "+(e.subheadlineClass||"")}}}function S(e){return{$el:"h3",children:e.headline||"Additional Details",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function P(e){return{$el:"h3",children:e.headline||"Please Provide a Contact Name",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function A(e){return{$el:"h3",children:e.headline||i,attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function F(e){return{$el:"h5",children:e.subheadline||r,attrs:{class:"t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3 "+(e.subheadlineClass||"")}}}const M="(function() {\n if (window.xxTrustedFormLoaded) {\n return\n }\n var vid = '';\n if (typeof window.zar !== 'undefined') {\n vid = window.zar.getVID();\n }\n window.xxTrustedFormLoaded = true;\n var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'\n var tf = document.createElement('script');\n tf.type = 'text/javascript'; tf.async = true;\n tf.src = (\"https:\" == document.location.protocol ? 'https' : 'http') + \"://api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&identifier=\" + vid + \"&ping_field=xxTrustedFormPingUrl&provideReferrer=false&invert_field_sensitivity=true&sandbox=\" + sandbox + \"&l=\" + new Date().getTime() + Math.random();\n var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);\n})();";const L=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});function j(t,a,n={}){const{nextOnEnter:i=!0,nextOnInput:r=!1,stepKey:o,nextStepMap:s,triggerRedirectMap:l,autoFocus:d}=n;if(a&&a.length&&(i||r)){const e=$(a[a.length-1]);e&&!0===i&&(e.onKeypress=v),e&&!0===r&&(e.onInput=w)}return e(L(t,o),{children:[{$formkit:"group",id:t,name:t,nextStepMap:s,triggerRedirectMap:l,autoFocus:d,children:a}]})}function D(e,t,a,n={}){return void 0===n.nextOnInput&&(n.nextOnInput=!0),j(e,[_({headline:n.headline??a,headlineClass:n.headlineClass}),...Array.isArray(t)?t:[t]],n)}const q={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,anchorElement:"form-anchor",useLocalStorage:!0,prepop:{fromURL:!0},errorCodes:{403:{message:"An Error Occurred",abort:!1},409:{abort:!1},429:"An Error Occurred",504:{message:"An Error Occurred",abort:!1}},formClass:"!t-max-w-[40rem]"};function T(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>t.includes(e))))}const N={};const Y={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const O=[{$formkit:"hidden",name:"vertical",value:"AutoRepair"},{$formkit:"hidden",name:"Category",id:"Category",value:"Mechanics"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],W={Adoption:'Example: "I need help with adoption forms"',"Asbestos and Mesothelioma":'Example: "I was exposed to asbestos at work and would like to file a claim"',"Auto and Car Accidents":'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',Bankruptcy:'Example: "I need help filing for bankruptcy"',"Birth Certificate and Name Change":'Example: "Just married and would like to change my last name"',"Business Lawyers":'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',"Child Custody and Support":'Example: "Need help getting custody" or "Issues with child support payments"',"Child Custody":'Example: "Need help getting custody"',"Child Support":'Example: "Issues with child support payments"',"Civil Rights and Discrimination":'Example: "Police brutality" or "Coworker keeps harassing me"',"Civil Lawsuit":'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',"File a Lawsuit":'Example: "A contractor took my money and never completed the job"',"Defend a Lawsuit":'Example: "I am being sued by a neighbor"',"Consumer Lawyers":'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',"Copyrights and Trademarks":'Example: "I would like to register a trademark or copyright a name"',"Criminal and Felony":'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',"Debt and Collections":'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',"Divorce and Separation":'Example: "I would like to file for an uncontested divorce"',"DUI and DWI":'Example: "I was arrested for DUI and need legal defense"',"Elder Law":'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',"Employment and Workplace":'Example: "I was injured while on the job" or "My company is discriminating against me"',Expungement:'Example: "I would like to file for an expungement and clear my record"',"Family Issues":'Example: "I need help with guardianship" or "I need a simple will created"',Foreclosure:'Example: "I need help to avoid foreclosure on my house"',Guardianship:'Example: "I need help with guardianship documents"',"Harassment and Discrimination":'Example: "I am being discriminated at work" or "My neighbor is harassing me"',"Sexual Harassment":'Example: "I am being sexually harassed by a coworker"',"Workplace Harassment":'Example: "My coworker is being aggressive towards me"',"Non-Workplace Harassment":'Example: "My neighbor is harassing me"',"Workplace Discrimination":'Example: "I am being discriminated at work based on my age"',"Non-Workplace Discrimination":'Example: "I am being discriminated against by a local official"',"Identity Theft":'Example: "Someone stole my identity and I need help fixing the issue"',"Immigration and Visas":'Example: "I need help filing for a visa" or "Help with a green card"',Insurance:'Example: "I need help filing an insurance claim for damage to my house"',"Landlord and Tenant":'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',"Lemon Law":'Example: "I purchased a new vehicle that broke down already and seller will not assist"',"Long Term Disability":'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',"Medical Malpractice":'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',"Patents and Intellectual Property":'Example: "I would like to file for a patent" or "I need to copyright a name"',"Personal Injury":'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',"Power of Attorney":'Example: "I need help with a limited or general power of attorney"',"Probate and Estates":'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',"Product Liability":'Example: "My car battery caught on fire" or "I purchased a faulty product"',"Property Damage":'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',"Real Estate":'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',"Social Security Disability and Insurance":'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',"Tax and IRS":'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',"Traffic and Tickets":'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',Unemployment:'Example: "I need help filing for unemployment benefits"',"Victim of a Crime":'Example: "I was assaulted in the store" or "I am being discriminated against at work"',"Wills and Trusts":'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',"Workers Compensation":'Example: "I was injured at work and would like to file for workers compensation benefits"',"Wrongful Death":'Example: "A family member was killed on the job and we need legal representation"',"Wrongful Termination":'Example: "I was fired by my employer without cause"',"Not Sure or Other":'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'},H={},R={Adoption:"You may benefit from speaking with an adoption professional. Please verify your contact information.","Auto and Car Accidents":"You may benefit from speaking with an accident professional. Please verify your contact information.",Bankruptcy:"You may benefit from speaking with a bankruptcy professional. Please verify your contact information.","Copyrights and Trademarks":"You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.","Divorce and Separation":"You may benefit from speaking with a divorce professional. Please verify your contact information.","DUI and DWI":"You may benefit from speaking with a DUI professional. Please verify your contact information.","Elder Law":"You may benefit from speaking with an elder law professional. Please verify your contact information.",Foreclosure:"You may benefit from speaking with a foreclosure professional. Please verify your contact information.",Guardianship:"You may benefit from speaking with a guardianship professional. Please verify your contact information.","Immigration and Visas":"You may benefit from speaking with a immigration professional. Please verify your contact information.","Landlord and Tenant":"You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.","Long Term Disability":"You may benefit from speaking with a disability legal professional. Please verify your contact information.","Medical Malpractice":"You may benefit from speaking with a malpractice professional. Please verify your contact information.","Patents and Intellectual Property":"You may benefit from speaking with a patent professional. Please verify your contact information.","Personal Injury":"You may benefit from speaking with a personal injury professional. Please verify your contact information.","Probate and Estates":"You may benefit from speaking with a probate and estate professional. Please verify your contact information.","Real Estate":"You may benefit from speaking with a real estate professional. Please verify your contact information.","Social Security Disability and Insurance":"You may benefit from speaking with an SSDI professional. Please verify your contact information.","Tax and IRS":"You may benefit from speaking with a tax professional. Please verify your contact information.",Unemployment:"You may benefit from speaking with an unemployment professional. Please verify your contact information.","Workers Compensation":"You may benefit from speaking with a workers compensation professional. Please verify your contact information."},U=function(t=null){let a=W,n=H,i=R;return t&&(a=T(W,t),n=T(H,t),i=T(R,t)),{type:"meta",data:e(N,{tcpaLanguage:"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.",defaultCommentsPlaceholder:'$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)',commentsPlaceholders:a,defaultFinalHeadline:"Submit Your Case",finalHeadlines:n,defaultFinalSubHeadline:"You may benefit from speaking with a legal professional. Please verify your contact information.",finalSubHeadlines:i})}}(["Auto and Car Accidents"]),B="CrossSell:Auto_and_Car_Accidents";U.data.dynamicSchema=[function(e={}){return D("incidentDate",(e=>c({name:e?e+":Incident_Date":"Incident_Date"}))(e.scope),"When did the incident occur?",e)}({scope:B,nextOnInput:!1}),function(e={}){return D("atFault",(e=>s({name:e?e+":At_Fault":"At_Fault"}))(e.scope),"Were you at fault?",e)}({scope:B}),function(e={}){return D("primaryInjury",b(e.scope),"What was the primary injury?",e)}({scope:B}),function(e={}){return D("doctorTreatment",(e=>s({name:e?e+":Doctor_Treatment":"Doctor_Treatment"}))(e.scope),"Have you seen a doctor about this?",e)}({scope:B}),function(e={}){return D("policeReportFiled",(e=>s({name:e?e+":Police_Report_Filed":"Police_Report_Filed"}))(e.scope),"Was a police report filed?",e)}({scope:B}),function(e={}){return D("haveAttorney",(e=>s({name:e?e+":Have_Attorney":"Have_Attorney"}))(e.scope),"Already working with an attorney?",e)}({scope:B}),function(e={}){const t={...e,nextOnEnter:!1};return j("comments",[S(e),g({label:void 0===e.label?a:e.label,placeholder:e.placeholder||n,inputClass:void 0===e.inputClass?"!t-h-32":e.inputClass},e.scope)],t)}({scope:B,label:null,placeholder:'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',headline:"Please briefly describe the accident:",headlineClass:"!t-text-dark"}),function(e={}){return D("zipcode",((e={},t)=>l({placeholder:"#####",help:e.help??"We try to match you with local help",name:t?t+":Zip":"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"},wrapperClass:"t-flex t-justify-center",messagesClass:"t-flex t-justify-center",inputClass:"t-text-center",helpClass:"t-mt-2.5 !t-text-sm t-text-center"}))(e,e.scope),"Please verify your Zip Code",e)}({scope:B,help:"We try to match you with local help"}),function(e={},t){return j("firstAndLast",[P({headline:e.headline??"Who is looking for help?",headlineClass:e.headlineClass}),E({subheadline:e.subheadline??"Note: we never share info without consent",subheadlineClass:"!t-text-sm !t-text-gray-500"}),u(t),p(t)],e)}({scope:B,headlineClass:"!t-text-dark"}),function(e={}){return j("contactInfo",[A(e),F(e),{$el:"script",if:"$activeStep === $lastStep()",children:M},m(e.scope),f(e.scope),x(e.scope),I()],{nextOnEnter:!1})}({scope:B,headline:"Connect Now - Final Step",subheadline:"After submitting you'll be connected for a mechanic chat and be contacted for an accident legal consultation."})];const V=[U,e(Y,G),{$cmp:"FormKit",props:function(t){const a=e(q,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"mechanics",popUnderMap:{"properties.Mechanics_CrossSells":{"Auto Insurance":t("answers-now.com","Insurance","Auto Insurance")}},redirectMap:{"*":(K="answers-now.com",z="AutoRepair",Z="Mechanics",t(K,z,Z)+"&Comments=${properties.Comments}")},formClass:"!t-max-w-[38rem]"}),children:[function(t={}){return e(function(e={}){return{$el:"h1",attrs:{class:"t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")}}}(t),t)}({children:'$urlParam("hl", "Get Instant Car Advice Online")',if:"$activeStep === $firstStep()"}),function(t={}){return e(function(e={}){return{$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 "+(e.subheadlineClass||"")}}}(t),t)}({children:'$urlParam("shl", "Is the issue due to an auto accident?")',if:"$activeStep === $firstStep()",subheadlineClass:"!t-text-dark"}),...O,{$formkit:"hidden",name:"CrossSell:Auto_and_Car_Accidents:TCPA_Language",value:"$meta.tcpaLanguage"},{$el:"div",attrs:{class:"form-body"},children:[function(e={}){return j("autoDamageFromAccident",[h(e.scope)],e)}({nextOnInput:!1,nextStepMap:{values:{Auto_Damage_From_Accident:{Yes:["wouldLikeMVAConsultation","commentsMechanics"],No:["commentsMechanics"]},"*":["commentsMechanics"]}}}),function(e={}){return j("wouldLikeMVAConsultation",[_({headline:e.headline??"Do you want a free legal evaluation?"}),E({subheadline:e.subheadline??"You may be entitled to compensation for your accident.",subheadlineClass:"!t-text-blue-900 !t-font-semibold"}),{$formkit:"hidden",name:"CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem",id:"CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem",value:"Auto and Car Accidents"},{$formkit:"hidden",name:"CrossSell:Auto_and_Car_Accidents:vertical",value:"Legal"},y()],e)}({nextOnInput:!0,nextStepMap:{values:{Would_Like_MVA_Consultation:{Yes:["incidentDate","atFault","primaryInjury","doctorTreatment","policeReportFiled","haveAttorney","comments","zipcode","firstAndLast","contactInfo"],No:["commentsMechanics"]},"*":["commentsMechanics"]}}}),function(e="Type_Of_Legal_Problem"){return{$cmp:"FormKitSchema",if:"$get("+e+").value",props:{schema:"$meta.dynamicSchema",data:"$buildData($meta)"}}}("Auto_Damage_From_Accident"),function(e={}){return j("commentsMechanics",[S(e),g({label:void 0===e.label?a:e.label,placeholder:e.placeholder||n,inputClass:"!t-h-20"}),o({id:"Mechanics_CrossSells",name:"Mechanics_CrossSells",fieldsetClass:"$reset",wrapperClass:"t-mb-2",optionsClass:"t-pt-3",legendClass:"",validation:null,options:{"Auto Insurance":"I'd like to save on my auto insurance (optional)"}})],e)}({headline:"Last Step: Describe your vehicle issue",headlineClass:"!t-text-dark",label:null,placeholder:'Example: "I\'m having transmission trouble", or "My car won\'t start"',nextOnEnter:!1}),((e={})=>({$el:"div",attrs:{class:"step-nav"},children:[{$formkit:"button",name:"back_button",onClick:"$setPreviousStep($prevStepFunc($get(form)))",children:"Back",style:{if:"$activeStep === $firstStep()",then:"visibility: hidden;"}},{$formkit:"button",name:"next_button",onClick:"$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",children:{if:"$activeStep === $firstStep()",then:"Start",else:"Next"},outerClass:{if:"$activeStep === $lastStep()",then:"t-hidden",else:""},style:{if:"$activeStep === $lastStep()",then:"display: none;"}},{$formkit:"submit",name:"submit_button",label:e.submitLabel||"Submit",if:"$activeStep === $lastStep()",style:{if:"$activeStep !== $lastStep()",then:"display: none;"}}]}))({submitLabel:"Chat Now"}),{$el:"pre",if:'$urlParam("fdbg", "") == 1',children:[{$el:"pre",children:"$stringify( $get(form).value )",attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["activeStep: ","$activeStep"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepHistory: ","$stepHistory"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepQueue: ","$stepQueue"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["steps: ","$stepKeys()"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}];var K,z,Z,G;return V}();
|