bhl-forms 0.5.3 → 0.6.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 (80) hide show
  1. package/dist/bhl-forms.es.js +11139 -18467
  2. package/dist/bhl-forms.iife.js +11 -135
  3. package/dist/bhl-forms.umd.js +11 -135
  4. package/dist/main.css +1 -1
  5. package/package.json +12 -11
  6. package/dist/bhl-forms.modern.es.js +0 -29216
  7. package/dist/bhl-forms.modern.iife.js +0 -145
  8. package/dist/bhl-forms.modern.umd.js +0 -145
  9. package/dist/forms/accidentsAndInjuries.es.js +0 -1263
  10. package/dist/forms/accidentsAndInjuries.iife.js +0 -1
  11. package/dist/forms/accidentsAndInjuries.json +0 -1
  12. package/dist/forms/appraisals.es.js +0 -342
  13. package/dist/forms/appraisals.iife.js +0 -1
  14. package/dist/forms/appraisals.json +0 -1
  15. package/dist/forms/childAndFamily.es.js +0 -1662
  16. package/dist/forms/childAndFamily.iife.js +0 -1
  17. package/dist/forms/childAndFamily.json +0 -1
  18. package/dist/forms/childAndFamilySingle.es.js +0 -1793
  19. package/dist/forms/childAndFamilySingle.iife.js +0 -1
  20. package/dist/forms/childAndFamilySingle.json +0 -1
  21. package/dist/forms/civilLawsuit.es.js +0 -2133
  22. package/dist/forms/civilLawsuit.iife.js +0 -1
  23. package/dist/forms/civilLawsuit.json +0 -1
  24. package/dist/forms/coins.es.js +0 -342
  25. package/dist/forms/coins.iife.js +0 -1
  26. package/dist/forms/coins.json +0 -1
  27. package/dist/forms/contracts.es.js +0 -981
  28. package/dist/forms/contracts.iife.js +0 -1
  29. package/dist/forms/contracts.json +0 -1
  30. package/dist/forms/criminal.es.js +0 -3231
  31. package/dist/forms/criminal.iife.js +0 -1
  32. package/dist/forms/criminal.json +0 -1
  33. package/dist/forms/employmentAndWorkplace.es.js +0 -1364
  34. package/dist/forms/employmentAndWorkplace.iife.js +0 -1
  35. package/dist/forms/employmentAndWorkplace.json +0 -1
  36. package/dist/forms/generalLegal.es.js +0 -3370
  37. package/dist/forms/generalLegal.iife.js +0 -1
  38. package/dist/forms/generalLegal.json +0 -1
  39. package/dist/forms/generalLegalPopUnder.es.js +0 -3372
  40. package/dist/forms/generalLegalPopUnder.iife.js +0 -1
  41. package/dist/forms/generalLegalPopUnder.json +0 -1
  42. package/dist/forms/generalLegalPopUnderTF.es.js +0 -3071
  43. package/dist/forms/generalLegalPopUnderTF.iife.js +0 -1
  44. package/dist/forms/generalLegalPopUnderTF.json +0 -1
  45. package/dist/forms/generalLegalSingle.es.js +0 -4276
  46. package/dist/forms/generalLegalSingle.iife.js +0 -1
  47. package/dist/forms/generalLegalSingle.json +0 -1
  48. package/dist/forms/generalLegalThankYou.es.js +0 -3051
  49. package/dist/forms/generalLegalThankYou.iife.js +0 -1
  50. package/dist/forms/generalLegalThankYou.json +0 -1
  51. package/dist/forms/harassmentAndDiscrimination.es.js +0 -1017
  52. package/dist/forms/harassmentAndDiscrimination.iife.js +0 -1
  53. package/dist/forms/harassmentAndDiscrimination.json +0 -1
  54. package/dist/forms/malpractice.es.js +0 -1237
  55. package/dist/forms/malpractice.iife.js +0 -1
  56. package/dist/forms/malpractice.json +0 -1
  57. package/dist/forms/mechanics.es.js +0 -379
  58. package/dist/forms/mechanics.iife.js +0 -1
  59. package/dist/forms/mechanics.json +0 -1
  60. package/dist/forms/realEstate.es.js +0 -2934
  61. package/dist/forms/realEstate.iife.js +0 -1
  62. package/dist/forms/realEstate.json +0 -1
  63. package/dist/forms/repossession.es.js +0 -1248
  64. package/dist/forms/repossession.iife.js +0 -1
  65. package/dist/forms/repossession.json +0 -1
  66. package/dist/forms/ssdi.es.js +0 -1063
  67. package/dist/forms/ssdi.iife.js +0 -1
  68. package/dist/forms/ssdi.json +0 -1
  69. package/dist/forms/testForm.es.js +0 -725
  70. package/dist/forms/testForm.iife.js +0 -1
  71. package/dist/forms/testForm.json +0 -1
  72. package/dist/forms/testRedirects.es.js +0 -532
  73. package/dist/forms/testRedirects.iife.js +0 -1
  74. package/dist/forms/testRedirects.json +0 -1
  75. package/dist/forms/vets.es.js +0 -345
  76. package/dist/forms/vets.iife.js +0 -1
  77. package/dist/forms/vets.json +0 -1
  78. package/dist/forms/willsAndTrusts.es.js +0 -1198
  79. package/dist/forms/willsAndTrusts.iife.js +0 -1
  80. package/dist/forms/willsAndTrusts.json +0 -1
@@ -1,4276 +0,0 @@
1
- function merge() {
2
- return Object.assign({}, ...arguments)
3
- }
4
-
5
- function LegalRedirectUrl() {
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
- }
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)';
17
-
18
- const formPropDefaults = {
19
- type: 'form',
20
- id: 'form',
21
- config: { validationVisibility: 'submit' },
22
- onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
23
- plugins: '$plugins',
24
- actions: false,
25
- anchorElement: 'form-anchor',
26
- useLocalStorage: true,
27
- prepop: {
28
- fromURL: true
29
- },
30
- errorCodes: {
31
- 403: { message: "An Error Occurred", abort: false },
32
- 409: { abort: false },
33
- 429: "An Error Occurred",
34
- 504: { message: "An Error Occurred", abort: false },
35
- },
36
- formClass: '!t-max-w-[40rem]'
37
- };
38
-
39
- function formProps(updates) {
40
- const props = merge(
41
- formPropDefaults,
42
- updates
43
- );
44
- if (props.formId && !props.name) {
45
- props.name = props.formId;
46
- }
47
- return props
48
- }
49
-
50
- const metaDefaults = {
51
- tcpaLanguage: TCPA_LANGUAGE
52
- };
53
-
54
- function metaProps(updates) {
55
- const data = merge(
56
- metaDefaults,
57
- updates
58
- );
59
- return {
60
- type: 'meta',
61
- data
62
- }
63
- }
64
-
65
- function defaultMetaProps() {
66
- return metaProps({
67
- defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
68
- commentsPlaceholders: TOLPCommentsPlaceholders,
69
- defaultFinalHeadline: DEFAULT_FINAL_HEADLINE,
70
- finalHeadlines: TOLPFinalHeadlines,
71
- defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE,
72
- finalSubHeadlines: TOLPFinalSubHeadlines,
73
- // Added everywhere for now
74
- // trustedFormTOLPs: trustedFormTOLPs
75
- })
76
- }
77
-
78
- const formAnchorDefaults = {
79
- $el: 'div',
80
- children: [
81
- {
82
- $el: 'div',
83
- attrs: {
84
- id: 'form-anchor',
85
- class: 't-absolute',
86
- style: { top: '-30px', left: 0 }
87
- }
88
- }
89
- ],
90
- attrs: {
91
- class: 't-relative'
92
- }
93
- };
94
-
95
- function formAnchor(updates) {
96
- return merge(
97
- formAnchorDefaults,
98
- updates
99
- )
100
- }
101
-
102
- const progressBarDefaults = {
103
- $el: 'div',
104
- attrs: {
105
- class: 't-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center',
106
- style: {
107
- if: '$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())',
108
- then: 'display: none'
109
- },
110
- },
111
- children: [
112
- {
113
- $el: 'div',
114
- attrs: {
115
- class: 't-flex t-justify-center'
116
- },
117
- children: [
118
- {
119
- $el: 'span',
120
- attrs: {
121
- id: 'progress-bar-text',
122
- class: 't-text-sm t-mb-1'
123
- },
124
- children: [
125
- "0% Complete"
126
- ]
127
- },
128
- ]
129
- },
130
- {
131
- $el: 'div',
132
- attrs: {
133
- class: 't-bg-gray-100 t-w-9/12 t-rounded'
134
- },
135
- children: [
136
- {
137
- $el: 'div',
138
- attrs: {
139
- id: 'progress-bar',
140
- 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]',
141
- style: {
142
- transition: 'width 0.5s ease'
143
- },
144
- },
145
- }
146
- ]
147
- }
148
- ]
149
- };
150
-
151
- function progressBar(updates) {
152
- return merge(
153
- progressBarDefaults,
154
- updates
155
- )
156
- }
157
-
158
- function headlineDefaults(updates = {}) {
159
- return {
160
- $el: 'h1',
161
- attrs: {
162
- 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' + ' ' + (updates.headlineClass || '')
163
- }
164
- }
165
- }
166
-
167
- function headline(updates = {}) {
168
- return merge(
169
- headlineDefaults(updates),
170
- updates
171
- )
172
- }
173
-
174
- function subHeadlineDefaults(updates = {}) {
175
- return {
176
- $el: 'h3',
177
- attrs: {
178
- class: 't-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10' + ' ' + (updates.subheadlineClass || '')
179
- }
180
- }
181
- }
182
-
183
- function subHeadline(updates = {}) {
184
- return merge(
185
- subHeadlineDefaults(updates),
186
- updates
187
- )
188
- }
189
-
190
- function defaultSubHeadline() {
191
- return subHeadline({
192
- children: '$urlParam("shl", "Our Service is Fast and Free!")',
193
- if: '$activeStep === $firstStep()'
194
- })
195
- }
196
-
197
- const secureIconDefault = {
198
- $el: 'div',
199
- if: '$activeStep === $lastStep()',
200
- attrs: {
201
- class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
202
- },
203
- children: [
204
- {
205
- $el: 'img',
206
- attrs: {
207
- loading: 'lazy',
208
- alt: '',
209
- style: {
210
- border: 0
211
- },
212
- width: '25',
213
- height: '25',
214
- src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
215
- }
216
- },
217
- {
218
- $el: 'span',
219
- children: 'Secure & Encrypted',
220
- attrs: {
221
- class: 't-pl-2 t-pt-1 t-font-medium'
222
- }
223
- }
224
- ]
225
- };
226
-
227
-
228
- function secureIcon(updates) {
229
- return merge(
230
- secureIconDefault,
231
- updates
232
- )
233
- }
234
-
235
- const hiddenInputsBase = [
236
- {
237
- $formkit: 'hidden',
238
- name: "gclid",
239
- value: null
240
- },
241
- {
242
- $formkit: 'hidden',
243
- name: "campaignid",
244
- value: null
245
- },
246
- {
247
- $formkit: 'hidden',
248
- name: "s",
249
- value: null
250
- }
251
- ];
252
-
253
- const hiddenInputsLegal = [
254
- {
255
- $formkit: 'hidden',
256
- name: "vertical",
257
- value: "Legal"
258
- },
259
- {
260
- $formkit: 'hidden',
261
- name: "TCPA_Language",
262
- value: "$meta.tcpaLanguage"
263
- },
264
- ...hiddenInputsBase
265
- ];
266
-
267
- const legalRedirectMapDefaults = {
268
- '*': LegalRedirectUrl()
269
- };
270
-
271
-
272
- function legalRedirectMap(updates) {
273
- return merge(
274
- legalRedirectMapDefaults,
275
- updates
276
- )
277
- }
278
-
279
- const legalAllValueOverrideMap = {
280
- 'Civil_Defense': {
281
- 'Yes': {
282
- 'Type_Of_Legal_Problem': 'Defend a Lawsuit'
283
- },
284
- 'No': {
285
- 'Type_Of_Legal_Problem': 'File a Lawsuit'
286
- }
287
- },
288
- 'Type_Of_Legal_Problem_Display': {
289
- // Accidents and PI
290
- 'Auto Accident': {
291
- 'Type_Of_Legal_Problem': 'Auto and Car Accidents'
292
- },
293
- 'Dog Bite': {
294
- 'Type_Of_Legal_Problem': 'Personal Injury'
295
- },
296
- 'Slip and Fall': {
297
- 'Type_Of_Legal_Problem': 'Personal Injury'
298
- },
299
- 'Workplace Injury': {
300
- 'Type_Of_Legal_Problem': 'Workers Compensation'
301
- },
302
- 'Trucking Accident': {
303
- 'Type_Of_Legal_Problem': 'Auto and Car Accidents'
304
- },
305
- 'Motorcycle Accident': {
306
- 'Type_Of_Legal_Problem': 'Auto and Car Accidents',
307
- },
308
- 'Other Accidents or Injuries': {
309
- 'Type_Of_Legal_Problem': 'Personal Injury'
310
- },
311
- // Civil
312
- 'Automobile Accident': {
313
- 'Type_Of_Legal_Problem': 'Auto and Car Accidents'
314
- },
315
- 'Contract Disputes': {
316
- 'Type_Of_Legal_Problem': 'Business Lawyers'
317
- },
318
- 'Defamation and Slander': {
319
- 'Type_Of_Legal_Problem': 'File a Lawsuit'
320
- },
321
- 'Dog Bite': {
322
- 'Type_Of_Legal_Problem': 'Personal Injury'
323
- },
324
- 'Employment and Workplace': {
325
- 'Type_Of_Legal_Problem': 'Employment and Workplace'
326
- },
327
- 'Fraud': {
328
- 'Type_Of_Legal_Problem': 'Consumer Lawyers'
329
- },
330
- 'Medical Malpractice': {
331
- 'Type_Of_Legal_Problem': 'Medical Malpractice'
332
- },
333
- 'Personal Injury': {
334
- 'Type_Of_Legal_Problem': 'Personal Injury'
335
- },
336
- 'Property Damage': {
337
- 'Type_Of_Legal_Problem': 'Property Damage'
338
- },
339
- 'Small Claims': {
340
- 'Type_Of_Legal_Problem': 'File a Lawsuit'
341
- },
342
- 'Real Estate': {
343
- 'Type_Of_Legal_Problem': 'Real Estate'
344
- },
345
- 'Other (describe on next page)': {
346
- 'Type_Of_Legal_Problem': 'Not Sure or Other'
347
- },
348
- // Contracts
349
- 'Contract Creation': {
350
- 'Type_Of_Legal_Problem': 'Business Lawyers',
351
- 'Business_Services': 'Contracts'
352
- },
353
- 'Contract Enforcement': {
354
- 'Type_Of_Legal_Problem': 'Business Lawyers',
355
- 'Business_Services': 'Contracts'
356
- },
357
- 'Contract Cancellation': {
358
- 'Type_Of_Legal_Problem': 'Business Lawyers',
359
- 'Business_Services': 'Contracts'
360
- },
361
- 'Contract Fraud': {
362
- 'Type_Of_Legal_Problem': 'Business Lawyers',
363
- 'Business_Services': 'Contracts'
364
- },
365
- 'Breach of Contract': {
366
- 'Type_Of_Legal_Problem': 'Business Lawyers',
367
- 'Business_Services': 'Contracts'
368
- },
369
- 'Other Contract Issues': {
370
- 'Type_Of_Legal_Problem': 'Business Lawyers',
371
- 'Business_Services': 'Contracts'
372
- },
373
- // Criminal
374
- 'Criminal Defense': {
375
- 'Type_Of_Legal_Problem': 'Criminal and Felony'
376
- },
377
- 'Victim of a Crime': {
378
- 'Type_Of_Legal_Problem': 'Victim of a Crime'
379
- },
380
- 'DUI and DWI': {
381
- 'Type_Of_Legal_Problem': 'DUI and DWI'
382
- },
383
- 'Expungement': {
384
- 'Type_Of_Legal_Problem': 'Expungement'
385
- },
386
- 'Harassment': {
387
- 'Type_Of_Legal_Problem': 'Criminal and Felony'
388
- },
389
- 'Not Sure or Other': {
390
- 'Type_Of_Legal_Problem': 'Not Sure or Other'
391
- },
392
- // Employment and Workplace
393
- 'Workplace Harassment': {
394
- 'Type_Of_Legal_Problem': 'Workplace Harassment'
395
- },
396
- 'Workplace Discrimination': {
397
- 'Type_Of_Legal_Problem': 'Workplace Discrimination'
398
- },
399
- 'Wrongful Termination': {
400
- 'Type_Of_Legal_Problem': 'Wrongful Termination'
401
- },
402
- 'Payment Disputes': {
403
- 'Type_Of_Legal_Problem': 'Employment and Workplace'
404
- },
405
- 'Workers Compensation': {
406
- 'Type_Of_Legal_Problem': 'Workers Compensation'
407
- },
408
- 'Unemployment': {
409
- 'Type_Of_Legal_Problem': 'Unemployment'
410
- },
411
- 'Other Workplace Issues': {
412
- 'Type_Of_Legal_Problem': 'Employment and Workplace'
413
- },
414
- // Malpractice
415
- 'Attorney Malpractice': {
416
- 'Type_Of_Legal_Problem': 'Civil Lawsuit'
417
- },
418
- 'Other Malpractice Issues': {
419
- 'Type_Of_Legal_Problem': 'Not Sure or Other'
420
- },
421
- // Repossession
422
- 'Vehicle Repossession': {
423
- 'Type_Of_Legal_Problem': 'Bankruptcy'
424
- },
425
- 'Property Repossession': {
426
- 'Type_Of_Legal_Problem': 'Bankruptcy'
427
- },
428
- 'Other Repossession Issues': {
429
- 'Type_Of_Legal_Problem': 'Not Sure or Other'
430
- },
431
- // Real Estate
432
- 'Contracts and Agreements': {
433
- 'Type_Of_Legal_Problem': 'Real Estate'
434
- },
435
- 'Deeds, Liens, and Titles': {
436
- 'Type_Of_Legal_Problem': 'Real Estate'
437
- },
438
- 'Foreclosure': {
439
- 'Type_Of_Legal_Problem': 'Foreclosure'
440
- },
441
- 'Insurance': {
442
- 'Type_Of_Legal_Problem': 'Insurance'
443
- },
444
- 'Landlord and Tenant': {
445
- 'Type_Of_Legal_Problem': 'Landlord and Tenant',
446
- },
447
- 'Loans and Mortgages': {
448
- 'Type_Of_Legal_Problem': 'Real Estate',
449
- },
450
- 'Wills, Trusts, and Estates': {
451
- 'Type_Of_Legal_Problem': 'Wills and Trusts'
452
- },
453
- 'Property Damage': {
454
- 'Type_Of_Legal_Problem': 'Property Damage'
455
- },
456
- 'Other Real Estate Issues': {
457
- 'Type_Of_Legal_Problem': 'Real Estate'
458
- }
459
- }
460
- };
461
-
462
- const TOLPCommentsPlaceholders = {
463
- 'Adoption': 'Example: "I need help with adoption forms"',
464
- 'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
465
- '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"',
466
- 'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
467
- 'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
468
- 'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
469
- 'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
470
- 'Child Custody': 'Example: "Need help getting custody"',
471
- 'Child Support': 'Example: "Issues with child support payments"',
472
- 'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
473
- 'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
474
- 'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
475
- 'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
476
- 'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
477
- 'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
478
- 'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
479
- 'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
480
- 'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
481
- 'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
482
- 'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
483
- 'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
484
- 'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
485
- 'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
486
- 'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
487
- 'Guardianship': 'Example: "I need help with guardianship documents"',
488
- 'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
489
- 'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
490
- 'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
491
- 'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
492
- 'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
493
- 'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
494
- 'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
495
- 'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
496
- 'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
497
- 'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
498
- 'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
499
- '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"',
500
- 'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
501
- 'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
502
- 'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
503
- 'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
504
- 'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
505
- 'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
506
- 'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
507
- 'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
508
- '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"',
509
- 'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
510
- 'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
511
- 'Unemployment': 'Example: "I need help filing for unemployment benefits"',
512
- 'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
513
- 'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
514
- 'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
515
- 'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
516
- 'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
517
- 'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
518
- };
519
-
520
- const TOLPFinalHeadlines = {
521
- // 'Adoption': '',
522
- };
523
-
524
- const TOLPFinalSubHeadlines = {
525
- 'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
526
- // 'Asbestos and Mesothelioma': '',
527
- 'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
528
- 'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
529
- // 'Birth Certificate and Name Change': '',
530
- // 'Business Lawyers': '',
531
- // 'Child Custody and Support': '',
532
- // 'Civil Rights and Discrimination': '',
533
- // 'Civil Lawsuit': '',
534
- // 'Consumer Lawyers': '',
535
- 'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
536
- // 'Criminal and Felony': '',
537
- // 'Debt and Collections': '',
538
- 'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
539
- 'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
540
- 'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
541
- // 'Employment and Workplace': '',
542
- // 'Expungement': '',
543
- // 'Family Issues': '',
544
- 'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
545
- 'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
546
- // 'Harassment and Discrimination': '',
547
- // 'Identity Theft': '',
548
- 'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
549
- // 'Insurance': '',
550
- 'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
551
- // 'Lemon Law': '',
552
- 'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
553
- 'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
554
- 'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
555
- 'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
556
- // 'Power of Attorney': '',
557
- 'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
558
- // 'Product Liability': '',
559
- // 'Property Damage': '',
560
- 'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
561
- 'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
562
- 'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
563
- // 'Traffic and Tickets': '',
564
- 'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
565
- // 'Victim of a Crime': '',
566
- // 'Wills and Trusts': '',
567
- 'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
568
- // 'Wrongful Death': '',
569
- // 'Wrongful Termination': '',
570
- // 'Not Sure or Other': ''
571
- // 'Sexual Harassment': '',
572
- // 'Workplace Harassment': '',
573
- // 'Non-Workplace Harassment': '',
574
- // 'Workplace Discrimination': '',
575
- // 'Non-Workplace Discrimination': '',
576
- };
577
-
578
- const nextStepsLegalDefault = [
579
- 'haveAttorney',
580
- 'degreeOfInterest',
581
- 'commentsWithBankruptcy',
582
- 'zipcode',
583
- 'legalCrossSells',
584
- 'firstAndLast',
585
- 'contactInfo',
586
- ];
587
-
588
- const nextStepsLegalDefaultLPM = [
589
- 'haveAttorney',
590
- 'degreeOfInterest',
591
- 'lawyerPaymentMethod',
592
- 'commentsWithBankruptcy',
593
- 'zipcode',
594
- 'legalCrossSells',
595
- 'firstAndLast',
596
- 'contactInfo',
597
- ];
598
-
599
- const nextStepsLegalNoDOI = [
600
- 'haveAttorney',
601
- 'commentsWithBankruptcy',
602
- 'zipcode',
603
- 'legalCrossSells',
604
- 'firstAndLast',
605
- 'contactInfo',
606
- ];
607
-
608
- const nextStepsLegalNoHA = [
609
- 'degreeOfInterest',
610
- 'commentsWithBankruptcy',
611
- 'zipcode',
612
- 'legalCrossSells',
613
- 'firstAndLast',
614
- 'contactInfo',
615
- ];
616
-
617
- const nextStepsMapGeneralLegal = {
618
- 'Type_Of_Legal_Problem': {
619
- 'Adoption': [
620
- 'maritalStatus',
621
- 'haveChildren',
622
- ...nextStepsLegalDefaultLPM
623
- ],
624
- 'Asbestos and Mesothelioma': [
625
- 'incidentDate',
626
- 'doctorTreatment',
627
- ...nextStepsLegalDefault
628
- ],
629
- 'Auto and Car Accidents': [
630
- 'incidentDate',
631
- 'atFault',
632
- 'primaryInjury',
633
- 'doctorTreatment',
634
- 'policeReportFiled',
635
- ...nextStepsLegalNoDOI
636
- ],
637
- 'Bankruptcy': [
638
- 'totalMonthlyIncome',
639
- 'totalDebt',
640
- 'ownRealEstate',
641
- 'valueOfAssets',
642
- ...nextStepsLegalDefault
643
- ],
644
- 'Business Lawyers': [
645
- 'businessServices',
646
- 'businessType',
647
- 'numEmployeesOfBusiness',
648
- ...nextStepsLegalDefault
649
- ],
650
- 'Child Custody': [
651
- 'childRelationship',
652
- 'childHome',
653
- 'childPrimaryCaregiver',
654
- ...nextStepsLegalDefaultLPM
655
- ],
656
- 'Child Support': [
657
- 'childRelationship',
658
- 'childHome',
659
- 'childPrimaryCaregiver',
660
- ...nextStepsLegalDefaultLPM
661
- ],
662
- 'Civil Rights and Discrimination': [
663
- 'civilRightsType',
664
- ...nextStepsLegalDefault
665
- ],
666
- 'Civil Lawsuit': [
667
- 'civilDefense',
668
- 'lawsuitOtherParty',
669
- ...nextStepsLegalDefault
670
- ],
671
- 'File a Lawsuit': [
672
- 'civilLawsuitTOLPDisplay',
673
- 'lawsuitOtherParty',
674
- ...nextStepsLegalDefault
675
- ],
676
- 'Defend a Lawsuit': [
677
- 'lawsuitOtherParty',
678
- ...nextStepsLegalDefault
679
- ],
680
- 'Consumer Lawyers': [
681
- 'consumerLawyerType',
682
- 'incidentDate',
683
- 'lawsuitOtherParty',
684
- ...nextStepsLegalDefault
685
- ],
686
- 'Criminal and Felony': [
687
- 'criminalTOLPDisplay',
688
- 'crimeCommittedDate',
689
- 'roleInMatterCriminal',
690
- 'pendingCharges',
691
- ...nextStepsLegalDefaultLPM
692
- ],
693
- 'Debt and Collections': [
694
- 'totalMonthlyIncome',
695
- 'totalDebt',
696
- 'ownRealEstate',
697
- 'valueOfAssets',
698
- ...nextStepsLegalDefault
699
- ],
700
- 'Divorce and Separation': [
701
- 'maritalStatus',
702
- 'haveChildren',
703
- ...nextStepsLegalDefaultLPM
704
- ],
705
- 'DUI and DWI': [
706
- 'incidentDate',
707
- 'priorAlcoholOffenses',
708
- 'typeOfAlcoholTest',
709
- 'bloodContentAlcoholTest',
710
- 'pendingCharges',
711
- ...nextStepsLegalDefault
712
- ],
713
- 'Employment and Workplace': [
714
- 'employmentAndWorkplaceTOLPDisplay',
715
- 'numEmployeesOfBusiness',
716
- 'employerType',
717
- ...nextStepsLegalDefault
718
- ],
719
- 'Expungement': [
720
- 'incidentDate',
721
- 'criminalChargeType',
722
- ...nextStepsLegalDefaultLPM
723
- ],
724
- 'Family Issues': [
725
- 'maritalStatus',
726
- 'haveChildren',
727
- ...nextStepsLegalDefaultLPM
728
- ],
729
- 'Foreclosure': [
730
- 'ownRealEstate',
731
- 'typeOfProperty',
732
- 'amountPaymentsPastDue',
733
- 'loanAmount',
734
- 'defaultNotice',
735
- ...nextStepsLegalDefault
736
- ],
737
- 'Guardianship': [
738
- 'maritalStatus',
739
- 'haveChildren',
740
- ...nextStepsLegalDefaultLPM
741
- ],
742
- 'Immigration and Visas': [
743
- 'countryOfCitizenship',
744
- 'immigrationLocation',
745
- 'immigrationEntry',
746
- 'immigrationType',
747
- 'immigrationStatus',
748
- 'immigrationDetails',
749
- ...nextStepsLegalDefault
750
- ],
751
- 'Landlord and Tenant': [
752
- 'landlordTenantIssue',
753
- 'landlordTenantParty',
754
- ...nextStepsLegalDefault
755
- ],
756
- 'Lemon Law': [
757
- 'incidentDate',
758
- 'lawsuitOtherParty',
759
- ...nextStepsLegalDefault
760
- ],
761
- 'Long Term Disability': [
762
- 'applicantOccupation',
763
- 'applicantAge',
764
- 'applicantLTDisabilityPolicy',
765
- 'applicantDisabilityHowObtain',
766
- 'applicantPreviouslyAppliedLtdBenefits',
767
- 'applicantReceivedDisabilityBenefits',
768
- 'applicantMonthlySalary',
769
- ...nextStepsLegalNoDOI
770
- ],
771
- 'Medical Malpractice': [
772
- 'incidentDate',
773
- 'claimStatus',
774
- 'doctorTreatment',
775
- 'medicalMalpracticeInjuries',
776
- ...nextStepsLegalDefault
777
- ],
778
- 'Patents and Intellectual Property': [
779
- 'patentAssistanceType',
780
- 'patentFor',
781
- ...nextStepsLegalDefault
782
- ],
783
- 'Personal Injury': [
784
- 'incidentDate',
785
- 'claimStatus',
786
- 'atFault',
787
- 'primaryInjury',
788
- 'doctorTreatment',
789
- ...nextStepsLegalNoDOI
790
- ],
791
- 'Probate and Estates': [
792
- 'valueOfAssets',
793
- 'typeOfAssets',
794
- 'roleInMatterProbate',
795
- 'estateLegalServicesNeeded',
796
- ...nextStepsLegalDefault
797
- ],
798
- 'Property Damage': [
799
- 'realEstateArea',
800
- 'wouldLikeLawyerTo',
801
- ...nextStepsLegalDefault
802
- ],
803
- 'Real Estate': [
804
- 'realEstateTOLPDisplay',
805
- 'realEstateArea',
806
- 'wouldLikeLawyerTo',
807
- ...nextStepsLegalDefault
808
- ],
809
- 'Social Security Disability and Insurance': [
810
- 'applicantAge',
811
- 'disabilityConditionStopWork',
812
- 'disabilityWorkHistory',
813
- 'socialSecurityDisabilityReceivingBenefits',
814
- 'doctorTreatment',
815
- ...nextStepsLegalNoDOI
816
- ],
817
- 'Tax and IRS': [
818
- 'totalDebt',
819
- 'taxProblemDetails',
820
- 'taxLevel',
821
- 'taxIssueType',
822
- ...nextStepsLegalDefault
823
- ],
824
- 'Traffic and Tickets': [
825
- 'driversLicenseType',
826
- 'trafficViolations',
827
- 'haveCourtDate',
828
- ...nextStepsLegalDefault
829
- ],
830
- 'Unemployment': [
831
- 'numEmployeesOfBusiness',
832
- 'employerType',
833
- ...nextStepsLegalNoHA
834
- ],
835
- 'Victim of a Crime': [
836
- 'crimeCommittedDate',
837
- 'roleInMatterCriminal',
838
- 'pendingCharges',
839
- ...nextStepsLegalDefaultLPM
840
- ],
841
- 'Wills and Trusts': [
842
- 'valueOfAssets',
843
- 'typeOfAssets',
844
- 'roleInMatterProbate',
845
- 'estateLegalServicesNeeded',
846
- ...nextStepsLegalDefault
847
- ],
848
- 'Workers Compensation': [
849
- 'incidentDate',
850
- 'claimStatus',
851
- 'primaryInjury',
852
- 'causeOfInjury',
853
- 'doctorTreatment',
854
- ...nextStepsLegalNoDOI
855
- ],
856
- 'Wrongful Death': [
857
- 'incidentDate',
858
- 'relationshipToVictim',
859
- 'criminalChargesFiled',
860
- 'causeOfDeath',
861
- ...nextStepsLegalNoDOI
862
- ],
863
- 'Wrongful Termination': [
864
- 'numEmployeesOfBusiness',
865
- 'employerType',
866
- ...nextStepsLegalDefault
867
- ],
868
- },
869
- '*': nextStepsLegalDefault
870
- };
871
-
872
- // function filterMapByKey(obj, keyList) {
873
- // return Object.fromEntries(
874
- // Object.entries(obj).filter(([key]) => keyList.includes(key))
875
- // );
876
- // }
877
-
878
- // export function filteredNextStepsMapLegal(keyList) {
879
- // const res = { Type_Of_Legal_Problem: filterMapByKey(nextStepsMapGeneralLegal["Type_Of_Legal_Problem"], keyList) }
880
- // res["*"] = nextStepsMapGeneralLegal["*"]
881
- // return res
882
- // }
883
-
884
- const TOLPNextSteps = nextStepsMapGeneralLegal["Type_Of_Legal_Problem"];
885
-
886
- ({
887
- 'Civil_Defense': {
888
- 'Yes': TOLPNextSteps["Defend a Lawsuit"],
889
- 'No': TOLPNextSteps["File a Lawsuit"],
890
- },
891
- '*': [
892
- 'lawsuitOtherParty',
893
- ...nextStepsLegalDefault
894
- ]
895
- });
896
-
897
- const nextStepsMapCivilTOLPDisplay = {
898
- 'Type_Of_Legal_Problem_Display': {
899
- 'Automobile Accident': TOLPNextSteps["Auto and Car Accidents"],
900
- 'Contract Disputes': TOLPNextSteps["Business Lawyers"],
901
- 'Dog Bite': TOLPNextSteps["Personal Injury"],
902
- 'Employment and Workplace': TOLPNextSteps["Employment and Workplace"],
903
- 'Fraud': TOLPNextSteps["Consumer Lawyers"],
904
- 'Medical Malpractice': TOLPNextSteps["Medical Malpractice"],
905
- 'Personal Injury': TOLPNextSteps["Personal Injury"],
906
- 'Property Damage': TOLPNextSteps["Property Damage"],
907
- 'Real Estate': TOLPNextSteps["Real Estate"],
908
- 'Other (describe on next page)': TOLPNextSteps["Not Sure or Other"],
909
- },
910
- '*': [
911
- 'lawsuitOtherParty',
912
- ...nextStepsLegalDefault
913
- ]
914
- };
915
-
916
- const nextStepsMapCriminalTOLPDisplay = {
917
- 'Type_Of_Legal_Problem_Display': {
918
- 'Victim of a Crime': TOLPNextSteps["Victim of a Crime"],
919
- 'DUI and DWI': TOLPNextSteps["DUI and DWI"],
920
- 'Expungement': TOLPNextSteps["Expungement"],
921
- 'Not Sure or Other': nextStepsMapGeneralLegal["*"],
922
- },
923
- '*': [
924
- 'crimeCommittedDate',
925
- 'roleInMatterCriminal',
926
- 'pendingCharges',
927
- ...nextStepsLegalDefaultLPM
928
- ]
929
- };
930
-
931
- const nextStepsMapEmploymentAndWorkplaceTOLPDisplay = {
932
- 'Type_Of_Legal_Problem_Display': {
933
- 'Wrongful Termination': TOLPNextSteps["Wrongful Termination"],
934
- 'Workers Compensation': TOLPNextSteps["Workers Compensation"],
935
- 'Personal Injury': TOLPNextSteps["Personal Injury"],
936
- 'Unemployment': TOLPNextSteps["Unemployment"],
937
- },
938
- '*': [
939
- 'numEmployeesOfBusiness',
940
- 'employerType',
941
- ...nextStepsLegalDefault
942
- ]
943
- };
944
-
945
- const nextStepsMapRealEstateTOLPDisplay = {
946
- 'Type_Of_Legal_Problem_Display': {
947
- 'Foreclosure': TOLPNextSteps["Foreclosure"],
948
- 'Landlord and Tenant': TOLPNextSteps["Landlord and Tenant"],
949
- 'Wills, Trusts, and Estates': TOLPNextSteps["Wills and Trusts"],
950
- 'Property Damage': TOLPNextSteps['Property Damage'],
951
- },
952
- '*': [
953
- 'realEstateArea',
954
- 'wouldLikeLawyerTo',
955
- ...nextStepsLegalDefault
956
- ]
957
- };
958
-
959
- // ------ Common Base Settings
960
-
961
- const checkbox = (updates) => {
962
- return merge({
963
- $formkit: 'checkbox',
964
- validation: 'required',
965
- validationMessages: {
966
- required: 'Field is required'
967
- }
968
- }, updates)
969
- };
970
-
971
- const verticalCheckbox = (updates) => {
972
- if (!updates || !updates.legendClass) {
973
- updates.legendClass = 'required';
974
- }
975
- updates.fieldsetClass = '$reset';
976
- updates.optionsClass = 't-pl-2 t-pt-3';
977
- updates.innerClass = 't-items-center';
978
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
979
- return checkbox(updates)
980
- };
981
-
982
- const sbsCheckbox = (updates) => {
983
- updates.legendClass = 'legend-left required';
984
- updates.fieldsetClass = '$reset side-by-side';
985
- updates.optionsClass = 't-pl-1';
986
- updates.innerClass = 't-flex t-items-center';
987
- updates.wrapperClass = 't-mb-3';
988
- return checkbox(updates)
989
- };
990
-
991
- const col2Checkbox = (updates) => {
992
- if (!updates || !updates.legendClass) {
993
- updates.legendClass = 'required';
994
- }
995
- updates.fieldsetClass = '$reset';
996
- updates.optionsClass = 't-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
997
- updates.innerClass = 't-items-start';
998
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
999
- return checkbox(updates)
1000
- };
1001
-
1002
- const verticalCol2Checkbox = (updates) => {
1003
- if (!updates || !updates.legendClass) {
1004
- updates.legendClass = 'required';
1005
- }
1006
- updates.fieldsetClass = '$reset t-flex t-justify-center';
1007
- updates.optionClass = 't-mx-5';
1008
- updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
1009
- updates.innerClass = 't-items-center';
1010
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
1011
- updates.messagesClass = 't-flex t-justify-center';
1012
- return checkbox(updates)
1013
- };
1014
-
1015
- const radio = (updates) => {
1016
- return merge({
1017
- $formkit: 'radio',
1018
- validation: 'required',
1019
- validationMessages: {
1020
- required: 'Field is required'
1021
- },
1022
- optionsClass: 't-pt-3 t-pl-1',
1023
- legendClass: 'required'
1024
- }, updates)
1025
- };
1026
-
1027
- const col2RadioCenter = (updates) => {
1028
- updates.legendClass = 'required t-w-[100%] t-text-center';
1029
- updates.fieldsetClass = '$reset';
1030
- updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
1031
- updates.innerClass = 't-items-start';
1032
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
1033
- updates.optionClass = 't-pl-4 md:t-pl-8';
1034
- updates.messagesClass = 't-flex t-justify-center';
1035
- return radio(updates)
1036
- };
1037
-
1038
- const sbs2ColRadio = (updates) => {
1039
- updates.legendClass = 'legend-left-flex md:t-max-w-[40%] required';
1040
- updates.fieldsetClass = '$reset side-by-side-flex';
1041
- updates.optionsClass = 'md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125';
1042
- updates.innerClass = 't-flex t-items-start';
1043
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
1044
- return radio(updates)
1045
- };
1046
-
1047
- const sbs2ItemRadio = (updates) => {
1048
- updates.legendClass = 'legend-left t-pb-1 required';
1049
- updates.fieldsetClass = '$reset side-by-side t-items-center';
1050
- updates.optionsClass = 't-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center';
1051
- updates.innerClass = 't-flex t-items-center';
1052
- updates.optionClass = 't-pr-1';
1053
- return radio(updates)
1054
- };
1055
-
1056
- const sbsYesNoRadio = (updates) => {
1057
- updates.options = ['Yes', 'No'];
1058
- return sbs2ItemRadio(updates)
1059
- };
1060
-
1061
- const vertical2ItemRadio = (updates) => {
1062
- updates.legendClass = 'legend-left';
1063
- updates.fieldsetClass = '$reset vertical t-items-center';
1064
- updates.optionsClass = 't-flex t-justify-center t-my-4';
1065
- updates.optionClass = 'radiobtn t-mx-2 md:t-mx-5';
1066
- updates.wrapperClass = '$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]';
1067
- updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
1068
- updates.decoratorIcon = false;
1069
- updates.messagesClass = 't-flex t-justify-center';
1070
- return radio(updates)
1071
- };
1072
-
1073
- const verticalYesNoRadio = (updates) => {
1074
- updates.options = ['Yes', 'No'];
1075
- return vertical2ItemRadio(updates)
1076
- };
1077
-
1078
- const verticalRadio = (updates) => {
1079
- updates.legendClass = 'required';
1080
- updates.fieldsetClass = '$reset t-flex t-justify-center';
1081
- updates.optionsClass = 't-pl-2 t-pt-3';
1082
- updates.innerClass = 't-items-center';
1083
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
1084
- updates.optionClass = 't-pl-4 md:t-pl-12';
1085
- updates.messagesClass = 't-flex t-justify-center';
1086
- return radio(updates)
1087
- };
1088
-
1089
- const select = (updates) => {
1090
- return merge({
1091
- $formkit: 'select',
1092
- placeholder: "Please Select",
1093
- validation: 'required',
1094
- validationMessages: {
1095
- required: 'Field is required'
1096
- },
1097
- inputClass: 't-bg-white',
1098
- labelClass: 'required'
1099
- }, updates)
1100
- };
1101
-
1102
- const sbsSelect = (updates) => {
1103
- updates.labelClass = 'required';
1104
- updates.wrapperClass = 'side-by-side t-items-center';
1105
- updates.innerClass = 'select-height-content';
1106
- updates.helpClass = 't-mt-2.5 md:t-text-right md:t-mt-[-5px]';
1107
- return select(updates)
1108
- };
1109
-
1110
- const verticalSelect = (updates) => {
1111
- updates.labelClass = 'required';
1112
- updates.wrapperClass = 't-flex t-justify-center';
1113
- updates.messagesClass = 't-flex t-justify-center';
1114
- updates.inputClass = 't-min-w-[150px] t-bg-white';
1115
- updates.helpClass = 't-mt-2.5 t-text-center';
1116
- return select(updates)
1117
- };
1118
-
1119
- const text = (updates) => {
1120
- return merge({
1121
- $formkit: 'text',
1122
- validation: 'required',
1123
- validationMessages: {
1124
- required: 'Field is required'
1125
- },
1126
- labelClass: 'required'
1127
- }, updates)
1128
- };
1129
-
1130
- const sbsText = (updates) => {
1131
- updates.wrapperClass = 'side-by-side t-items-center';
1132
- return text(updates)
1133
- };
1134
-
1135
- const verticalText = (updates) => {
1136
- updates.wrapperClass = 't-flex t-justify-center';
1137
- updates.messagesClass = 't-flex t-justify-center';
1138
- updates.inputClass = 't-text-center';
1139
- return text(updates)
1140
- };
1141
-
1142
- const textArea = (updates) => {
1143
- return merge({
1144
- $formkit: 'textarea',
1145
- rows: 5,
1146
- maxlength: 500,
1147
- validation: 'required',
1148
- validationMessages: {
1149
- required: 'Field is required'
1150
- },
1151
- innerClass: 't-max-w-xl',
1152
- labelClass: 'required'
1153
- }, updates)
1154
- };
1155
-
1156
- const date = (updates) => {
1157
- return merge({
1158
- $formkit: 'DatePicker',
1159
- validation: 'required',
1160
- validationMessages: {
1161
- required: 'Field is required'
1162
- },
1163
- labelClass: 'required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500',
1164
- innerClass: 't-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500'
1165
- }, updates)
1166
- };
1167
-
1168
- const sbsDate = (updates) => {
1169
- updates.wrapperClass = 'side-by-side t-items-center';
1170
- return date(updates)
1171
- };
1172
-
1173
- const verticalDate = (updates) => {
1174
- updates.wrapperClass = 't-flex t-justify-center';
1175
- updates.inputClass = 't-text-center';
1176
- updates.messagesClass = 't-flex t-justify-center';
1177
- return date(updates)
1178
- };
1179
-
1180
- const amountPaymentsPastDueCenter = () => verticalSelect({
1181
- name: 'Amount_Payments_Past_Due',
1182
- options: [
1183
- "$0 - $499",
1184
- "$500 - $999",
1185
- "$1,000 - $2,499",
1186
- "$2,500 - $4,999",
1187
- "$5,000 - $9,999",
1188
- "$10,000 - $24,999",
1189
- "$25,000 - $49,999",
1190
- "$50,000 - $99,999",
1191
- "More than $100,000"
1192
- ]
1193
- });
1194
-
1195
- const applicantOccupationCenter = (scope) => verticalText({
1196
- name: scope ? scope + ':' + 'Applicant_Occupation' : 'Applicant_Occupation',
1197
- placeholder: "Occupation"
1198
- });
1199
-
1200
- const applicantAge$1 = (scope) => sbsText({
1201
- name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
1202
- label: 'Age of Applicant?',
1203
- placeholder: 'Age between 18 and 65',
1204
- maxlength: 2,
1205
- inputmode: "numeric",
1206
- validation: "required|min:18,max:65",
1207
- validationMessages: {
1208
- required: 'Applicant Age is required',
1209
- min: 'Invalid Age - must be between 18 and 65',
1210
- max: 'Invalid Age - must be between 18 and 65',
1211
- }
1212
- });
1213
-
1214
- const applicantAgeCenter = (scope) => verticalText({
1215
- name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
1216
- value: "50",
1217
- placeholder: 'Age between 18 and 65',
1218
- maxlength: 2,
1219
- inputmode: "numeric",
1220
- validation: "required|min:18,max:65",
1221
- validationMessages: {
1222
- required: 'Applicant Age is required',
1223
- min: 'Invalid Age - must be between 18 and 65',
1224
- max: 'Invalid Age - must be between 18 and 65',
1225
- },
1226
- });
1227
-
1228
- const applicantDisabilityHowObtainCenter = (scope) => verticalSelect({
1229
- name: scope ? scope + ':' + 'Applicant_Disability_How_Obtain' : 'Applicant_Disability_How_Obtain',
1230
- options: [
1231
- "Employer",
1232
- "Self",
1233
- "Other"
1234
- ]
1235
- });
1236
-
1237
- const applicantPreviouslyAppliedLtdBenefitsCenter = (scope) => verticalRadio({
1238
- name: scope ? scope + ':' + 'Applicant_Previously_Apply_Ltd_Benefits' : 'Applicant_Previously_Apply_Ltd_Benefits',
1239
- options: [
1240
- "Yes, claim pending",
1241
- "Yes, claim denied",
1242
- "No"
1243
- ]
1244
- });
1245
-
1246
- const applicantMonthlySalaryCenter = (scope) => verticalSelect({
1247
- name: scope ? scope + ':' + 'Applicant_Monthly_Salary' : 'Applicant_Monthly_Salary',
1248
- options: [
1249
- "< $1,000",
1250
- "$1,000 - $2,000",
1251
- "$2,000 - $3,000",
1252
- "$3,000 - $4,000",
1253
- "$4,000 - $5,000",
1254
- "$5,000 - $6,000",
1255
- "$6,000 - $7,000",
1256
- "$7,000 - $8,000",
1257
- "$8,000 - $9,000",
1258
- "$9,000 - $10,000",
1259
- ">$10,000"
1260
- ]
1261
- });
1262
-
1263
- const applicantReceivedDisabilityBenefitsCenter = (scope) => verticalRadio({
1264
- name: scope ? scope + ':' + 'Applicant_Received_Disability_Benefits' : 'Applicant_Received_Disability_Benefits',
1265
- options: [
1266
- "Yes, currently receiving",
1267
- "Yes, appealing a decision to stop payment of benefits",
1268
- "No"
1269
- ]
1270
- });
1271
-
1272
- const applicantLTDisabilityPolicyCenter = (scope) => verticalYesNoRadio({
1273
- name: scope ? scope + ':' + 'Applicant_Lt_Disability_Policy' : 'Applicant_Lt_Disability_Policy',
1274
- });
1275
-
1276
- const atFault$1 = (scope) => sbsYesNoRadio({
1277
- name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
1278
- label: 'Were You at Fault?'
1279
- });
1280
-
1281
- const atFaultCenter = (scope) => verticalYesNoRadio({
1282
- name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
1283
- });
1284
-
1285
- const bankruptcyCrossSell = () => sbsCheckbox({
1286
- label: "I'd also like a consultation for bankruptcy or debt elimination (optional)",
1287
- help: "Note: you will be contacted separately by a bankruptcy/debt expert",
1288
- name: 'CrossSell_Bankruptcy',
1289
- id: 'CrossSell_Bankruptcy',
1290
- 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")',
1291
- validation: null,
1292
- helpClass: "!t-text-sm"
1293
- });
1294
-
1295
- const bloodContentAlcoholTest$1 = (scope) => sbsSelect({
1296
- name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
1297
- label: 'Blood Alcohol Content Measured by Test:',
1298
- options: [
1299
- "No Test",
1300
- "0.00% - 0.04%",
1301
- "0.05% - 0.08%",
1302
- "0.09% - 0.12%",
1303
- "0.13% - 0.16%",
1304
- "0.17% - 0.20%",
1305
- "More than 0.20%",
1306
- "Don't know"
1307
- ]
1308
- });
1309
-
1310
- const bloodContentAlcoholTestCenter = (scope) => verticalSelect({
1311
- name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
1312
- options: [
1313
- "No Test",
1314
- "0.00% - 0.04%",
1315
- "0.05% - 0.08%",
1316
- "0.09% - 0.12%",
1317
- "0.13% - 0.16%",
1318
- "0.17% - 0.20%",
1319
- "More than 0.20%",
1320
- "Don't know"
1321
- ]
1322
- });
1323
-
1324
- const businessServicesCenter = () => verticalSelect({
1325
- id: 'Business_Services',
1326
- name: 'Business_Services',
1327
- options: [
1328
- "Business Formation",
1329
- "Contracts",
1330
- "Insurance and Liability",
1331
- "Mergers and Acquisition",
1332
- "Regulatory Compliance",
1333
- "Employee Dispute",
1334
- "Other"
1335
- ]
1336
- });
1337
-
1338
- const businessTypeCenter = () => col2RadioCenter({
1339
- name: 'Business_Type',
1340
- options: [
1341
- "Public",
1342
- "Private"
1343
- ]
1344
- });
1345
-
1346
- const causeOfInjury$1 = (scope) => sbsSelect({
1347
- name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
1348
- label: 'Cause of Injury:',
1349
- options: [
1350
- "Traumatic Physical Injury (Accident)",
1351
- "Repeated Trauma Injury",
1352
- "Mental Injury",
1353
- "Occupational Disease",
1354
- "Not Sure"
1355
- ]
1356
- });
1357
-
1358
- const causeOfInjuryCenter = (scope) => verticalSelect({
1359
- name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
1360
- options: [
1361
- "Traumatic Physical Injury (Accident)",
1362
- "Repeated Trauma Injury",
1363
- "Mental Injury",
1364
- "Occupational Disease",
1365
- "Not Sure"
1366
- ]
1367
- });
1368
-
1369
- const causeOfDeathCenter = () => verticalSelect({
1370
- name: 'Cause_Of_Death',
1371
- options: [
1372
- "Vehicle Accident",
1373
- "Negligent/Careless Act",
1374
- "Reckless Act",
1375
- "Other"
1376
- ]
1377
- });
1378
-
1379
- const civilLawsuitTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
1380
- name: 'Type_Of_Legal_Problem_Display',
1381
- options: [
1382
- 'Automobile Accident',
1383
- 'Contract Disputes',
1384
- 'Defamation and Slander',
1385
- 'Dog Bite',
1386
- 'Employment and Workplace',
1387
- 'Fraud',
1388
- 'Medical Malpractice',
1389
- 'Personal Injury',
1390
- 'Property Damage',
1391
- 'Small Claims',
1392
- 'Real Estate',
1393
- 'Other (describe on next page)'
1394
- ]
1395
- }, updates));
1396
-
1397
- const civilRightsTypeCenter = () => verticalSelect({
1398
- name: 'Civil_Rights_Type',
1399
- options: [
1400
- "Age",
1401
- "Disability",
1402
- "Gender",
1403
- "Race",
1404
- "Religion",
1405
- "Other"
1406
- ]
1407
- });
1408
-
1409
- const childHome$1 = (scope) => sbsSelect({
1410
- name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
1411
- label: 'With Whom Do the Children Currently Live?',
1412
- options: [
1413
- 'Mother',
1414
- 'Father',
1415
- 'Grandparents',
1416
- 'Other'
1417
- ]
1418
- });
1419
-
1420
- const childHomeCenter = (scope) => verticalSelect({
1421
- name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
1422
- options: [
1423
- 'Mother',
1424
- 'Father',
1425
- 'Grandparents',
1426
- 'Other'
1427
- ]
1428
- });
1429
-
1430
- const childPrimaryCaregiver$1 = (scope) => sbsSelect({
1431
- name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
1432
- label: 'Who is the Primary Caregiver?',
1433
- options: [
1434
- 'Mother',
1435
- 'Father',
1436
- 'Other'
1437
- ]
1438
- });
1439
-
1440
- const childPrimaryCaregiverCenter = (scope) => verticalSelect({
1441
- name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
1442
- options: [
1443
- 'Mother',
1444
- 'Father',
1445
- 'Other'
1446
- ]
1447
- });
1448
-
1449
- const childRelationship$1 = (scope) => sbsSelect({
1450
- name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
1451
- label: 'Your Relationship to Child(ren):',
1452
- options: [
1453
- 'Father',
1454
- 'Mother',
1455
- 'Grandparent',
1456
- 'Aunt/Uncle',
1457
- 'Other'
1458
- ]
1459
- });
1460
-
1461
- const childRelationshipCenter = (scope) => verticalSelect({
1462
- name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
1463
- options: [
1464
- 'Father',
1465
- 'Mother',
1466
- 'Grandparent',
1467
- 'Aunt/Uncle',
1468
- 'Other'
1469
- ]
1470
- });
1471
-
1472
- const claimStatus$1 = (scope) => sbsSelect({
1473
- name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
1474
- label: "Status of Claim:",
1475
- options: [
1476
- "No action taken yet",
1477
- "Demand for compensation made",
1478
- "Lawsuit filed",
1479
- "Other"
1480
- ]
1481
- });
1482
-
1483
- const claimStatusCenter = (scope) => verticalSelect({
1484
- name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
1485
- options: [
1486
- "No action taken yet",
1487
- "Demand for compensation made",
1488
- "Lawsuit filed",
1489
- "Other"
1490
- ]
1491
- });
1492
-
1493
- const comments = (updates, scope) => textArea(
1494
- merge({
1495
- name: scope ? scope + ':' + 'Comments' : 'Comments',
1496
- label: 'Please briefly describe your situation in a few words:',
1497
- placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
1498
- }, updates)
1499
- );
1500
-
1501
- const consumerLawyerTypeCenter = () => verticalSelect({
1502
- name: 'Consumer_Lawyer_Type',
1503
- options: [
1504
- "Unsafe Environment",
1505
- "Unsafe Products",
1506
- "Auto Fraud",
1507
- "Credit Reporting Issues",
1508
- "Debt Collection Abuse",
1509
- "Identity Theft",
1510
- "Lemon Law",
1511
- "Military Consumer Rights",
1512
- "Predatory Lending",
1513
- "Student Loans",
1514
- "Other"
1515
- ]
1516
- });
1517
-
1518
- const countryOfCitizenshipCenter = (scope) => verticalSelect({
1519
- name: scope ? scope + ':' + 'Country_Of_Citizenship' : 'Country_Of_Citizenship',
1520
- options: [
1521
- "Afghanistan",
1522
- "Albania",
1523
- "Algeria",
1524
- "Andorra",
1525
- "Angola",
1526
- "Antigua and Barbuda",
1527
- "Argentina",
1528
- "Armenia",
1529
- "Australia",
1530
- "Austria",
1531
- "Azerbaijan",
1532
- "Bahamas",
1533
- "The Bahrain",
1534
- "Bangladesh",
1535
- "Barbados",
1536
- "Belarus",
1537
- "Belgium",
1538
- "Belize",
1539
- "Benin",
1540
- "Bhutan",
1541
- "Bolivia",
1542
- "Bosnia and Herzegovina",
1543
- "Botswana",
1544
- "Brazil",
1545
- "Brunei",
1546
- "Bulgaria",
1547
- "Burkina Faso",
1548
- "Burundi",
1549
- "Cambodia",
1550
- "Cameroon",
1551
- "Canada",
1552
- "Cape Verde",
1553
- "Central African Republic",
1554
- "Chad",
1555
- "Chile",
1556
- "China",
1557
- "Colombia",
1558
- "Comoros",
1559
- "Congo (Congoâ Kinshasa)",
1560
- "Congo (Congoâ Brazzaville)",
1561
- "Costa Rica",
1562
- "Coted'Ivoire (Ivory Coast)",
1563
- "Croatia",
1564
- "Cuba",
1565
- "Cyprus",
1566
- "Czech Republic",
1567
- "Denmark",
1568
- "Djibouti",
1569
- "Dominica",
1570
- "Dominican Republic",
1571
- "Ecuador",
1572
- "Egypt",
1573
- "El Salvador",
1574
- "Equatorial Guinea",
1575
- "Eritrea",
1576
- "Estonia",
1577
- "Ethiopia",
1578
- "Fiji",
1579
- "Finland",
1580
- "France",
1581
- "Gabon",
1582
- "Gambia",
1583
- "Georgia",
1584
- "Germany",
1585
- "Ghana",
1586
- "Greece",
1587
- "Grenada",
1588
- "Guatemala",
1589
- "Guinea",
1590
- "Guinea-Bissau",
1591
- "Guyana",
1592
- "Haiti",
1593
- "Honduras",
1594
- "Hungary",
1595
- "Iceland",
1596
- "India",
1597
- "Indonesia",
1598
- "Iran",
1599
- "Iraq",
1600
- "Ireland",
1601
- "Israel",
1602
- "Italy",
1603
- "Jamaica",
1604
- "Japan",
1605
- "Jordan",
1606
- "Kazakhstan",
1607
- "Kenya",
1608
- "Kiribati",
1609
- "Korea (North Korea)",
1610
- "Korea (South Korea)",
1611
- "Kuwait",
1612
- "Kyrgyzstan",
1613
- "Laos",
1614
- "Latvia",
1615
- "Lebanon",
1616
- "Lesotho",
1617
- "Liberia",
1618
- "Libya",
1619
- "Liechtenstein",
1620
- "Lithuania",
1621
- "Luxembourg",
1622
- "Macedonia",
1623
- "Madagascar",
1624
- "Malawi",
1625
- "Malaysia",
1626
- "Maldives",
1627
- "Mali",
1628
- "Malta",
1629
- "Marshall Islands",
1630
- "Mauritania",
1631
- "Mauritius",
1632
- "Mexico",
1633
- "Micronesia",
1634
- "Moldova",
1635
- "Monaco",
1636
- "Mongolia",
1637
- "Montenegro",
1638
- "Morocco",
1639
- "Mozambique",
1640
- "Myanmar (Burma)",
1641
- "Namibia",
1642
- "Nauru",
1643
- "Nepal",
1644
- "Netherlands",
1645
- "New Zealand",
1646
- "Nicaragua",
1647
- "Niger",
1648
- "Nigeria",
1649
- "Norway",
1650
- "Oman",
1651
- "Pakistan",
1652
- "Palau",
1653
- "Panama",
1654
- "Papua New Guinea",
1655
- "Paraguay",
1656
- "Peru",
1657
- "Philippines",
1658
- "Poland",
1659
- "Portugal",
1660
- "Qatar",
1661
- "Romania",
1662
- "Russia",
1663
- "Rwanda",
1664
- "Saint Kitts and Nevis",
1665
- "SaintLucia",
1666
- "Saint Vincent and the Grenadines",
1667
- "Samoa",
1668
- "San Marino",
1669
- "Sao Tome and Principe",
1670
- "Saudi Arabia",
1671
- "Senegal",
1672
- "Serbia",
1673
- "Seychelles",
1674
- "Sierra Leone",
1675
- "Singapore",
1676
- "Slovakia",
1677
- "Slovenia",
1678
- "Solomon Islands",
1679
- "Somalia",
1680
- "South Africa",
1681
- "Spain",
1682
- "SriLanka",
1683
- "Sudan",
1684
- "Suriname",
1685
- "Swaziland",
1686
- "Sweden",
1687
- "Switzerland",
1688
- "Syria",
1689
- "Tajikistan",
1690
- "Tanzania",
1691
- "Thailand",
1692
- "Timor-Leste (East Timor)",
1693
- "Togo",
1694
- "Tonga",
1695
- "Trinidad and Tobago",
1696
- "Tunisia",
1697
- "Turkey",
1698
- "Turkmenistan",
1699
- "Tuvalu",
1700
- "Uganda",
1701
- "Ukraine",
1702
- "United Arab Emirates",
1703
- "United Kingdom",
1704
- "United States",
1705
- "Uruguay",
1706
- "Uzbekistan",
1707
- "Vanuatu",
1708
- "Vatican City",
1709
- "Venezuela",
1710
- "Vietnam",
1711
- "Yemen",
1712
- "Zambia",
1713
- "Zimbabwe"
1714
- ]
1715
- });
1716
-
1717
- const crimeCommittedDateCenter = () => verticalDate({
1718
- name: 'Crime_Committed_Date'
1719
- });
1720
-
1721
- const criminalChargeTypeCenter = () => verticalSelect({
1722
- name: 'Criminal_Charge_Type',
1723
- options: [
1724
- "Felony",
1725
- "Misdemeanor",
1726
- "Juvenile",
1727
- "Other"
1728
- ]
1729
- });
1730
-
1731
- const criminalChargesFiledCenter = () => verticalRadio({
1732
- name: 'Criminal_Charges_Filed',
1733
- options: [
1734
- "Yes",
1735
- "No",
1736
- "Not Sure"
1737
- ]
1738
- });
1739
-
1740
- const degreeOfInterest$1 = (scope, help) => sbsSelect({
1741
- name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1742
- id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1743
- label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
1744
- help: help,
1745
- options: [
1746
- 'Definitely',
1747
- 'Probably',
1748
- 'Maybe',
1749
- "Absolutely Can't Afford"
1750
- ]
1751
- });
1752
-
1753
- const degreeOfInterestCenter = (scope, help) => verticalSelect({
1754
- name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1755
- id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1756
- help: help,
1757
- options: [
1758
- 'Definitely',
1759
- 'Probably',
1760
- 'Maybe',
1761
- "Absolutely Can't Afford"
1762
- ]
1763
- });
1764
-
1765
- const defaultNoticeCenter = () => verticalYesNoRadio({
1766
- name: 'Default_Notice',
1767
- });
1768
-
1769
- const degreeOfInterestHelp = (scope) => degreeOfInterest$1(scope, 'No payment necessary to speak with lawyers.');
1770
-
1771
- const disabilityConditionStopWork$1 = (scope) => sbsYesNoRadio({
1772
- name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
1773
- label: 'Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?'
1774
- });
1775
-
1776
- const disabilityConditionStopWorkCenter = (scope) => verticalYesNoRadio({
1777
- name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
1778
- });
1779
-
1780
- const disabilityWorkHistory$1 = (scope) => sbsYesNoRadio({
1781
- name: scope ? scope + ':' + 'Disability_Work_History' : 'Disability_Work_History',
1782
- label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
1783
- });
1784
-
1785
- const disabilityWorkHistoryCenter = (scope) => verticalYesNoRadio({
1786
- name: scope ? scope + ':' + 'Disability_Work_History' : 'Disability_Work_History',
1787
- });
1788
-
1789
- const doctorTreatment$1 = (scope) => sbsYesNoRadio({
1790
- name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
1791
- label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
1792
- });
1793
-
1794
- const doctorTreatmentCenter = () => verticalYesNoRadio({
1795
- name: 'Doctor_Treatment',
1796
- });
1797
-
1798
- const driversLicenseTypeCenter = () => vertical2ItemRadio({
1799
- name: 'Drivers_License_Type',
1800
- options: [
1801
- "Private",
1802
- "Commercial"
1803
- ]
1804
- });
1805
-
1806
- const email = () => sbsText({
1807
- $formkit: 'email',
1808
- name: 'Email',
1809
- label: 'Email Address:',
1810
- placeholder: 'email@domain.com',
1811
- autocomplete: 'email',
1812
- 'data-tf-sensitive': 'false',
1813
- validation: 'required|email',
1814
- validationMessages: {
1815
- required: 'Email is required',
1816
- email: 'Invalid Email'
1817
- }
1818
- });
1819
-
1820
- const employerTypeCenter = () => verticalSelect({
1821
- name: 'Employer_Type',
1822
- options: [
1823
- "Sole proprietorship (mom and pop)",
1824
- "Partnership",
1825
- "Franchise",
1826
- "Privately held company",
1827
- "Public corporation",
1828
- "Government Agency",
1829
- "Don't know"
1830
- ]
1831
- });
1832
-
1833
- const employmentAndWorkplaceTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
1834
- name: 'Type_Of_Legal_Problem_Display',
1835
- options: [
1836
- 'Workplace Harassment',
1837
- 'Workplace Discrimination',
1838
- 'Wrongful Termination',
1839
- 'Payment Disputes',
1840
- 'Workers Compensation',
1841
- 'Personal Injury',
1842
- 'Unemployment',
1843
- 'Other Workplace Issues'
1844
- ]
1845
- }, updates));
1846
-
1847
- const estateLegalServicesNeeded$1 = (scope) => sbsSelect({
1848
- name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
1849
- label: "Legal Services Needed for Your Estate:",
1850
- options: [
1851
- "Charitable Giving",
1852
- "Contested Wills",
1853
- "Drafting Wills or Trust",
1854
- "Estate Administration",
1855
- "Asset Protection",
1856
- "Other"
1857
- ]
1858
- });
1859
-
1860
- const estateLegalServicesNeededCenter = (scope) => verticalSelect({
1861
- name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
1862
- options: [
1863
- "Charitable Giving",
1864
- "Contested Wills",
1865
- "Drafting Wills or Trust",
1866
- "Estate Administration",
1867
- "Asset Protection",
1868
- "Other"
1869
- ]
1870
- });
1871
-
1872
- const firstName = () => sbsText({
1873
- $formkit: 'text',
1874
- label: 'First Name:',
1875
- placeholder: 'First',
1876
- name: 'First_Name',
1877
- autocomplete: "given-name",
1878
- validationMessages: {
1879
- required: 'First Name is required'
1880
- }
1881
- });
1882
-
1883
- const TOLPOptions = [
1884
- 'Adoption',
1885
- 'Asbestos and Mesothelioma',
1886
- 'Auto and Car Accidents',
1887
- 'Bankruptcy',
1888
- 'Birth Certificate and Name Change',
1889
- 'Business Lawyers',
1890
- 'Child Custody',
1891
- 'Child Support',
1892
- 'Civil Rights and Discrimination',
1893
- 'Consumer Lawyers',
1894
- 'Copyrights and Trademarks',
1895
- 'Criminal and Felony',
1896
- 'Debt and Collections',
1897
- 'Defend a Lawsuit',
1898
- 'Divorce and Separation',
1899
- 'DUI and DWI',
1900
- 'Elder Law',
1901
- 'Employment and Workplace',
1902
- 'Expungement',
1903
- 'Family Issues',
1904
- 'File a Lawsuit',
1905
- 'Foreclosure',
1906
- 'Guardianship',
1907
- 'Harassment and Discrimination',
1908
- 'Identity Theft',
1909
- 'Immigration and Visas',
1910
- 'Insurance',
1911
- 'Landlord and Tenant',
1912
- 'Lemon Law',
1913
- 'Long Term Disability',
1914
- 'Medical Malpractice',
1915
- 'Non-Workplace Discrimination',
1916
- 'Non-Workplace Harassment',
1917
- 'Patents and Intellectual Property',
1918
- 'Personal Injury',
1919
- 'Power of Attorney',
1920
- 'Probate and Estates',
1921
- 'Product Liability',
1922
- 'Property Damage',
1923
- 'Real Estate',
1924
- 'Sexual Harassment',
1925
- 'Social Security Disability and Insurance',
1926
- 'Tax and IRS',
1927
- 'Traffic and Tickets',
1928
- 'Unemployment',
1929
- 'Victim of a Crime',
1930
- 'Wills and Trusts',
1931
- 'Workers Compensation',
1932
- 'Workplace Discrimination',
1933
- 'Workplace Harassment',
1934
- 'Wrongful Death',
1935
- 'Wrongful Termination',
1936
- 'Not Sure or Other'
1937
- ];
1938
-
1939
- const generalTOLPCenter = (updates) => verticalSelect(merge({
1940
- name: 'Type_Of_Legal_Problem',
1941
- id: 'Type_Of_Legal_Problem',
1942
- options: TOLPOptions,
1943
- }, updates));
1944
-
1945
- const haveAttorney$1 = (scope) => sbsYesNoRadio({
1946
- name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
1947
- label: 'Already Working with An Attorney?'
1948
- });
1949
-
1950
- const haveAttorneyCenter = () => verticalYesNoRadio({
1951
- name: 'Have_Attorney',
1952
- });
1953
-
1954
- const haveChildren$1 = (scope) => sbsYesNoRadio({
1955
- name: scope ? scope + ':' + 'Have_Children' : 'Have_Children',
1956
- label: 'Do You Have Children?'
1957
- });
1958
-
1959
- const haveChildrenCenter = (scope) => verticalYesNoRadio({
1960
- name: scope ? scope + ':' + 'Have_Children' : 'Have_Children'
1961
- });
1962
-
1963
-
1964
- const haveCourtDateCenter = () => verticalYesNoRadio({
1965
- name: 'Have_Court_Date',
1966
- });
1967
-
1968
- const immigrationDetailsCenter = (scope) => verticalSelect({
1969
- name: scope ? scope + ':' + 'Immigration_Details' : 'Immigration_Details',
1970
- options: [
1971
- "In the USA with proper documentation",
1972
- "In the USA without proper documentation",
1973
- "Not in the USA",
1974
- "In Deportation/Removal Proceedings",
1975
- "Currently Detained (friend or family submitting this request)",
1976
- "Out on Bond",
1977
- "None Apply"
1978
- ]
1979
- });
1980
-
1981
- const immigrationEntryCenter = (scope) => verticalSelect({
1982
- name: scope ? scope + ':' + 'Immigration_Entry' : 'Immigration_Entry',
1983
- options: [
1984
- "With Proper Documents/Visa and Inspection through Customs Border Patrol",
1985
- "Illegally",
1986
- "No Entry",
1987
- "Other"
1988
- ]
1989
- });
1990
-
1991
- const immigrationLocationCenter = (scope) => verticalSelect({
1992
- name: scope ? scope + ':' + 'Immigration_Location' : 'Immigration_Location',
1993
- options: [
1994
- "In the USA",
1995
- "Outside the USA"
1996
- ]
1997
- });
1998
-
1999
- const immigrationTypeCenter = (scope) => verticalSelect({
2000
- name: scope ? scope + ':' + 'Immigration_Type' : 'Immigration_Type',
2001
- options: [
2002
- "Citizenship (for current green card holders)",
2003
- "Permanent Visa Family Based (green cards)",
2004
- "Permanent Visa Business Based (green cards)",
2005
- "Temporary Business Visa",
2006
- "Temporary Tourist Visa",
2007
- "Investor",
2008
- "Asylum",
2009
- "Self Petition (violence & abuse victims)",
2010
- "Removal/Deportation Proceeding",
2011
- "Other"
2012
- ]
2013
- });
2014
-
2015
- const immigrationStatusCenter = (scope) => verticalSelect({
2016
- name: scope ? scope + ':' + 'Immigration_Status' : 'Immigration_Status',
2017
- options: [
2018
- "Out of Status (overstayed my visa)",
2019
- "Current Visa Holder (in status)",
2020
- "Lawful Permanent Resident (green card)",
2021
- "Not Applicable (outside the USA)",
2022
- "Other"
2023
- ]
2024
- });
2025
-
2026
- const incidentDate$1 = (scope) => sbsDate({
2027
- name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
2028
- label: 'Date of Incident:',
2029
- });
2030
-
2031
- const incidentDateCenter = (scope) => verticalDate({
2032
- name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
2033
- });
2034
-
2035
- const lastName = () => sbsText({
2036
- $formkit: 'text',
2037
- label: 'Last Name:',
2038
- placeholder: 'Last',
2039
- name: 'Last_Name',
2040
- autocomplete: "family-name",
2041
- validationMessages: {
2042
- required: 'Last Name is required'
2043
- }
2044
- });
2045
-
2046
- const landlordTenantPartyCenter = () => verticalSelect({
2047
- name: 'Landlord_Tenant_Party',
2048
- options: [
2049
- "Landlord",
2050
- "Tenant",
2051
- "Other"
2052
- ]
2053
- });
2054
-
2055
- const landlordTenantIssueRadioCenter = () => col2RadioCenter({
2056
- id: 'Landlord_Tenant_Issue',
2057
- name: 'Landlord_Tenant_Issue',
2058
- options: [
2059
- "Eviction",
2060
- "Repairs and Maintenance",
2061
- "Lease and Rental Agreements",
2062
- "Discrimination",
2063
- "Right of Entry and Privacy",
2064
- "Screening and Applications",
2065
- "Environmental Hazards",
2066
- "Other Dispute"
2067
- ]
2068
- });
2069
-
2070
- const lawsuitOtherPartyCenter = () => verticalSelect({
2071
- name: 'Lawsuit_Other_Party',
2072
- options: [
2073
- "Individual",
2074
- "Small Business",
2075
- "Large Corporation",
2076
- "Government Entity"
2077
- ]
2078
- });
2079
-
2080
- const lawyerPaymentMethod$1 = (scope) => sbsSelect({
2081
- name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
2082
- label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
2083
- help: 'No payment necessary to speak with lawyers.',
2084
- options: [
2085
- 'Cash',
2086
- 'Check',
2087
- 'Credit Card',
2088
- 'Friend',
2089
- 'Family',
2090
- 'Other'
2091
- ]
2092
- });
2093
-
2094
- const lawyerPaymentMethodCenter = (scope) => verticalSelect({
2095
- name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
2096
- help: 'No payment necessary to speak with lawyers.',
2097
- options: [
2098
- 'Cash',
2099
- 'Check',
2100
- 'Credit Card',
2101
- 'Friend',
2102
- 'Family',
2103
- 'Other'
2104
- ]
2105
- });
2106
-
2107
- const legalCrossSells$1 = () => col2Checkbox({
2108
- id: 'Legal_CrossSells',
2109
- name: 'Legal_CrossSells',
2110
- help: 'Note: just hit "Next" if none apply',
2111
- helpClass: 't-text-center !t-text-sm',
2112
- validation: null,
2113
- options: {
2114
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Auto and Car Accidents"',
2115
- then: {
2116
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
2117
- 'Wills and Trusts': 'Need a Will or Trust',
2118
- 'Workers Compensation': 'Workplace Injury',
2119
- 'Power of Attorney': 'Update Power of Attorney',
2120
- 'Divorce and Separation': 'Need a Divorce or Separation',
2121
- 'Child Custody': 'Need help with Child Custody',
2122
- },
2123
- else: {
2124
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Personal Injury" || $getVal($get(form), "Type_Of_Legal_Problem") === "Workers Compensation"',
2125
- then: {
2126
- 'DUI and DWI': 'Involved in a DUI/DWI',
2127
- 'Wills and Trusts': 'Need a Will or Trust',
2128
- 'Power of Attorney': 'Update Power of Attorney',
2129
- 'Divorce and Separation': 'Need a Divorce or Separation',
2130
- 'Child Custody': 'Need help with Child Custody',
2131
- // TODO add one more?
2132
- },
2133
- else: {
2134
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "DUI and DWI"',
2135
- then: {
2136
- 'Personal Injury': 'Personal or Workplace Injury',
2137
- 'Wills and Trusts': 'Need a Will or Trust',
2138
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
2139
- 'Power of Attorney': 'Update Power of Attorney',
2140
- 'Divorce and Separation': 'Need a Divorce or Separation',
2141
- 'Child Custody': 'Need help with Child Custody',
2142
- },
2143
- else: {
2144
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Wills and Trusts" || $getVal($get(form), "Type_Of_Legal_Problem") === "Probate and Estates" || $getVal($get(form), "Type_Of_Legal_Problem") === "Power of Attorney"',
2145
- then: {
2146
- 'Auto and Car Accidents': 'Injured in a Car Accident',
2147
- 'Personal Injury': 'Personal or Workplace Injury',
2148
- 'DUI and DWI': 'Involved in a DUI/DWI',
2149
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
2150
- 'Divorce and Separation': 'Need a Divorce or Separation',
2151
- 'Child Custody': 'Need help with Child Custody',
2152
- },
2153
- else: {
2154
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Long Term Disability" || $getVal($get(form), "Type_Of_Legal_Problem") === "Social Security Disability and Insurance"',
2155
- then: {
2156
- 'Auto and Car Accidents': 'Injured in a Car Accident',
2157
- 'DUI and DWI': 'Involved in a DUI/DWI',
2158
- 'Wills and Trusts': 'Need a Will or Trust',
2159
- 'Power of Attorney': 'Update Power of Attorney',
2160
- 'Divorce and Separation': 'Need a Divorce or Separation',
2161
- 'Child Custody': 'Need help with Child Custody',
2162
- },
2163
- else: {
2164
- 'Auto and Car Accidents': 'Injured in a Car Accident',
2165
- 'Personal Injury': 'Personal or Workplace Injury',
2166
- 'DUI and DWI': 'Involved in a DUI/DWI',
2167
- 'Wills and Trusts': 'Need a Will or Trust',
2168
- 'Power of Attorney': 'Update Power of Attorney',
2169
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
2170
- }
2171
- }
2172
- }
2173
- }
2174
- }
2175
- }
2176
- });
2177
-
2178
- const loanAmountCenter = () => verticalSelect({
2179
- name: 'Loan_Amount',
2180
- options: [
2181
- "Less than $10,000",
2182
- "$10,000 - $24,999",
2183
- "$25,000 - $49,999",
2184
- "$50,000 - $99,999",
2185
- "$100,000 - $199,999",
2186
- "$200,000 - $299,999",
2187
- "$300,000 - $399,999",
2188
- "$400,000 - $499,999",
2189
- "$500,000 - $599,999",
2190
- "More than $600,000"
2191
- ]
2192
- });
2193
-
2194
- const maritalStatus$1 = (scope) => sbsSelect({
2195
- name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
2196
- label: 'Marital Status:',
2197
- options: [
2198
- 'Unmarried, Living Together',
2199
- 'Unmarried, Do Not Live Together',
2200
- 'Married, Living Together',
2201
- 'Separated',
2202
- 'Divorced',
2203
- 'Other'
2204
- ]
2205
- });
2206
-
2207
- const maritalStatusCenter = (scope) => verticalSelect({
2208
- name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
2209
- options: [
2210
- 'Unmarried, Living Together',
2211
- 'Unmarried, Do Not Live Together',
2212
- 'Married, Living Together',
2213
- 'Separated',
2214
- 'Divorced',
2215
- 'Other'
2216
- ]
2217
- });
2218
-
2219
- const medicalMalpracticeInjuriesCenter = () => verticalSelect({
2220
- name: 'Medical_Malpractice_Injuries',
2221
- options: [
2222
- "No Injury",
2223
- "Minor Injury",
2224
- "Disfigurement or cosmetic injury",
2225
- "Short term loss of physical ability",
2226
- "Long term loss of physical injury",
2227
- "Possibility of future harm",
2228
- "Death of Patient"
2229
- ]
2230
- });
2231
-
2232
- const numEmployeesOfBusinessCenter = () => verticalSelect({
2233
- name: 'Num_Employees_Of_Business',
2234
- options: [
2235
- "1-5",
2236
- "6-20",
2237
- "21-50",
2238
- "51-100",
2239
- "101-500",
2240
- "501-1,000",
2241
- "More than 1,000"
2242
- ]
2243
- });
2244
-
2245
- const ownRealEstateCenter = () => verticalYesNoRadio({
2246
- name: 'Own_Real_Estate',
2247
- });
2248
-
2249
- const patentAssistanceTypeCenter = () => verticalSelect({
2250
- name: 'Patent_Assistance_Type',
2251
- options: [
2252
- "Obtaining a Patent",
2253
- "Avoiding Patent Infringement",
2254
- "Suing for Patent Infringement",
2255
- "Defending Against a Claim of Patent Infringement",
2256
- "Other"
2257
- ]
2258
- });
2259
-
2260
- const patentForCenter = () => verticalSelect({
2261
- name: 'Patent_For',
2262
- options: [
2263
- "Product or Machine",
2264
- "Process",
2265
- "Computer Software",
2266
- "Living Organism or Plant",
2267
- "Ornamental Design",
2268
- "Other"
2269
- ]
2270
- });
2271
-
2272
- const pendingCharges$1 = (scope) => sbsYesNoRadio({
2273
- name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
2274
- label: 'Do you currently have any pending charges?'
2275
- });
2276
-
2277
- const pendingChargesCenter = (scope) => verticalYesNoRadio({
2278
- name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
2279
- });
2280
-
2281
- const phone = () => sbsText({
2282
- $formkit: 'tel',
2283
- name: 'Primary_Phone',
2284
- label: 'Phone Number:',
2285
- placeholder: '###-###-####',
2286
- maxlength: 12,
2287
- help: '10-digit phone number, hyphens optional',
2288
- autocomplete: 'tel-national',
2289
- 'data-tf-sensitive': 'false',
2290
- validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
2291
- validationMessages: {
2292
- required: 'Field is required',
2293
- matches: 'Invalid Phone Format, use ###-###-####',
2294
- valid_phone: 'Invalid Phone Number'
2295
- },
2296
- helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
2297
- });
2298
-
2299
- const primaryInjury$1 = (scope) => sbs2ColRadio({
2300
- name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
2301
- label: 'Primary Injury:',
2302
- options: [
2303
- "Anxiety",
2304
- "Back or Neck Pain",
2305
- "Broken Bones",
2306
- "Cuts and Bruises",
2307
- "Headaches",
2308
- "Memory Loss",
2309
- "Loss of Limb",
2310
- "Other (describe on next page)"
2311
- ]
2312
- });
2313
-
2314
- const primaryInjuryCenter = (scope) => col2RadioCenter({
2315
- name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
2316
- options: [
2317
- "Anxiety",
2318
- "Back or Neck Pain",
2319
- "Broken Bones",
2320
- "Cuts and Bruises",
2321
- "Headaches",
2322
- "Memory Loss",
2323
- "Loss of Limb",
2324
- "Other (describe on next page)"
2325
- ]
2326
- });
2327
-
2328
- const priorAlcoholOffenses$1 = (scope) => sbsYesNoRadio({
2329
- name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
2330
- label: 'Any Prior Alcohol Related Offenses?'
2331
- });
2332
-
2333
- const priorAlcoholOffensesCenter = (scope) => verticalYesNoRadio({
2334
- name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
2335
- });
2336
-
2337
- const policeReportFiled$1 = (scope) => sbsYesNoRadio({
2338
- name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
2339
- label: 'Was a Police Report Filed?'
2340
- });
2341
-
2342
- const policeReportFiledCenter = (scope) => verticalYesNoRadio({
2343
- name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
2344
- });
2345
-
2346
- const realEstateAreaCenter = () => verticalSelect({
2347
- name: 'Real_Estate_Area',
2348
- options: [
2349
- "Condos and Coops",
2350
- "Construction Disputes",
2351
- "Purchase/Sale Contract",
2352
- "Refinancing Agreement",
2353
- "Title and Boundary Disputes",
2354
- "Zoning, Planning and Land Use",
2355
- "Property Deeds and Transfers",
2356
- "Liens",
2357
- "Other"
2358
- ]
2359
- });
2360
-
2361
- const realEstateTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
2362
- name: 'Type_Of_Legal_Problem_Display',
2363
- options: [
2364
- 'Contracts and Agreements',
2365
- 'Deeds, Liens, and Titles',
2366
- 'Foreclosure',
2367
- 'Insurance',
2368
- 'Landlord and Tenant',
2369
- 'Loans and Mortgages',
2370
- 'Wills, Trusts, and Estates',
2371
- 'Property Damage',
2372
- 'Other Real Estate Issues'
2373
- ]
2374
- }, updates));
2375
-
2376
- const relationshipToVictimCenter = () => verticalSelect({
2377
- name: 'Relationship_To_Victim',
2378
- options: [
2379
- "Parent",
2380
- "Spouse",
2381
- "Sibling",
2382
- "Friend",
2383
- "Other"
2384
- ]
2385
- });
2386
-
2387
- const roleInMatterCriminalCenter = () => verticalRadio({
2388
- name: 'Role_In_Matter_Criminal',
2389
- options: [
2390
- "I have been accused",
2391
- "I am acting on behalf of someone who has been accused",
2392
- "Other"
2393
- ]
2394
- });
2395
-
2396
- const roleInMatterProbate$1 = (scope) => sbsSelect({
2397
- name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
2398
- label: "What Is Your Role in this Matter?",
2399
- options: [
2400
- "Preparing My Will",
2401
- "Executor",
2402
- "Heir",
2403
- "Other"
2404
- ]
2405
- });
2406
-
2407
- const roleInMatterProbateCenter = (scope) => verticalSelect({
2408
- name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
2409
- options: [
2410
- "Preparing My Will",
2411
- "Executor",
2412
- "Heir",
2413
- "Other"
2414
- ]
2415
- });
2416
-
2417
- const socialSecurityDisabilityReceivingBenefits$1 = (scope) => sbsYesNoRadio({
2418
- name: scope ? scope + ':' + 'Social_Security_Disability_Receiving_Benefits' : 'Social_Security_Disability_Receiving_Benefits',
2419
- label: 'Are You Currently Receiving Social Security Disability Benefits?'
2420
- });
2421
-
2422
- const socialSecurityDisabilityReceivingBenefitsCenter = (scope) => verticalYesNoRadio({
2423
- name: scope ? scope + ':' + 'Social_Security_Disability_Receiving_Benefits' : 'Social_Security_Disability_Receiving_Benefits',
2424
- });
2425
-
2426
- const taxLevelCenter = () => verticalSelect({
2427
- name: 'Tax_Level',
2428
- options: [
2429
- "Federal",
2430
- "State",
2431
- "Local"
2432
- ]
2433
- });
2434
-
2435
- const taxIssueTypeCenter = () => verticalSelect({
2436
- name: 'Tax_Issue_Type',
2437
- options: [
2438
- "Income",
2439
- "Property",
2440
- "Corporate"
2441
- ]
2442
- });
2443
-
2444
- const taxProblemDetailsCenter = () => verticalSelect({
2445
- name: 'Tax_Problem_Details',
2446
- options: [
2447
- "Assets Seized",
2448
- "Bank Account Levied",
2449
- "Cannot Pay Taxes",
2450
- "Innocent Spouse",
2451
- "Lien Filed",
2452
- "Received Audit Notice",
2453
- "Unpaid Interest",
2454
- "Wage Garnishment",
2455
- "Other"
2456
- ]
2457
- });
2458
-
2459
- const totalDebtCenter = () => verticalSelect({
2460
- name: 'Total_Debt',
2461
- options: [
2462
- "Less than 5K",
2463
- "5K to 10K",
2464
- "10K to 20K",
2465
- "20K to 50K",
2466
- "More than 50K"
2467
- ]
2468
- });
2469
-
2470
- const totalMonthlyIncomeCenter = () => verticalSelect({
2471
- name: 'Total_Monthly_Income',
2472
- options: [
2473
- "Less than 1K",
2474
- "1K to 2K",
2475
- "2K to 3K",
2476
- "3K to 4K",
2477
- "4K to 5K",
2478
- "5K to 7K",
2479
- "7K to 10K",
2480
- "10K to 15K",
2481
- "More than 15K"
2482
- ]
2483
- });
2484
-
2485
- const TCPAConsent = () => ({
2486
- $formkit: 'checkbox',
2487
- label: '$meta.tcpaLanguage',
2488
- name: 'TCPA_Opt_In',
2489
- 'data-tf-sensitive': 'false',
2490
- validation: 'required|accepted',
2491
- validationMessages: {
2492
- required: 'Consent is required',
2493
- accepted: 'Consent is required'
2494
- },
2495
- classes: {
2496
- label: "t-text-xs t-text-slate-500 t-font-normal"
2497
- }
2498
- });
2499
-
2500
- const typeOfAlcoholTest$1 = (scope) => sbsSelect({
2501
- name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
2502
- label: 'Type of Alcohol Test Performed?',
2503
- options: [
2504
- "No Test",
2505
- "Refused Test",
2506
- "Breath Test",
2507
- "Blood Test",
2508
- "Urine Test",
2509
- "Don't Know"
2510
- ]
2511
- });
2512
-
2513
- const typeOfAlcoholTestCenter = (scope) => verticalSelect({
2514
- name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
2515
- options: [
2516
- "No Test",
2517
- "Refused Test",
2518
- "Breath Test",
2519
- "Blood Test",
2520
- "Urine Test",
2521
- "Don't Know"
2522
- ]
2523
- });
2524
-
2525
- const typeOfAssets$1 = (scope) => col2Checkbox({
2526
- name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
2527
- label: 'Type of Assets:',
2528
- options: [
2529
- "Business Interests",
2530
- "Cash",
2531
- "Life Insurance Policies",
2532
- "Pensions/Retirement",
2533
- "Personal Possessions",
2534
- "Property",
2535
- "Stock/Bonds"
2536
- ]
2537
- });
2538
-
2539
- const typeOfAssetsCenter = (scope) => verticalCol2Checkbox({
2540
- name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
2541
- options: [
2542
- "Business Interests",
2543
- "Cash",
2544
- "Life Insurance Policies",
2545
- "Pensions/Retirement",
2546
- "Personal Possessions",
2547
- "Property",
2548
- "Stock/Bonds"
2549
- ]
2550
- });
2551
-
2552
- const typeOfPropertyCenter = () => verticalSelect({
2553
- name: 'Type_Of_Property',
2554
- options: [
2555
- "Residential",
2556
- "Commercial",
2557
- "Industrial",
2558
- "Agricultural",
2559
- "Recreational",
2560
- "Other"
2561
- ]
2562
- });
2563
-
2564
- const trafficViolationsCenter = () => verticalSelect({
2565
- name: 'Traffic_Violations',
2566
- options: [
2567
- "Disregarding a Red Light",
2568
- "Disregarding a Stop Sign",
2569
- "DMV Letter About License",
2570
- "DUI/DWI",
2571
- "Failure to Appear in Court",
2572
- "License Suspended/Revoked",
2573
- "Minor in Possession of Alcohol",
2574
- "No Child Safety Seat",
2575
- "No Liability Insurance",
2576
- "No Seat Belt",
2577
- "Open Container of Alcohol",
2578
- "Parking Ticket",
2579
- "Racing",
2580
- "Speeding",
2581
- "Unpaid Traffic Tickets",
2582
- "Warrant Issue for Arrest",
2583
- "Other Violation"
2584
- ]
2585
- });
2586
-
2587
- const valueOfAssets$1 = (scope) => sbsSelect({
2588
- name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
2589
- label: 'Value of Your Assets?',
2590
- options: [
2591
- "Less than 50K",
2592
- "50K to 100K",
2593
- "100K to 250K",
2594
- "250K to 500K",
2595
- "500K to 1M",
2596
- "More than 1M"
2597
- ]
2598
- });
2599
-
2600
- const valueOfAssetsCenter = (scope) => verticalSelect({
2601
- name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
2602
- options: [
2603
- "Less than 50K",
2604
- "50K to 100K",
2605
- "100K to 250K",
2606
- "250K to 500K",
2607
- "500K to 1M",
2608
- "More than 1M"
2609
- ]
2610
- });
2611
-
2612
- const veteransDisabilityAppliedCenter = () => verticalSelect({
2613
- name: 'Veterans_Disability_Applied',
2614
- options: [
2615
- "Yes, Claim filed and awaiting decision",
2616
- "Yes, Claim denied",
2617
- "Yes, Claim on appeal",
2618
- "Yes, Claim approved",
2619
- "Yes, Benefits awarded",
2620
- "No, Claim has not been filed"
2621
- ]
2622
- });
2623
-
2624
- const veteransDisabilityConditionsCenter = () => verticalCheckbox({
2625
- label: 'What Service Connected Conditions Does the Applicant Have? (select all that apply)',
2626
- name: 'Veterans_Disability_Conditions',
2627
- options: [
2628
- "Traumatic Physical Injury (broken bones, loss of limb)",
2629
- "Mental Injury",
2630
- "Occupational Disease",
2631
- "Repeated Trauma Injury",
2632
- "Other"
2633
- ]
2634
- });
2635
-
2636
- const veteransDisabilityRelationshipCenter = () => verticalSelect({
2637
- name: 'Veterans_Disability_Relationship',
2638
- options: [
2639
- "Self, Active Duty",
2640
- "Self, Active Reserve",
2641
- "Self, Discharged from Active Duty",
2642
- "Self, Discharged as Reservist",
2643
- "Surviving Family Member",
2644
- "Other"
2645
- ]
2646
- });
2647
-
2648
- const veteransDisabilityInjuredCenter = () => verticalYesNoRadio({
2649
- name: 'Veterans_Disability_Injured',
2650
- });
2651
-
2652
- const wouldLikeLawyerToCenter = () => verticalRadio({
2653
- name: 'Would_Like_Lawyer_To',
2654
- options: [
2655
- "Give me general advice to protect my interests",
2656
- "Act as my agent in the transaction",
2657
- "Assist me in the remaining stages of the transaction",
2658
- "Bring a lawsuit against another party",
2659
- "Defend against a lawsuit filed by another party",
2660
- "Other"
2661
- ]
2662
- });
2663
-
2664
- const zipcodeCenter = () => text({
2665
- placeholder: '#####',
2666
- help: "We try to match you with local legal help.",
2667
- name: 'Zip',
2668
- maxlength: 5,
2669
- inputmode: "numeric",
2670
- autocomplete: 'postal-code',
2671
- validation: 'required|matches:/^[0-9]{5}$/',
2672
- validationMessages: {
2673
- required: 'Zip Code is required',
2674
- matches: 'Invalid Zip Code'
2675
- },
2676
- wrapperClass: 't-flex t-justify-center',
2677
- messagesClass: 't-flex t-justify-center',
2678
- inputClass: 't-text-center',
2679
- helpClass: 't-mt-2.5 !t-text-sm t-text-center'
2680
- });
2681
-
2682
-
2683
- // ------ Question Groups
2684
-
2685
- // NOTE: name must be unique within a form!
2686
- const group = (name, updates) => {
2687
- return merge({
2688
- $cmp: 'FormKit',
2689
- props: {
2690
- type: 'group',
2691
- key: name,
2692
- id: name,
2693
- name: name
2694
- }
2695
- }, updates)
2696
- };
2697
-
2698
- const AutoAndCarAccidentsQuestions = (condition, scope) => group(
2699
- 'AutoAndCarAccidentsQuestions',
2700
- {
2701
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
2702
- children: [
2703
- haveAttorney$1(scope),
2704
- incidentDate$1(scope),
2705
- atFault$1(scope),
2706
- primaryInjury$1(scope),
2707
- doctorTreatment$1(scope),
2708
- policeReportFiled$1(scope)
2709
- ]
2710
- }
2711
- );
2712
-
2713
- const ChildCustodyQuestions = (condition, scope) => group(
2714
- 'ChildCustodyQuestions',
2715
- {
2716
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
2717
- children: [
2718
- haveAttorney$1(scope),
2719
- childRelationship$1(scope),
2720
- childHome$1(scope),
2721
- childPrimaryCaregiver$1(scope),
2722
- degreeOfInterest$1(scope),
2723
- lawyerPaymentMethod$1(scope)
2724
- ]
2725
- }
2726
- );
2727
-
2728
- const criminalTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
2729
- name: 'Type_Of_Legal_Problem_Display',
2730
- options: [
2731
- 'Criminal Defense',
2732
- 'Victim of a Crime',
2733
- 'DUI and DWI',
2734
- 'Expungement',
2735
- 'Harassment',
2736
- 'Not Sure or Other',
2737
- ]
2738
- }, updates));
2739
-
2740
- const DivorceQuestions = (condition, scope) => group(
2741
- 'DivorceQuestions',
2742
- {
2743
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
2744
- children: [
2745
- haveAttorney$1(scope),
2746
- maritalStatus$1(scope),
2747
- haveChildren$1(scope),
2748
- degreeOfInterest$1(scope),
2749
- lawyerPaymentMethod$1(scope)
2750
- ]
2751
- }
2752
- );
2753
-
2754
- const DUIAndDWIQuestions = (condition, scope) => group(
2755
- 'DUIAndDWIQuestions',
2756
- {
2757
- if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
2758
- children: [
2759
- haveAttorney$1(scope),
2760
- incidentDate$1(scope),
2761
- priorAlcoholOffenses$1(scope),
2762
- typeOfAlcoholTest$1(scope),
2763
- bloodContentAlcoholTest$1(scope),
2764
- pendingCharges$1(scope),
2765
- degreeOfInterestHelp(scope)
2766
- ]
2767
- }
2768
- );
2769
-
2770
- const PersonalInjuryQuestions = (condition, scope) => group(
2771
- 'PersonalInjuryQuestions',
2772
- {
2773
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
2774
- children: [
2775
- haveAttorney$1(scope),
2776
- incidentDate$1(scope),
2777
- claimStatus$1(scope),
2778
- atFault$1(scope),
2779
- primaryInjury$1(scope),
2780
- doctorTreatment$1(scope)
2781
- ]
2782
- }
2783
- );
2784
-
2785
- const PowerofAttorneyQuestions = (condition, scope) => group(
2786
- 'PowerofAttorneyQuestions',
2787
- {
2788
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
2789
- children: [
2790
- haveAttorney$1(scope),
2791
- degreeOfInterestHelp(scope)
2792
- ]
2793
- }
2794
- );
2795
-
2796
- const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) => group(
2797
- 'SocialSecurityDisabilityAndInsuranceQuestions',
2798
- {
2799
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"'),
2800
- children: [
2801
- haveAttorney$1(scope),
2802
- applicantAge$1(scope),
2803
- disabilityConditionStopWork$1(scope),
2804
- disabilityWorkHistory$1(scope),
2805
- socialSecurityDisabilityReceivingBenefits$1(scope),
2806
- doctorTreatment$1(scope)
2807
- ]
2808
- }
2809
- );
2810
-
2811
- const WillsAndTrustsQuestions = (condition, scope) => group(
2812
- 'WillsAndTrustsQuestions',
2813
- {
2814
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
2815
- children: [
2816
- haveAttorney$1(scope),
2817
- valueOfAssets$1(scope),
2818
- typeOfAssets$1(scope),
2819
- roleInMatterProbate$1(scope),
2820
- estateLegalServicesNeeded$1(scope),
2821
- degreeOfInterestHelp(scope)
2822
- ]
2823
- }
2824
- );
2825
-
2826
- const WorkersCompensationQuestions = (condition, scope) => group(
2827
- 'WorkersCompensationQuestions',
2828
- {
2829
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
2830
- children: [
2831
- haveAttorney$1(scope),
2832
- incidentDate$1(scope),
2833
- claimStatus$1(scope),
2834
- primaryInjury$1(scope),
2835
- causeOfInjury$1(scope),
2836
- doctorTreatment$1(scope)
2837
- ]
2838
- }
2839
- );
2840
-
2841
- const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
2842
- const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
2843
-
2844
- const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
2845
-
2846
- const findLastInput = (n) => {
2847
- if (isInput(n)) {
2848
- return n
2849
- }
2850
- for (var i = n.children.length - 1; i >= 0; i--) {
2851
- if (typeof n.children === 'string') {
2852
- continue
2853
- }
2854
- const child = n.children[i];
2855
- if (isInput(child)) {
2856
- return child
2857
- }
2858
- const res = findLastInput(child);
2859
- if (res) {
2860
- return res
2861
- }
2862
- }
2863
- return null
2864
- };
2865
-
2866
- function crossSellQuestionsStepHeadline(updates) {
2867
- return {
2868
- $el: 'h3',
2869
- children: updates.headline || 'Tell Us About Your Situation',
2870
- attrs: {
2871
- 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'
2872
- }
2873
- }
2874
- }
2875
-
2876
- function crossSellQuestionsStepSubHeadline(updates) {
2877
- return {
2878
- $el: 'h5',
2879
- children: updates.subheadline || 'Tell us about your situation:',
2880
- attrs: {
2881
- class: 't-flex t-justify-center t-text-dark t-text-center !t-text-lg t-font-semibold t-pb-4 t-pt-0 t-px-3'
2882
- }
2883
- }
2884
- }
2885
-
2886
- function verticalStepHeadline(updates) {
2887
- return {
2888
- $el: 'h3',
2889
- children: updates.headline || 'Tell Us About Your Situation',
2890
- attrs: {
2891
- class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
2892
- }
2893
- }
2894
- }
2895
-
2896
-
2897
-
2898
- function commentsStepHeadline(updates) {
2899
- return {
2900
- $el: 'h3',
2901
- children: updates.headline || 'Additional Case Details',
2902
- attrs: {
2903
- 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 || '')
2904
- }
2905
- }
2906
- }
2907
-
2908
- function firstAndLastStepHeadline(updates) {
2909
- return {
2910
- $el: 'h3',
2911
- children: updates.headline || 'Please Provide a Contact Name',
2912
- attrs: {
2913
- 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 || '')
2914
- }
2915
- }
2916
- }
2917
-
2918
- function legalCrossSellsStepHeadline(updates) {
2919
- return {
2920
- $el: 'h3',
2921
- children: updates.headline || 'Do any of the following situations apply?',
2922
- attrs: {
2923
- 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 || '')
2924
- }
2925
- }
2926
- }
2927
-
2928
- function contactStepHeadline(updates) {
2929
- return {
2930
- $el: 'h3',
2931
- children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
2932
- attrs: {
2933
- 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 || '')
2934
- }
2935
- }
2936
- }
2937
-
2938
- function contactStepSubHeadline(updates) {
2939
- return {
2940
- $el: 'h5',
2941
- children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC,
2942
- attrs: {
2943
- 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 || '')
2944
- }
2945
- }
2946
- }
2947
-
2948
- const TRUSTED_FORM_JS = `(function() {
2949
- if (window.xxTrustedFormLoaded) {
2950
- return
2951
- }
2952
- var vid = '';
2953
- if (typeof window.zar !== 'undefined') {
2954
- vid = window.zar.getVID();
2955
- }
2956
- window.xxTrustedFormLoaded = true;
2957
- var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'
2958
- var tf = document.createElement('script');
2959
- tf.type = 'text/javascript'; tf.async = true;
2960
- 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();
2961
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);
2962
- })();`;
2963
-
2964
- function trustedFormScript() {
2965
- return {
2966
- $el: 'script',
2967
- // if: '$activeStep === $lastStep() && $getKey($meta, "trustedFormTOLPs." + $get(Type_Of_Legal_Problem).value, false) == true',
2968
- // Added everywhere:
2969
- if: '$activeStep === $lastStep()',
2970
- children: TRUSTED_FORM_JS
2971
- }
2972
- }
2973
-
2974
- const stepDefaults = (step, stepKey) => ({
2975
- $el: 'section',
2976
- if: '$stepEnabled("' + step + '")',
2977
- attrs: {
2978
- hidden: '$activeStep !== "' + step + '"',
2979
- key: stepKey ? stepKey : step
2980
- }
2981
- });
2982
-
2983
- function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = undefined, nextStepMap = undefined) {
2984
- if (typeof nextOnEnter === 'undefined') {
2985
- nextOnEnter = true;
2986
- }
2987
- if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
2988
- const lastInput = findLastInput(inputs[inputs.length - 1]);
2989
- if (lastInput && nextOnEnter === true) {
2990
- lastInput.onKeypress = NEXT_ON_ENTER;
2991
- }
2992
- if (lastInput && nextOnInput === true) {
2993
- lastInput.onInput = NEXT_ON_INPUT;
2994
- }
2995
- }
2996
-
2997
- return merge(
2998
- stepDefaults(name, stepKey),
2999
- {
3000
- children: [
3001
- {
3002
- $formkit: 'group',
3003
- id: name,
3004
- name: name,
3005
- nextStepMap: nextStepMap,
3006
- children: inputs
3007
- }
3008
- ]
3009
- }
3010
- )
3011
- }
3012
-
3013
- // Single question step
3014
- function sqstep(name, input, defaultHeadline, updates = {}) {
3015
- return step(
3016
- name,
3017
- [
3018
- verticalStepHeadline({ headline: updates.headline ?? defaultHeadline, headlineClass: updates.headlineClass }),
3019
- ...Array.isArray(input) ? input : [input],
3020
- ],
3021
- updates.nextOnEnter,
3022
- typeof updates.nextOnInput === 'undefined' ? true : updates.nextOnInput,
3023
- updates.stepKey,
3024
- updates.nextStepMap
3025
- )
3026
- }
3027
-
3028
- function commentsWithBankruptcyV2(updates = {}) {
3029
- return step(
3030
- 'commentsWithBankruptcy',
3031
- [
3032
- commentsStepHeadline(updates),
3033
- comments({
3034
- label: updates.label === undefined ? DEFAULT_COMMENTS_LABEL : updates.label,
3035
- placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
3036
- inputClass: updates.inputClass === undefined ? '!t-h-40' : updates.inputClass,
3037
- }),
3038
- bankruptcyCrossSell(),
3039
- {
3040
- $el: 'div',
3041
- if: '$get(CrossSell_Bankruptcy).value == true',
3042
- children: [
3043
- comments({
3044
- label: 'Bankruptcy or debt details:',
3045
- placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
3046
- inputClass: '!t-h-16'
3047
- }, 'CrossSell:Bankruptcy')
3048
- ],
3049
- }
3050
- ],
3051
- updates.nextOnEnter
3052
- )
3053
- }
3054
-
3055
- function contactInfoV2(updates = {}) {
3056
- return step(
3057
- 'contactInfo',
3058
- [
3059
- contactStepHeadline(updates),
3060
- contactStepSubHeadline(updates),
3061
- // Added TF everywhere
3062
- trustedFormScript(),
3063
- email(),
3064
- phone(),
3065
- TCPAConsent(),
3066
- secureIcon()
3067
- ],
3068
- updates.nextOnEnter
3069
- )
3070
- }
3071
-
3072
- function firstAndLastV2(updates = {}) {
3073
- return step(
3074
- 'firstAndLast',
3075
- [
3076
- firstAndLastStepHeadline(updates),
3077
- firstName(),
3078
- lastName()
3079
- ],
3080
- updates.nextOnEnter
3081
- )
3082
- }
3083
-
3084
-
3085
- function autoAndCarAccidentCrossSellQuestions(updates = {}) {
3086
- return step(
3087
- 'autoAndCarAccidentCrossSellQuestions',
3088
- [
3089
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Compensation' }),
3090
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your accident:' }),
3091
- AutoAndCarAccidentsQuestions("true", 'CrossSell:Auto_and_Car_Accidents'),
3092
- comments(
3093
- {
3094
- label: 'Accident Description:',
3095
- placeholder: 'Please describe your accident in a few words...',
3096
- inputClass: '!t-h-16'
3097
- },
3098
- 'CrossSell:Auto_and_Car_Accidents'
3099
- )
3100
- ],
3101
- updates.nextOnEnter
3102
- )
3103
- }
3104
-
3105
- function childCustodyCrossSellQuestions(updates = {}) {
3106
- return step(
3107
- 'childCustodyCrossSellQuestions',
3108
- [
3109
- crossSellQuestionsStepHeadline({ headline: 'Child Custody Information' }),
3110
- ChildCustodyQuestions("true", 'CrossSell:Child_Custody'),
3111
- comments(
3112
- {
3113
- label: 'Description:',
3114
- placeholder: 'Please describe your situation in a few words...',
3115
- inputClass: '!t-h-16'
3116
- },
3117
- 'CrossSell:Child_Custody'
3118
- )
3119
- ],
3120
- updates.nextOnEnter
3121
- )
3122
- }
3123
-
3124
- function divorceAndSeparationCrossSellQuestions(updates = {}) {
3125
- return step(
3126
- 'divorceAndSeparationCrossSellQuestions',
3127
- [
3128
- crossSellQuestionsStepHeadline({ headline: 'Divorce or Separation Information' }),
3129
- DivorceQuestions("true", 'CrossSell:Divorce_and_Separation'),
3130
- comments(
3131
- {
3132
- label: 'Description:',
3133
- placeholder: 'Please describe your situation in a few words...',
3134
- inputClass: '!t-h-16'
3135
- },
3136
- 'CrossSell:Divorce_and_Separation'
3137
- )
3138
- ],
3139
- updates.nextOnEnter
3140
- )
3141
- }
3142
-
3143
- function duiAndDWICrossSellQuestions(updates = {}) {
3144
- return step(
3145
- 'duiAndDWICrossSellQuestions',
3146
- [
3147
- crossSellQuestionsStepHeadline({ headline: 'About Your DUI/DWI' }),
3148
- DUIAndDWIQuestions("true", 'CrossSell:DUI_and_DWI'),
3149
- comments(
3150
- {
3151
- label: 'Incident Description:',
3152
- placeholder: 'Please describe your incident in a few words...',
3153
- inputClass: '!t-h-16'
3154
- },
3155
- 'CrossSell:DUI_and_DWI'
3156
- )
3157
- ],
3158
- updates.nextOnEnter
3159
- )
3160
- }
3161
-
3162
- function ssdiCrossSellQuestions(updates = {}) {
3163
- return step(
3164
- 'ssdiCrossSellQuestions',
3165
- [
3166
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Benefits' }),
3167
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your disability:' }),
3168
- SocialSecurityDisabilityAndInsuranceQuestions("true", 'CrossSell:Social_Security_Disability_and_Insurance'),
3169
- comments(
3170
- {
3171
- label: 'Description:',
3172
- placeholder: 'Please describe your situation in a few words...',
3173
- inputClass: '!t-h-16'
3174
- },
3175
- 'CrossSell:Social_Security_Disability_and_Insurance'
3176
- )
3177
- ],
3178
- updates.nextOnEnter
3179
- )
3180
- }
3181
-
3182
- function personalInjuryCrossSellQuestions(updates = {}) {
3183
- return step(
3184
- 'personalInjuryCrossSellQuestions',
3185
- [
3186
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Compensation' }),
3187
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your injury:' }),
3188
- PersonalInjuryQuestions("true", 'CrossSell:Personal_Injury'),
3189
- comments(
3190
- {
3191
- label: 'Injury Description:',
3192
- placeholder: 'Please describe your injury in a few words...',
3193
- inputClass: '!t-h-16'
3194
- },
3195
- 'CrossSell:Personal_Injury'
3196
- )
3197
- ],
3198
- updates.nextOnEnter
3199
- )
3200
- }
3201
-
3202
- function powerOfAttorneyCrossSellQuestions(updates = {}) {
3203
- return step(
3204
- 'powerOfAttorneyCrossSellQuestions',
3205
- [
3206
- crossSellQuestionsStepHeadline({ headline: 'Power of Attorney Information' }),
3207
- PowerofAttorneyQuestions("true", 'CrossSell:Power_of_Attorney'),
3208
- comments(
3209
- {
3210
- label: 'Description:',
3211
- placeholder: 'Please describe your situation in a few words...',
3212
- inputClass: '!t-h-16'
3213
- },
3214
- 'CrossSell:Power_of_Attorney'
3215
- )
3216
- ],
3217
- updates.nextOnEnter
3218
- )
3219
- }
3220
-
3221
- function willsAndTrustsCrossSellQuestions(updates = {}) {
3222
- return step(
3223
- 'willsAndTrustsCrossSellQuestions',
3224
- [
3225
- crossSellQuestionsStepHeadline({ headline: 'Will or Trust Information' }),
3226
- WillsAndTrustsQuestions("true", 'CrossSell:Wills_and_Trusts'),
3227
- comments(
3228
- {
3229
- label: 'Description:',
3230
- placeholder: 'Please describe your situation in a few words...',
3231
- inputClass: '!t-h-16'
3232
- },
3233
- 'CrossSell:Wills_and_Trusts'
3234
- )
3235
- ],
3236
- updates.nextOnEnter
3237
- )
3238
- }
3239
-
3240
- function workersCompensationCrossSellQuestions(updates = {}) {
3241
- return step(
3242
- 'workersCompensationCrossSellQuestions',
3243
- [
3244
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Benefits' }),
3245
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your injury:' }),
3246
- WorkersCompensationQuestions("true", 'CrossSell:Workers_Compensation'),
3247
- comments(
3248
- {
3249
- label: 'Injury Description:',
3250
- placeholder: 'Please describe your injury in a few words...',
3251
- inputClass: '!t-h-16'
3252
- },
3253
- 'CrossSell:Workers_Compensation'
3254
- )
3255
- ],
3256
- updates.nextOnEnter
3257
- )
3258
- }
3259
-
3260
- function legalCrossSells(updates = {}) {
3261
- return step(
3262
- 'legalCrossSells',
3263
- [
3264
- legalCrossSellsStepHeadline(updates),
3265
- legalCrossSells$1(),
3266
- ],
3267
- updates.nextOnEnter,
3268
- false,
3269
- '$get(Type_Of_Legal_Problem).value'
3270
- )
3271
- }
3272
-
3273
- function generalTOLP(updates = {}) {
3274
- return step(
3275
- 'generalTOLP',
3276
- [
3277
- generalTOLPCenter(updates.input),
3278
- ],
3279
- updates.nextOnEnter,
3280
- updates.nextOnInput,
3281
- updates.stepKey,
3282
- updates.nextStepMap
3283
- )
3284
- }
3285
-
3286
- function zipcode(updates = {}) {
3287
- return sqstep(
3288
- 'zipcode',
3289
- zipcodeCenter(),
3290
- 'Please verify your Zip Code',
3291
- updates
3292
- )
3293
- }
3294
-
3295
- function maritalStatus(updates = {}) {
3296
- return sqstep(
3297
- 'maritalStatus',
3298
- maritalStatusCenter(),
3299
- 'What is your marital status?',
3300
- updates
3301
- )
3302
- }
3303
-
3304
- function civilLawsuitTOLPDisplay(updates = {}) {
3305
- return sqstep(
3306
- 'civilLawsuitTOLPDisplay',
3307
- civilLawsuitTOLPDisplayCenter(),
3308
- 'What type of lawsuit would you like to file?',
3309
- updates
3310
- )
3311
- }
3312
-
3313
- function criminalTOLPDisplay(updates = {}) {
3314
- return sqstep(
3315
- 'criminalTOLPDisplay',
3316
- criminalTOLPDisplayCenter(),
3317
- 'Which type of criminal issue?',
3318
- updates
3319
- )
3320
- }
3321
-
3322
- function employmentAndWorkplaceTOLPDisplay(updates = {}) {
3323
- return sqstep(
3324
- 'employmentAndWorkplaceTOLPDisplay',
3325
- employmentAndWorkplaceTOLPDisplayCenter(),
3326
- 'What type of workplace issue?',
3327
- updates
3328
- )
3329
- }
3330
-
3331
- function landlordTenantIssue(updates = {}) {
3332
- return sqstep(
3333
- 'landlordTenantIssue',
3334
- landlordTenantIssueRadioCenter(),
3335
- 'What is the landlord / tenant issue?',
3336
- updates
3337
- )
3338
- }
3339
-
3340
- function realEstateTOLPDisplay(updates = {}) {
3341
- return sqstep(
3342
- 'realEstateTOLPDisplay',
3343
- realEstateTOLPDisplayCenter(),
3344
- 'What type of real estate issue?',
3345
- updates
3346
- )
3347
- }
3348
-
3349
- function haveChildren(updates = {}) {
3350
- return sqstep(
3351
- 'haveChildren',
3352
- haveChildrenCenter(),
3353
- 'Do you have children?',
3354
- updates
3355
- )
3356
- }
3357
-
3358
- function childRelationship(updates = {}) {
3359
- return sqstep(
3360
- 'childRelationship',
3361
- childRelationshipCenter(),
3362
- 'Your relationship to the children:',
3363
- updates
3364
- )
3365
- }
3366
-
3367
- function childHome(updates = {}) {
3368
- return sqstep(
3369
- 'childHome',
3370
- childHomeCenter(),
3371
- 'Who do the children currently live with?',
3372
- updates
3373
- )
3374
- }
3375
-
3376
- function childPrimaryCaregiver(updates = {}) {
3377
- return sqstep(
3378
- 'childPrimaryCaregiver',
3379
- childPrimaryCaregiverCenter(),
3380
- 'Who is the primary caregiver?',
3381
- updates
3382
- )
3383
- }
3384
-
3385
- function haveAttorney(updates = {}) {
3386
- return sqstep(
3387
- 'haveAttorney',
3388
- haveAttorneyCenter(),
3389
- 'Already working with an attorney?',
3390
- updates
3391
- )
3392
- }
3393
-
3394
- function degreeOfInterest(updates = {}) {
3395
- return sqstep(
3396
- 'degreeOfInterest',
3397
- degreeOfInterestCenter(),
3398
- 'Could you pay if your issue could be resolved?',
3399
- updates
3400
- )
3401
- }
3402
-
3403
- function lawyerPaymentMethod(updates = {}) {
3404
- return sqstep(
3405
- 'lawyerPaymentMethod',
3406
- lawyerPaymentMethodCenter(),
3407
- 'How will you pay if you decide to hire a lawyer?',
3408
- updates
3409
- )
3410
- }
3411
-
3412
- function incidentDate(updates = {}) {
3413
- return sqstep(
3414
- 'incidentDate',
3415
- incidentDateCenter(),
3416
- 'When did the incident occur?',
3417
- updates
3418
- )
3419
- }
3420
-
3421
- function doctorTreatment(updates = {}) {
3422
- return sqstep(
3423
- 'doctorTreatment',
3424
- doctorTreatmentCenter(),
3425
- 'Have you seen a doctor about this?',
3426
- updates
3427
- )
3428
- }
3429
-
3430
- function medicalMalpracticeInjuries(updates = {}) {
3431
- return sqstep(
3432
- 'medicalMalpracticeInjuries',
3433
- medicalMalpracticeInjuriesCenter(),
3434
- 'What injuries did you suffer?',
3435
- updates
3436
- )
3437
- }
3438
-
3439
- function atFault(updates = {}) {
3440
- return sqstep(
3441
- 'atFault',
3442
- atFaultCenter(),
3443
- 'Were you at fault?',
3444
- updates
3445
- )
3446
- }
3447
-
3448
- function primaryInjury(updates = {}) {
3449
- return sqstep(
3450
- 'primaryInjury',
3451
- primaryInjuryCenter(),
3452
- 'What was the primary injury?',
3453
- updates
3454
- )
3455
- }
3456
-
3457
- function policeReportFiled(updates = {}) {
3458
- return sqstep(
3459
- 'policeReportFiled',
3460
- policeReportFiledCenter(),
3461
- 'Was a police report filed?',
3462
- updates
3463
- )
3464
- }
3465
-
3466
- function totalMonthlyIncome(updates = {}) {
3467
- return sqstep(
3468
- 'totalMonthlyIncome',
3469
- totalMonthlyIncomeCenter(),
3470
- 'What is your total monthly income?',
3471
- updates
3472
- )
3473
- }
3474
-
3475
- function totalDebt(updates = {}) {
3476
- return sqstep(
3477
- 'totalDebt',
3478
- totalDebtCenter(),
3479
- 'What is your total debt?',
3480
- updates
3481
- )
3482
- }
3483
-
3484
- function ownRealEstate(updates = {}) {
3485
- return sqstep(
3486
- 'ownRealEstate',
3487
- ownRealEstateCenter(),
3488
- 'Do you own real estate?',
3489
- updates
3490
- )
3491
- }
3492
-
3493
- function valueOfAssets(updates = {}) {
3494
- return sqstep(
3495
- 'valueOfAssets',
3496
- valueOfAssetsCenter(),
3497
- 'What is the value of your assets?',
3498
- updates
3499
- )
3500
- }
3501
-
3502
- function businessServices(updates = {}) {
3503
- return sqstep(
3504
- 'businessServices',
3505
- businessServicesCenter(),
3506
- 'What legal services do you need?',
3507
- updates
3508
- )
3509
- }
3510
-
3511
- function businessType(updates = {}) {
3512
- return sqstep(
3513
- 'businessType',
3514
- businessTypeCenter(),
3515
- 'Is the business public or private?',
3516
- updates
3517
- )
3518
- }
3519
-
3520
- function employerType(updates = {}) {
3521
- return sqstep(
3522
- 'employerType',
3523
- employerTypeCenter(),
3524
- 'What type of employer is it?',
3525
- updates
3526
- )
3527
- }
3528
-
3529
- function numEmployeesOfBusiness(updates = {}) {
3530
- return sqstep(
3531
- 'numEmployeesOfBusiness',
3532
- numEmployeesOfBusinessCenter(),
3533
- 'How many employees does the business have?',
3534
- updates
3535
- )
3536
- }
3537
-
3538
- function civilRightsType(updates = {}) {
3539
- return sqstep(
3540
- 'civilRightsType',
3541
- civilRightsTypeCenter(),
3542
- 'How were your rights violated?',
3543
- updates
3544
- )
3545
- }
3546
-
3547
- function lawsuitOtherParty(updates = {}) {
3548
- return sqstep(
3549
- 'lawsuitOtherParty',
3550
- lawsuitOtherPartyCenter(),
3551
- 'What best describes the other party in the lawsuit?',
3552
- updates
3553
- )
3554
- }
3555
-
3556
- function crimeCommittedDate(updates = {}) {
3557
- return sqstep(
3558
- 'crimeCommittedDate',
3559
- crimeCommittedDateCenter(),
3560
- 'When was the alleged crime?',
3561
- updates
3562
- )
3563
- }
3564
-
3565
- function roleInMatterCriminal(updates = {}) {
3566
- return sqstep(
3567
- 'roleInMatterCriminal',
3568
- roleInMatterCriminalCenter(),
3569
- 'What is your role in this matter?',
3570
- updates
3571
- )
3572
- }
3573
-
3574
- function pendingCharges(updates = {}) {
3575
- return sqstep(
3576
- 'pendingCharges',
3577
- pendingChargesCenter(),
3578
- 'Do you have any pending charges?',
3579
- updates
3580
- )
3581
- }
3582
-
3583
- function consumerLawyerType(updates = {}) {
3584
- return sqstep(
3585
- 'consumerLawyerType',
3586
- consumerLawyerTypeCenter(),
3587
- 'What best describes your issue?',
3588
- updates
3589
- )
3590
- }
3591
-
3592
- function bloodContentAlcoholTest(updates = {}) {
3593
- return sqstep(
3594
- 'bloodContentAlcoholTest',
3595
- bloodContentAlcoholTestCenter(),
3596
- 'What was your blood alcohol content?',
3597
- updates
3598
- )
3599
- }
3600
-
3601
- function priorAlcoholOffenses(updates = {}) {
3602
- return sqstep(
3603
- 'priorAlcoholOffenses',
3604
- priorAlcoholOffensesCenter(),
3605
- 'Do you have prior alcohol offenses?',
3606
- updates
3607
- )
3608
- }
3609
-
3610
- function typeOfAlcoholTest(updates = {}) {
3611
- return sqstep(
3612
- 'typeOfAlcoholTest',
3613
- typeOfAlcoholTestCenter(),
3614
- 'What type of alcohol test was performed?',
3615
- updates
3616
- )
3617
- }
3618
-
3619
- function driversLicenseType(updates = {}) {
3620
- return sqstep(
3621
- 'driversLicenseType',
3622
- driversLicenseTypeCenter(),
3623
- 'What type of license do you have?',
3624
- updates
3625
- )
3626
- }
3627
-
3628
- function trafficViolations(updates = {}) {
3629
- return sqstep(
3630
- 'trafficViolations',
3631
- trafficViolationsCenter(),
3632
- 'What type of traffic violation?',
3633
- updates
3634
- )
3635
- }
3636
-
3637
- function haveCourtDate(updates = {}) {
3638
- return sqstep(
3639
- 'haveCourtDate',
3640
- haveCourtDateCenter(),
3641
- 'Do you have a court date?',
3642
- updates
3643
- )
3644
- }
3645
-
3646
- function applicantOccupation(updates = {}) {
3647
- return sqstep(
3648
- 'applicantOccupation',
3649
- applicantOccupationCenter(),
3650
- 'What is the applicant\'s occupation?',
3651
- updates
3652
- )
3653
- }
3654
-
3655
- function applicantAge(updates = {}) {
3656
- return sqstep(
3657
- 'applicantAge',
3658
- applicantAgeCenter(),
3659
- 'What is the applicant\'s age?',
3660
- updates
3661
- )
3662
- }
3663
-
3664
- function applicantLTDisabilityPolicy(updates = {}) {
3665
- return sqstep(
3666
- 'applicantLTDisabilityPolicy',
3667
- applicantLTDisabilityPolicyCenter(),
3668
- 'Does the applicant have a long-term disability policy?',
3669
- updates
3670
- )
3671
- }
3672
-
3673
- function applicantDisabilityHowObtain(updates = {}) {
3674
- return sqstep(
3675
- 'applicantDisabilityHowObtain',
3676
- applicantDisabilityHowObtainCenter(),
3677
- 'How did the applicant obtain the disability policy?',
3678
- updates
3679
- )
3680
- }
3681
-
3682
- function applicantPreviouslyAppliedLtdBenefits(updates = {}) {
3683
- return sqstep(
3684
- 'applicantPreviouslyAppliedLtdBenefits',
3685
- applicantPreviouslyAppliedLtdBenefitsCenter(),
3686
- 'Has the applicant previously applied for long-term disability benefits?',
3687
- updates
3688
- )
3689
- }
3690
-
3691
- function applicantReceivedDisabilityBenefits(updates = {}) {
3692
- return sqstep(
3693
- 'applicantReceivedDisabilityBenefits',
3694
- applicantReceivedDisabilityBenefitsCenter(),
3695
- 'Has the applicant received disability benefits for this claim?',
3696
- updates
3697
- )
3698
- }
3699
-
3700
- function applicantMonthlySalary(updates = {}) {
3701
- return sqstep(
3702
- 'applicantMonthlySalary',
3703
- applicantMonthlySalaryCenter(),
3704
- 'Applicant\'s monthly pay when last working:',
3705
- updates
3706
- )
3707
- }
3708
-
3709
- function claimStatus(updates = {}) {
3710
- return sqstep(
3711
- 'claimStatus',
3712
- claimStatusCenter(),
3713
- 'What is the status of the claim?',
3714
- updates
3715
- )
3716
- }
3717
-
3718
- function disabilityConditionStopWork(updates = {}) {
3719
- return sqstep(
3720
- 'disabilityConditionStopWork',
3721
- disabilityConditionStopWorkCenter(),
3722
- 'Do you expect to be out of work for at least a year?',
3723
- updates
3724
- )
3725
- }
3726
-
3727
- function disabilityWorkHistory(updates = {}) {
3728
- return sqstep(
3729
- 'disabilityWorkHistory',
3730
- disabilityWorkHistoryCenter(),
3731
- 'Have you had a full-time job in the past 5 years?',
3732
- updates
3733
- )
3734
- }
3735
-
3736
- function socialSecurityDisabilityReceivingBenefits(updates = {}) {
3737
- return sqstep(
3738
- 'socialSecurityDisabilityReceivingBenefits',
3739
- socialSecurityDisabilityReceivingBenefitsCenter(),
3740
- 'Are you receiving Social Security Disability benefits?',
3741
- updates
3742
- )
3743
- }
3744
-
3745
- function typeOfAssets(updates = {}) {
3746
- return sqstep(
3747
- 'typeOfAssets',
3748
- typeOfAssetsCenter(),
3749
- 'What type of assets are involved?',
3750
- updates
3751
- )
3752
- }
3753
-
3754
- function roleInMatterProbate(updates = {}) {
3755
- return sqstep(
3756
- 'roleInMatterProbate',
3757
- roleInMatterProbateCenter(),
3758
- 'What is your role in this matter?',
3759
- updates
3760
- )
3761
- }
3762
-
3763
- function estateLegalServicesNeeded(updates = {}) {
3764
- return sqstep(
3765
- 'estateLegalServicesNeeded',
3766
- estateLegalServicesNeededCenter(),
3767
- 'What legal services are needed?',
3768
- updates
3769
- )
3770
- }
3771
-
3772
- function realEstateArea(updates = {}) {
3773
- return sqstep(
3774
- 'realEstateArea',
3775
- realEstateAreaCenter(),
3776
- 'What area of real estate?',
3777
- updates
3778
- )
3779
- }
3780
-
3781
- function typeOfProperty(updates = {}) {
3782
- return sqstep(
3783
- 'typeOfProperty',
3784
- typeOfPropertyCenter(),
3785
- 'What type of property is involved?',
3786
- updates
3787
- )
3788
- }
3789
-
3790
- function amountPaymentsPastDue(updates = {}) {
3791
- return sqstep(
3792
- 'amountPaymentsPastDue',
3793
- amountPaymentsPastDueCenter(),
3794
- 'Total amount of payments past due:',
3795
- updates
3796
- )
3797
- }
3798
-
3799
- function loanAmount(updates = {}) {
3800
- return sqstep(
3801
- 'loanAmount',
3802
- loanAmountCenter(),
3803
- 'Total amount of the loan:',
3804
- updates
3805
- )
3806
- }
3807
-
3808
- function defaultNotice(updates = {}) {
3809
- return sqstep(
3810
- 'defaultNotice',
3811
- defaultNoticeCenter(),
3812
- 'Have you received a default notice from the lender?',
3813
- updates
3814
- )
3815
- }
3816
-
3817
- function wouldLikeLawyerTo(updates = {}) {
3818
- return sqstep(
3819
- 'wouldLikeLawyerTo',
3820
- wouldLikeLawyerToCenter(),
3821
- 'I would like the lawyer to:',
3822
- updates
3823
- )
3824
- }
3825
-
3826
- function countryOfCitizenship(updates = {}) {
3827
- return sqstep(
3828
- 'countryOfCitizenship',
3829
- countryOfCitizenshipCenter(),
3830
- 'What is your current country of citizenship?',
3831
- updates
3832
- )
3833
- }
3834
-
3835
- function immigrationLocation(updates = {}) {
3836
- return sqstep(
3837
- 'immigrationLocation',
3838
- immigrationLocationCenter(),
3839
- 'Where are you migrating to?',
3840
- updates
3841
- )
3842
- }
3843
-
3844
- function immigrationEntry(updates = {}) {
3845
- return sqstep(
3846
- 'immigrationEntry',
3847
- immigrationEntryCenter(),
3848
- 'How are you trying to enter the country?',
3849
- updates
3850
- )
3851
- }
3852
-
3853
- function immigrationType(updates = {}) {
3854
- return sqstep(
3855
- 'immigrationType',
3856
- immigrationTypeCenter(),
3857
- 'What type of immigration issue?',
3858
- updates
3859
- )
3860
- }
3861
-
3862
- function immigrationStatus(updates = {}) {
3863
- return sqstep(
3864
- 'immigrationStatus',
3865
- immigrationStatusCenter(),
3866
- 'Current statue of the immigration case:',
3867
- updates
3868
- )
3869
- }
3870
-
3871
- function immigrationDetails(updates = {}) {
3872
- return sqstep(
3873
- 'immigrationDetails',
3874
- immigrationDetailsCenter(),
3875
- 'Where is the person seeking immigration located?',
3876
- updates
3877
- )
3878
- }
3879
-
3880
- function landlordTenantParty(updates = {}) {
3881
- return sqstep(
3882
- 'landlordTenantParty',
3883
- landlordTenantPartyCenter(),
3884
- 'Which party are you?',
3885
- updates
3886
- )
3887
- }
3888
-
3889
- function patentAssistanceType(updates = {}) {
3890
- return sqstep(
3891
- 'patentAssistanceType',
3892
- patentAssistanceTypeCenter(),
3893
- 'What type of assistance do you need?',
3894
- updates
3895
- )
3896
- }
3897
-
3898
- function patentFor(updates = {}) {
3899
- return sqstep(
3900
- 'patentFor',
3901
- patentForCenter(),
3902
- 'What is the patent for?',
3903
- updates
3904
- )
3905
- }
3906
-
3907
- function veteransDisabilityRelationship(updates = {}) {
3908
- return sqstep(
3909
- 'veteransDisabilityRelationship',
3910
- veteransDisabilityRelationshipCenter(),
3911
- 'What is your relationship to the applicant?',
3912
- updates
3913
- )
3914
- }
3915
-
3916
- function veteransDisabilityInjured(updates = {}) {
3917
- return sqstep(
3918
- 'veteransDisabilityInjured',
3919
- veteransDisabilityInjuredCenter(),
3920
- 'Is the condition or injury related to military service?',
3921
- updates
3922
- )
3923
- }
3924
-
3925
- function veteransDisabilityConditions(updates = {}) {
3926
- return sqstep(
3927
- 'veteransDisabilityConditions',
3928
- veteransDisabilityConditionsCenter(),
3929
- 'What conditions or injuries are applicable?',
3930
- updates
3931
- )
3932
- }
3933
-
3934
- function veteransDisabilityApplied(updates = {}) {
3935
- return sqstep(
3936
- 'veteransDisabilityApplied',
3937
- veteransDisabilityAppliedCenter(),
3938
- 'Has the applicant applied for VA disability benefits?',
3939
- updates
3940
- )
3941
- }
3942
-
3943
- function criminalChargeType(updates = {}) {
3944
- return sqstep(
3945
- 'criminalChargeType',
3946
- criminalChargeTypeCenter(),
3947
- 'What type of criminal charge?',
3948
- updates
3949
- )
3950
- }
3951
-
3952
- function taxProblemDetails(updates = {}) {
3953
- return sqstep(
3954
- 'taxProblemDetails',
3955
- taxProblemDetailsCenter(),
3956
- 'Details of the tax problem:',
3957
- updates
3958
- )
3959
- }
3960
-
3961
- function taxLevel(updates = {}) {
3962
- return sqstep(
3963
- 'taxLevel',
3964
- taxLevelCenter(),
3965
- 'What level of tax issue?',
3966
- updates
3967
- )
3968
- }
3969
-
3970
- function taxIssueType(updates = {}) {
3971
- return sqstep(
3972
- 'taxIssueType',
3973
- taxIssueTypeCenter(),
3974
- 'What type of tax issue?',
3975
- updates
3976
- )
3977
- }
3978
-
3979
- function causeOfInjury(updates = {}) {
3980
- return sqstep(
3981
- 'causeOfInjury',
3982
- causeOfInjuryCenter(),
3983
- 'What was the cause of the injury?',
3984
- updates
3985
- )
3986
- }
3987
-
3988
- function causeOfDeath(updates = {}) {
3989
- return sqstep(
3990
- 'causeOfDeath',
3991
- causeOfDeathCenter(),
3992
- 'What was the cause of death?',
3993
- updates
3994
- )
3995
- }
3996
-
3997
- function relationshipToVictim(updates = {}) {
3998
- return sqstep(
3999
- 'relationshipToVictim',
4000
- relationshipToVictimCenter(),
4001
- 'What is your relationship to the victim?',
4002
- updates
4003
- )
4004
- }
4005
-
4006
- function criminalChargesFiled(updates = {}) {
4007
- return sqstep(
4008
- 'criminalChargesFiled',
4009
- criminalChargesFiledCenter(),
4010
- 'Have criminal charges been filed?',
4011
- updates
4012
- )
4013
- }
4014
-
4015
- const formNavigationV2 = () => ({
4016
- $el: 'div',
4017
- attrs: {
4018
- class: 'step-nav'
4019
- },
4020
- children: [
4021
- {
4022
- $formkit: 'button',
4023
- name: 'back_button',
4024
- onClick: '$setPreviousStep($prevStepFunc($get(form)))',
4025
- children: 'Back',
4026
- style: {
4027
- if: '$activeStep === $firstStep()',
4028
- then: 'visibility: hidden;'
4029
- }
4030
- },
4031
- {
4032
- $formkit: 'button',
4033
- name: 'next_button',
4034
- onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
4035
- children: {
4036
- if: '$activeStep === $firstStep()',
4037
- then: 'Start',
4038
- else: 'Next'
4039
- },
4040
- outerClass: {
4041
- if: '$activeStep === $lastStep()',
4042
- then: 't-hidden',
4043
- else: ''
4044
- },
4045
- style: {
4046
- if: '$activeStep === $lastStep()',
4047
- then: 'display: none;'
4048
- }
4049
- },
4050
- {
4051
- $formkit: 'submit',
4052
- name: 'submit_button',
4053
- label: 'Submit',
4054
- if: '$activeStep === $lastStep()',
4055
- style: {
4056
- if: '$activeStep !== $lastStep()',
4057
- then: 'display: none;'
4058
- }
4059
- }
4060
- ]
4061
- });
4062
-
4063
- const formDetails = () => ({
4064
- $el: 'pre',
4065
- if: '$urlParam("fdbg", "") == 1',
4066
- children: [
4067
- {
4068
- $el: 'pre',
4069
- children: '$stringify( $get(form).value )',
4070
- attrs: {
4071
- class: 't-text-xs',
4072
- style: 'overflow: scroll'
4073
- }
4074
- },
4075
- {
4076
- $el: 'pre',
4077
- children: ['activeStep: ', '$activeStep'],
4078
- attrs: {
4079
- class: 't-text-xs',
4080
- style: 'overflow: scroll'
4081
- }
4082
- },
4083
- {
4084
- $el: 'pre',
4085
- children: ['stepHistory: ', '$stepHistory'],
4086
- attrs: {
4087
- class: 't-text-xs',
4088
- style: 'overflow: scroll'
4089
- }
4090
- },
4091
- {
4092
- $el: 'pre',
4093
- children: ['stepQueue: ', '$stepQueue'],
4094
- attrs: {
4095
- class: 't-text-xs',
4096
- style: 'overflow: scroll'
4097
- }
4098
- },
4099
- {
4100
- $el: 'pre',
4101
- children: ['steps: ', '$stepKeys()'],
4102
- attrs: {
4103
- class: 't-text-xs',
4104
- style: 'overflow: scroll'
4105
- }
4106
- }
4107
- ]
4108
- });
4109
-
4110
- const schema = [
4111
- defaultMetaProps(),
4112
- formAnchor(),
4113
- {
4114
- $cmp: 'FormKit',
4115
- props: formProps({
4116
- formId: 'generalLegalSingle',
4117
- redirectMap: legalRedirectMap(),
4118
- valueOverrideMap: legalAllValueOverrideMap,
4119
- }),
4120
- children: [
4121
- progressBar(),
4122
- headline({
4123
- children: '$urlParam("hl", "Need Legal Help? Start Here!")',
4124
- if: '$activeStep === $firstStep()'
4125
- }),
4126
- defaultSubHeadline(),
4127
- ...hiddenInputsLegal,
4128
- {
4129
- $el: 'div',
4130
- attrs: {
4131
- class: 'form-body'
4132
- },
4133
- children: [
4134
- generalTOLP({
4135
- nextOnInput: false,
4136
- nextStepMap: nextStepsMapGeneralLegal,
4137
- headlineClass: 't-text-lg',
4138
- input: {
4139
- // TODO: move to common settings for this input?
4140
- placeholder: 'Select a Category',
4141
- innerClass: '!t-max-w-[275px] md:!t-max-w-xl'
4142
- }
4143
- }),
4144
- amountPaymentsPastDue(),
4145
- applicantAge(),
4146
- applicantDisabilityHowObtain(),
4147
- applicantLTDisabilityPolicy(),
4148
- applicantMonthlySalary(),
4149
- applicantOccupation({
4150
- nextOnInput: false
4151
- }),
4152
- applicantPreviouslyAppliedLtdBenefits(),
4153
- applicantReceivedDisabilityBenefits(),
4154
- atFault(),
4155
- bloodContentAlcoholTest(),
4156
- businessServices(),
4157
- businessType(),
4158
- causeOfDeath(),
4159
- causeOfInjury(),
4160
- childHome(),
4161
- childPrimaryCaregiver(),
4162
- childRelationship(),
4163
- // We removed Civil Lawsuit from TOLP dropdown for now
4164
- // steps.civilDefense({
4165
- // nextStepMap: forms.nextStepsMapCivilDefense,
4166
- // }),
4167
- civilLawsuitTOLPDisplay({
4168
- nextStepMap: nextStepsMapCivilTOLPDisplay
4169
- }),
4170
- civilRightsType(),
4171
- claimStatus(),
4172
- consumerLawyerType(),
4173
- countryOfCitizenship(),
4174
- crimeCommittedDate({
4175
- nextOnInput: false
4176
- }),
4177
- criminalChargeType(),
4178
- criminalChargesFiled(),
4179
- criminalTOLPDisplay({
4180
- nextStepMap: nextStepsMapCriminalTOLPDisplay
4181
- }),
4182
- defaultNotice(),
4183
- degreeOfInterest(),
4184
- disabilityConditionStopWork(),
4185
- disabilityWorkHistory(),
4186
- doctorTreatment(),
4187
- driversLicenseType(),
4188
- estateLegalServicesNeeded(),
4189
- employerType(),
4190
- employmentAndWorkplaceTOLPDisplay({
4191
- nextStepMap: nextStepsMapEmploymentAndWorkplaceTOLPDisplay
4192
- }),
4193
- haveAttorney(),
4194
- haveChildren(),
4195
- haveCourtDate(),
4196
- immigrationDetails(),
4197
- immigrationEntry(),
4198
- immigrationLocation(),
4199
- immigrationStatus(),
4200
- immigrationType(),
4201
- incidentDate({
4202
- nextOnInput: false
4203
- }),
4204
- landlordTenantIssue(),
4205
- landlordTenantParty(),
4206
- lawsuitOtherParty(),
4207
- lawyerPaymentMethod(),
4208
- loanAmount(),
4209
- maritalStatus(),
4210
- medicalMalpracticeInjuries(),
4211
- numEmployeesOfBusiness(),
4212
- ownRealEstate(),
4213
- patentAssistanceType(),
4214
- patentFor(),
4215
- pendingCharges(),
4216
- policeReportFiled(),
4217
- primaryInjury(),
4218
- priorAlcoholOffenses(),
4219
- realEstateArea(),
4220
- realEstateTOLPDisplay({
4221
- nextStepMap: nextStepsMapRealEstateTOLPDisplay
4222
- }),
4223
- relationshipToVictim(),
4224
- roleInMatterCriminal(),
4225
- roleInMatterProbate(),
4226
- socialSecurityDisabilityReceivingBenefits(),
4227
- taxIssueType(),
4228
- taxLevel(),
4229
- taxProblemDetails(),
4230
- totalDebt(),
4231
- totalMonthlyIncome(),
4232
- trafficViolations(),
4233
- typeOfAlcoholTest(),
4234
- typeOfAssets(),
4235
- typeOfProperty(),
4236
- valueOfAssets(),
4237
- veteransDisabilityApplied(),
4238
- veteransDisabilityConditions(),
4239
- veteransDisabilityInjured(),
4240
- veteransDisabilityRelationship(),
4241
- wouldLikeLawyerTo(),
4242
- zipcode(),
4243
- commentsWithBankruptcyV2({
4244
- nextOnEnter: false,
4245
- label: null,
4246
- headline: 'Please briefly describe your situation:',
4247
- headlineClass: '!t-text-dark',
4248
- inputClass: '!t-h-32'
4249
- }),
4250
- legalCrossSells({
4251
- headlineClass: '!t-text-dark'
4252
- }),
4253
- autoAndCarAccidentCrossSellQuestions(),
4254
- personalInjuryCrossSellQuestions(),
4255
- workersCompensationCrossSellQuestions(),
4256
- duiAndDWICrossSellQuestions(),
4257
- ssdiCrossSellQuestions(),
4258
- powerOfAttorneyCrossSellQuestions(),
4259
- willsAndTrustsCrossSellQuestions(),
4260
- divorceAndSeparationCrossSellQuestions(),
4261
- childCustodyCrossSellQuestions(),
4262
- firstAndLastV2({
4263
- headlineClass: '!t-text-dark'
4264
- }),
4265
- contactInfoV2({
4266
- nextOnEnter: false
4267
- }),
4268
- formNavigationV2(),
4269
- formDetails()
4270
- ]
4271
- }
4272
- ]
4273
- }
4274
- ];
4275
-
4276
- export { schema as default };