bhl-forms 0.0.79 → 0.0.81

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,206 @@ 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
+
160
371
  // ------ Common Base Settings
161
372
 
162
373
  const checkbox = (updates) => {
@@ -264,10 +475,12 @@ const textArea = (updates) => {
264
475
  };
265
476
 
266
477
  const bankruptcyCrossSell = () => sbsCheckbox({
267
- label: "I'd like a free consultation for bankruptcy and eliminating my debt",
478
+ label: "I'd also like a separate consultation for bankruptcy and debt elimination",
479
+ help: "Please note: you will be contacted separately by a bankruptcy expert",
268
480
  name: 'CrossSell_Bankruptcy',
269
- if: '$getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford"',
270
- validation: null
481
+ if: '$getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe"',
482
+ validation: null,
483
+ helpClass: "!t-text-sm"
271
484
  });
272
485
 
273
486
  const childAndFamilyTOLP = () => sbs2ColRadio({
@@ -366,7 +579,7 @@ const firstName = () => sbsText({
366
579
 
367
580
  const haveAttorney = () => sbsYesNoRadio({
368
581
  name: 'Have_Attorney',
369
- label: 'Are You Currently Working with An Attorney?'
582
+ label: 'Are You Already Working with An Attorney?'
370
583
  });
371
584
 
372
585
  const haveChildren = () => sbsYesNoRadio({
@@ -626,23 +839,33 @@ function childAndFamilyTOLPAndZip(updates = {}) {
626
839
  }
627
840
 
628
841
  const DEFAULT_COMMENTS_PLACEHOLDER = 'For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"';
842
+ const DEFAULT_COMMENTS_PLACEHOLDER_V2 = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
629
843
  const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
630
844
 
631
- function commentsWithBankruptcy(updates = {}) {
845
+ function commentsWithBankruptcyV2(updates = {}) {
632
846
  return step(
633
847
  'commentsWithBankruptcy',
634
848
  [
849
+ {
850
+ $el: 'h3',
851
+ children: 'Additional Case Details',
852
+ attrs: {
853
+ 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'
854
+ }
855
+ },
635
856
  comments({
636
857
  label: updates.label || DEFAULT_COMMENTS_LABEL,
637
- placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER
858
+ placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_V2
638
859
  }),
639
860
  bankruptcyCrossSell()
640
861
  ],
641
862
  updates.nextOnEnter
642
863
  )
643
864
  }
644
-
645
- const DEFAULT_FINAL_HEADLINE = "Based on your input, you may benefit from speaking with a legal professional. Please verify your contact information.";
865
+ const DEFAULT_FINAL_HEADLINE_V2 = 'We Found Matches For Your Case!';
866
+ const DEFAULT_FINAL_HEADLINE_V2_b = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
867
+ const DEFAULT_FINAL_SUBHEADLINE_V2 = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
868
+ const DEFAULT_FINAL_SUBHEADLINE_V2_b = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
646
869
 
647
870
  const TRUSTED_FORM_JS = `(function() {
648
871
  if (window.xxTrustedFormLoaded) {
@@ -666,9 +889,16 @@ function contactInfoTF(updates = {}) {
666
889
  [
667
890
  {
668
891
  $el: 'h3',
669
- children: updates.headline || DEFAULT_FINAL_HEADLINE,
892
+ children: updates.headline || DEFAULT_FINAL_HEADLINE_V2_b,
670
893
  attrs: {
671
- class: 't-flex t-justify-center t-text-center t-text-lg t-font-bold t-pb-5 t-pt-0 t-px-3'
894
+ 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'
895
+ }
896
+ },
897
+ {
898
+ $el: 'h5',
899
+ children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_V2_b,
900
+ attrs: {
901
+ class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3'
672
902
  }
673
903
  },
674
904
  {
@@ -679,16 +909,23 @@ function contactInfoTF(updates = {}) {
679
909
  email(),
680
910
  phone(),
681
911
  TCPAConsent(),
682
- privacyIcons()
912
+ secureIcon()
683
913
  ],
684
914
  updates.nextOnEnter
685
915
  )
686
916
  }
687
917
 
688
- function firstAndLast(updates = {}) {
918
+ function firstAndLastV2(updates = {}) {
689
919
  return step(
690
920
  'firstAndLast',
691
921
  [
922
+ {
923
+ $el: 'h3',
924
+ children: 'Please Provide a Contact Name',
925
+ attrs: {
926
+ 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'
927
+ }
928
+ },
692
929
  firstName(),
693
930
  lastName()
694
931
  ],
@@ -718,9 +955,7 @@ function childAndFamilyTOLPQuestions(updates = {}) {
718
955
  )
719
956
  }
720
957
 
721
- // ------ Utilities
722
-
723
- const formNavigation = () => ({
958
+ const formNavigationV2 = () => ({
724
959
  $el: 'div',
725
960
  attrs: {
726
961
  class: 'step-nav'
@@ -740,7 +975,16 @@ const formNavigation = () => ({
740
975
  $formkit: 'button',
741
976
  name: 'next_button',
742
977
  onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
743
- children: 'Next',
978
+ children: {
979
+ if: '$activeStep === $firstStep()',
980
+ then: 'Get Help',
981
+ else: 'Next'
982
+ },
983
+ outerClass: {
984
+ if: '$activeStep === $lastStep()',
985
+ then: 't-hidden',
986
+ else: ''
987
+ },
744
988
  style: {
745
989
  if: '$activeStep === $lastStep()',
746
990
  then: 'display: none;'
@@ -799,31 +1043,30 @@ const formDetails = () => ({
799
1043
  });
800
1044
 
801
1045
  const schema = [
802
- metaProps(),
1046
+ metaProps({
1047
+ defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER,
1048
+ commentsPlaceholders: TOLPCommentsPlaceholders,
1049
+ defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_V2,
1050
+ finalHeadlines: TOLPFinalHeadlines,
1051
+ defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_V2,
1052
+ finalSubHeadlines: TOLPFinalSubHeadlines
1053
+ }),
803
1054
  formAnchor(),
804
1055
  {
805
1056
  $cmp: 'FormKit',
806
1057
  props: formProps({
807
1058
  formId: 'childAndFamily',
808
- onSubmit: '$submit($submitUrl, $prepData, $handleRedirect)',
809
- redirectMap: {
810
- "properties.Type_Of_Legal_Problem": {
811
- 'Adoption': JALegalUrl('565949'),
812
- 'Child Custody and Support': JALegalUrl('565949'),
813
- 'Divorce and Separation': JALegalUrl('966410'),
814
- 'Guardianship': JALegalUrl('565949')
815
- },
816
- '*': JALegalUrl('808601')
817
- },
1059
+ onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
1060
+ redirectMap: legalRedirectMap(),
818
1061
  anchorElement: 'form-anchor'
819
1062
  }),
820
1063
  children: [
821
1064
  headline({
822
- children: 'Get Child & Family Help Today',
1065
+ children: '$urlParam("hl", "Get Child & Family Help Today")',
823
1066
  if: '$activeStep === $firstStep()'
824
1067
  }),
825
1068
  subHeadline({
826
- children: 'Contact Us for Child Support, Custody and Family Issues',
1069
+ children: '$urlParam("shl", "Contact Us for Child Support, Custody and Family Issues")',
827
1070
  if: '$activeStep === $firstStep()'
828
1071
  }),
829
1072
  ...hiddenInputs,
@@ -835,17 +1078,14 @@ const schema = [
835
1078
  children: [
836
1079
  childAndFamilyTOLPAndZip(),
837
1080
  childAndFamilyTOLPQuestions(),
838
- commentsWithBankruptcy({
839
- label: 'Please briefly describe your situation in a few words:',
840
- placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
1081
+ commentsWithBankruptcyV2({
841
1082
  nextOnEnter: false
842
1083
  }),
843
- firstAndLast(),
1084
+ firstAndLastV2(),
844
1085
  contactInfoTF({
845
- headline: 'Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:',
846
1086
  nextOnEnter: false
847
1087
  }),
848
- formNavigation(),
1088
+ formNavigationV2(),
849
1089
  formDetails()
850
1090
  ]
851
1091
  }
@@ -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 i={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 r={$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),u=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)),p=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=>p({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=()=>u({name:"Have_Attorney",label:"Are You Currently Working with An Attorney?"}),g=()=>u({name:"Have_Children",label:"Do You Have Children?"}),v=()=>p({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"]}),b=()=>p({label:"Marital Status:",name:"Marital_Status",options:["Unmarried, Living Together","Unmarried, Do Not Live Together","Married, Living Together","Separated","Divorced","Other"]}),x=(t,i)=>e({$cmp:"FormKit",props:{type:"group",key:t,id:t,name:t}},i),$=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 i=e.children[t];if($(i))return i;const r=C(i);if(r)return r}return null};function _(t,i,r=!0){if(void 0===r&&(r=!0),i&&i.length&&r){C(i[i.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:i}]})}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(r,t)}(),{$cmp:"FormKit",props:function(t){return e(i,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(),b(),g(),h(),v()]}),x("ChildCustodyAndSupportQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',children:[y(),p({label:"Your Relationship to Child(ren):",name:"Child_Relationship",options:["Father","Mother","Grandparent","Aunt/Uncle","Other"]}),p({label:"With Whom Do the Children Currently Live?",name:"Child_Home",options:["Mother","Father","Grandparents","Other"]}),p({label:"Who is the Primary Caregiver?",name:"Child_Primary_Caregiver",options:["Mother","Father","Other"]}),h(),v()]}),x("FamilyIssuesQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Family Issues"',children:[y(),b(),g(),h(),v()]}),x("GuardianshipQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Guardianship"',children:[y(),b(),g(),h(),v()]}),x("DivorceQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',children:[y(),b(),g(),h(),v()]}),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 like a free consultation for bankruptcy and eliminating my debt",name:"CrossSell_Bankruptcy",if:'$getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford"',validation:null})],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 n={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const r={$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."}},{type:"meta",data:e(i,E)}),function(t){return e(n,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(r,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()",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"}}]}]}]}]}();