bhl-forms 0.0.80 → 0.0.82

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,16 +12,17 @@ const formPropDefaults = {
12
12
  type: 'form',
13
13
  id: 'form',
14
14
  config: { validationVisibility: 'submit' },
15
- onSubmit: '$submit("https://httpbin.org/post", $prepData, $handleRedirect)',
15
+ onSubmit: '$submit("https://httpbin.org/post", $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
16
16
  plugins: '$plugins',
17
17
  actions: false,
18
18
  prepop: {
19
19
  fromURL: true
20
20
  },
21
21
  errorCodes: {
22
- 403: "An Error Occurred",
22
+ 403: { message: "An Error Occurred", abort: false },
23
23
  409: { abort: false },
24
- 429: "An Error Occurred"
24
+ 429: "An Error Occurred",
25
+ 504: { message: "An Error Occurred", abort: false },
25
26
  },
26
27
  formClass: '!t-max-w-[38rem]'
27
28
  };
@@ -101,11 +102,11 @@ function subHeadline(updates) {
101
102
  )
102
103
  }
103
104
 
104
- const privacyIconsDefault = {
105
+ const secureIconDefault = {
105
106
  $el: 'div',
106
107
  if: '$activeStep === $lastStep()',
107
108
  attrs: {
108
- class: 't-flex t-justify-center'
109
+ class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
109
110
  },
110
111
  children: [
111
112
  {
@@ -113,18 +114,28 @@ const privacyIconsDefault = {
113
114
  attrs: {
114
115
  loading: 'lazy',
115
116
  alt: '',
116
- style: { border: 0 },
117
- src: 'https://d27hmee62k45vz.cloudfront.net/form-secure-privacy.png',
118
- width: '320',
119
- height: '100'
117
+ style: {
118
+ border: 0
119
+ },
120
+ width: '25',
121
+ height: '25',
122
+ src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
123
+ }
124
+ },
125
+ {
126
+ $el: 'span',
127
+ children: 'Secure & Encrypted',
128
+ attrs: {
129
+ class: 't-pl-2 t-pt-1 t-font-medium'
120
130
  }
121
131
  }
122
132
  ]
123
133
  };
124
134
 
125
- function privacyIcons(updates) {
135
+
136
+ function secureIcon(updates) {
126
137
  return merge(
127
- privacyIconsDefault,
138
+ secureIconDefault,
128
139
  updates
129
140
  )
130
141
  }
@@ -157,6 +168,259 @@ const hiddenInputs = [
157
168
  }
158
169
  ];
159
170
 
171
+
172
+ const legalRedirectMapDefaults = {
173
+ "properties.Type_Of_Legal_Problem": {
174
+ 'Adoption': JALegalUrl('565949'),
175
+ 'Bankruptcy': JALegalUrl('1147978'),
176
+ 'Child Custody and Support': JALegalUrl('565949'),
177
+ 'Civil Lawsuit': JALegalUrl('897042'),
178
+ 'Consumer Lawyers': JALegalUrl('897042'),
179
+ 'Criminal and Felony': JALegalUrl('897012'),
180
+ 'Debt and Collections': JALegalUrl('1147978'),
181
+ 'Divorce and Separation': JALegalUrl('966410'),
182
+ 'DUI and DWI': JALegalUrl('897012'),
183
+ 'Elder Law': JALegalUrl('565949'),
184
+ 'Employment and Workplace': JALegalUrl('897014'),
185
+ 'Expungement': JALegalUrl('897012'),
186
+ 'Foreclosure': JALegalUrl('565923'),
187
+ 'Guardianship': JALegalUrl('565949'),
188
+ 'Landlord and Tenant': JALegalUrl('1315025'),
189
+ 'Power of Attorney': JALegalUrl('1097602'),
190
+ 'Probate and Estates': JALegalUrl('1097602'),
191
+ 'Product Liability': JALegalUrl('897042'),
192
+ 'Property Damage': JALegalUrl('897042'),
193
+ 'Real Estate': JALegalUrl('565923'),
194
+ 'Social Security Disability and Insurance': JALegalUrl('897033'),
195
+ 'Tax and IRS': JALegalUrl('1147978'),
196
+ 'Traffic and Tickets': JALegalUrl('808601'),
197
+ 'Unemployment': JALegalUrl('897014'),
198
+ 'Victim of a Crime': JALegalUrl('897012'),
199
+ 'Wills and Trusts': JALegalUrl('1097602'),
200
+ 'Workers Compensation': JALegalUrl('897014'),
201
+ 'Wrongful Termination': JALegalUrl('897014')
202
+ },
203
+ '*': JALegalUrl('808601')
204
+ };
205
+
206
+
207
+ function legalRedirectMap(updates) {
208
+ return merge(
209
+ legalRedirectMapDefaults,
210
+ updates
211
+ )
212
+ }
213
+
214
+
215
+ const TOLPCommentsPlaceholders = {
216
+ 'Adoption': 'Example: "I need help with adoption forms"',
217
+ 'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
218
+ '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"',
219
+ 'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
220
+ 'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
221
+ 'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
222
+ 'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
223
+ 'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
224
+ 'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
225
+ 'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
226
+ 'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
227
+ 'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
228
+ 'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
229
+ 'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
230
+ 'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
231
+ 'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
232
+ 'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
233
+ 'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
234
+ 'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
235
+ 'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
236
+ 'Guardianship': 'Example: "I need help with guardianship documents"',
237
+ 'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
238
+ 'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
239
+ 'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
240
+ 'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
241
+ 'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
242
+ 'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
243
+ '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"',
244
+ 'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
245
+ 'Nursing Home Abuse': 'Example: "My mother\'s nursing home is physically abusing her"',
246
+ 'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
247
+ 'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
248
+ 'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
249
+ 'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
250
+ 'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
251
+ 'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
252
+ 'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
253
+ '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"',
254
+ 'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
255
+ 'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
256
+ 'Unemployment': 'Example: "I need help filing for unemployment benefits"',
257
+ 'Vaccination Injury': 'Example: "I was injured after receiving a vaccine and would like to file a lawsuit"',
258
+ 'Veteran\'s Disability': 'Example: "I would like help filing for disability benefits"',
259
+ 'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
260
+ 'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
261
+ 'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
262
+ 'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
263
+ 'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
264
+ 'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
265
+ };
266
+
267
+ const TOLPFinalHeadlines = {
268
+ // 'Adoption': '',
269
+ // 'Asbestos and Mesothelioma': '',
270
+ // 'Auto and Car Accidents': '',
271
+ // 'Bankruptcy': '',
272
+ // 'Birth Certificate and Name Change': '',
273
+ // 'Business Lawyers': '',
274
+ // 'Child Custody and Support': '',
275
+ // 'Civil Rights and Discrimination': '',
276
+ // 'Civil Lawsuit': '',
277
+ // 'Consumer Lawyers': '',
278
+ // 'Copyrights and Trademarks': '',
279
+ // 'Criminal and Felony': '',
280
+ // 'Debt and Collections': '',
281
+ // 'Divorce and Separation': '',
282
+ // 'DUI and DWI': '',
283
+ // 'Elder Law': '',
284
+ // 'Employment and Workplace': '',
285
+ // 'Expungement': '',
286
+ // 'Family Issues': '',
287
+ // 'Foreclosure': '',
288
+ // 'Guardianship': '',
289
+ // 'Harassment and Discrimination': '',
290
+ // 'Identity Theft': '',
291
+ // 'Immigration and Visas': '',
292
+ // 'Insurance': '',
293
+ // 'Landlord and Tenant': '',
294
+ // 'Lemon Law': '',
295
+ // 'Long Term Disability': '',
296
+ // 'Medical Malpractice': '',
297
+ // 'Nursing Home Abuse': '',
298
+ // 'Patents and Intellectual Property': '',
299
+ // 'Personal Injury': '',
300
+ // 'Power of Attorney': '',
301
+ // 'Probate and Estates': '',
302
+ // 'Product Liability': '',
303
+ // 'Property Damage': '',
304
+ // 'Real Estate': '',
305
+ // 'Social Security Disability and Insurance': '',
306
+ // 'Tax and IRS': '',
307
+ // 'Traffic and Tickets': '',
308
+ // 'Unemployment': '',
309
+ // 'Vaccination Injury': '',
310
+ // 'Veteran\'s Disability': '',
311
+ // 'Victim of a Crime': '',
312
+ // 'Wills and Trusts': '',
313
+ // 'Workers Compensation': '',
314
+ // 'Wrongful Death': '',
315
+ // 'Wrongful Termination': '',
316
+ // 'Not Sure or Other': ''
317
+ };
318
+
319
+ const TOLPFinalSubHeadlines = {
320
+ 'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
321
+ // 'Asbestos and Mesothelioma': '',
322
+ 'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
323
+ 'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
324
+ // 'Birth Certificate and Name Change': '',
325
+ // 'Business Lawyers': '',
326
+ // 'Child Custody and Support': '',
327
+ // 'Civil Rights and Discrimination': '',
328
+ // 'Civil Lawsuit': '',
329
+ // 'Consumer Lawyers': '',
330
+ 'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
331
+ // 'Criminal and Felony': '',
332
+ // 'Debt and Collections': '',
333
+ 'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
334
+ 'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
335
+ 'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
336
+ // 'Employment and Workplace': '',
337
+ // 'Expungement': '',
338
+ // 'Family Issues': '',
339
+ 'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
340
+ 'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
341
+ // 'Harassment and Discrimination': '',
342
+ // 'Identity Theft': '',
343
+ 'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
344
+ // 'Insurance': '',
345
+ 'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
346
+ // 'Lemon Law': '',
347
+ 'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
348
+ 'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
349
+ // 'Nursing Home Abuse': '',
350
+ 'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
351
+ 'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
352
+ // 'Power of Attorney': '',
353
+ 'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
354
+ // 'Product Liability': '',
355
+ // 'Property Damage': '',
356
+ 'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
357
+ 'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
358
+ 'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
359
+ // 'Traffic and Tickets': '',
360
+ 'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
361
+ // 'Vaccination Injury': '',
362
+ 'Veteran\'s Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
363
+ // 'Victim of a Crime': '',
364
+ // 'Wills and Trusts': '',
365
+ 'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
366
+ // 'Wrongful Death': '',
367
+ // 'Wrongful Termination': '',
368
+ // 'Not Sure or Other': ''
369
+ };
370
+
371
+
372
+ const trustedFormTOLPs = {
373
+ 'Adoption': true,
374
+ // 'Asbestos and Mesothelioma': '',
375
+ // 'Auto and Car Accidents': '',
376
+ // 'Bankruptcy': '',
377
+ // 'Birth Certificate and Name Change': '',
378
+ // 'Business Lawyers': '',
379
+ 'Child Custody and Support': true,
380
+ // 'Civil Rights and Discrimination': '',
381
+ // 'Civil Lawsuit': '',
382
+ // 'Consumer Lawyers': '',
383
+ // 'Copyrights and Trademarks': '',
384
+ // 'Criminal and Felony': '',
385
+ // 'Debt and Collections': '',
386
+ 'Divorce and Separation': true,
387
+ // 'DUI and DWI': '',
388
+ // 'Elder Law': '',
389
+ // 'Employment and Workplace': '',
390
+ // 'Expungement': '',
391
+ 'Family Issues': true,
392
+ // 'Foreclosure': '',
393
+ 'Guardianship': true,
394
+ // 'Harassment and Discrimination': '',
395
+ // 'Identity Theft': '',
396
+ // 'Immigration and Visas': '',
397
+ // 'Insurance': '',
398
+ // 'Landlord and Tenant': '',
399
+ // 'Lemon Law': '',
400
+ // 'Long Term Disability': '',
401
+ // 'Medical Malpractice': '',
402
+ // 'Nursing Home Abuse': '',
403
+ // 'Patents and Intellectual Property': '',
404
+ // 'Personal Injury': '',
405
+ // 'Power of Attorney': '',
406
+ // 'Probate and Estates': '',
407
+ // 'Product Liability': '',
408
+ // 'Property Damage': '',
409
+ // 'Real Estate': '',
410
+ // 'Social Security Disability and Insurance': '',
411
+ // 'Tax and IRS': '',
412
+ // 'Traffic and Tickets': '',
413
+ // 'Unemployment': '',
414
+ // 'Vaccination Injury': '',
415
+ // 'Veteran\'s Disability': '',
416
+ // 'Victim of a Crime': '',
417
+ // 'Wills and Trusts': '',
418
+ // 'Workers Compensation': '',
419
+ // 'Wrongful Death': '',
420
+ // 'Wrongful Termination': '',
421
+ 'Not Sure or Other': true,
422
+ };
423
+
160
424
  // ------ Common Base Settings
161
425
 
162
426
  const checkbox = (updates) => {
@@ -368,7 +632,7 @@ const firstName = () => sbsText({
368
632
 
369
633
  const haveAttorney = () => sbsYesNoRadio({
370
634
  name: 'Have_Attorney',
371
- label: 'Are You Currently Working with An Attorney?'
635
+ label: 'Are You Already Working with An Attorney?'
372
636
  });
373
637
 
374
638
  const haveChildren = () => sbsYesNoRadio({
@@ -628,23 +892,33 @@ function childAndFamilyTOLPAndZip(updates = {}) {
628
892
  }
629
893
 
630
894
  const DEFAULT_COMMENTS_PLACEHOLDER = 'For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"';
895
+ const DEFAULT_COMMENTS_PLACEHOLDER_V2 = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
631
896
  const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
632
897
 
633
- function commentsWithBankruptcy(updates = {}) {
898
+ function commentsWithBankruptcyV2(updates = {}) {
634
899
  return step(
635
900
  'commentsWithBankruptcy',
636
901
  [
902
+ {
903
+ $el: 'h3',
904
+ children: 'Additional Case Details',
905
+ attrs: {
906
+ 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-3'
907
+ }
908
+ },
637
909
  comments({
638
910
  label: updates.label || DEFAULT_COMMENTS_LABEL,
639
- placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER
911
+ placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_V2
640
912
  }),
641
913
  bankruptcyCrossSell()
642
914
  ],
643
915
  updates.nextOnEnter
644
916
  )
645
917
  }
646
-
647
- const DEFAULT_FINAL_HEADLINE = "Based on your input, you may benefit from speaking with a legal professional. Please verify your contact information.";
918
+ const DEFAULT_FINAL_HEADLINE_V2 = 'We Found Matches For Your Case!';
919
+ const DEFAULT_FINAL_HEADLINE_V2_b = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
920
+ const DEFAULT_FINAL_SUBHEADLINE_V2 = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
921
+ const DEFAULT_FINAL_SUBHEADLINE_V2_b = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
648
922
 
649
923
  const TRUSTED_FORM_JS = `(function() {
650
924
  if (window.xxTrustedFormLoaded) {
@@ -668,29 +942,43 @@ function contactInfoTF(updates = {}) {
668
942
  [
669
943
  {
670
944
  $el: 'h3',
671
- children: updates.headline || DEFAULT_FINAL_HEADLINE,
945
+ children: updates.headline || DEFAULT_FINAL_HEADLINE_V2_b,
672
946
  attrs: {
673
- class: 't-flex t-justify-center t-text-center t-text-lg t-font-bold t-pb-5 t-pt-0 t-px-3'
947
+ 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-3'
948
+ }
949
+ },
950
+ {
951
+ $el: 'h5',
952
+ children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_V2_b,
953
+ attrs: {
954
+ class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3'
674
955
  }
675
956
  },
676
957
  {
677
958
  $el: 'script',
678
- if: '$activeStep === $lastStep()',
959
+ if: '$activeStep === $lastStep() && $getKey($meta, "trustedFormTOLPs." + $get(Type_Of_Legal_Problem).value, false) == true',
679
960
  children: TRUSTED_FORM_JS
680
961
  },
681
962
  email(),
682
963
  phone(),
683
964
  TCPAConsent(),
684
- privacyIcons()
965
+ secureIcon()
685
966
  ],
686
967
  updates.nextOnEnter
687
968
  )
688
969
  }
689
970
 
690
- function firstAndLast(updates = {}) {
971
+ function firstAndLastV2(updates = {}) {
691
972
  return step(
692
973
  'firstAndLast',
693
974
  [
975
+ {
976
+ $el: 'h3',
977
+ children: 'Please Provide a Contact Name',
978
+ attrs: {
979
+ 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-3'
980
+ }
981
+ },
694
982
  firstName(),
695
983
  lastName()
696
984
  ],
@@ -720,9 +1008,7 @@ function childAndFamilyTOLPQuestions(updates = {}) {
720
1008
  )
721
1009
  }
722
1010
 
723
- // ------ Utilities
724
-
725
- const formNavigation = () => ({
1011
+ const formNavigationV2 = () => ({
726
1012
  $el: 'div',
727
1013
  attrs: {
728
1014
  class: 'step-nav'
@@ -742,7 +1028,16 @@ const formNavigation = () => ({
742
1028
  $formkit: 'button',
743
1029
  name: 'next_button',
744
1030
  onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
745
- children: 'Next',
1031
+ children: {
1032
+ if: '$activeStep === $firstStep()',
1033
+ then: 'Get Help',
1034
+ else: 'Next'
1035
+ },
1036
+ outerClass: {
1037
+ if: '$activeStep === $lastStep()',
1038
+ then: 't-hidden',
1039
+ else: ''
1040
+ },
746
1041
  style: {
747
1042
  if: '$activeStep === $lastStep()',
748
1043
  then: 'display: none;'
@@ -801,31 +1096,31 @@ const formDetails = () => ({
801
1096
  });
802
1097
 
803
1098
  const schema = [
804
- metaProps(),
1099
+ metaProps({
1100
+ defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER,
1101
+ commentsPlaceholders: TOLPCommentsPlaceholders,
1102
+ defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_V2,
1103
+ finalHeadlines: TOLPFinalHeadlines,
1104
+ defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_V2,
1105
+ finalSubHeadlines: TOLPFinalSubHeadlines,
1106
+ trustedFormTOLPs: trustedFormTOLPs
1107
+ }),
805
1108
  formAnchor(),
806
1109
  {
807
1110
  $cmp: 'FormKit',
808
1111
  props: formProps({
809
1112
  formId: 'childAndFamily',
810
- onSubmit: '$submit($submitUrl, $prepData, $handleRedirect)',
811
- redirectMap: {
812
- "properties.Type_Of_Legal_Problem": {
813
- 'Adoption': JALegalUrl('565949'),
814
- 'Child Custody and Support': JALegalUrl('565949'),
815
- 'Divorce and Separation': JALegalUrl('966410'),
816
- 'Guardianship': JALegalUrl('565949')
817
- },
818
- '*': JALegalUrl('808601')
819
- },
1113
+ onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
1114
+ redirectMap: legalRedirectMap(),
820
1115
  anchorElement: 'form-anchor'
821
1116
  }),
822
1117
  children: [
823
1118
  headline({
824
- children: 'Get Child & Family Help Today',
1119
+ children: '$urlParam("hl", "Get Child & Family Help Today")',
825
1120
  if: '$activeStep === $firstStep()'
826
1121
  }),
827
1122
  subHeadline({
828
- children: 'Contact Us for Child Support, Custody and Family Issues',
1123
+ children: '$urlParam("shl", "Contact Us for Child Support, Custody and Family Issues")',
829
1124
  if: '$activeStep === $firstStep()'
830
1125
  }),
831
1126
  ...hiddenInputs,
@@ -837,17 +1132,14 @@ const schema = [
837
1132
  children: [
838
1133
  childAndFamilyTOLPAndZip(),
839
1134
  childAndFamilyTOLPQuestions(),
840
- commentsWithBankruptcy({
841
- label: 'Please briefly describe your situation in a few words:',
842
- placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
1135
+ commentsWithBankruptcyV2({
843
1136
  nextOnEnter: false
844
1137
  }),
845
- firstAndLast(),
1138
+ firstAndLastV2(),
846
1139
  contactInfoTF({
847
- headline: 'Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:',
848
1140
  nextOnEnter: false
849
1141
  }),
850
- formNavigation(),
1142
+ formNavigationV2(),
851
1143
  formDetails()
852
1144
  ]
853
1145
  }
@@ -1 +1 @@
1
- var childAndFamily=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e){return"https://justanswer.9pctbx.net/c/2880795/"+e+"/9320?sharedid=${properties.vid}&subid1=${properties.Domain_Abbrev}"}const r={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit("https://httpbin.org/post", $prepData, $handleRedirect)',plugins:"$plugins",actions:!1,prepop:{fromURL:!0},errorCodes:{403:"An Error Occurred",409:{abort:!1},429:"An Error Occurred"},formClass:"!t-max-w-[38rem]"};const i={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const a={$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"}};const n={$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"}};const l={$el:"div",if:"$activeStep === $lastStep()",attrs:{class:"t-flex t-justify-center"},children:[{$el:"img",attrs:{loading:"lazy",alt:"",style:{border:0},src:"https://d27hmee62k45vz.cloudfront.net/form-secure-privacy.png",width:"320",height:"100"}}]};function s(t){return e(l,t)}const o=t=>(t.legendClass="legend-left required",t.fieldsetClass="$reset side-by-side",t.optionsClass="t-pl-1",t.innerClass="t-flex t-items-center",t.wrapperClass="t-mb-3",(t=>e({$formkit:"checkbox",validation:"required",validationMessages:{required:"Field is required"}},t))(t)),d=t=>e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},t),p=e=>(e.options=["Yes","No"],(e=>(e.legendClass="legend-left t-pb-1 required",e.fieldsetClass="$reset side-by-side t-items-center",e.optionsClass="t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center",e.innerClass="t-flex t-items-center",e.optionClass="t-pr-1",d(e)))(e)),u=t=>(t.labelClass="required",t.wrapperClass="side-by-side t-items-center",t.innerClass="select-height-content",t.helpClass="t-mt-2.5 md:t-text-right md:t-mt-[-5px]",(t=>e({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},t))(t)),c=t=>(t.wrapperClass="side-by-side t-items-center",(t=>e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t))(t)),m=()=>{return(e={label:"Type of Help Needed:",name:"Type_Of_Legal_Problem",id:"Type_Of_Legal_Problem",options:["Adoption","Child Custody and Support","Family Issues","Guardianship","Divorce and Separation","Not Sure or Other"]}).legendClass="legend-left-flex md:t-max-w-[40%] required",e.fieldsetClass="$reset side-by-side-flex",e.optionsClass="md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125",e.innerClass="t-flex t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",d(e);var e},f=t=>(t=>e({$formkit:"textarea",rows:5,maxlength:500,validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t))(e({label:"Please briefly describe your situation in a few words:",name:"Comments",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},t)),h=e=>u({label:"How Likely Are You to Pay if Your Issue Could be Resolved?",id:"Degree_Of_Interest",name:"Degree_Of_Interest",help:e,options:["Definitely","Probably","Maybe","Absolutely Can't Afford"]}),y=()=>p({name:"Have_Attorney",label:"Are You Currently Working with An Attorney?"}),g=()=>p({name:"Have_Children",label:"Do You Have Children?"}),b=()=>u({label:"How Will You Pay for Legal Fees if You Hire a Lawyer?",name:"Lawyer_Payment_Method",help:"No payment necessary to speak with lawyers.",options:["Cash","Check","Credit Card","Friend","Family","Other"]}),v=()=>u({label:"Marital Status:",name:"Marital_Status",options:["Unmarried, Living Together","Unmarried, Do Not Live Together","Married, Living Together","Separated","Divorced","Other"]}),x=(t,r)=>e({$cmp:"FormKit",props:{type:"group",key:t,id:t,name:t}},r),$=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,C=e=>{if($(e))return e;for(var t=e.children.length-1;t>=0;t--){if("string"==typeof e.children)continue;const r=e.children[t];if($(r))return r;const i=C(r);if(i)return i}return null};function _(t,r,i=!0){if(void 0===i&&(i=!0),r&&r.length&&i){C(r[r.length-1]).onKeypress="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}return e((e=>({$el:"section",if:'$stepIsEnabled("'+e+'")',attrs:{style:{if:'$activeStep !== "'+e+'"',then:"display: none;"}}}))(t),{children:[{$formkit:"group",id:t,name:t,children:r}]})}const w=[{type:"meta",data:e({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."},S)},function(t){return e(i,t)}(),{$cmp:"FormKit",props:function(t){return e(r,t)}({formId:"childAndFamily",onSubmit:"$submit($submitUrl, $prepData, $handleRedirect)",redirectMap:{"properties.Type_Of_Legal_Problem":{Adoption:t("565949"),"Child Custody and Support":t("565949"),"Divorce and Separation":t("966410"),Guardianship:t("565949")},"*":t("808601")},anchorElement:"form-anchor"}),children:[function(t){return e(a,t)}({children:"Get Child & Family Help Today",if:"$activeStep === $firstStep()"}),function(t){return e(n,t)}({children:"Contact Us for Child Support, Custody and Family Issues",if:"$activeStep === $firstStep()"}),{$formkit:"hidden",name:"vertical",value:"Legal"},{$formkit:"hidden",name:"TCPA_Language",value:"$meta.tcpaLanguage"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null},{$el:"div",attrs:{class:"form-body"},children:[function(e={}){return _("childAndFamilyTOLPAndZip",[m(),c({label:"Zip Code:",placeholder:"#####",name:"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"}})],e.nextOnEnter)}(),function(e={}){return _("TOLPQuestions",[{$el:"h3",children:"Please Complete the Following:",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-3"}},x("AdoptionQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Adoption"',children:[y(),v(),g(),h(),b()]}),x("ChildCustodyAndSupportQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',children:[y(),u({label:"Your Relationship to Child(ren):",name:"Child_Relationship",options:["Father","Mother","Grandparent","Aunt/Uncle","Other"]}),u({label:"With Whom Do the Children Currently Live?",name:"Child_Home",options:["Mother","Father","Grandparents","Other"]}),u({label:"Who is the Primary Caregiver?",name:"Child_Primary_Caregiver",options:["Mother","Father","Other"]}),h(),b()]}),x("FamilyIssuesQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Family Issues"',children:[y(),v(),g(),h(),b()]}),x("GuardianshipQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Guardianship"',children:[y(),v(),g(),h(),b()]}),x("DivorceQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',children:[y(),v(),g(),h(),b()]}),x("NotSureOrOtherQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Not Sure or Other"',children:[y(),h("No payment necessary to speak with lawyers.")]})],e.nextOnEnter)}(),function(e={}){return _("commentsWithBankruptcy",[f({label:e.label||"Please briefly describe your legal issue in a few words:",placeholder:e.placeholder||'For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"'}),o({label:"I'd also like a separate consultation for bankruptcy and debt elimination",help:"Please note: you will be contacted separately by a bankruptcy expert",name:"CrossSell_Bankruptcy",if:'$getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe"',validation:null,helpClass:"!t-text-sm"})],e.nextOnEnter)}({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"',nextOnEnter:!1}),function(e={}){return _("firstAndLast",[c({$formkit:"text",label:"First Name:",name:"First_Name",autocomplete:"given-name",validationMessages:{required:"First Name is required"}}),c({$formkit:"text",label:"Last Name:",name:"Last_Name",autocomplete:"family-name",validationMessages:{required:"Last Name is required"}})],e.nextOnEnter)}(),function(e={}){return _("contactInfo",[{$el:"h3",children:e.headline||"Based on your input, you may benefit from speaking with a legal professional. Please verify your contact information.",attrs:{class:"t-flex t-justify-center t-text-center t-text-lg t-font-bold t-pb-5 t-pt-0 t-px-3"}},{$el:"script",if:"$activeStep === $lastStep()",children:"(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})();"},c({$formkit:"email",name:"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"}}),c({$formkit:"tel",name:"Primary_Phone",label:"Phone Number:",placeholder:"xxx-xxx-xxxx",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}$/",validationMessages:{required:"Field is required",matches:"Invalid Phone Number, use xxx-xxx-xxxx format"},helpClass:"t-mt-2.5 md:t-text-right md:t-mt-[-2px]"}),{$formkit:"checkbox",label:"$meta.tcpaLanguage",name:"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"}},s()],e.nextOnEnter)}({headline:"Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:",nextOnEnter:!1}),{$el:"div",attrs:{class:"step-nav"},children:[{$formkit:"button",name:"back_button",onClick:"$setPreviousStep($scrollAnchor($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:"Next",style:{if:"$activeStep === $lastStep()",then:"display: none;"}},{$formkit:"submit",name:"submit_button",label:"Submit",if:"$activeStep === $lastStep()",style:{if:"$activeStep !== $lastStep()",then:"display: none;"}}]},{$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"}}]}]}]}];var S;return w}();
1
+ var childAndFamily=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e){return"https://justanswer.9pctbx.net/c/2880795/"+e+"/9320?sharedid=${properties.vid}&subid1=${properties.Domain_Abbrev}"}const a={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit("https://httpbin.org/post", $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,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-[38rem]"};const i={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 r={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const n={$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"}};const o={$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"}};const l={$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 s(t){return e(l,t)}const d={"properties.Type_Of_Legal_Problem":{Adoption:t("565949"),Bankruptcy:t("1147978"),"Child Custody and Support":t("565949"),"Civil Lawsuit":t("897042"),"Consumer Lawyers":t("897042"),"Criminal and Felony":t("897012"),"Debt and Collections":t("1147978"),"Divorce and Separation":t("966410"),"DUI and DWI":t("897012"),"Elder Law":t("565949"),"Employment and Workplace":t("897014"),Expungement:t("897012"),Foreclosure:t("565923"),Guardianship:t("565949"),"Landlord and Tenant":t("1315025"),"Power of Attorney":t("1097602"),"Probate and Estates":t("1097602"),"Product Liability":t("897042"),"Property Damage":t("897042"),"Real Estate":t("565923"),"Social Security Disability and Insurance":t("897033"),"Tax and IRS":t("1147978"),"Traffic and Tickets":t("808601"),Unemployment:t("897014"),"Victim of a Crime":t("897012"),"Wills and Trusts":t("1097602"),"Workers Compensation":t("897014"),"Wrongful Termination":t("897014")},"*":t("808601")};const m=t=>(t.legendClass="legend-left required",t.fieldsetClass="$reset side-by-side",t.optionsClass="t-pl-1",t.innerClass="t-flex t-items-center",t.wrapperClass="t-mb-3",(t=>e({$formkit:"checkbox",validation:"required",validationMessages:{required:"Field is required"}},t))(t)),p=t=>e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},t),c=e=>(e.options=["Yes","No"],(e=>(e.legendClass="legend-left t-pb-1 required",e.fieldsetClass="$reset side-by-side t-items-center",e.optionsClass="t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center",e.innerClass="t-flex t-items-center",e.optionClass="t-pr-1",p(e)))(e)),u=t=>(t.labelClass="required",t.wrapperClass="side-by-side t-items-center",t.innerClass="select-height-content",t.helpClass="t-mt-2.5 md:t-text-right md:t-mt-[-5px]",(t=>e({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},t))(t)),f=t=>(t.wrapperClass="side-by-side t-items-center",(t=>e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t))(t)),h=()=>{return(e={label:"Type of Help Needed:",name:"Type_Of_Legal_Problem",id:"Type_Of_Legal_Problem",options:["Adoption","Child Custody and Support","Family Issues","Guardianship","Divorce and Separation","Not Sure or Other"]}).legendClass="legend-left-flex md:t-max-w-[40%] required",e.fieldsetClass="$reset side-by-side-flex",e.optionsClass="md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125",e.innerClass="t-flex t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",p(e);var e},y=t=>(t=>e({$formkit:"textarea",rows:5,maxlength:500,validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t))(e({label:"Please briefly describe your situation in a few words:",name:"Comments",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},t)),g=e=>u({label:"How Likely Are You to Pay if Your Issue Could be Resolved?",id:"Degree_Of_Interest",name:"Degree_Of_Interest",help:e,options:["Definitely","Probably","Maybe","Absolutely Can't Afford"]}),b=()=>c({name:"Have_Attorney",label:"Are You Already Working with An Attorney?"}),x=()=>c({name:"Have_Children",label:"Do You Have Children?"}),v=()=>u({label:"How Will You Pay for Legal Fees if You Hire a Lawyer?",name:"Lawyer_Payment_Method",help:"No payment necessary to speak with lawyers.",options:["Cash","Check","Credit Card","Friend","Family","Other"]}),w=()=>u({label:"Marital Status:",name:"Marital_Status",options:["Unmarried, Living Together","Unmarried, Do Not Live Together","Married, Living Together","Separated","Divorced","Other"]}),$=(t,a)=>e({$cmp:"FormKit",props:{type:"group",key:t,id:t,name:t}},a),k=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,I=e=>{if(k(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(k(a))return a;const i=I(a);if(i)return i}return null};function C(t,a,i=!0){if(void 0===i&&(i=!0),a&&a.length&&i){I(a[a.length-1]).onKeypress="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}return e((e=>({$el:"section",if:'$stepIsEnabled("'+e+'")',attrs:{style:{if:'$activeStep !== "'+e+'"',then:"display: none;"}}}))(t),{children:[{$formkit:"group",id:t,name:t,children:a}]})}var E;return[(E={defaultCommentsPlaceholder:'For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"',commentsPlaceholders:{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"',"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"',"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"',"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"',"Nursing Home Abuse":'Example: "My mother\'s nursing home is physically abusing her"',"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"',"Vaccination Injury":'Example: "I was injured after receiving a vaccine and would like to file a lawsuit"',"Veteran's Disability":'Example: "I would like help filing for disability 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"'},defaultFinalHeadline:"We Found Matches For Your Case!",finalHeadlines:{},defaultFinalSubHeadline:"You may benefit from speaking with a legal professional. Please verify your contact information.",finalSubHeadlines:{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.","Veteran's Disability":"You may benefit from speaking with a disability legal professional. Please verify your contact information.","Workers Compensation":"You may benefit from speaking with a workers compensation professional. Please verify your contact information."},trustedFormTOLPs:{Adoption:!0,"Child Custody and Support":!0,"Divorce and Separation":!0,"Family Issues":!0,Guardianship:!0,"Not Sure or Other":!0}},{type:"meta",data:e(i,E)}),function(t){return e(r,t)}(),{$cmp:"FormKit",props:function(t){return e(a,t)}({formId:"childAndFamily",onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',redirectMap:function(t){return e(d,t)}(),anchorElement:"form-anchor"}),children:[function(t){return e(n,t)}({children:'$urlParam("hl", "Get Child & Family Help Today")',if:"$activeStep === $firstStep()"}),function(t){return e(o,t)}({children:'$urlParam("shl", "Contact Us for Child Support, Custody and Family Issues")',if:"$activeStep === $firstStep()"}),{$formkit:"hidden",name:"vertical",value:"Legal"},{$formkit:"hidden",name:"TCPA_Language",value:"$meta.tcpaLanguage"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null},{$el:"div",attrs:{class:"form-body"},children:[function(e={}){return C("childAndFamilyTOLPAndZip",[h(),f({label:"Zip Code:",placeholder:"#####",name:"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"}})],e.nextOnEnter)}(),function(e={}){return C("TOLPQuestions",[{$el:"h3",children:"Please Complete the Following:",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-3"}},$("AdoptionQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Adoption"',children:[b(),w(),x(),g(),v()]}),$("ChildCustodyAndSupportQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',children:[b(),u({label:"Your Relationship to Child(ren):",name:"Child_Relationship",options:["Father","Mother","Grandparent","Aunt/Uncle","Other"]}),u({label:"With Whom Do the Children Currently Live?",name:"Child_Home",options:["Mother","Father","Grandparents","Other"]}),u({label:"Who is the Primary Caregiver?",name:"Child_Primary_Caregiver",options:["Mother","Father","Other"]}),g(),v()]}),$("FamilyIssuesQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Family Issues"',children:[b(),w(),x(),g(),v()]}),$("GuardianshipQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Guardianship"',children:[b(),w(),x(),g(),v()]}),$("DivorceQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',children:[b(),w(),x(),g(),v()]}),$("NotSureOrOtherQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Not Sure or Other"',children:[b(),g("No payment necessary to speak with lawyers.")]})],e.nextOnEnter)}(),function(e={}){return C("commentsWithBankruptcy",[{$el:"h3",children:"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-3"}},y({label:e.label||"Please briefly describe your legal issue in a few words:",placeholder:e.placeholder||'$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)'}),m({label:"I'd also like a separate consultation for bankruptcy and debt elimination",help:"Please note: you will be contacted separately by a bankruptcy expert",name:"CrossSell_Bankruptcy",if:'$getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe"',validation:null,helpClass:"!t-text-sm"})],e.nextOnEnter)}({nextOnEnter:!1}),function(e={}){return C("firstAndLast",[{$el:"h3",children:"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-3"}},f({$formkit:"text",label:"First Name:",name:"First_Name",autocomplete:"given-name",validationMessages:{required:"First Name is required"}}),f({$formkit:"text",label:"Last Name:",name:"Last_Name",autocomplete:"family-name",validationMessages:{required:"Last Name is required"}})],e.nextOnEnter)}(),function(e={}){return C("contactInfo",[{$el:"h3",children:e.headline||'$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)',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-3"}},{$el:"h5",children:e.subheadline||'$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)',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"}},{$el:"script",if:'$activeStep === $lastStep() && $getKey($meta, "trustedFormTOLPs." + $get(Type_Of_Legal_Problem).value, false) == true',children:"(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})();"},f({$formkit:"email",name:"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"}}),f({$formkit:"tel",name:"Primary_Phone",label:"Phone Number:",placeholder:"xxx-xxx-xxxx",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}$/",validationMessages:{required:"Field is required",matches:"Invalid Phone Number, use xxx-xxx-xxxx format"},helpClass:"t-mt-2.5 md:t-text-right md:t-mt-[-2px]"}),{$formkit:"checkbox",label:"$meta.tcpaLanguage",name:"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"}},s()],e.nextOnEnter)}({nextOnEnter:!1}),{$el:"div",attrs:{class:"step-nav"},children:[{$formkit:"button",name:"back_button",onClick:"$setPreviousStep($scrollAnchor($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:"Get Help",else:"Next"},outerClass:{if:"$activeStep === $lastStep()",then:"t-hidden",else:""},style:{if:"$activeStep === $lastStep()",then:"display: none;"}},{$formkit:"submit",name:"submit_button",label:"Submit",if:"$activeStep === $lastStep()",style:{if:"$activeStep !== $lastStep()",then:"display: none;"}}]},{$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"}}]}]}]}]}();