bhl-forms 0.6.15 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/bhl-forms.es.js +1757 -1759
  2. package/dist/bhl-forms.iife.js +4 -4
  3. package/dist/bhl-forms.modern.es.js +2804 -2811
  4. package/dist/bhl-forms.modern.iife.js +6 -6
  5. package/dist/bhl-forms.modern.umd.js +6 -6
  6. package/dist/bhl-forms.umd.js +4 -4
  7. package/dist/forms/accidentsAndInjuries.es.js +314 -228
  8. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  9. package/dist/forms/accidentsAndInjuries.json +1 -1
  10. package/dist/forms/appraisals.es.js +16 -7
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/business.es.js +317 -236
  13. package/dist/forms/business.iife.js +1 -1
  14. package/dist/forms/business.json +1 -1
  15. package/dist/forms/childAndFamily.es.js +303 -224
  16. package/dist/forms/childAndFamily.iife.js +1 -1
  17. package/dist/forms/childAndFamily.json +1 -1
  18. package/dist/forms/childAndFamilySingle.es.js +643 -555
  19. package/dist/forms/childAndFamilySingle.iife.js +1 -1
  20. package/dist/forms/childAndFamilySingle.json +1 -1
  21. package/dist/forms/civilLawsuit.es.js +637 -551
  22. package/dist/forms/civilLawsuit.iife.js +1 -1
  23. package/dist/forms/civilLawsuit.json +1 -1
  24. package/dist/forms/coins.es.js +16 -7
  25. package/dist/forms/coins.iife.js +1 -1
  26. package/dist/forms/contracts.es.js +307 -227
  27. package/dist/forms/contracts.iife.js +1 -1
  28. package/dist/forms/contracts.json +1 -1
  29. package/dist/forms/criminal.es.js +660 -572
  30. package/dist/forms/criminal.iife.js +1 -1
  31. package/dist/forms/criminal.json +1 -1
  32. package/dist/forms/divorce.es.js +643 -555
  33. package/dist/forms/divorce.iife.js +1 -1
  34. package/dist/forms/divorce.json +1 -1
  35. package/dist/forms/employmentAndWorkplace.es.js +584 -506
  36. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  37. package/dist/forms/employmentAndWorkplace.json +1 -1
  38. package/dist/forms/generalHomeImprovement.es.js +3015 -0
  39. package/dist/forms/generalHomeImprovement.iife.js +1 -0
  40. package/dist/forms/generalHomeImprovement.json +1 -0
  41. package/dist/forms/generalLegal.es.js +341 -244
  42. package/dist/forms/generalLegal.iife.js +1 -1
  43. package/dist/forms/generalLegal.json +1 -1
  44. package/dist/forms/generalLegalJustAnswer.es.js +4542 -0
  45. package/dist/forms/generalLegalJustAnswer.iife.js +1 -0
  46. package/dist/forms/generalLegalJustAnswer.json +1 -0
  47. package/dist/forms/generalLegalPopUnder.es.js +342 -245
  48. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  49. package/dist/forms/generalLegalPopUnder.json +1 -1
  50. package/dist/forms/generalLegalPopUnderSingle.es.js +692 -612
  51. package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
  52. package/dist/forms/generalLegalPopUnderSingle.json +1 -1
  53. package/dist/forms/generalLegalSingle.es.js +692 -612
  54. package/dist/forms/generalLegalSingle.iife.js +1 -1
  55. package/dist/forms/generalLegalSingle.json +1 -1
  56. package/dist/forms/generalLegalThankYou.es.js +204 -158
  57. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  58. package/dist/forms/generalLegalThankYou.json +1 -1
  59. package/dist/forms/generalLegalThankYouConsultation.es.js +692 -612
  60. package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
  61. package/dist/forms/generalLegalThankYouConsultation.json +1 -1
  62. package/dist/forms/harassmentAndDiscrimination.es.js +303 -224
  63. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  64. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  65. package/dist/forms/landlordTenant.es.js +316 -240
  66. package/dist/forms/landlordTenant.iife.js +1 -1
  67. package/dist/forms/landlordTenant.json +1 -1
  68. package/dist/forms/malpractice.es.js +308 -227
  69. package/dist/forms/malpractice.iife.js +1 -1
  70. package/dist/forms/malpractice.json +1 -1
  71. package/dist/forms/mechanics.es.js +184 -166
  72. package/dist/forms/mechanics.iife.js +1 -1
  73. package/dist/forms/mechanics.json +1 -1
  74. package/dist/forms/patentsAndIP.es.js +646 -558
  75. package/dist/forms/patentsAndIP.iife.js +1 -1
  76. package/dist/forms/patentsAndIP.json +1 -1
  77. package/dist/forms/realEstate.es.js +339 -243
  78. package/dist/forms/realEstate.iife.js +1 -1
  79. package/dist/forms/realEstate.json +1 -1
  80. package/dist/forms/repossession.es.js +307 -227
  81. package/dist/forms/repossession.iife.js +1 -1
  82. package/dist/forms/repossession.json +1 -1
  83. package/dist/forms/ssdi.es.js +156 -140
  84. package/dist/forms/ssdi.iife.js +1 -1
  85. package/dist/forms/ssdi.json +1 -1
  86. package/dist/forms/testForm.es.js +69 -51
  87. package/dist/forms/testForm.iife.js +1 -1
  88. package/dist/forms/testForm.json +1 -1
  89. package/dist/forms/testRedirects.es.js +43 -22
  90. package/dist/forms/testRedirects.iife.js +1 -1
  91. package/dist/forms/testRedirects.json +1 -1
  92. package/dist/forms/vets.es.js +16 -7
  93. package/dist/forms/vets.iife.js +1 -1
  94. package/dist/forms/willsAndTrusts.es.js +304 -223
  95. package/dist/forms/willsAndTrusts.iife.js +1 -1
  96. package/dist/forms/willsAndTrusts.json +1 -1
  97. package/package.json +3 -3
@@ -6,14 +6,13 @@ function LegalRedirectUrl() {
6
6
  return 'https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}'
7
7
  }
8
8
 
9
- var TCPA_LANGUAGE = "By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.";
10
-
11
- const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
12
- const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
13
- const DEFAULT_FINAL_HEADLINE = 'Submit Your Case';
14
- const DEFAULT_FINAL_HEADLINE_DYNAMIC = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
15
- const DEFAULT_FINAL_SUBHEADLINE = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
16
- const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
9
+ const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
10
+ const DEFAULT_COMMENTS_LABEL_LEGAL = 'Please briefly describe your legal issue in a few words:';
11
+ const DEFAULT_FINAL_HEADLINE_LEGAL = 'Submit Your Case';
12
+ const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
13
+ const DEFAULT_FINAL_SUBHEADLINE_LEGAL = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
14
+ const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
15
+ const TCPA_LANGUAGE_LEGAL = "By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.";
17
16
 
18
17
  // ------ Common Base Settings
19
18
 
@@ -98,6 +97,7 @@ const verticalText = (updates) => {
98
97
  updates.wrapperClass = 't-flex t-justify-center';
99
98
  updates.messagesClass = 't-flex t-justify-center';
100
99
  updates.inputClass = 't-text-center';
100
+ updates.helpClass = 't-mt-2.5 !t-text-sm t-text-center';
101
101
  return text(updates)
102
102
  };
103
103
 
@@ -118,50 +118,6 @@ const textArea = (updates) => {
118
118
  }, updates)
119
119
  };
120
120
 
121
- const applicantAgeCenter = (scope) => verticalText({
122
- name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
123
- value: "50",
124
- placeholder: 'Age between 18 and 65',
125
- maxlength: 2,
126
- inputmode: "numeric",
127
- validation: "required|min:18,max:65",
128
- validationMessages: {
129
- required: 'Applicant Age is required',
130
- min: 'Invalid Age - must be between 18 and 65',
131
- max: 'Invalid Age - must be between 18 and 65',
132
- },
133
- });
134
-
135
- const bankruptcyCrossSell = () => sbsCheckbox({
136
- label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
137
- help: "Note: you will be contacted separately by a bankruptcy/debt expert",
138
- name: 'CrossSell_Bankruptcy',
139
- id: 'CrossSell_Bankruptcy',
140
- if: '$getVal($get(form), "Type_Of_Legal_Problem") != "Bankruptcy" && ($getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe" || $getVal($get(form), "Degree_Of_Interest") == "Probably")',
141
- validation: null,
142
- helpClass: "!t-text-sm"
143
- });
144
-
145
- const comments = (updates, scope) => textArea(
146
- merge({
147
- name: scope ? scope + ':' + 'Comments' : 'Comments',
148
- label: 'Please briefly describe your situation in a few words:',
149
- placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
150
- }, updates)
151
- );
152
-
153
- const disabilityConditionStopWorkCenter = (scope) => verticalYesNoRadio({
154
- name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
155
- });
156
-
157
- const disabilityWorkHistoryCenter = (scope) => verticalYesNoRadio({
158
- name: scope ? scope + ':' + 'Disability_Work_History' : 'Disability_Work_History',
159
- });
160
-
161
- const doctorTreatmentCenter = (scope) => verticalYesNoRadio({
162
- name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
163
- });
164
-
165
121
  const email = (scope) => sbsText({
166
122
  $formkit: 'email',
167
123
  name: scope ? scope + ':' + 'Email' : 'Email',
@@ -177,7 +133,6 @@ const email = (scope) => sbsText({
177
133
  });
178
134
 
179
135
  const firstName = (scope) => sbsText({
180
- $formkit: 'text',
181
136
  label: 'First Name:',
182
137
  placeholder: 'First',
183
138
  name: scope ? scope + ':' + 'First_Name' : 'First_Name',
@@ -187,12 +142,7 @@ const firstName = (scope) => sbsText({
187
142
  }
188
143
  });
189
144
 
190
- const haveAttorneyCenter = (scope) => verticalYesNoRadio({
191
- name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
192
- });
193
-
194
145
  const lastName = (scope) => sbsText({
195
- $formkit: 'text',
196
146
  label: 'Last Name:',
197
147
  placeholder: 'Last',
198
148
  name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
@@ -220,6 +170,83 @@ const phone = (scope) => sbsText({
220
170
  helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
221
171
  });
222
172
 
173
+
174
+ const zipcode = (scope, vertical, updates = {}) => {
175
+ const func = vertical ? verticalText : sbsText;
176
+ const label = vertical ? (updates.label) : 'Zip Code:';
177
+ const help = vertical ? (updates.help ?? "We try to match you with local help") : null;
178
+ return func({
179
+ label,
180
+ help,
181
+ placeholder: '#####',
182
+ name: scope ? scope + ':' + 'Zip' : 'Zip',
183
+ maxlength: 5,
184
+ inputmode: "numeric",
185
+ autocomplete: 'postal-code',
186
+ validation: 'required|matches:/^[0-9]{5}$/',
187
+ validationMessages: {
188
+ required: 'Zip Code is required',
189
+ matches: 'Invalid Zip Code'
190
+ },
191
+ ...updates
192
+ })
193
+ };
194
+
195
+ const applicantAge = (scope, vertical, updates = {}) => {
196
+ const func = vertical ? verticalText : sbsText;
197
+ const label = vertical ? (updates.label) : 'Age of Applicant?';
198
+ const value = vertical ? (updates.value ?? "50") : null;
199
+ return func(merge({
200
+ label,
201
+ placeholder: 'Age between 18 and 65',
202
+ name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
203
+ value,
204
+ maxlength: 2,
205
+ inputmode: "numeric",
206
+ validation: "required|min:18,max:65",
207
+ validationMessages: {
208
+ required: 'Applicant Age is required',
209
+ min: 'Invalid Age - must be between 18 and 65',
210
+ max: 'Invalid Age - must be between 18 and 65',
211
+ },
212
+ ...updates
213
+ }))
214
+ };
215
+
216
+ const bankruptcyCrossSell = () => sbsCheckbox({
217
+ label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
218
+ help: "Note: you will be contacted separately by a bankruptcy/debt expert",
219
+ name: 'CrossSell_Bankruptcy',
220
+ id: 'CrossSell_Bankruptcy',
221
+ if: '$getVal($get(form), "Type_Of_Legal_Problem") != "Bankruptcy" && ($getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe" || $getVal($get(form), "Degree_Of_Interest") == "Probably")',
222
+ validation: null,
223
+ helpClass: "!t-text-sm"
224
+ });
225
+
226
+ const comments = (updates, scope) => textArea(
227
+ merge({
228
+ name: scope ? scope + ':' + 'Comments' : 'Comments',
229
+ label: 'Please briefly describe your situation in a few words:',
230
+ placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
231
+ }, updates)
232
+ );
233
+
234
+ const disabilityConditionStopWorkCenter = (scope) => verticalYesNoRadio({
235
+ name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
236
+ });
237
+
238
+ const disabilityWorkHistoryCenter = (scope) => verticalYesNoRadio({
239
+ name: scope ? scope + ':' + 'Disability_Work_History' : 'Disability_Work_History',
240
+ });
241
+
242
+ const doctorTreatmentCenter = (scope) => verticalYesNoRadio({
243
+ name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
244
+ });
245
+
246
+ const haveAttorneyCenter = (scope) => verticalYesNoRadio({
247
+ name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
248
+ });
249
+
223
250
  const socialSecurityDisabilityReceivingBenefitsCenter = (scope) => verticalYesNoRadio({
224
251
  name: scope ? scope + ':' + 'Social_Security_Disability_Receiving_Benefits' : 'Social_Security_Disability_Receiving_Benefits',
225
252
  });
@@ -239,24 +266,6 @@ const TCPAConsent = (scope) => ({
239
266
  }
240
267
  });
241
268
 
242
- const zipcodeCenter = (updates = {}, scope) => text({
243
- placeholder: '#####',
244
- help: updates.help ?? "We try to match you with local legal help",
245
- name: scope ? scope + ':' + 'Zip' : 'Zip',
246
- maxlength: 5,
247
- inputmode: "numeric",
248
- autocomplete: 'postal-code',
249
- validation: 'required|matches:/^[0-9]{5}$/',
250
- validationMessages: {
251
- required: 'Zip Code is required',
252
- matches: 'Invalid Zip Code'
253
- },
254
- wrapperClass: 't-flex t-justify-center',
255
- messagesClass: 't-flex t-justify-center',
256
- inputClass: 't-text-center',
257
- helpClass: 't-mt-2.5 !t-text-sm t-text-center'
258
- });
259
-
260
269
  const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
261
270
  const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
262
271
 
@@ -332,13 +341,20 @@ function verticalStepHeadline(updates) {
332
341
  function commentsStepHeadline(updates) {
333
342
  return {
334
343
  $el: 'h3',
335
- children: updates.headline || 'Additional Case Details',
344
+ children: updates.headline || 'Additional Details',
336
345
  attrs: {
337
346
  class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
338
347
  }
339
348
  }
340
349
  }
341
350
 
351
+ function commentsStepHeadlineLegal(updates) {
352
+ return commentsStepHeadline({
353
+ headline: updates.headline || 'Additional Case Details',
354
+ headlineClass: updates.headlineClass
355
+ })
356
+ }
357
+
342
358
  function firstAndLastStepHeadline(updates) {
343
359
  return {
344
360
  $el: 'h3',
@@ -352,7 +368,7 @@ function firstAndLastStepHeadline(updates) {
352
368
  function contactStepHeadline(updates) {
353
369
  return {
354
370
  $el: 'h3',
355
- children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
371
+ children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL,
356
372
  attrs: {
357
373
  class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
358
374
  }
@@ -362,7 +378,7 @@ function contactStepHeadline(updates) {
362
378
  function contactStepSubHeadline(updates) {
363
379
  return {
364
380
  $el: 'h5',
365
- children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC,
381
+ children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL,
366
382
  attrs: {
367
383
  class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3' + ' ' + (updates.subheadlineClass || '')
368
384
  }
@@ -402,10 +418,16 @@ const stepDefaults = (step, stepKey) => ({
402
418
  }
403
419
  });
404
420
 
405
- function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = undefined, nextStepMap = undefined, autoFocus = undefined) {
406
- if (typeof nextOnEnter === 'undefined') {
407
- nextOnEnter = true;
408
- }
421
+ function step(name, inputs, updates = {}) {
422
+ const {
423
+ nextOnEnter = true,
424
+ nextOnInput = false,
425
+ stepKey = undefined,
426
+ nextStepMap = undefined,
427
+ triggerRedirectMap = undefined,
428
+ autoFocus = undefined,
429
+ } = updates;
430
+
409
431
  if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
410
432
  const lastInput = findLastInput(inputs[inputs.length - 1]);
411
433
  if (lastInput && nextOnEnter === true) {
@@ -425,6 +447,7 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
425
447
  id: name,
426
448
  name: name,
427
449
  nextStepMap: nextStepMap,
450
+ triggerRedirectMap: triggerRedirectMap,
428
451
  autoFocus: autoFocus,
429
452
  children: inputs
430
453
  }
@@ -433,34 +456,6 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
433
456
  )
434
457
  }
435
458
 
436
- function commentsWithBankruptcy(updates = {}) {
437
- return step(
438
- 'commentsWithBankruptcy',
439
- [
440
- commentsStepHeadline(updates),
441
- comments({
442
- label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL : updates.label,
443
- placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
444
- inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
445
- }, updates.scope),
446
- // TODO: needs scope support
447
- bankruptcyCrossSell(),
448
- {
449
- $el: 'div',
450
- if: '$get(CrossSell_Bankruptcy).value == true',
451
- children: [
452
- comments({
453
- label: 'Bankruptcy or debt details:',
454
- placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
455
- inputClass: '!t-h-16'
456
- }, 'CrossSell:Bankruptcy')
457
- ],
458
- }
459
- ],
460
- false // nextOnEnter
461
- )
462
- }
463
-
464
459
  function contactInfo(updates = {}) {
465
460
  return step(
466
461
  'contactInfo',
@@ -473,7 +468,7 @@ function contactInfo(updates = {}) {
473
468
  TCPAConsent(updates.scope),
474
469
  secureIcon()
475
470
  ],
476
- false, // nextOnEnter
471
+ { nextOnEnter: false }
477
472
  )
478
473
  }
479
474
 
@@ -485,10 +480,41 @@ function firstAndLastV2(updates = {}) {
485
480
  firstName(),
486
481
  lastName()
487
482
  ],
488
- updates.nextOnEnter
483
+ updates
489
484
  )
490
485
  }
491
486
 
487
+ function commentsWithBankruptcy(updates = {}) {
488
+ return step(
489
+ 'commentsWithBankruptcy',
490
+ [
491
+ commentsStepHeadlineLegal(updates),
492
+ comments({
493
+ label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL_LEGAL : updates.label,
494
+ placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
495
+ inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
496
+ }, updates.scope),
497
+ // TODO: needs scope support
498
+ bankruptcyCrossSell(),
499
+ {
500
+ $el: 'div',
501
+ if: '$get(CrossSell_Bankruptcy).value == true',
502
+ children: [
503
+ comments({
504
+ label: 'Bankruptcy or debt details:',
505
+ placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
506
+ inputClass: '!t-h-16'
507
+ }, 'CrossSell:Bankruptcy')
508
+ ],
509
+ }
510
+ ],
511
+ { nextOnEnter: false }
512
+ )
513
+ }
514
+
515
+ // TODO: the SSDI form was done differently before SQPS was rolled out
516
+ // elsewhere. Should it use sqstep instead?
517
+
492
518
  function ssdiTOLPAndZip(updates = {}) {
493
519
  return step(
494
520
  'ssdiTOLPAndZip',
@@ -499,12 +525,9 @@ function ssdiTOLPAndZip(updates = {}) {
499
525
  id: "Type_Of_Legal_Problem",
500
526
  value: "Social Security Disability and Insurance"
501
527
  },
502
- zipcodeCenter()
528
+ zipcode(updates.scope, true, updates)
503
529
  ],
504
- updates.nextOnEnter,
505
- updates.nextOnInput,
506
- updates.stepKey,
507
- updates.nextStepMap
530
+ updates
508
531
  )
509
532
  }
510
533
 
@@ -513,10 +536,9 @@ function ssdiApplicantAge(updates = {}) {
513
536
  'ssdiApplicantAge',
514
537
  [
515
538
  verticalStepHeadline(updates),
516
- applicantAgeCenter(),
539
+ applicantAge(updates.scope, true, updates),
517
540
  ],
518
- updates.nextOnEnter,
519
- updates.nextOnInput
541
+ updates
520
542
  )
521
543
  }
522
544
 
@@ -527,8 +549,7 @@ function ssdiDisabilityConditionStopWork(updates = {}) {
527
549
  verticalStepHeadline(updates),
528
550
  disabilityConditionStopWorkCenter(),
529
551
  ],
530
- updates.nextOnEnter,
531
- updates.nextOnInput
552
+ updates
532
553
  )
533
554
  }
534
555
 
@@ -539,8 +560,7 @@ function ssdiDisabilityWorkHistory(updates = {}) {
539
560
  verticalStepHeadline(updates),
540
561
  disabilityWorkHistoryCenter(),
541
562
  ],
542
- updates.nextOnEnter,
543
- updates.nextOnInput
563
+ updates
544
564
  )
545
565
  }
546
566
 
@@ -551,8 +571,7 @@ function ssdiSocialSecurityDisabilityReceivingBenefits(updates = {}) {
551
571
  verticalStepHeadline(updates),
552
572
  socialSecurityDisabilityReceivingBenefitsCenter(),
553
573
  ],
554
- updates.nextOnEnter,
555
- updates.nextOnInput
574
+ updates
556
575
  )
557
576
  }
558
577
 
@@ -563,8 +582,7 @@ function ssdiDoctorTreatment(updates = {}) {
563
582
  verticalStepHeadline(updates),
564
583
  doctorTreatmentCenter(),
565
584
  ],
566
- updates.nextOnEnter,
567
- updates.nextOnInput
585
+ updates
568
586
  )
569
587
  }
570
588
 
@@ -576,8 +594,7 @@ function ssdiHaveAttorney(updates = {}) {
576
594
  verticalStepHeadline(updates),
577
595
  haveAttorneyCenter(),
578
596
  ],
579
- updates.nextOnEnter,
580
- updates.nextOnInput
597
+ updates
581
598
  )
582
599
  }
583
600
 
@@ -720,9 +737,7 @@ function formProps(updates) {
720
737
  return props
721
738
  }
722
739
 
723
- const metaDefaults = {
724
- tcpaLanguage: TCPA_LANGUAGE
725
- };
740
+ const metaDefaults = {};
726
741
 
727
742
  function metaProps(updates) {
728
743
  const data = merge(
@@ -735,7 +750,7 @@ function metaProps(updates) {
735
750
  }
736
751
  }
737
752
 
738
- function defaultMetaProps(tolps = null) {
753
+ function defaultMetaPropsLegal(tolps = null) {
739
754
  let commentsPlaceholders = TOLPCommentsPlaceholders;
740
755
  let finalHeadlines = TOLPFinalHeadlines;
741
756
  let finalSubHeadlines = TOLPFinalSubHeadlines;
@@ -745,12 +760,13 @@ function defaultMetaProps(tolps = null) {
745
760
  finalSubHeadlines = filterMapByKey(TOLPFinalSubHeadlines, tolps);
746
761
  }
747
762
  return metaProps({
748
- defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
763
+ tcpaLanguage: TCPA_LANGUAGE_LEGAL,
764
+ defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
749
765
  commentsPlaceholders: commentsPlaceholders,
750
- defaultFinalHeadline: DEFAULT_FINAL_HEADLINE,
766
+ defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_LEGAL,
751
767
  finalHeadlines: finalHeadlines,
752
- defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE,
753
- finalSubHeadlines: finalSubHeadlines,
768
+ defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_LEGAL,
769
+ finalSubHeadlines: finalSubHeadlines
754
770
  })
755
771
  }
756
772
 
@@ -1017,7 +1033,7 @@ const TOLPFinalSubHeadlines = {
1017
1033
  // TODO: this doesnt have cross sells or dynamic schema support yet!
1018
1034
 
1019
1035
  const schema = [
1020
- defaultMetaProps(),
1036
+ defaultMetaPropsLegal(),
1021
1037
  formAnchor(),
1022
1038
  {
1023
1039
  $cmp: 'FormKit',
@@ -1 +1 @@
1
- var ssdi=function(){"use strict";function e(){return Object.assign({},...arguments)}const t='$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)',a='$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)',i='$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)',n=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=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"checkbox",validation:"required",validationMessages:{required:"Field is required"}},t)))(t)),r=t=>(t.legendClass="legend-left",t.fieldsetClass="$reset t-flex t-justify-center t-flex-col-reverse t-items-center",void 0===t.optionsClass&&(t.optionsClass="t-flex t-flex-col sm:t-flex-row t-justify-center t-my-3"),t.optionClass="radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5",t.wrapperClass="$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]",t.labelClass="t-font-semibold t-text-[#1e448f] t-w-[100%]",t.decoratorIcon=!1,t.messagesClass="t-flex t-justify-center",t.helpClass="t-mt-2.5 !t-text-sm t-text-center",(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},t)))(t)),o=e=>(e.options=["Yes","No"],e.optionsClass="t-flex t-justify-center t-my-3",r(e)),l=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t)),s=e=>(e.wrapperClass="side-by-side t-items-center",l(e)),d=e=>{return(t={name:e?e+":Applicant_Age":"Applicant_Age",value:"50",placeholder:"Age between 18 and 65",maxlength:2,inputmode:"numeric",validation:"required|min:18,max:65",validationMessages:{required:"Applicant Age is required",min:"Invalid Age - must be between 18 and 65",max:"Invalid Age - must be between 18 and 65"}}).wrapperClass="t-flex t-justify-center",t.messagesClass="t-flex t-justify-center",t.inputClass="t-text-center",l(t);var t},c=(t,a)=>(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"textarea",rows:5,maxlength:500,validation:"required",validationMessages:{required:"Field is required"},innerClass:"t-max-w-xl",labelClass:"required"},t)))(e({name:a?a+":Comments":"Comments",label:"Please briefly describe your situation in a few words:",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},t)),m=e=>s({$formkit:"text",label:"Last Name:",placeholder:"Last",name:e?e+":Last_Name":"Last_Name",autocomplete:"family-name",validationMessages:{required:"Last Name is required"}}),p=e=>s({$formkit:"tel",name:e?e+":Primary_Phone":"Primary_Phone",label:"Phone Number:",placeholder:"###-###-####",maxlength:12,help:"10-digit phone number, hyphens optional",autocomplete:"tel-national","data-tf-sensitive":"false",validation:"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone",validationMessages:{required:"Field is required",matches:"Invalid Phone Format, use ###-###-####",valid_phone:"Invalid Phone Number"},helpClass:"t-mt-2.5 md:t-text-right md:t-mt-[-2px]"}),u=e=>({$formkit:"checkbox",label:"$meta.tcpaLanguage",name:e?e+":TCPA_Opt_In":"TCPA_Opt_In","data-tf-sensitive":"false",validation:"required|accepted",validationMessages:{required:"Consent is required",accepted:"Consent is required"},classes:{label:"t-text-xs t-text-slate-500 t-font-normal"}}),f=(e={},t)=>l({placeholder:"#####",help:e.help??"We try to match you with local legal help",name:t?t+":Zip":"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"},wrapperClass:"t-flex t-justify-center",messagesClass:"t-flex t-justify-center",inputClass:"t-text-center",helpClass:"t-mt-2.5 !t-text-sm t-text-center"}),h="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",y="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",g=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,b=e=>{if(g(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(g(a))return a;const i=b(a);if(i)return i}return null},x={$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 v(t){return e(x,t)}function w(e){return{$el:"h3",children:e.headline||"Tell Us About Your Situation",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function $(e){return{$el:"h3",children:e.headline||"Additional Case Details",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function k(e){return{$el:"h3",children:e.headline||"Please Provide a Contact Name",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function I(e){return{$el:"h3",children:e.headline||a,attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function C(e){return{$el:"h5",children:e.subheadline||i,attrs:{class:"t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3 "+(e.subheadlineClass||"")}}}const E="(function() {\n if (window.xxTrustedFormLoaded) {\n return\n }\n var vid = '';\n if (typeof window.zar !== 'undefined') {\n vid = window.zar.getVID();\n }\n window.xxTrustedFormLoaded = true;\n var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'\n var tf = document.createElement('script');\n tf.type = 'text/javascript'; tf.async = true;\n tf.src = (\"https:\" == document.location.protocol ? 'https' : 'http') + \"://api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&identifier=\" + vid + \"&ping_field=xxTrustedFormPingUrl&provideReferrer=false&invert_field_sensitivity=true&sandbox=\" + sandbox + \"&l=\" + new Date().getTime() + Math.random();\n var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);\n})();";const S=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});function _(t,a,i=!0,n=!1,r=void 0,o=void 0,l=void 0){if(void 0===i&&(i=!0),a&&a.length&&(i||n)){const e=b(a[a.length-1]);e&&!0===i&&(e.onKeypress=h),e&&!0===n&&(e.onInput=y)}return e(S(t,r),{children:[{$formkit:"group",id:t,name:t,nextStepMap:o,autoFocus:l,children:a}]})}const P={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,anchorElement:"form-anchor",useLocalStorage:!0,prepop:{fromURL:!0},errorCodes:{403:{message:"An Error Occurred",abort:!1},409:{abort:!1},429:"An Error Occurred",504:{message:"An Error Occurred",abort:!1}},formClass:"!t-max-w-[40rem]"};function A(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>t.includes(e))))}const D={tcpaLanguage:"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937."};const O={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const q={$el:"div",attrs:{class:"t-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center",style:{if:"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",then:"display: none"}},children:[{$el:"div",attrs:{class:"t-flex t-justify-center"},children:[{$el:"span",attrs:{id:"progress-bar-text",class:"t-text-sm t-mb-1"},children:["0% Complete"]}]},{$el:"div",attrs:{class:"t-bg-gray-100 t-w-9/12 t-rounded"},children:[{$el:"div",attrs:{id:"progress-bar",class:"t-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]",style:{transition:"width 0.5s ease"}}}]}]};const T=[{$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}],L={Adoption:'Example: "I need help with adoption forms"',"Asbestos and Mesothelioma":'Example: "I was exposed to asbestos at work and would like to file a claim"',"Auto and Car Accidents":'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',Bankruptcy:'Example: "I need help filing for bankruptcy"',"Birth Certificate and Name Change":'Example: "Just married and would like to change my last name"',"Business Lawyers":'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',"Child Custody and Support":'Example: "Need help getting custody" or "Issues with child support payments"',"Child Custody":'Example: "Need help getting custody"',"Child Support":'Example: "Issues with child support payments"',"Civil Rights and Discrimination":'Example: "Police brutality" or "Coworker keeps harassing me"',"Civil Lawsuit":'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',"File a Lawsuit":'Example: "A contractor took my money and never completed the job"',"Defend a Lawsuit":'Example: "I am being sued by a neighbor"',"Consumer Lawyers":'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',"Copyrights and Trademarks":'Example: "I would like to register a trademark or copyright a name"',"Criminal and Felony":'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',"Debt and Collections":'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',"Divorce and Separation":'Example: "I would like to file for an uncontested divorce"',"DUI and DWI":'Example: "I was arrested for DUI and need legal defense"',"Elder Law":'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',"Employment and Workplace":'Example: "I was injured while on the job" or "My company is discriminating against me"',Expungement:'Example: "I would like to file for an expungement and clear my record"',"Family Issues":'Example: "I need help with guardianship" or "I need a simple will created"',Foreclosure:'Example: "I need help to avoid foreclosure on my house"',Guardianship:'Example: "I need help with guardianship documents"',"Harassment and Discrimination":'Example: "I am being discriminated at work" or "My neighbor is harassing me"',"Sexual Harassment":'Example: "I am being sexually harassed by a coworker"',"Workplace Harassment":'Example: "My coworker is being aggressive towards me"',"Non-Workplace Harassment":'Example: "My neighbor is harassing me"',"Workplace Discrimination":'Example: "I am being discriminated at work based on my age"',"Non-Workplace Discrimination":'Example: "I am being discriminated against by a local official"',"Identity Theft":'Example: "Someone stole my identity and I need help fixing the issue"',"Immigration and Visas":'Example: "I need help filing for a visa" or "Help with a green card"',Insurance:'Example: "I need help filing an insurance claim for damage to my house"',"Landlord and Tenant":'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',"Lemon Law":'Example: "I purchased a new vehicle that broke down already and seller will not assist"',"Long Term Disability":'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',"Medical Malpractice":'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',"Patents and Intellectual Property":'Example: "I would like to file for a patent" or "I need to copyright a name"',"Personal Injury":'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',"Power of Attorney":'Example: "I need help with a limited or general power of attorney"',"Probate and Estates":'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',"Product Liability":'Example: "My car battery caught on fire" or "I purchased a faulty product"',"Property Damage":'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',"Real Estate":'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',"Social Security Disability and Insurance":'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',"Tax and IRS":'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',"Traffic and Tickets":'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',Unemployment:'Example: "I need help filing for unemployment benefits"',"Victim of a Crime":'Example: "I was assaulted in the store" or "I am being discriminated against at work"',"Wills and Trusts":'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',"Workers Compensation":'Example: "I was injured at work and would like to file for workers compensation benefits"',"Wrongful Death":'Example: "A family member was killed on the job and we need legal representation"',"Wrongful Termination":'Example: "I was fired by my employer without cause"',"Not Sure or Other":'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'},j={},F={Adoption:"You may benefit from speaking with an adoption professional. Please verify your contact information.","Auto and Car Accidents":"You may benefit from speaking with an accident professional. Please verify your contact information.",Bankruptcy:"You may benefit from speaking with a bankruptcy professional. Please verify your contact information.","Copyrights and Trademarks":"You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.","Divorce and Separation":"You may benefit from speaking with a divorce professional. Please verify your contact information.","DUI and DWI":"You may benefit from speaking with a DUI professional. Please verify your contact information.","Elder Law":"You may benefit from speaking with an elder law professional. Please verify your contact information.",Foreclosure:"You may benefit from speaking with a foreclosure professional. Please verify your contact information.",Guardianship:"You may benefit from speaking with a guardianship professional. Please verify your contact information.","Immigration and Visas":"You may benefit from speaking with a immigration professional. Please verify your contact information.","Landlord and Tenant":"You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.","Long Term Disability":"You may benefit from speaking with a disability legal professional. Please verify your contact information.","Medical Malpractice":"You may benefit from speaking with a malpractice professional. Please verify your contact information.","Patents and Intellectual Property":"You may benefit from speaking with a patent professional. Please verify your contact information.","Personal Injury":"You may benefit from speaking with a personal injury professional. Please verify your contact information.","Probate and Estates":"You may benefit from speaking with a probate and estate professional. Please verify your contact information.","Real Estate":"You may benefit from speaking with a real estate professional. Please verify your contact information.","Social Security Disability and Insurance":"You may benefit from speaking with an SSDI professional. Please verify your contact information.","Tax and IRS":"You may benefit from speaking with a tax professional. Please verify your contact information.",Unemployment:"You may benefit from speaking with an unemployment professional. Please verify your contact information.","Workers Compensation":"You may benefit from speaking with a workers compensation professional. Please verify your contact information."},Y=[function(a=null){let i=L,n=j,r=F;return a&&(i=A(L,a),n=A(j,a),r=A(F,a)),{type:"meta",data:e(D,{defaultCommentsPlaceholder:t,commentsPlaceholders:i,defaultFinalHeadline:"Submit Your Case",finalHeadlines:n,defaultFinalSubHeadline:"You may benefit from speaking with a legal professional. Please verify your contact information.",finalSubHeadlines:r})}}(),e(O,M),{$cmp:"FormKit",props:function(t){const a=e(P,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"ssdi",redirectMap:{"*":"https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}"}}),children:[function(t){return e(q,t)}(),function(t={}){return e(function(e={}){return{$el:"h1",attrs:{class:"t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")}}}(t),t)}({children:'$urlParam("hl", "Start Your FREE Case Evaluation")',if:"$activeStep === $firstStep()",headlineClass:"!t-text-dark"}),function(t={}){return e(function(e={}){return{$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 "+(e.subheadlineClass||"")}}}(t),t)}({children:'$urlParam("shl", "You Could Receive up to $3,148 Per Month!")',if:"$activeStep === $firstStep()",subheadlineClass:"!t-text-[#00428A]"}),...T,{$el:"div",attrs:{class:"form-body"},children:[function(e={}){return _("ssdiTOLPAndZip",[{$formkit:"hidden",name:"Type_Of_Legal_Problem",id:"Type_Of_Legal_Problem",value:"Social Security Disability and Insurance"},f()],e.nextOnEnter,e.nextOnInput,e.stepKey,e.nextStepMap)}(),function(e={}){return _("ssdiApplicantAge",[w(e),d()],e.nextOnEnter,e.nextOnInput)}({nextOnInput:!0,headline:"What is the Age of the Applicant?"}),function(e={}){return _("ssdiDisabilityConditionStopWork",[w(e),o({name:t?t+":Disability_Condition_Stop_Work":"Disability_Condition_Stop_Work"})],e.nextOnEnter,e.nextOnInput);var t}({nextOnInput:!0,headline:"Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?"}),function(e={}){return _("ssdiDisabilityWorkHistory",[w(e),o({name:t?t+":Disability_Work_History":"Disability_Work_History"})],e.nextOnEnter,e.nextOnInput);var t}({nextOnInput:!0,headline:"Have You Had a Full-Time Job Within the Past 5 Years?"}),function(e={}){return _("ssdiSocialSecurityDisabilityReceivingBenefits",[w(e),o({name:t?t+":Social_Security_Disability_Receiving_Benefits":"Social_Security_Disability_Receiving_Benefits"})],e.nextOnEnter,e.nextOnInput);var t}({nextOnInput:!0,headline:"Are You Currently Receiving Social Security Disability Benefits?"}),function(e={}){return _("ssdiDoctorTreatment",[w(e),o({name:t?t+":Doctor_Treatment":"Doctor_Treatment"})],e.nextOnEnter,e.nextOnInput);var t}({nextOnInput:!0,headline:"Have You Recently Been Treated by a Doctor, Hospital or Clinic?"}),function(e={}){return _("ssdiHaveAttorney",[w(e),o({name:t?t+":Have_Attorney":"Have_Attorney"})],e.nextOnEnter,e.nextOnInput);var t}({nextOnInput:!0,headline:"Already Working with An Attorney?"}),function(e={}){return _("commentsWithBankruptcy",[$(e),c({label:void 0===e.label?"Please briefly describe your legal issue in a few words:":e.label,placeholder:e.placeholder||t,inputClass:void 0===e.inputClass?"!t-h-32":e.inputClass},e.scope),n({label:"I'd also like a consult for bankruptcy or debt elimination (optional)",help:"Note: you will be contacted separately by a bankruptcy/debt expert",name:"CrossSell_Bankruptcy",id:"CrossSell_Bankruptcy",if:'$getVal($get(form), "Type_Of_Legal_Problem") != "Bankruptcy" && ($getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe" || $getVal($get(form), "Degree_Of_Interest") == "Probably")',validation:null,helpClass:"!t-text-sm"}),{$el:"div",if:"$get(CrossSell_Bankruptcy).value == true",children:[c({label:"Bankruptcy or debt details:",placeholder:"Please describe your bankrtupcy or debt situation in a few words...",inputClass:"!t-h-16"},"CrossSell:Bankruptcy")]}],!1)}({label:null,headline:"Please briefly describe your situation:",headlineClass:"!t-text-dark"}),function(e={}){return _("firstAndLast",[k(e),s({$formkit:"text",label:"First Name:",placeholder:"First",name:t?t+":First_Name":"First_Name",autocomplete:"given-name",validationMessages:{required:"First Name is required"}}),m()],e.nextOnEnter);var t}({headlineClass:"!t-text-dark"}),function(e={}){return _("contactInfo",[I(e),C(e),{$el:"script",if:"$activeStep === $lastStep()",children:E},(t=e.scope,s({$formkit:"email",name:t?t+":Email":"Email",label:"Email Address:",placeholder:"email@domain.com",autocomplete:"email","data-tf-sensitive":"false",validation:"required|email",validationMessages:{required:"Email is required",email:"Invalid Email"}})),p(e.scope),u(e.scope),v()],!1);var t}({headline:"Submit Your Free Application",headlineClass:"!t-text-[#00428A]",subheadline:"Based on your input you may qualify for SSDI benefits. Please verify your contact information."}),((e={})=>({$el:"div",attrs:{class:"step-nav"},children:[{$formkit:"button",name:"back_button",onClick:"$setPreviousStep($prevStepFunc($get(form)))",children:"Back",style:{if:"$activeStep === $firstStep()",then:"visibility: hidden;"}},{$formkit:"button",name:"next_button",onClick:"$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",children:{if:"$activeStep === $firstStep()",then:"Start",else:"Next"},outerClass:{if:"$activeStep === $lastStep()",then:"t-hidden",else:""},style:{if:"$activeStep === $lastStep()",then:"display: none;"}},{$formkit:"submit",name:"submit_button",label:e.submitLabel||"Submit",if:"$activeStep === $lastStep()",style:{if:"$activeStep !== $lastStep()",then:"display: none;"}}]}))(),{$el:"pre",if:'$urlParam("fdbg", "") == 1',children:[{$el:"pre",children:"$stringify( $get(form).value )",attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["activeStep: ","$activeStep"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepHistory: ","$stepHistory"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepQueue: ","$stepQueue"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["steps: ","$stepKeys()"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}];var M;return Y}();
1
+ var ssdi=function(){"use strict";function e(){return Object.assign({},...arguments)}const t='$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)',a='$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)',i='$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)',n=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=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"checkbox",validation:"required",validationMessages:{required:"Field is required"}},t)))(t)),r=t=>(t.legendClass="legend-left",t.fieldsetClass="$reset t-flex t-justify-center t-flex-col-reverse t-items-center",void 0===t.optionsClass&&(t.optionsClass="t-flex t-flex-col sm:t-flex-row t-justify-center t-my-3"),t.optionClass="radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5",t.wrapperClass="$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]",t.labelClass="t-font-semibold t-text-[#1e448f] t-w-[100%]",t.decoratorIcon=!1,t.messagesClass="t-flex t-justify-center",t.helpClass="t-mt-2.5 !t-text-sm t-text-center",(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},t)))(t)),o=e=>(e.options=["Yes","No"],e.optionsClass="t-flex t-justify-center t-my-3",r(e)),l=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t)),s=e=>(e.wrapperClass="side-by-side t-items-center",l(e)),d=e=>(e.wrapperClass="t-flex t-justify-center",e.messagesClass="t-flex t-justify-center",e.inputClass="t-text-center",e.helpClass="t-mt-2.5 !t-text-sm t-text-center",l(e)),c=e=>s({label:"Last Name:",placeholder:"Last",name:e?e+":Last_Name":"Last_Name",autocomplete:"family-name",validationMessages:{required:"Last Name is required"}}),m=e=>s({$formkit:"tel",name:e?e+":Primary_Phone":"Primary_Phone",label:"Phone Number:",placeholder:"###-###-####",maxlength:12,help:"10-digit phone number, hyphens optional",autocomplete:"tel-national","data-tf-sensitive":"false",validation:"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone",validationMessages:{required:"Field is required",matches:"Invalid Phone Format, use ###-###-####",valid_phone:"Invalid Phone Number"},helpClass:"t-mt-2.5 md:t-text-right md:t-mt-[-2px]"}),p=(e,t,a={})=>(t?d:s)({label:t?a.label:"Zip Code:",help:t?a.help??"We try to match you with local help":null,placeholder:"#####",name:e?e+":Zip":"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"},...a}),u=(t,a,i={})=>(a?d:s)(e({label:a?i.label:"Age of Applicant?",placeholder:"Age between 18 and 65",name:t?t+":Applicant_Age":"Applicant_Age",value:a?i.value??"50":null,maxlength:2,inputmode:"numeric",validation:"required|min:18,max:65",validationMessages:{required:"Applicant Age is required",min:"Invalid Age - must be between 18 and 65",max:"Invalid Age - must be between 18 and 65"},...i})),f=(t,a)=>(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"textarea",rows:5,maxlength:500,validation:"required",validationMessages:{required:"Field is required"},innerClass:"t-max-w-xl",labelClass:"required"},t)))(e({name:a?a+":Comments":"Comments",label:"Please briefly describe your situation in a few words:",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},t)),h=e=>({$formkit:"checkbox",label:"$meta.tcpaLanguage",name:e?e+":TCPA_Opt_In":"TCPA_Opt_In","data-tf-sensitive":"false",validation:"required|accepted",validationMessages:{required:"Consent is required",accepted:"Consent is required"},classes:{label:"t-text-xs t-text-slate-500 t-font-normal"}}),y="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",g="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",b=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,x=e=>{if(b(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(b(a))return a;const i=x(a);if(i)return i}return null},v={$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 w(t){return e(v,t)}function $(e){return{$el:"h3",children:e.headline||"Tell Us About Your Situation",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function k(e){return function(e){return{$el:"h3",children:e.headline||"Additional Details",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}({headline:e.headline||"Additional Case Details",headlineClass:e.headlineClass})}function I(e){return{$el:"h3",children:e.headline||"Please Provide a Contact Name",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function C(e){return{$el:"h3",children:e.headline||a,attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function S(e){return{$el:"h5",children:e.subheadline||i,attrs:{class:"t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3 "+(e.subheadlineClass||"")}}}const E="(function() {\n if (window.xxTrustedFormLoaded) {\n return\n }\n var vid = '';\n if (typeof window.zar !== 'undefined') {\n vid = window.zar.getVID();\n }\n window.xxTrustedFormLoaded = true;\n var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'\n var tf = document.createElement('script');\n tf.type = 'text/javascript'; tf.async = true;\n tf.src = (\"https:\" == document.location.protocol ? 'https' : 'http') + \"://api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&identifier=\" + vid + \"&ping_field=xxTrustedFormPingUrl&provideReferrer=false&invert_field_sensitivity=true&sandbox=\" + sandbox + \"&l=\" + new Date().getTime() + Math.random();\n var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);\n})();";const _=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});function P(t,a,i={}){const{nextOnEnter:n=!0,nextOnInput:r=!1,stepKey:o,nextStepMap:l,triggerRedirectMap:s,autoFocus:d}=i;if(a&&a.length&&(n||r)){const e=x(a[a.length-1]);e&&!0===n&&(e.onKeypress=y),e&&!0===r&&(e.onInput=g)}return e(_(t,o),{children:[{$formkit:"group",id:t,name:t,nextStepMap:l,triggerRedirectMap:s,autoFocus:d,children:a}]})}const A={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,anchorElement:"form-anchor",useLocalStorage:!0,prepop:{fromURL:!0},errorCodes:{403:{message:"An Error Occurred",abort:!1},409:{abort:!1},429:"An Error Occurred",504:{message:"An Error Occurred",abort:!1}},formClass:"!t-max-w-[40rem]"};function D(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>t.includes(e))))}const q={};const T={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const L={$el:"div",attrs:{class:"t-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center",style:{if:"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",then:"display: none"}},children:[{$el:"div",attrs:{class:"t-flex t-justify-center"},children:[{$el:"span",attrs:{id:"progress-bar-text",class:"t-text-sm t-mb-1"},children:["0% Complete"]}]},{$el:"div",attrs:{class:"t-bg-gray-100 t-w-9/12 t-rounded"},children:[{$el:"div",attrs:{id:"progress-bar",class:"t-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]",style:{transition:"width 0.5s ease"}}}]}]};const F=[{$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}],Y={Adoption:'Example: "I need help with adoption forms"',"Asbestos and Mesothelioma":'Example: "I was exposed to asbestos at work and would like to file a claim"',"Auto and Car Accidents":'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',Bankruptcy:'Example: "I need help filing for bankruptcy"',"Birth Certificate and Name Change":'Example: "Just married and would like to change my last name"',"Business Lawyers":'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',"Child Custody and Support":'Example: "Need help getting custody" or "Issues with child support payments"',"Child Custody":'Example: "Need help getting custody"',"Child Support":'Example: "Issues with child support payments"',"Civil Rights and Discrimination":'Example: "Police brutality" or "Coworker keeps harassing me"',"Civil Lawsuit":'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',"File a Lawsuit":'Example: "A contractor took my money and never completed the job"',"Defend a Lawsuit":'Example: "I am being sued by a neighbor"',"Consumer Lawyers":'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',"Copyrights and Trademarks":'Example: "I would like to register a trademark or copyright a name"',"Criminal and Felony":'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',"Debt and Collections":'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',"Divorce and Separation":'Example: "I would like to file for an uncontested divorce"',"DUI and DWI":'Example: "I was arrested for DUI and need legal defense"',"Elder Law":'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',"Employment and Workplace":'Example: "I was injured while on the job" or "My company is discriminating against me"',Expungement:'Example: "I would like to file for an expungement and clear my record"',"Family Issues":'Example: "I need help with guardianship" or "I need a simple will created"',Foreclosure:'Example: "I need help to avoid foreclosure on my house"',Guardianship:'Example: "I need help with guardianship documents"',"Harassment and Discrimination":'Example: "I am being discriminated at work" or "My neighbor is harassing me"',"Sexual Harassment":'Example: "I am being sexually harassed by a coworker"',"Workplace Harassment":'Example: "My coworker is being aggressive towards me"',"Non-Workplace Harassment":'Example: "My neighbor is harassing me"',"Workplace Discrimination":'Example: "I am being discriminated at work based on my age"',"Non-Workplace Discrimination":'Example: "I am being discriminated against by a local official"',"Identity Theft":'Example: "Someone stole my identity and I need help fixing the issue"',"Immigration and Visas":'Example: "I need help filing for a visa" or "Help with a green card"',Insurance:'Example: "I need help filing an insurance claim for damage to my house"',"Landlord and Tenant":'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',"Lemon Law":'Example: "I purchased a new vehicle that broke down already and seller will not assist"',"Long Term Disability":'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',"Medical Malpractice":'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',"Patents and Intellectual Property":'Example: "I would like to file for a patent" or "I need to copyright a name"',"Personal Injury":'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',"Power of Attorney":'Example: "I need help with a limited or general power of attorney"',"Probate and Estates":'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',"Product Liability":'Example: "My car battery caught on fire" or "I purchased a faulty product"',"Property Damage":'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',"Real Estate":'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',"Social Security Disability and Insurance":'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',"Tax and IRS":'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',"Traffic and Tickets":'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',Unemployment:'Example: "I need help filing for unemployment benefits"',"Victim of a Crime":'Example: "I was assaulted in the store" or "I am being discriminated against at work"',"Wills and Trusts":'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',"Workers Compensation":'Example: "I was injured at work and would like to file for workers compensation benefits"',"Wrongful Death":'Example: "A family member was killed on the job and we need legal representation"',"Wrongful Termination":'Example: "I was fired by my employer without cause"',"Not Sure or Other":'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'},j={},O={Adoption:"You may benefit from speaking with an adoption professional. Please verify your contact information.","Auto and Car Accidents":"You may benefit from speaking with an accident professional. Please verify your contact information.",Bankruptcy:"You may benefit from speaking with a bankruptcy professional. Please verify your contact information.","Copyrights and Trademarks":"You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.","Divorce and Separation":"You may benefit from speaking with a divorce professional. Please verify your contact information.","DUI and DWI":"You may benefit from speaking with a DUI professional. Please verify your contact information.","Elder Law":"You may benefit from speaking with an elder law professional. Please verify your contact information.",Foreclosure:"You may benefit from speaking with a foreclosure professional. Please verify your contact information.",Guardianship:"You may benefit from speaking with a guardianship professional. Please verify your contact information.","Immigration and Visas":"You may benefit from speaking with a immigration professional. Please verify your contact information.","Landlord and Tenant":"You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.","Long Term Disability":"You may benefit from speaking with a disability legal professional. Please verify your contact information.","Medical Malpractice":"You may benefit from speaking with a malpractice professional. Please verify your contact information.","Patents and Intellectual Property":"You may benefit from speaking with a patent professional. Please verify your contact information.","Personal Injury":"You may benefit from speaking with a personal injury professional. Please verify your contact information.","Probate and Estates":"You may benefit from speaking with a probate and estate professional. Please verify your contact information.","Real Estate":"You may benefit from speaking with a real estate professional. Please verify your contact information.","Social Security Disability and Insurance":"You may benefit from speaking with an SSDI professional. Please verify your contact information.","Tax and IRS":"You may benefit from speaking with a tax professional. Please verify your contact information.",Unemployment:"You may benefit from speaking with an unemployment professional. Please verify your contact information.","Workers Compensation":"You may benefit from speaking with a workers compensation professional. Please verify your contact information."},M=[function(a=null){let i=Y,n=j,r=O;return a&&(i=D(Y,a),n=D(j,a),r=D(O,a)),{type:"meta",data:e(q,{tcpaLanguage:"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.",defaultCommentsPlaceholder:t,commentsPlaceholders:i,defaultFinalHeadline:"Submit Your Case",finalHeadlines:n,defaultFinalSubHeadline:"You may benefit from speaking with a legal professional. Please verify your contact information.",finalSubHeadlines:r})}}(),e(T,H),{$cmp:"FormKit",props:function(t){const a=e(A,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"ssdi",redirectMap:{"*":"https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}"}}),children:[function(t){return e(L,t)}(),function(t={}){return e(function(e={}){return{$el:"h1",attrs:{class:"t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")}}}(t),t)}({children:'$urlParam("hl", "Start Your FREE Case Evaluation")',if:"$activeStep === $firstStep()",headlineClass:"!t-text-dark"}),function(t={}){return e(function(e={}){return{$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 "+(e.subheadlineClass||"")}}}(t),t)}({children:'$urlParam("shl", "You Could Receive up to $3,148 Per Month!")',if:"$activeStep === $firstStep()",subheadlineClass:"!t-text-[#00428A]"}),...F,{$el:"div",attrs:{class:"form-body"},children:[function(e={}){return P("ssdiTOLPAndZip",[{$formkit:"hidden",name:"Type_Of_Legal_Problem",id:"Type_Of_Legal_Problem",value:"Social Security Disability and Insurance"},p(e.scope,!0,e)],e)}(),function(e={}){return P("ssdiApplicantAge",[$(e),u(e.scope,!0,e)],e)}({nextOnInput:!0,headline:"What is the Age of the Applicant?"}),function(e={}){return P("ssdiDisabilityConditionStopWork",[$(e),o({name:t?t+":Disability_Condition_Stop_Work":"Disability_Condition_Stop_Work"})],e);var t}({nextOnInput:!0,headline:"Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?"}),function(e={}){return P("ssdiDisabilityWorkHistory",[$(e),o({name:t?t+":Disability_Work_History":"Disability_Work_History"})],e);var t}({nextOnInput:!0,headline:"Have You Had a Full-Time Job Within the Past 5 Years?"}),function(e={}){return P("ssdiSocialSecurityDisabilityReceivingBenefits",[$(e),o({name:t?t+":Social_Security_Disability_Receiving_Benefits":"Social_Security_Disability_Receiving_Benefits"})],e);var t}({nextOnInput:!0,headline:"Are You Currently Receiving Social Security Disability Benefits?"}),function(e={}){return P("ssdiDoctorTreatment",[$(e),o({name:t?t+":Doctor_Treatment":"Doctor_Treatment"})],e);var t}({nextOnInput:!0,headline:"Have You Recently Been Treated by a Doctor, Hospital or Clinic?"}),function(e={}){return P("ssdiHaveAttorney",[$(e),o({name:t?t+":Have_Attorney":"Have_Attorney"})],e);var t}({nextOnInput:!0,headline:"Already Working with An Attorney?"}),function(e={}){return P("commentsWithBankruptcy",[k(e),f({label:void 0===e.label?"Please briefly describe your legal issue in a few words:":e.label,placeholder:e.placeholder||t,inputClass:void 0===e.inputClass?"!t-h-32":e.inputClass},e.scope),n({label:"I'd also like a consult for bankruptcy or debt elimination (optional)",help:"Note: you will be contacted separately by a bankruptcy/debt expert",name:"CrossSell_Bankruptcy",id:"CrossSell_Bankruptcy",if:'$getVal($get(form), "Type_Of_Legal_Problem") != "Bankruptcy" && ($getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe" || $getVal($get(form), "Degree_Of_Interest") == "Probably")',validation:null,helpClass:"!t-text-sm"}),{$el:"div",if:"$get(CrossSell_Bankruptcy).value == true",children:[f({label:"Bankruptcy or debt details:",placeholder:"Please describe your bankrtupcy or debt situation in a few words...",inputClass:"!t-h-16"},"CrossSell:Bankruptcy")]}],{nextOnEnter:!1})}({label:null,headline:"Please briefly describe your situation:",headlineClass:"!t-text-dark"}),function(e={}){return P("firstAndLast",[I(e),s({label:"First Name:",placeholder:"First",name:t?t+":First_Name":"First_Name",autocomplete:"given-name",validationMessages:{required:"First Name is required"}}),c()],e);var t}({headlineClass:"!t-text-dark"}),function(e={}){return P("contactInfo",[C(e),S(e),{$el:"script",if:"$activeStep === $lastStep()",children:E},(t=e.scope,s({$formkit:"email",name:t?t+":Email":"Email",label:"Email Address:",placeholder:"email@domain.com",autocomplete:"email","data-tf-sensitive":"false",validation:"required|email",validationMessages:{required:"Email is required",email:"Invalid Email"}})),m(e.scope),h(e.scope),w()],{nextOnEnter:!1});var t}({headline:"Submit Your Free Application",headlineClass:"!t-text-[#00428A]",subheadline:"Based on your input you may qualify for SSDI benefits. Please verify your contact information."}),((e={})=>({$el:"div",attrs:{class:"step-nav"},children:[{$formkit:"button",name:"back_button",onClick:"$setPreviousStep($prevStepFunc($get(form)))",children:"Back",style:{if:"$activeStep === $firstStep()",then:"visibility: hidden;"}},{$formkit:"button",name:"next_button",onClick:"$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",children:{if:"$activeStep === $firstStep()",then:"Start",else:"Next"},outerClass:{if:"$activeStep === $lastStep()",then:"t-hidden",else:""},style:{if:"$activeStep === $lastStep()",then:"display: none;"}},{$formkit:"submit",name:"submit_button",label:e.submitLabel||"Submit",if:"$activeStep === $lastStep()",style:{if:"$activeStep !== $lastStep()",then:"display: none;"}}]}))(),{$el:"pre",if:'$urlParam("fdbg", "") == 1',children:[{$el:"pre",children:"$stringify( $get(form).value )",attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["activeStep: ","$activeStep"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepHistory: ","$stepHistory"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepQueue: ","$stepQueue"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["steps: ","$stepKeys()"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}];var H;return M}();