bhl-forms 0.0.9 → 0.0.12

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.
@@ -12,23 +12,25 @@ const radio = (updates) => {
12
12
  required: 'Field is required',
13
13
  },
14
14
  optionsClass: 'pt-3 pl-1',
15
+ legendClass: 'required'
15
16
  }, updates)
16
17
  };
17
18
 
18
19
  const sbsRadio = (updates) => {
19
- updates.legendClass = 'legend-left';
20
+ updates.legendClass = 'legend-left required';
20
21
  updates.fieldsetClass = '$reset side-by-side';
21
22
  updates.optionsClass = 'pl-1';
22
- updates.innerClass = 'center-label';
23
+ updates.innerClass = 'flex items-center';
24
+ updates.wrapperClass = 'mb-3';
23
25
  return radio(updates)
24
26
  };
25
27
 
26
28
  const sbsYesNoRadio = (updates) => {
27
29
  updates.options = ['Yes', 'No'];
28
- updates.legendClass = 'legend-left';
29
- updates.fieldsetClass = '$reset side-by-side';
30
- updates.optionsClass = 'pl-1 side-by-side center-label';
31
- updates.innerClass = 'center-label';
30
+ updates.legendClass = 'legend-left required';
31
+ updates.fieldsetClass = '$reset side-by-side items-center';
32
+ updates.optionsClass = 'pl-1 side-by-side items-center';
33
+ updates.innerClass = 'flex items-center';
32
34
  return radio(updates)
33
35
  };
34
36
 
@@ -41,12 +43,13 @@ const select = (updates) => {
41
43
  required: 'Field is required',
42
44
  },
43
45
  inputClass: 'bg-white',
46
+ labelClass: 'required'
44
47
  }, updates)
45
48
  };
46
49
 
47
50
  const sbsSelect = (updates) => {
48
- updates.labelClass = 'center-label';
49
- updates.wrapperClass = 'side-by-side';
51
+ updates.labelClass = 'required';
52
+ updates.wrapperClass = 'side-by-side items-center';
50
53
  updates.innerClass = 'select-height-content';
51
54
  return select(updates)
52
55
  };
@@ -58,17 +61,18 @@ const text = (updates) => {
58
61
  validationMessages: {
59
62
  required: 'Field is required',
60
63
  },
64
+ labelClass: 'required'
61
65
  }, updates)
62
66
  };
63
67
 
64
68
  const sbsText = (updates) => {
65
- updates.labelClass = 'center-label';
66
- updates.wrapperClass = 'side-by-side';
69
+ updates.labelClass = 'required';
70
+ updates.wrapperClass = 'side-by-side items-center';
67
71
  return text(updates)
68
72
  };
69
73
 
70
74
  const childAndFamilyTOLP = () => sbsRadio({
71
- label: 'Which Type of Help is Needed? *',
75
+ label: 'Type of Help Needed:',
72
76
  name: 'Type_Of_Legal_Problem',
73
77
  id: 'Type_Of_Legal_Problem',
74
78
  options: [
@@ -82,9 +86,8 @@ const childAndFamilyTOLP = () => sbsRadio({
82
86
  });
83
87
 
84
88
  const childHome = () => sbsSelect({
85
- label: 'With Whom Do the Children Currently Live? *',
89
+ label: 'With Whom Do the Children Currently Live?',
86
90
  name: 'Child_Home',
87
- // id: 'Child_Home',
88
91
  options: [
89
92
  'Mother',
90
93
  'Father',
@@ -94,7 +97,7 @@ const childHome = () => sbsSelect({
94
97
  });
95
98
 
96
99
  const childPrimaryCaregiver = () => sbsSelect({
97
- label: 'Who is the Primary Caregiver? *',
100
+ label: 'Who is the Primary Caregiver?',
98
101
  name: 'Child_Primary_Caregiver',
99
102
  options: [
100
103
  'Mother',
@@ -104,7 +107,7 @@ const childPrimaryCaregiver = () => sbsSelect({
104
107
  });
105
108
 
106
109
  const childRelationship = () => sbsSelect({
107
- label: 'Your Relationship to Child(ren): *',
110
+ label: 'Your Relationship to Child(ren):',
108
111
  name: 'Child_Relationship',
109
112
  options: [
110
113
  'Father',
@@ -117,21 +120,22 @@ const childRelationship = () => sbsSelect({
117
120
 
118
121
  const comments$1 = () => ({
119
122
  $formkit: 'textarea',
120
- label: 'Please provide a brief description of your situation *',
123
+ label: 'Please provide a brief description of your situation:',
121
124
  name: 'Comments',
122
125
  placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
123
126
  rows: 1,
124
127
  validation: 'required',
125
128
  maxlength: 1000,
129
+ labelClass: 'required',
126
130
  validationMessages: {
127
131
  required: 'Description is required',
128
132
  },
129
133
  });
130
134
 
131
135
  const degreeOfInterest = () => sbsSelect({
132
- label: 'How Likely Are You to Pay if Your Issue Could be Resolved? *',
136
+ label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
133
137
  name: 'Degree_Of_Interest',
134
- help: 'No payment necessary to speak with lawyers.',
138
+ // help: 'No payment necessary to speak with lawyers.',
135
139
  options: [
136
140
  'Definitely',
137
141
  'Probably',
@@ -140,9 +144,9 @@ const degreeOfInterest = () => sbsSelect({
140
144
  ]
141
145
  });
142
146
 
143
- const firstName = () => ({
147
+ const firstName = () => sbsText({
144
148
  $formkit: 'text',
145
- label: 'First Name *',
149
+ label: 'First Name:',
146
150
  name: 'First_Name',
147
151
  validation: 'required',
148
152
  validationMessages: {
@@ -150,10 +154,10 @@ const firstName = () => ({
150
154
  },
151
155
  });
152
156
 
153
- const email = () => ({
157
+ const email = () => sbsText({
154
158
  $formkit: 'email',
155
159
  name: 'Email',
156
- label: 'Email Address *',
160
+ label: 'Email Address:',
157
161
  placeholder: 'email@domain.com',
158
162
  validation: 'required|email',
159
163
  validationMessages: {
@@ -164,17 +168,17 @@ const email = () => ({
164
168
 
165
169
  const haveAttorney = () => sbsYesNoRadio({
166
170
  name: 'Have_Attorney',
167
- label: 'Are You Currently Working with An Attorney? *',
171
+ label: 'Are You Currently Working with An Attorney?',
168
172
  });
169
173
 
170
174
  const haveChildren = () => sbsYesNoRadio({
171
175
  name: 'Have_Children',
172
- label: 'Do You Have Children? *',
176
+ label: 'Do You Have Children?',
173
177
  });
174
178
 
175
- const lastName = () => ({
179
+ const lastName = () => sbsText({
176
180
  $formkit: 'text',
177
- label: 'Last Name *',
181
+ label: 'Last Name:',
178
182
  name: 'Last_Name',
179
183
  validation: 'required',
180
184
  validationMessages: {
@@ -183,7 +187,7 @@ const lastName = () => ({
183
187
  });
184
188
 
185
189
  const lawyerPaymentMethod = () => sbsSelect({
186
- label: 'How Will You Pay for Legal Fees if You Hire a Lawyer? *',
190
+ label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
187
191
  name: 'Lawyer_Payment_Method',
188
192
  help: 'No payment necessary to speak with lawyers.',
189
193
  options: [
@@ -197,7 +201,7 @@ const lawyerPaymentMethod = () => sbsSelect({
197
201
  });
198
202
 
199
203
  const maritalStatus = () => sbsSelect({
200
- label: 'Marital Status *',
204
+ label: 'Marital Status:',
201
205
  name: 'Marital_Status',
202
206
  options: [
203
207
  'Unmarried, Living Together',
@@ -209,12 +213,12 @@ const maritalStatus = () => sbsSelect({
209
213
  ]
210
214
  });
211
215
 
212
- const phone = () => ({
216
+ const phone = () => sbsText({
213
217
  $formkit: 'tel',
214
218
  name: 'Primary_Phone',
215
- label: 'Phone Number *',
219
+ label: 'Phone Number:',
216
220
  placeholder: 'xxx-xxx-xxxx',
217
- help: '10-digit US phone number, hyphens optional.',
221
+ // help: '10-digit US phone number, hyphens optional.',
218
222
  validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/',
219
223
  validationMessages: {
220
224
  required: 'Phone Number is required',
@@ -231,12 +235,12 @@ const TCPAConsent = () => ({
231
235
  accepted: 'Consent is required',
232
236
  },
233
237
  classes: {
234
- label: "text-xs text-slate-500"
238
+ label: "text-xs text-slate-500 font-normal"
235
239
  }
236
240
  });
237
241
 
238
242
  const zipcode = () => sbsText({
239
- label: 'Zip Code *',
243
+ label: 'Zip Code:',
240
244
  placeholder: '90210',
241
245
  name: 'Zip',
242
246
  validation: 'required|matches:/^[0-9]{5}$/',
@@ -361,7 +365,7 @@ function contactInfo() {
361
365
  $el: 'h3',
362
366
  children: 'Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:',
363
367
  attrs: {
364
- class: 'flex justify-center text-lg font-bold pb-5 pt-0'
368
+ class: 'flex justify-center text-center text-lg font-bold pb-5 pt-0 px-3'
365
369
  }
366
370
  },
367
371
  email(),
@@ -403,6 +407,27 @@ function firstAndLast() {
403
407
  )
404
408
  }
405
409
 
410
+ function TOLPQuestions() {
411
+ return step(
412
+ 'TOLPQuestions',
413
+ [
414
+ {
415
+ $el: 'h3',
416
+ children: 'Please Complete the Following:',
417
+ attrs: {
418
+ class: 'flex justify-center text-center text-2xl font-bold text-blue-500 pb-5 pt-0 px-3'
419
+ }
420
+ },
421
+ AdoptionQuestions(),
422
+ ChildCustodyAndSupportQuestions(),
423
+ NotSureOrOtherQuestions()
424
+ ],
425
+ ...arguments
426
+ )
427
+ }
428
+
429
+ // ------ Utilities
430
+
406
431
  const formNavigation = () => ({
407
432
  $el: 'div',
408
433
  attrs: {
@@ -412,7 +437,7 @@ const formNavigation = () => ({
412
437
  {
413
438
  $formkit: 'button',
414
439
  onClick: '$setPreviousStep()',
415
- children: 'Previous Step',
440
+ children: 'Back',
416
441
  style: {
417
442
  if: '$activeStep === $firstStep()',
418
443
  then: 'visibility: hidden;'
@@ -421,7 +446,7 @@ const formNavigation = () => ({
421
446
  {
422
447
  $formkit: 'button',
423
448
  onClick: '$setNextStep()',
424
- children: 'Next Step',
449
+ children: 'Next',
425
450
  style: {
426
451
  if: '$activeStep === $lastStep()',
427
452
  then: 'display: none;'
@@ -429,7 +454,7 @@ const formNavigation = () => ({
429
454
  },
430
455
  {
431
456
  $formkit: 'submit',
432
- label: 'Submit Application',
457
+ label: 'Submit',
433
458
  if: '$activeStep === $lastStep()',
434
459
  style: {
435
460
  if: '$activeStep !== $lastStep()',
@@ -478,25 +503,6 @@ const formDetails = () => ({
478
503
  ]
479
504
  });
480
505
 
481
- function TOLPQuestions() {
482
- return step(
483
- 'TOLPQuestions',
484
- [
485
- {
486
- $el: 'h3',
487
- children: 'Please Complete the Following:',
488
- attrs: {
489
- class: 'flex justify-center text-2xl font-bold text-blue-500 pb-5 pt-0'
490
- }
491
- },
492
- AdoptionQuestions(),
493
- ChildCustodyAndSupportQuestions(),
494
- NotSureOrOtherQuestions()
495
- ],
496
- ...arguments
497
- )
498
- }
499
-
500
506
  const schema = [
501
507
  {
502
508
  type: 'meta',
@@ -509,8 +515,8 @@ const schema = [
509
515
  props: {
510
516
  type: 'form',
511
517
  id: 'form',
512
- onSubmit: '$submit("https://httpbin.org/post", $prepData)',
513
- // onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData)',
518
+ onSubmit: '$submit("https://httpbin.org/post", $prepData, $getRedirect)',
519
+ // onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData, $getRedirect)',
514
520
  plugins: '$plugins',
515
521
  actions: false,
516
522
  prepop: {
@@ -521,6 +527,9 @@ const schema = [
521
527
  409: { abort: false },
522
528
  429: "An Error Occurred"
523
529
  },
530
+ redirectMap: {
531
+ '*': 'https://justanswer.9pctbx.net/c/2880795/808601/9320?sharedid=${vid}'
532
+ },
524
533
  formClass: '!max-w-xl'
525
534
  },
526
535
  children: [
@@ -529,7 +538,7 @@ const schema = [
529
538
  if: '$activeStep === $firstStep()',
530
539
  children: 'Get Child & Family Help Today',
531
540
  attrs: {
532
- class: 'flex justify-center text-3xl font-bold pt-5'
541
+ class: 'flex justify-center text-center text-3xl font-bold pt-5 px-3'
533
542
  }
534
543
  },
535
544
  {
@@ -537,7 +546,7 @@ const schema = [
537
546
  if: '$activeStep === $firstStep()',
538
547
  children: 'Contact Us Now for Child Support, Custody and Family Issues',
539
548
  attrs: {
540
- class: 'flex justify-center text-l font-bold text-blue-500'
549
+ class: 'flex justify-center text-center text-md font-medium text-blue-500 px-3'
541
550
  }
542
551
  },
543
552
  {
@@ -15,23 +15,25 @@ var childAndFamily = (function () {
15
15
  required: 'Field is required',
16
16
  },
17
17
  optionsClass: 'pt-3 pl-1',
18
+ legendClass: 'required'
18
19
  }, updates)
19
20
  };
20
21
 
21
22
  const sbsRadio = (updates) => {
22
- updates.legendClass = 'legend-left';
23
+ updates.legendClass = 'legend-left required';
23
24
  updates.fieldsetClass = '$reset side-by-side';
24
25
  updates.optionsClass = 'pl-1';
25
- updates.innerClass = 'center-label';
26
+ updates.innerClass = 'flex items-center';
27
+ updates.wrapperClass = 'mb-3';
26
28
  return radio(updates)
27
29
  };
28
30
 
29
31
  const sbsYesNoRadio = (updates) => {
30
32
  updates.options = ['Yes', 'No'];
31
- updates.legendClass = 'legend-left';
32
- updates.fieldsetClass = '$reset side-by-side';
33
- updates.optionsClass = 'pl-1 side-by-side center-label';
34
- updates.innerClass = 'center-label';
33
+ updates.legendClass = 'legend-left required';
34
+ updates.fieldsetClass = '$reset side-by-side items-center';
35
+ updates.optionsClass = 'pl-1 side-by-side items-center';
36
+ updates.innerClass = 'flex items-center';
35
37
  return radio(updates)
36
38
  };
37
39
 
@@ -44,12 +46,13 @@ var childAndFamily = (function () {
44
46
  required: 'Field is required',
45
47
  },
46
48
  inputClass: 'bg-white',
49
+ labelClass: 'required'
47
50
  }, updates)
48
51
  };
49
52
 
50
53
  const sbsSelect = (updates) => {
51
- updates.labelClass = 'center-label';
52
- updates.wrapperClass = 'side-by-side';
54
+ updates.labelClass = 'required';
55
+ updates.wrapperClass = 'side-by-side items-center';
53
56
  updates.innerClass = 'select-height-content';
54
57
  return select(updates)
55
58
  };
@@ -61,17 +64,18 @@ var childAndFamily = (function () {
61
64
  validationMessages: {
62
65
  required: 'Field is required',
63
66
  },
67
+ labelClass: 'required'
64
68
  }, updates)
65
69
  };
66
70
 
67
71
  const sbsText = (updates) => {
68
- updates.labelClass = 'center-label';
69
- updates.wrapperClass = 'side-by-side';
72
+ updates.labelClass = 'required';
73
+ updates.wrapperClass = 'side-by-side items-center';
70
74
  return text(updates)
71
75
  };
72
76
 
73
77
  const childAndFamilyTOLP = () => sbsRadio({
74
- label: 'Which Type of Help is Needed? *',
78
+ label: 'Type of Help Needed:',
75
79
  name: 'Type_Of_Legal_Problem',
76
80
  id: 'Type_Of_Legal_Problem',
77
81
  options: [
@@ -85,9 +89,8 @@ var childAndFamily = (function () {
85
89
  });
86
90
 
87
91
  const childHome = () => sbsSelect({
88
- label: 'With Whom Do the Children Currently Live? *',
92
+ label: 'With Whom Do the Children Currently Live?',
89
93
  name: 'Child_Home',
90
- // id: 'Child_Home',
91
94
  options: [
92
95
  'Mother',
93
96
  'Father',
@@ -97,7 +100,7 @@ var childAndFamily = (function () {
97
100
  });
98
101
 
99
102
  const childPrimaryCaregiver = () => sbsSelect({
100
- label: 'Who is the Primary Caregiver? *',
103
+ label: 'Who is the Primary Caregiver?',
101
104
  name: 'Child_Primary_Caregiver',
102
105
  options: [
103
106
  'Mother',
@@ -107,7 +110,7 @@ var childAndFamily = (function () {
107
110
  });
108
111
 
109
112
  const childRelationship = () => sbsSelect({
110
- label: 'Your Relationship to Child(ren): *',
113
+ label: 'Your Relationship to Child(ren):',
111
114
  name: 'Child_Relationship',
112
115
  options: [
113
116
  'Father',
@@ -120,21 +123,22 @@ var childAndFamily = (function () {
120
123
 
121
124
  const comments$1 = () => ({
122
125
  $formkit: 'textarea',
123
- label: 'Please provide a brief description of your situation *',
126
+ label: 'Please provide a brief description of your situation:',
124
127
  name: 'Comments',
125
128
  placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
126
129
  rows: 1,
127
130
  validation: 'required',
128
131
  maxlength: 1000,
132
+ labelClass: 'required',
129
133
  validationMessages: {
130
134
  required: 'Description is required',
131
135
  },
132
136
  });
133
137
 
134
138
  const degreeOfInterest = () => sbsSelect({
135
- label: 'How Likely Are You to Pay if Your Issue Could be Resolved? *',
139
+ label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
136
140
  name: 'Degree_Of_Interest',
137
- help: 'No payment necessary to speak with lawyers.',
141
+ // help: 'No payment necessary to speak with lawyers.',
138
142
  options: [
139
143
  'Definitely',
140
144
  'Probably',
@@ -143,9 +147,9 @@ var childAndFamily = (function () {
143
147
  ]
144
148
  });
145
149
 
146
- const firstName = () => ({
150
+ const firstName = () => sbsText({
147
151
  $formkit: 'text',
148
- label: 'First Name *',
152
+ label: 'First Name:',
149
153
  name: 'First_Name',
150
154
  validation: 'required',
151
155
  validationMessages: {
@@ -153,10 +157,10 @@ var childAndFamily = (function () {
153
157
  },
154
158
  });
155
159
 
156
- const email = () => ({
160
+ const email = () => sbsText({
157
161
  $formkit: 'email',
158
162
  name: 'Email',
159
- label: 'Email Address *',
163
+ label: 'Email Address:',
160
164
  placeholder: 'email@domain.com',
161
165
  validation: 'required|email',
162
166
  validationMessages: {
@@ -167,17 +171,17 @@ var childAndFamily = (function () {
167
171
 
168
172
  const haveAttorney = () => sbsYesNoRadio({
169
173
  name: 'Have_Attorney',
170
- label: 'Are You Currently Working with An Attorney? *',
174
+ label: 'Are You Currently Working with An Attorney?',
171
175
  });
172
176
 
173
177
  const haveChildren = () => sbsYesNoRadio({
174
178
  name: 'Have_Children',
175
- label: 'Do You Have Children? *',
179
+ label: 'Do You Have Children?',
176
180
  });
177
181
 
178
- const lastName = () => ({
182
+ const lastName = () => sbsText({
179
183
  $formkit: 'text',
180
- label: 'Last Name *',
184
+ label: 'Last Name:',
181
185
  name: 'Last_Name',
182
186
  validation: 'required',
183
187
  validationMessages: {
@@ -186,7 +190,7 @@ var childAndFamily = (function () {
186
190
  });
187
191
 
188
192
  const lawyerPaymentMethod = () => sbsSelect({
189
- label: 'How Will You Pay for Legal Fees if You Hire a Lawyer? *',
193
+ label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
190
194
  name: 'Lawyer_Payment_Method',
191
195
  help: 'No payment necessary to speak with lawyers.',
192
196
  options: [
@@ -200,7 +204,7 @@ var childAndFamily = (function () {
200
204
  });
201
205
 
202
206
  const maritalStatus = () => sbsSelect({
203
- label: 'Marital Status *',
207
+ label: 'Marital Status:',
204
208
  name: 'Marital_Status',
205
209
  options: [
206
210
  'Unmarried, Living Together',
@@ -212,12 +216,12 @@ var childAndFamily = (function () {
212
216
  ]
213
217
  });
214
218
 
215
- const phone = () => ({
219
+ const phone = () => sbsText({
216
220
  $formkit: 'tel',
217
221
  name: 'Primary_Phone',
218
- label: 'Phone Number *',
222
+ label: 'Phone Number:',
219
223
  placeholder: 'xxx-xxx-xxxx',
220
- help: '10-digit US phone number, hyphens optional.',
224
+ // help: '10-digit US phone number, hyphens optional.',
221
225
  validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/',
222
226
  validationMessages: {
223
227
  required: 'Phone Number is required',
@@ -234,12 +238,12 @@ var childAndFamily = (function () {
234
238
  accepted: 'Consent is required',
235
239
  },
236
240
  classes: {
237
- label: "text-xs text-slate-500"
241
+ label: "text-xs text-slate-500 font-normal"
238
242
  }
239
243
  });
240
244
 
241
245
  const zipcode = () => sbsText({
242
- label: 'Zip Code *',
246
+ label: 'Zip Code:',
243
247
  placeholder: '90210',
244
248
  name: 'Zip',
245
249
  validation: 'required|matches:/^[0-9]{5}$/',
@@ -364,7 +368,7 @@ var childAndFamily = (function () {
364
368
  $el: 'h3',
365
369
  children: 'Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:',
366
370
  attrs: {
367
- class: 'flex justify-center text-lg font-bold pb-5 pt-0'
371
+ class: 'flex justify-center text-center text-lg font-bold pb-5 pt-0 px-3'
368
372
  }
369
373
  },
370
374
  email(),
@@ -406,6 +410,27 @@ var childAndFamily = (function () {
406
410
  )
407
411
  }
408
412
 
413
+ function TOLPQuestions() {
414
+ return step(
415
+ 'TOLPQuestions',
416
+ [
417
+ {
418
+ $el: 'h3',
419
+ children: 'Please Complete the Following:',
420
+ attrs: {
421
+ class: 'flex justify-center text-center text-2xl font-bold text-blue-500 pb-5 pt-0 px-3'
422
+ }
423
+ },
424
+ AdoptionQuestions(),
425
+ ChildCustodyAndSupportQuestions(),
426
+ NotSureOrOtherQuestions()
427
+ ],
428
+ ...arguments
429
+ )
430
+ }
431
+
432
+ // ------ Utilities
433
+
409
434
  const formNavigation = () => ({
410
435
  $el: 'div',
411
436
  attrs: {
@@ -415,7 +440,7 @@ var childAndFamily = (function () {
415
440
  {
416
441
  $formkit: 'button',
417
442
  onClick: '$setPreviousStep()',
418
- children: 'Previous Step',
443
+ children: 'Back',
419
444
  style: {
420
445
  if: '$activeStep === $firstStep()',
421
446
  then: 'visibility: hidden;'
@@ -424,7 +449,7 @@ var childAndFamily = (function () {
424
449
  {
425
450
  $formkit: 'button',
426
451
  onClick: '$setNextStep()',
427
- children: 'Next Step',
452
+ children: 'Next',
428
453
  style: {
429
454
  if: '$activeStep === $lastStep()',
430
455
  then: 'display: none;'
@@ -432,7 +457,7 @@ var childAndFamily = (function () {
432
457
  },
433
458
  {
434
459
  $formkit: 'submit',
435
- label: 'Submit Application',
460
+ label: 'Submit',
436
461
  if: '$activeStep === $lastStep()',
437
462
  style: {
438
463
  if: '$activeStep !== $lastStep()',
@@ -481,25 +506,6 @@ var childAndFamily = (function () {
481
506
  ]
482
507
  });
483
508
 
484
- function TOLPQuestions() {
485
- return step(
486
- 'TOLPQuestions',
487
- [
488
- {
489
- $el: 'h3',
490
- children: 'Please Complete the Following:',
491
- attrs: {
492
- class: 'flex justify-center text-2xl font-bold text-blue-500 pb-5 pt-0'
493
- }
494
- },
495
- AdoptionQuestions(),
496
- ChildCustodyAndSupportQuestions(),
497
- NotSureOrOtherQuestions()
498
- ],
499
- ...arguments
500
- )
501
- }
502
-
503
509
  const schema = [
504
510
  {
505
511
  type: 'meta',
@@ -512,8 +518,8 @@ var childAndFamily = (function () {
512
518
  props: {
513
519
  type: 'form',
514
520
  id: 'form',
515
- onSubmit: '$submit("https://httpbin.org/post", $prepData)',
516
- // onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData)',
521
+ onSubmit: '$submit("https://httpbin.org/post", $prepData, $getRedirect)',
522
+ // onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData, $getRedirect)',
517
523
  plugins: '$plugins',
518
524
  actions: false,
519
525
  prepop: {
@@ -524,6 +530,9 @@ var childAndFamily = (function () {
524
530
  409: { abort: false },
525
531
  429: "An Error Occurred"
526
532
  },
533
+ redirectMap: {
534
+ '*': 'https://justanswer.9pctbx.net/c/2880795/808601/9320?sharedid=${vid}'
535
+ },
527
536
  formClass: '!max-w-xl'
528
537
  },
529
538
  children: [
@@ -532,7 +541,7 @@ var childAndFamily = (function () {
532
541
  if: '$activeStep === $firstStep()',
533
542
  children: 'Get Child & Family Help Today',
534
543
  attrs: {
535
- class: 'flex justify-center text-3xl font-bold pt-5'
544
+ class: 'flex justify-center text-center text-3xl font-bold pt-5 px-3'
536
545
  }
537
546
  },
538
547
  {
@@ -540,7 +549,7 @@ var childAndFamily = (function () {
540
549
  if: '$activeStep === $firstStep()',
541
550
  children: 'Contact Us Now for Child Support, Custody and Family Issues',
542
551
  attrs: {
543
- class: 'flex justify-center text-l font-bold text-blue-500'
552
+ class: 'flex justify-center text-center text-md font-medium text-blue-500 px-3'
544
553
  }
545
554
  },
546
555
  {