bhl-forms 0.6.9 → 0.6.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/bhl-forms.iife.js +1 -1
  2. package/dist/bhl-forms.modern.iife.js +7 -7
  3. package/dist/bhl-forms.modern.umd.js +1 -1
  4. package/dist/bhl-forms.umd.js +1 -1
  5. package/dist/forms/accidentsAndInjuries.es.js +47 -48
  6. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  7. package/dist/forms/accidentsAndInjuries.json +1 -1
  8. package/dist/forms/business.es.js +38 -36
  9. package/dist/forms/business.iife.js +1 -1
  10. package/dist/forms/business.json +1 -1
  11. package/dist/forms/childAndFamily.es.js +29 -28
  12. package/dist/forms/childAndFamily.iife.js +1 -1
  13. package/dist/forms/childAndFamilySingle.es.js +39 -37
  14. package/dist/forms/childAndFamilySingle.iife.js +1 -1
  15. package/dist/forms/childAndFamilySingle.json +1 -1
  16. package/dist/forms/civilLawsuit.es.js +63 -63
  17. package/dist/forms/civilLawsuit.iife.js +1 -1
  18. package/dist/forms/civilLawsuit.json +1 -1
  19. package/dist/forms/contracts.es.js +29 -28
  20. package/dist/forms/contracts.iife.js +1 -1
  21. package/dist/forms/criminal.es.js +57 -57
  22. package/dist/forms/criminal.iife.js +1 -1
  23. package/dist/forms/criminal.json +1 -1
  24. package/dist/forms/divorce.es.js +2222 -0
  25. package/dist/forms/divorce.iife.js +1 -0
  26. package/dist/forms/divorce.json +1 -0
  27. package/dist/forms/employmentAndWorkplace.es.js +62 -62
  28. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  29. package/dist/forms/employmentAndWorkplace.json +1 -1
  30. package/dist/forms/generalLegal.es.js +47 -48
  31. package/dist/forms/generalLegal.iife.js +1 -1
  32. package/dist/forms/generalLegal.json +1 -1
  33. package/dist/forms/generalLegalPopUnder.es.js +47 -48
  34. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  35. package/dist/forms/generalLegalPopUnder.json +1 -1
  36. package/dist/forms/generalLegalPopUnderSingle.es.js +72 -63
  37. package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
  38. package/dist/forms/generalLegalPopUnderSingle.json +1 -1
  39. package/dist/forms/generalLegalSingle.es.js +72 -63
  40. package/dist/forms/generalLegalSingle.iife.js +1 -1
  41. package/dist/forms/generalLegalSingle.json +1 -1
  42. package/dist/forms/generalLegalThankYou.es.js +37 -40
  43. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  44. package/dist/forms/generalLegalThankYou.json +1 -1
  45. package/dist/forms/harassmentAndDiscrimination.es.js +29 -28
  46. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  47. package/dist/forms/landlordTenant.es.js +1911 -0
  48. package/dist/forms/landlordTenant.iife.js +1 -0
  49. package/dist/forms/landlordTenant.json +1 -0
  50. package/dist/forms/malpractice.es.js +47 -48
  51. package/dist/forms/malpractice.iife.js +1 -1
  52. package/dist/forms/malpractice.json +1 -1
  53. package/dist/forms/mechanics.es.js +824 -33
  54. package/dist/forms/mechanics.iife.js +1 -1
  55. package/dist/forms/mechanics.json +1 -1
  56. package/dist/forms/patentsAndIP.es.js +59 -57
  57. package/dist/forms/patentsAndIP.iife.js +1 -1
  58. package/dist/forms/patentsAndIP.json +1 -1
  59. package/dist/forms/realEstate.es.js +47 -48
  60. package/dist/forms/realEstate.iife.js +1 -1
  61. package/dist/forms/realEstate.json +1 -1
  62. package/dist/forms/repossession.es.js +47 -48
  63. package/dist/forms/repossession.iife.js +1 -1
  64. package/dist/forms/repossession.json +1 -1
  65. package/dist/forms/ssdi.es.js +25 -25
  66. package/dist/forms/ssdi.iife.js +1 -1
  67. package/dist/forms/ssdi.json +1 -1
  68. package/dist/forms/testForm.es.js +18 -19
  69. package/dist/forms/testForm.iife.js +1 -1
  70. package/dist/forms/testRedirects.es.js +8 -2
  71. package/dist/forms/testRedirects.iife.js +1 -1
  72. package/dist/forms/testRedirects.json +1 -1
  73. package/dist/forms/willsAndTrusts.es.js +29 -28
  74. package/dist/forms/willsAndTrusts.iife.js +1 -1
  75. package/dist/main.css +1 -1
  76. package/package.json +1 -1
@@ -11,8 +11,14 @@ function RedirectUrlComments(domain, vertical, category) {
11
11
  return RedirectUrl(domain, vertical, category) + '&Comments=${properties.Comments}'
12
12
  }
13
13
 
14
+ var TCPA_LANGUAGE = "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.";
15
+
14
16
  const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
15
17
  const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
18
+ const DEFAULT_FINAL_HEADLINE = 'Submit Your Case';
19
+ const DEFAULT_FINAL_HEADLINE_DYNAMIC = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
20
+ const DEFAULT_FINAL_SUBHEADLINE = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
21
+ const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
16
22
 
17
23
  const radio = (updates) => {
18
24
  if (updates.name && !updates.id) {
@@ -29,6 +35,60 @@ const radio = (updates) => {
29
35
  }, updates)
30
36
  };
31
37
 
38
+ const col2RadioCenter = (updates) => {
39
+ updates.legendClass = 'required t-w-[100%] t-text-center';
40
+ if (typeof updates.fieldsetClass === 'undefined') {
41
+ updates.fieldsetClass = '$reset t-flex t-justify-center';
42
+ }
43
+ updates.optionsClass = 't-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
44
+ updates.innerClass = 't-items-start';
45
+ updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
46
+ updates.optionClass = 't-pl-4 md:t-pl-8 md:t-min-w-[200px]';
47
+ updates.messagesClass = 't-flex t-justify-center';
48
+ updates.helpClass = 't-mt-0 t-mb-4 !t-text-sm t-text-center';
49
+ return radio(updates)
50
+ };
51
+
52
+ const verticalButtonRadio = (updates) => {
53
+ updates.legendClass = 'legend-left';
54
+ updates.fieldsetClass = '$reset t-flex t-justify-center t-flex-col-reverse t-items-center';
55
+ if (typeof updates.optionsClass === 'undefined') {
56
+ updates.optionsClass = 't-flex t-flex-col sm:t-flex-row t-justify-center t-my-3';
57
+ }
58
+ updates.optionClass = 'radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5';
59
+ updates.wrapperClass = '$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]';
60
+ updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
61
+ updates.decoratorIcon = false;
62
+ updates.messagesClass = 't-flex t-justify-center';
63
+ updates.helpClass = 't-mt-2.5 !t-text-sm t-text-center';
64
+ return radio(updates)
65
+ };
66
+
67
+ const verticalYesNoRadio = (updates) => {
68
+ updates.options = ['Yes', 'No'];
69
+ updates.optionsClass = 't-flex t-justify-center t-my-3';
70
+ return verticalButtonRadio(updates)
71
+ };
72
+
73
+ const text = (updates) => {
74
+ if (updates.name && !updates.id) {
75
+ updates.id = updates.name;
76
+ }
77
+ return merge({
78
+ $formkit: 'text',
79
+ validation: 'required',
80
+ validationMessages: {
81
+ required: 'Field is required'
82
+ },
83
+ labelClass: 'required'
84
+ }, updates)
85
+ };
86
+
87
+ const sbsText = (updates) => {
88
+ updates.wrapperClass = 'side-by-side t-items-center';
89
+ return text(updates)
90
+ };
91
+
32
92
  const textArea = (updates) => {
33
93
  if (updates.name && !updates.id) {
34
94
  updates.id = updates.name;
@@ -46,6 +106,42 @@ const textArea = (updates) => {
46
106
  }, updates)
47
107
  };
48
108
 
109
+ const date = (updates) => {
110
+ if (updates.name && !updates.id) {
111
+ updates.id = updates.name;
112
+ }
113
+ return merge({
114
+ $formkit: 'DatePicker',
115
+ validation: 'required',
116
+ validationMessages: {
117
+ required: 'Field is required'
118
+ },
119
+ labelClass: 'required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500',
120
+ innerClass: 't-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500'
121
+ }, updates)
122
+ };
123
+
124
+ const verticalDate = (updates) => {
125
+ updates.wrapperClass = 't-flex t-justify-center';
126
+ updates.inputClass = 't-text-center';
127
+ updates.messagesClass = 't-flex t-justify-center';
128
+ return date(updates)
129
+ };
130
+
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 either way.",
139
+ });
140
+
141
+ const atFaultCenter = (scope) => verticalYesNoRadio({
142
+ name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
143
+ });
144
+
49
145
  const comments = (updates, scope) => textArea(
50
146
  merge({
51
147
  name: scope ? scope + ':' + 'Comments' : 'Comments',
@@ -54,19 +150,136 @@ const comments = (updates, scope) => textArea(
54
150
  }, updates)
55
151
  );
56
152
 
153
+ const doctorTreatmentCenter = (scope) => verticalYesNoRadio({
154
+ name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
155
+ });
156
+
157
+ const email = (scope) => sbsText({
158
+ $formkit: 'email',
159
+ name: scope ? scope + ':' + 'Email' : 'Email',
160
+ label: 'Email Address:',
161
+ placeholder: 'email@domain.com',
162
+ autocomplete: 'email',
163
+ 'data-tf-sensitive': 'false',
164
+ validation: 'required|email',
165
+ validationMessages: {
166
+ required: 'Email is required',
167
+ email: 'Invalid Email'
168
+ }
169
+ });
170
+
171
+ const firstName = (scope) => sbsText({
172
+ $formkit: 'text',
173
+ label: 'First Name:',
174
+ placeholder: 'First',
175
+ name: scope ? scope + ':' + 'First_Name' : 'First_Name',
176
+ autocomplete: "given-name",
177
+ validationMessages: {
178
+ required: 'First Name is required'
179
+ }
180
+ });
181
+
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
+ const lastName = (scope) => sbsText({
191
+ $formkit: 'text',
192
+ label: 'Last Name:',
193
+ placeholder: 'Last',
194
+ name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
195
+ autocomplete: "family-name",
196
+ validationMessages: {
197
+ required: 'Last Name is required'
198
+ }
199
+ });
200
+
57
201
  const mechanicsCrossSells = () => radio({
58
202
  id: 'Mechanics_CrossSells',
59
203
  name: 'Mechanics_CrossSells',
60
- label: 'Click all that apply (optional):',
204
+ // label: 'Click all that apply (optional):',
61
205
  fieldsetClass: '$reset',
62
206
  wrapperClass: 't-mb-2',
63
207
  optionsClass: 't-pt-3',
64
208
  legendClass: '',
65
209
  validation: null,
66
210
  options: {
67
- // 'Auto and Car Accidents': "I've been in a car accident",
68
- 'Auto Insurance': "I'd like to save on my car insurance"
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
+ const phone = (scope) => sbsText({
217
+ $formkit: 'tel',
218
+ name: scope ? scope + ':' + 'Primary_Phone' : 'Primary_Phone',
219
+ label: 'Phone Number:',
220
+ placeholder: '###-###-####',
221
+ maxlength: 12,
222
+ help: '10-digit phone number, hyphens optional',
223
+ autocomplete: 'tel-national',
224
+ 'data-tf-sensitive': 'false',
225
+ validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
226
+ validationMessages: {
227
+ required: 'Field is required',
228
+ matches: 'Invalid Phone Format, use ###-###-####',
229
+ valid_phone: 'Invalid Phone Number'
230
+ },
231
+ helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
232
+ });
233
+
234
+ const primaryInjuryCenter = (scope) => col2RadioCenter({
235
+ name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
236
+ options: [
237
+ "Anxiety",
238
+ "Back or Neck Pain",
239
+ "Broken Bones",
240
+ "Cuts and Bruises",
241
+ "Headaches",
242
+ "Memory Loss",
243
+ "Loss of Limb",
244
+ "Not Sure or Other"
245
+ ]
246
+ });
247
+
248
+ const policeReportFiledCenter = (scope) => verticalYesNoRadio({
249
+ name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
250
+ });
251
+
252
+ const TCPAConsent = (scope) => ({
253
+ $formkit: 'checkbox',
254
+ label: '$meta.tcpaLanguage',
255
+ name: scope ? scope + ':' + 'TCPA_Opt_In' : 'TCPA_Opt_In',
256
+ 'data-tf-sensitive': 'false',
257
+ validation: 'required|accepted',
258
+ validationMessages: {
259
+ required: 'Consent is required',
260
+ accepted: 'Consent is required'
261
+ },
262
+ classes: {
263
+ label: "t-text-xs t-text-slate-500 t-font-normal"
264
+ }
265
+ });
266
+
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'
69
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'
70
283
  });
71
284
 
72
285
  const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
@@ -94,6 +307,127 @@ const findLastInput = (n) => {
94
307
  return null
95
308
  };
96
309
 
310
+ const secureIconDefault = {
311
+ $el: 'div',
312
+ if: '$activeStep === $lastStep()',
313
+ attrs: {
314
+ class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
315
+ },
316
+ children: [
317
+ {
318
+ $el: 'img',
319
+ attrs: {
320
+ loading: 'lazy',
321
+ alt: '',
322
+ style: {
323
+ border: 0
324
+ },
325
+ width: '25',
326
+ height: '25',
327
+ src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
328
+ }
329
+ },
330
+ {
331
+ $el: 'span',
332
+ children: 'Secure & Encrypted',
333
+ attrs: {
334
+ class: 't-pl-2 t-pt-1 t-font-medium'
335
+ }
336
+ }
337
+ ]
338
+ };
339
+
340
+ function secureIcon(updates) {
341
+ return merge(
342
+ secureIconDefault,
343
+ updates
344
+ )
345
+ }
346
+
347
+ function verticalStepHeadline(updates) {
348
+ return {
349
+ $el: 'h3',
350
+ children: updates.headline || 'Tell Us About Your Situation',
351
+ attrs: {
352
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
353
+ }
354
+ }
355
+ }
356
+
357
+ function verticalStepSubHeadline(updates) {
358
+ return {
359
+ $el: 'h5',
360
+ children: updates.subheadline || '',
361
+ attrs: {
362
+ class: 't-flex t-justify-center t-text-center !t-text-lg t-font-normal t-text-dark t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.subheadlineClass || '')
363
+ }
364
+ }
365
+ }
366
+
367
+ function commentsStepHeadline(updates) {
368
+ return {
369
+ $el: 'h3',
370
+ children: updates.headline || 'Additional Case Details',
371
+ attrs: {
372
+ 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
+ }
374
+ }
375
+ }
376
+
377
+ function firstAndLastStepHeadline(updates) {
378
+ return {
379
+ $el: 'h3',
380
+ children: updates.headline || 'Please Provide a Contact Name',
381
+ attrs: {
382
+ 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 || '')
383
+ }
384
+ }
385
+ }
386
+
387
+ function contactStepHeadline(updates) {
388
+ return {
389
+ $el: 'h3',
390
+ children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
391
+ attrs: {
392
+ 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
+ }
394
+ }
395
+ }
396
+
397
+ function contactStepSubHeadline(updates) {
398
+ return {
399
+ $el: 'h5',
400
+ children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC,
401
+ attrs: {
402
+ 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
+ }
404
+ }
405
+ }
406
+
407
+ const TRUSTED_FORM_JS = `(function() {
408
+ if (window.xxTrustedFormLoaded) {
409
+ return
410
+ }
411
+ var vid = '';
412
+ if (typeof window.zar !== 'undefined') {
413
+ vid = window.zar.getVID();
414
+ }
415
+ window.xxTrustedFormLoaded = true;
416
+ var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'
417
+ var tf = document.createElement('script');
418
+ tf.type = 'text/javascript'; tf.async = true;
419
+ 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();
420
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);
421
+ })();`;
422
+
423
+ function trustedFormScript() {
424
+ return {
425
+ $el: 'script',
426
+ if: '$activeStep === $lastStep()',
427
+ children: TRUSTED_FORM_JS
428
+ }
429
+ }
430
+
97
431
  const stepDefaults = (step, stepKey) => ({
98
432
  $el: 'section',
99
433
  if: '$stepEnabled("' + step + '")',
@@ -134,12 +468,83 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
134
468
  )
135
469
  }
136
470
 
471
+ // Single question step
472
+ function sqstep(name, input, defaultHeadline, updates = {}) {
473
+ return step(
474
+ name,
475
+ [
476
+ verticalStepHeadline({ headline: updates.headline ?? defaultHeadline, headlineClass: updates.headlineClass }),
477
+ ...Array.isArray(input) ? input : [input],
478
+ ],
479
+ updates.nextOnEnter,
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 ?? 'Would you like a free accident consultation?',
505
+ }),
506
+ {
507
+ $formkit: 'hidden',
508
+ name: "CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem",
509
+ id: "CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem",
510
+ value: "Auto and Car Accidents"
511
+ },
512
+ {
513
+ $formkit: 'hidden',
514
+ name: "CrossSell:Auto_and_Car_Accidents:vertical",
515
+ value: "Legal"
516
+ },
517
+ wouldLikeMVAConsultation$1(),
518
+ ],
519
+ updates.nextOnEnter,
520
+ updates.nextOnInput,
521
+ updates.stepKey,
522
+ updates.nextStepMap
523
+ )
524
+ }
525
+
526
+ function commentsHeadline(updates = {}) {
527
+ return step(
528
+ 'comments',
529
+ [
530
+ commentsStepHeadline(updates),
531
+ comments({
532
+ label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL : updates.label,
533
+ placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
534
+ inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
535
+ }, updates.scope),
536
+ ],
537
+ false // nextOnEnter
538
+ )
539
+ }
540
+
137
541
  function commentsMechanics(updates = {}) {
138
542
  return step(
139
543
  'commentsMechanics',
140
544
  [
545
+ commentsStepHeadline(updates),
141
546
  comments({
142
- label: updates.label || DEFAULT_COMMENTS_LABEL,
547
+ label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL : updates.label,
143
548
  placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
144
549
  inputClass: '!t-h-20',
145
550
  }),
@@ -149,30 +554,151 @@ function commentsMechanics(updates = {}) {
149
554
  )
150
555
  }
151
556
 
152
- function formNavigationOnlySubmit(updates = {}) {
153
- return {
154
- $el: 'div',
155
- attrs: {
156
- class: 'step-nav'
557
+ function contactInfo(updates = {}) {
558
+ return step(
559
+ 'contactInfo',
560
+ [
561
+ contactStepHeadline(updates),
562
+ contactStepSubHeadline(updates),
563
+ trustedFormScript(),
564
+ email(updates.scope),
565
+ phone(updates.scope),
566
+ TCPAConsent(updates.scope),
567
+ secureIcon()
568
+ ],
569
+ false, // nextOnEnter
570
+ )
571
+ }
572
+
573
+ function firstAndLastV3(updates = {}, scope) {
574
+ return step(
575
+ 'firstAndLast',
576
+ [
577
+ firstAndLastStepHeadline({
578
+ headline: updates.headline ?? 'Who is looking for help?',
579
+ headlineClass: updates.headlineClass
580
+ }),
581
+ verticalStepSubHeadline({
582
+ subheadline: updates.subheadline ?? 'Note: we never share info without consent',
583
+ subheadlineClass: '!t-text-sm !t-text-gray-500'
584
+ }),
585
+ firstName(scope),
586
+ lastName(scope)
587
+ ],
588
+ updates.nextOnEnter
589
+ )
590
+ }
591
+
592
+ function zipcode(updates = {}) {
593
+ return sqstep(
594
+ 'zipcode',
595
+ zipcodeCenter(updates, updates.scope),
596
+ 'Please verify your Zip Code',
597
+ updates
598
+ )
599
+ }
600
+
601
+ function haveAttorney(updates = {}) {
602
+ return sqstep(
603
+ 'haveAttorney',
604
+ haveAttorneyCenter(updates.scope),
605
+ 'Already working with an attorney?',
606
+ updates
607
+ )
608
+ }
609
+
610
+ function incidentDate(updates = {}) {
611
+ return sqstep(
612
+ 'incidentDate',
613
+ incidentDateCenter(updates.scope),
614
+ 'When did the incident occur?',
615
+ updates
616
+ )
617
+ }
618
+
619
+ function doctorTreatment(updates = {}) {
620
+ return sqstep(
621
+ 'doctorTreatment',
622
+ doctorTreatmentCenter(updates.scope),
623
+ 'Have you seen a doctor about this?',
624
+ updates
625
+ )
626
+ }
627
+
628
+ function atFault(updates = {}) {
629
+ return sqstep(
630
+ 'atFault',
631
+ atFaultCenter(updates.scope),
632
+ 'Were you at fault?',
633
+ updates
634
+ )
635
+ }
636
+
637
+ function primaryInjury(updates = {}) {
638
+ return sqstep(
639
+ 'primaryInjury',
640
+ primaryInjuryCenter(updates.scope),
641
+ 'What was the primary injury?',
642
+ updates
643
+ )
644
+ }
645
+
646
+ function policeReportFiled(updates = {}) {
647
+ return sqstep(
648
+ 'policeReportFiled',
649
+ policeReportFiledCenter(updates.scope),
650
+ 'Was a police report filed?',
651
+ updates
652
+ )
653
+ }
654
+
655
+ const formNavigation = (updates = {}) => ({
656
+ $el: 'div',
657
+ attrs: {
658
+ class: 'step-nav'
659
+ },
660
+ children: [
661
+ {
662
+ $formkit: 'button',
663
+ name: 'back_button',
664
+ onClick: '$setPreviousStep($prevStepFunc($get(form)))',
665
+ children: 'Back',
666
+ style: {
667
+ if: '$activeStep === $firstStep()',
668
+ then: 'visibility: hidden;'
669
+ }
157
670
  },
158
- children: [
159
- {
160
- $formkit: 'button',
161
- name: 'hidden_button',
162
- children: 'Hidden',
163
- style: {
164
- if: '$activeStep === $firstStep()',
165
- then: 'visibility: hidden;'
166
- }
671
+ {
672
+ $formkit: 'button',
673
+ name: 'next_button',
674
+ onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
675
+ children: {
676
+ if: '$activeStep === $firstStep()',
677
+ then: 'Start',
678
+ else: 'Next'
167
679
  },
168
- {
169
- $formkit: 'submit',
170
- name: 'submit_button',
171
- label: updates.submitLabel || 'Chat Now'
680
+ outerClass: {
681
+ if: '$activeStep === $lastStep()',
682
+ then: 't-hidden',
683
+ else: ''
684
+ },
685
+ style: {
686
+ if: '$activeStep === $lastStep()',
687
+ then: 'display: none;'
172
688
  }
173
- ]
174
- }
175
- }
689
+ },
690
+ {
691
+ $formkit: 'submit',
692
+ name: 'submit_button',
693
+ label: updates.submitLabel || 'Submit',
694
+ if: '$activeStep === $lastStep()',
695
+ style: {
696
+ if: '$activeStep !== $lastStep()',
697
+ then: 'display: none;'
698
+ }
699
+ }
700
+ ]
701
+ });
176
702
 
177
703
  const formDetails = () => ({
178
704
  $el: 'pre',
@@ -242,6 +768,12 @@ const formPropDefaults = {
242
768
  formClass: '!t-max-w-[40rem]'
243
769
  };
244
770
 
771
+ function filterMapByKey(obj, keyList) {
772
+ return Object.fromEntries(
773
+ Object.entries(obj).filter(([key]) => keyList.includes(key))
774
+ );
775
+ }
776
+
245
777
  // export function filteredNextStepsMapLegal(keyList) {
246
778
  // const res = { Type_Of_Legal_Problem: filterMapByKey(nextStepsMapGeneralLegal["Type_Of_Legal_Problem"], keyList) }
247
779
  // res["*"] = nextStepsMapGeneralLegal["*"]
@@ -259,6 +791,51 @@ function formProps(updates) {
259
791
  return props
260
792
  }
261
793
 
794
+ const metaDefaults = {
795
+ tcpaLanguage: TCPA_LANGUAGE
796
+ };
797
+
798
+ function metaProps(updates) {
799
+ const data = merge(
800
+ metaDefaults,
801
+ updates
802
+ );
803
+ return {
804
+ type: 'meta',
805
+ data
806
+ }
807
+ }
808
+
809
+ function defaultMetaProps(tolps = null) {
810
+ let commentsPlaceholders = TOLPCommentsPlaceholders;
811
+ let finalHeadlines = TOLPFinalHeadlines;
812
+ let finalSubHeadlines = TOLPFinalSubHeadlines;
813
+ if (tolps) {
814
+ commentsPlaceholders = filterMapByKey(TOLPCommentsPlaceholders, tolps);
815
+ finalHeadlines = filterMapByKey(TOLPFinalHeadlines, tolps);
816
+ finalSubHeadlines = filterMapByKey(TOLPFinalSubHeadlines, tolps);
817
+ }
818
+ return metaProps({
819
+ defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
820
+ commentsPlaceholders: commentsPlaceholders,
821
+ defaultFinalHeadline: DEFAULT_FINAL_HEADLINE,
822
+ finalHeadlines: finalHeadlines,
823
+ defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE,
824
+ finalSubHeadlines: finalSubHeadlines,
825
+ })
826
+ }
827
+
828
+ function dynamicSchemaNode(field = 'Type_Of_Legal_Problem') {
829
+ return {
830
+ $cmp: 'FormKitSchema',
831
+ if: '$get(' + field + ').value',
832
+ props: {
833
+ schema: '$meta.dynamicSchema',
834
+ data: '$buildData($meta)'
835
+ }
836
+ }
837
+ }
838
+
262
839
  const formAnchorDefaults = {
263
840
  $el: 'div',
264
841
  children: [
@@ -339,10 +916,184 @@ const hiddenInputsMechanics = [
339
916
  name: "vertical",
340
917
  value: "AutoRepair"
341
918
  },
919
+ {
920
+ $formkit: 'hidden',
921
+ name: "Category",
922
+ id: "Category",
923
+ value: "Mechanics"
924
+ },
342
925
  ...hiddenInputsBase
343
926
  ];
344
927
 
928
+ const TOLPCommentsPlaceholders = {
929
+ 'Adoption': 'Example: "I need help with adoption forms"',
930
+ 'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
931
+ '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"',
932
+ 'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
933
+ 'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
934
+ 'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
935
+ 'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
936
+ 'Child Custody': 'Example: "Need help getting custody"',
937
+ 'Child Support': 'Example: "Issues with child support payments"',
938
+ 'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
939
+ 'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
940
+ 'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
941
+ 'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
942
+ 'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
943
+ 'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
944
+ 'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
945
+ 'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
946
+ 'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
947
+ 'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
948
+ 'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
949
+ 'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
950
+ 'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
951
+ 'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
952
+ 'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
953
+ 'Guardianship': 'Example: "I need help with guardianship documents"',
954
+ 'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
955
+ 'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
956
+ 'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
957
+ 'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
958
+ 'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
959
+ 'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
960
+ 'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
961
+ 'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
962
+ 'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
963
+ 'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
964
+ 'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
965
+ '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"',
966
+ 'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
967
+ 'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
968
+ 'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
969
+ 'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
970
+ 'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
971
+ 'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
972
+ 'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
973
+ 'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
974
+ '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"',
975
+ 'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
976
+ 'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
977
+ 'Unemployment': 'Example: "I need help filing for unemployment benefits"',
978
+ 'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
979
+ 'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
980
+ 'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
981
+ 'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
982
+ 'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
983
+ 'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
984
+ };
985
+
986
+ const TOLPFinalHeadlines = {
987
+ // 'Adoption': '',
988
+ };
989
+
990
+ const TOLPFinalSubHeadlines = {
991
+ 'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
992
+ // 'Asbestos and Mesothelioma': '',
993
+ 'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
994
+ 'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
995
+ // 'Birth Certificate and Name Change': '',
996
+ // 'Business Lawyers': '',
997
+ // 'Child Custody and Support': '',
998
+ // 'Civil Rights and Discrimination': '',
999
+ // 'Civil Lawsuit': '',
1000
+ // 'Consumer Lawyers': '',
1001
+ 'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
1002
+ // 'Criminal and Felony': '',
1003
+ // 'Debt and Collections': '',
1004
+ 'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
1005
+ 'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
1006
+ 'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
1007
+ // 'Employment and Workplace': '',
1008
+ // 'Expungement': '',
1009
+ // 'Family Issues': '',
1010
+ 'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
1011
+ 'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
1012
+ // 'Harassment and Discrimination': '',
1013
+ // 'Identity Theft': '',
1014
+ 'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
1015
+ // 'Insurance': '',
1016
+ 'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
1017
+ // 'Lemon Law': '',
1018
+ 'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
1019
+ 'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
1020
+ 'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
1021
+ 'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
1022
+ // 'Power of Attorney': '',
1023
+ 'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
1024
+ // 'Product Liability': '',
1025
+ // 'Property Damage': '',
1026
+ 'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
1027
+ 'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
1028
+ 'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
1029
+ // 'Traffic and Tickets': '',
1030
+ 'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
1031
+ // 'Victim of a Crime': '',
1032
+ // 'Wills and Trusts': '',
1033
+ 'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
1034
+ // 'Wrongful Death': '',
1035
+ // 'Wrongful Termination': '',
1036
+ // 'Not Sure or Other': ''
1037
+ // 'Sexual Harassment': '',
1038
+ // 'Workplace Harassment': '',
1039
+ // 'Non-Workplace Harassment': '',
1040
+ // 'Workplace Discrimination': '',
1041
+ // 'Non-Workplace Discrimination': '',
1042
+ };
1043
+
1044
+ const tolps = [
1045
+ 'Auto and Car Accidents',
1046
+ ];
1047
+
1048
+ const meta = defaultMetaProps(tolps);
1049
+
1050
+ // All of the dynamic MVA questions get scoped
1051
+ const scope = 'CrossSell:Auto_and_Car_Accidents';
1052
+
1053
+ meta.data.dynamicSchema = [
1054
+ incidentDate({
1055
+ scope,
1056
+ nextOnInput: false
1057
+ }),
1058
+ atFault({
1059
+ scope,
1060
+ }),
1061
+ primaryInjury({
1062
+ scope,
1063
+ }),
1064
+ doctorTreatment({
1065
+ scope,
1066
+ }),
1067
+ policeReportFiled({
1068
+ scope,
1069
+ }),
1070
+ haveAttorney({
1071
+ scope,
1072
+ }),
1073
+ commentsHeadline({
1074
+ scope,
1075
+ label: null,
1076
+ placeholder: 'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',
1077
+ headline: 'Please briefly describe the accident:',
1078
+ headlineClass: '!t-text-dark',
1079
+ }),
1080
+ zipcode({
1081
+ scope,
1082
+ help: 'We try to match you with local help'
1083
+ }),
1084
+ firstAndLastV3({
1085
+ scope,
1086
+ headlineClass: '!t-text-dark'
1087
+ }),
1088
+ contactInfo({
1089
+ scope,
1090
+ headline: 'Connect Now - Final Step',
1091
+ subheadline: "After submitting you'll be connected for your mechanic chat and get contacted for a free accident consultation.",
1092
+ }),
1093
+ ];
1094
+
345
1095
  const schema = [
1096
+ meta,
346
1097
  formAnchor(),
347
1098
  {
348
1099
  $cmp: 'FormKit',
@@ -350,37 +1101,77 @@ const schema = [
350
1101
  formId: 'mechanics',
351
1102
  popUnderMap: {
352
1103
  'properties.Mechanics_CrossSells': {
353
- // 'Auto and Car Accidents': '/legal?Type_Of_Legal_Problem=Auto+and+Car+Accidents&hl=You+May+Deserve+Compensation',
354
1104
  'Auto Insurance': RedirectUrl("answers-now.com", 'Insurance', "Auto Insurance"),
355
1105
  }
356
1106
  },
357
1107
  redirectMap: {
358
1108
  '*': RedirectUrlComments('answers-now.com', 'AutoRepair', 'Mechanics')
359
1109
  },
360
- formClass: '!t-max-w-[36rem]'
1110
+ formClass: '!t-max-w-[38rem]'
361
1111
  }),
362
1112
  children: [
1113
+ // forms.progressBar(),
363
1114
  headline({
364
- children: '$urlParam("hl", "Have Questions for a Mechanic?")',
1115
+ children: '$urlParam("hl", "Chat With a Mechanic Online")',
365
1116
  if: '$activeStep === $firstStep()'
366
1117
  }),
367
1118
  subHeadline({
368
- children: '$urlParam("shl", "Get Answers Within Minutes!")',
369
- if: '$activeStep === $firstStep()'
1119
+ children: '$urlParam("shl", "Is the issue due to an auto accident?")',
1120
+ if: '$activeStep === $firstStep()',
1121
+ subheadlineClass: '!t-text-dark'
370
1122
  }),
371
1123
  ...hiddenInputsMechanics,
1124
+ {
1125
+ $formkit: 'hidden',
1126
+ name: "CrossSell:Auto_and_Car_Accidents:TCPA_Language",
1127
+ value: "$meta.tcpaLanguage"
1128
+ },
372
1129
  {
373
1130
  $el: 'div',
374
1131
  attrs: {
375
1132
  class: 'form-body'
376
1133
  },
377
1134
  children: [
1135
+ autoDamageFromAccident({
1136
+ nextOnInput: false,
1137
+ nextStepMap: {
1138
+ 'Auto_Damage_From_Accident': {
1139
+ 'Yes': ['wouldLikeMVAConsultation', 'commentsMechanics'],
1140
+ 'No': ['commentsMechanics'],
1141
+ },
1142
+ '*': ["commentsMechanics"]
1143
+ }
1144
+ }),
1145
+ wouldLikeMVAConsultation({
1146
+ nextOnInput: true,
1147
+ nextStepMap: {
1148
+ 'Would_Like_MVA_Consultation': {
1149
+ 'Yes': [
1150
+ 'incidentDate',
1151
+ 'atFault',
1152
+ 'primaryInjury',
1153
+ 'doctorTreatment',
1154
+ 'policeReportFiled',
1155
+ 'haveAttorney',
1156
+ 'comments',
1157
+ 'zipcode',
1158
+ 'firstAndLast',
1159
+ 'contactInfo',
1160
+ ],
1161
+ 'No': ['commentsMechanics'],
1162
+ },
1163
+ '*': ["commentsMechanics"]
1164
+ }
1165
+ }),
1166
+ dynamicSchemaNode('Auto_Damage_From_Accident'),
378
1167
  commentsMechanics({
379
- label: 'Please briefly describe your issue:',
1168
+ headline: 'Last Step: Describe your vehicle issue',
1169
+ headlineClass: '!t-text-dark',
1170
+ label: null,
380
1171
  placeholder: 'Example: "I\'m having transmission trouble", or "My car won\'t start"',
381
- nextOnEnter: false
1172
+ nextOnEnter: false,
382
1173
  }),
383
- formNavigationOnlySubmit({
1174
+ formNavigation({
384
1175
  submitLabel: 'Chat Now'
385
1176
  }),
386
1177
  formDetails()