bhl-forms 0.0.59 → 0.0.60

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.
@@ -0,0 +1,2514 @@
1
+ function merge() {
2
+ return Object.assign({}, ...arguments)
3
+ }
4
+
5
+ function JALegalUrl(pageId) {
6
+ return 'https://justanswer.9pctbx.net/c/2880795/' + pageId + '/9320?sharedid=${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 formPropDefaults = {
12
+ type: 'form',
13
+ id: 'form',
14
+ config: { validationVisibility: 'submit' },
15
+ onSubmit: '$submit("https://httpbin.org/post", $prepData, $getRedirect)',
16
+ plugins: '$plugins',
17
+ actions: false,
18
+ prepop: {
19
+ fromURL: true
20
+ },
21
+ errorCodes: {
22
+ 403: "An Error Occurred",
23
+ 409: { abort: false },
24
+ 429: "An Error Occurred"
25
+ },
26
+ formClass: '!t-max-w-[38rem]'
27
+ };
28
+
29
+ function formProps(updates) {
30
+ return merge(
31
+ formPropDefaults,
32
+ updates
33
+ )
34
+ }
35
+
36
+ const metaDefaults = {
37
+ type: 'meta',
38
+ data: {
39
+ tcpaLanguage: TCPA_LANGUAGE
40
+ }
41
+ };
42
+
43
+ function metaProps(updates) {
44
+ return merge(
45
+ metaDefaults,
46
+ updates
47
+ )
48
+ }
49
+
50
+ const formAnchorDefaults = {
51
+ $el: 'div',
52
+ children: [
53
+ {
54
+ $el: 'div',
55
+ attrs: {
56
+ id: 'form-anchor',
57
+ class: 't-absolute',
58
+ style: { top: '-30px', left: 0 }
59
+ }
60
+ }
61
+ ],
62
+ attrs: {
63
+ class: 't-relative'
64
+ }
65
+ };
66
+
67
+ function formAnchor(updates) {
68
+ return merge(
69
+ formAnchorDefaults,
70
+ updates
71
+ )
72
+ }
73
+
74
+ const headlineDefaults = {
75
+ $el: 'h1',
76
+ attrs: {
77
+ 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'
78
+ }
79
+ };
80
+
81
+ function headline(updates) {
82
+ return merge(
83
+ headlineDefaults,
84
+ updates
85
+ )
86
+ }
87
+
88
+ const subHeadlineDefaults = {
89
+ $el: 'h3',
90
+ attrs: {
91
+ class: 't-flex t-justify-center t-text-center !t-text-base t-font-medium t-text-blue-500 t-px-10'
92
+ }
93
+ };
94
+
95
+
96
+ function subHeadline(updates) {
97
+ return merge(
98
+ subHeadlineDefaults,
99
+ updates
100
+ )
101
+ }
102
+
103
+ const privacyIconsDefault = {
104
+ $el: 'div',
105
+ if: '$activeStep === $lastStep()',
106
+ attrs: {
107
+ class: 't-flex t-justify-center'
108
+ },
109
+ children: [
110
+ {
111
+ $el: 'img',
112
+ attrs: {
113
+ loading: 'lazy',
114
+ alt: '',
115
+ style: { border: 0 },
116
+ src: 'https://d27hmee62k45vz.cloudfront.net/form-secure-privacy.png',
117
+ width: '320',
118
+ height: '100'
119
+ }
120
+ }
121
+ ]
122
+ };
123
+
124
+ function privacyIcons(updates) {
125
+ return merge(
126
+ privacyIconsDefault,
127
+ updates
128
+ )
129
+ }
130
+
131
+ const hiddenInputs = [
132
+ {
133
+ $formkit: 'hidden',
134
+ name: "vertical",
135
+ value: "Legal"
136
+ },
137
+ {
138
+ $formkit: 'hidden',
139
+ name: "TCPA_Language",
140
+ value: "$meta.tcpaLanguage"
141
+ },
142
+ {
143
+ $formkit: 'hidden',
144
+ name: "gclid",
145
+ value: null
146
+ },
147
+ {
148
+ $formkit: 'hidden',
149
+ name: "campaignid",
150
+ value: null
151
+ },
152
+ {
153
+ $formkit: 'hidden',
154
+ name: "s",
155
+ value: null
156
+ }
157
+ ];
158
+
159
+
160
+ const legalRedirectMapDefaults = {
161
+ "properties.Type_Of_Legal_Problem": {
162
+ 'Adoption': JALegalUrl('565949'),
163
+ 'Bankruptcy': JALegalUrl('1147978'),
164
+ 'Child Custody and Support': JALegalUrl('565949'),
165
+ 'Civil Lawsuit': JALegalUrl('897042'),
166
+ 'Consumer Lawyers': JALegalUrl('897042'),
167
+ 'Criminal and Felony': JALegalUrl('897012'),
168
+ 'Debt and Collections': JALegalUrl('1147978'),
169
+ 'Divorce and Separation': JALegalUrl('966410'),
170
+ 'DUI and DWI': JALegalUrl('897012'),
171
+ 'Elder Law': JALegalUrl('565949'),
172
+ 'Employment and Workplace': JALegalUrl('897014'),
173
+ 'Expungement': JALegalUrl('897012'),
174
+ 'Foreclosure': JALegalUrl('565923'),
175
+ 'Guardianship': JALegalUrl('565949'),
176
+ 'Landlord and Tenant': JALegalUrl('1315025'),
177
+ 'Power of Attorney': JALegalUrl('1097602'),
178
+ 'Probate and Estates': JALegalUrl('1097602'),
179
+ 'Product Liability': JALegalUrl('897042'),
180
+ 'Property Damage': JALegalUrl('897042'),
181
+ 'Real Estate': JALegalUrl('565923'),
182
+ 'Social Security Disability and Insurance': JALegalUrl('897033'),
183
+ 'Tax and IRS': JALegalUrl('1147978'),
184
+ 'Traffic and Tickets': JALegalUrl('808601'),
185
+ 'Unemployment': JALegalUrl('897014'),
186
+ 'Victim of a Crime': JALegalUrl('897012'),
187
+ 'Wills and Trusts': JALegalUrl('1097602'),
188
+ 'Workers Compensation': JALegalUrl('897014'),
189
+ 'Wrongful Termination': JALegalUrl('897014')
190
+ },
191
+ '*': JALegalUrl('808601')
192
+ };
193
+
194
+
195
+ function legalRedirectMap(updates) {
196
+ return merge(
197
+ legalRedirectMapDefaults,
198
+ updates
199
+ )
200
+ }
201
+
202
+ const legalCriminalValueOverrideMap = {
203
+ 'Type_Of_Legal_Problem_Display': {
204
+ 'Criminal Defense': {
205
+ 'Type_Of_Legal_Problem': 'Criminal and Felony'
206
+ },
207
+ 'Victim of a Crime': {
208
+ 'Type_Of_Legal_Problem': 'Victim of a Crime'
209
+ },
210
+ 'DUI and DWI': {
211
+ 'Type_Of_Legal_Problem': 'DUI and DWI'
212
+ },
213
+ 'Expungement': {
214
+ 'Type_Of_Legal_Problem': 'Expungement'
215
+ },
216
+ 'Harrassment': {
217
+ 'Type_Of_Legal_Problem': 'Criminal and Felony'
218
+ },
219
+ 'Not Sure or Other': {
220
+ 'Type_Of_Legal_Problem': 'Not Sure or Other'
221
+ }
222
+ }
223
+ };
224
+
225
+ // ------ Common Base Settings
226
+
227
+ const checkbox = (updates) => {
228
+ return merge({
229
+ $formkit: 'checkbox',
230
+ validation: 'required',
231
+ validationMessages: {
232
+ required: 'Field is required'
233
+ }
234
+ }, updates)
235
+ };
236
+
237
+ const sbsCheckbox = (updates) => {
238
+ updates.legendClass = 'legend-left required';
239
+ updates.fieldsetClass = '$reset side-by-side';
240
+ updates.optionsClass = 't-pl-1';
241
+ updates.innerClass = 't-flex t-items-center';
242
+ updates.wrapperClass = 't-mb-3';
243
+ return checkbox(updates)
244
+ };
245
+
246
+ const col2Checkbox = (updates) => {
247
+ updates.legendClass = 'required';
248
+ updates.fieldsetClass = '$reset';
249
+ updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
250
+ updates.innerClass = 't-items-start';
251
+ updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
252
+ return checkbox(updates)
253
+ };
254
+
255
+ const radio = (updates) => {
256
+ return merge({
257
+ $formkit: 'radio',
258
+ validation: 'required',
259
+ validationMessages: {
260
+ required: 'Field is required'
261
+ },
262
+ optionsClass: 't-pt-3 t-pl-1',
263
+ legendClass: 'required'
264
+ }, updates)
265
+ };
266
+
267
+ const col2Radio = (updates) => {
268
+ updates.legendClass = 'required';
269
+ updates.fieldsetClass = '$reset';
270
+ updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
271
+ updates.innerClass = 't-items-start';
272
+ updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
273
+ return radio(updates)
274
+ };
275
+
276
+ const sbsRadio = (updates) => {
277
+ updates.legendClass = 'legend-left required';
278
+ updates.fieldsetClass = '$reset side-by-side';
279
+ updates.optionsClass = 't-pl-1';
280
+ updates.innerClass = 't-flex t-items-center';
281
+ updates.wrapperClass = 't-mb-3';
282
+ return radio(updates)
283
+ };
284
+
285
+ const sbs2ColRadio = (updates) => {
286
+ updates.legendClass = 'legend-left-flex md:t-max-w-[40%] required';
287
+ updates.fieldsetClass = '$reset side-by-side-flex';
288
+ updates.optionsClass = 'md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125';
289
+ updates.innerClass = 't-flex t-items-start';
290
+ updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
291
+ return radio(updates)
292
+ };
293
+
294
+ const sbs2ItemRadio = (updates) => {
295
+ updates.legendClass = 'legend-left t-pb-1 required';
296
+ updates.fieldsetClass = '$reset side-by-side t-items-center';
297
+ updates.optionsClass = 't-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center';
298
+ updates.innerClass = 't-flex t-items-center';
299
+ updates.optionClass = 't-pr-1';
300
+ return radio(updates)
301
+ };
302
+
303
+ const sbsYesNoRadio = (updates) => {
304
+ updates.options = ['Yes', 'No'];
305
+ return sbs2ItemRadio(updates)
306
+ };
307
+
308
+ const select = (updates) => {
309
+ return merge({
310
+ $formkit: 'select',
311
+ placeholder: "Please Select",
312
+ validation: 'required',
313
+ validationMessages: {
314
+ required: 'Field is required'
315
+ },
316
+ inputClass: 't-bg-white',
317
+ labelClass: 'required'
318
+ }, updates)
319
+ };
320
+
321
+ const sbsSelect = (updates) => {
322
+ updates.labelClass = 'required';
323
+ updates.wrapperClass = 'side-by-side t-items-center';
324
+ updates.innerClass = 'select-height-content';
325
+ updates.helpClass = 't-mt-2.5 md:t-text-right md:t-mt-[-5px]';
326
+ return select(updates)
327
+ };
328
+
329
+ const text = (updates) => {
330
+ return merge({
331
+ $formkit: 'text',
332
+ validation: 'required',
333
+ validationMessages: {
334
+ required: 'Field is required'
335
+ },
336
+ labelClass: 'required'
337
+ }, updates)
338
+ };
339
+
340
+ const sbsText = (updates) => {
341
+ updates.wrapperClass = 'side-by-side t-items-center';
342
+ return text(updates)
343
+ };
344
+
345
+ const textArea = (updates) => {
346
+ return merge({
347
+ $formkit: 'textarea',
348
+ rows: 5,
349
+ maxlength: 1000,
350
+ validation: 'required',
351
+ validationMessages: {
352
+ required: 'Field is required'
353
+ },
354
+ labelClass: 'required'
355
+ }, updates)
356
+ };
357
+
358
+ const date = (updates) => {
359
+ return merge({
360
+ $formkit: 'DatePicker',
361
+ validation: 'required',
362
+ validationMessages: {
363
+ required: 'Field is required'
364
+ },
365
+ labelClass: 'required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500',
366
+ innerClass: 't-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500'
367
+ }, updates)
368
+ };
369
+
370
+ const sbsDate = (updates) => {
371
+ updates.wrapperClass = 'side-by-side t-items-center';
372
+ return date(updates)
373
+ };
374
+
375
+ // ------ Inputs
376
+
377
+ const amountPaymentsPastDue = () => sbsSelect({
378
+ label: 'Total Amount of Payments that are Past Due:',
379
+ name: 'Amount_Payments_Past_Due',
380
+ options: [
381
+ "$0 - $499",
382
+ "$500 - $999",
383
+ "$1,000 - $2,499",
384
+ "$2,500 - $4,999",
385
+ "$5,000 - $9,999",
386
+ "$10,000 - $24,999",
387
+ "$25,000 - $49,999",
388
+ "$50,000 - $99,999",
389
+ "More than $100,000"
390
+ ]
391
+ });
392
+
393
+ const applicantOccupation = () => sbsText({
394
+ label: "What is the Applicant's Occupation?",
395
+ name: 'Applicant_Occupation',
396
+ placeholder: "Occupation"
397
+ });
398
+
399
+
400
+ const applicantAge = () => sbsSelect({
401
+ label: 'Age of Applicant?',
402
+ name: 'Applicant_Age',
403
+ options: [
404
+ "18",
405
+ "19",
406
+ "20",
407
+ "21",
408
+ "22",
409
+ "23",
410
+ "24",
411
+ "25",
412
+ "26",
413
+ "27",
414
+ "28",
415
+ "29",
416
+ "30",
417
+ "31",
418
+ "32",
419
+ "33",
420
+ "34",
421
+ "35",
422
+ "36",
423
+ "37",
424
+ "38",
425
+ "39",
426
+ "40",
427
+ "41",
428
+ "42",
429
+ "43",
430
+ "44",
431
+ "45",
432
+ "46",
433
+ "47",
434
+ "48",
435
+ "49",
436
+ "50",
437
+ "51",
438
+ "52",
439
+ "53",
440
+ "54",
441
+ "55",
442
+ "56",
443
+ "57",
444
+ "58",
445
+ "59",
446
+ "60",
447
+ "61",
448
+ "62",
449
+ "63",
450
+ "64",
451
+ "65"
452
+ ]
453
+ });
454
+
455
+ const applicantDisabilityHowObtain = () => sbsSelect({
456
+ label: 'How Did Applicant Obtain the Disability Policy?',
457
+ name: 'Applicant_Disability_How_Obtain',
458
+ options: [
459
+ "Employer",
460
+ "Self",
461
+ "Other"
462
+ ]
463
+ });
464
+
465
+ const applicantPreviouslyAppliedLtdBenefits = () => sbsRadio({
466
+ name: 'Applicant_Previously_Apply_Ltd_Benefits',
467
+ label: 'Has Applicant Previously Applied for Long Term Disability Benefits?',
468
+ options: [
469
+ "Yes, claim pending",
470
+ "Yes, claim denied",
471
+ "No"
472
+ ]
473
+ });
474
+
475
+ const applicantMonthlySalary = () => sbsSelect({
476
+ label: "Applicant's Monthly Salary/Pay When Last at Work:",
477
+ name: 'Applicant_Monthly_Salary',
478
+ options: [
479
+ "< $1,000",
480
+ "$1,000 - $2,000",
481
+ "$2,000 - $3,000",
482
+ "$3,000 - $4,000",
483
+ "$4,000 - $5,000",
484
+ "$5,000 - $6,000",
485
+ "$6,000 - $7,000",
486
+ "$7,000 - $8,000",
487
+ "$8,000 - $9,000",
488
+ "$9,000 - $10,000",
489
+ ">$10,000"
490
+ ]
491
+ });
492
+
493
+ const applicantReceivedDisabilityBenefits = () => sbsRadio({
494
+ name: 'Applicant_Received_Disability_Benefits',
495
+ label: 'Has Applicant Ever Received Long Term Disability Benefits for this Claim?',
496
+ options: [
497
+ "Yes, currently receiving",
498
+ "Yes, appealing a decision to stop payment of benefits",
499
+ "No"
500
+ ]
501
+ });
502
+
503
+ const applicantLTDisabilityPolicy = () => sbsYesNoRadio({
504
+ name: 'Applicant_Lt_Disability_Policy',
505
+ label: 'Does Applicant have a Long Term Disability Policy?'
506
+ });
507
+
508
+ const atFault = () => sbsYesNoRadio({
509
+ name: 'At_Fault',
510
+ label: 'Were You at Fault?'
511
+ });
512
+
513
+ const bloodContentAlcholTest = () => sbsSelect({
514
+ label: 'Blood Alcohol Content Measured by Test:',
515
+ name: 'Blood_Alcohol_Content_Test',
516
+ options: [
517
+ "No Test",
518
+ "0.00% - 0.04%",
519
+ "0.05% - 0.08%",
520
+ "0.09% - 0.12%",
521
+ "0.13% - 0.16%",
522
+ "0.17% - 0.20%",
523
+ "More than 0.20%",
524
+ "Don't know"
525
+ ]
526
+ });
527
+
528
+ const businessServices = () => sbsSelect({
529
+ label: 'Legal Services Needed for Your Business:',
530
+ name: 'Business_Services',
531
+ options: [
532
+ "Business Formation",
533
+ "Contracts",
534
+ "Insurance and Liability",
535
+ "Mergers and Acquisition",
536
+ "Regulatory Compliance",
537
+ "Employee Dispute",
538
+ "Other"
539
+ ]
540
+ });
541
+
542
+ const businessType = () => sbs2ColRadio({
543
+ label: 'Is the Business Public or Private?',
544
+ name: 'Business_Type',
545
+ options: [
546
+ "Public",
547
+ "Private"
548
+ ]
549
+ });
550
+
551
+ const causeOfInjury = () => sbsSelect({
552
+ label: 'Cause of Injury:',
553
+ name: 'Cause_Of_Injury',
554
+ options: [
555
+ "Traumatic Physical Injury (Accident)",
556
+ "Repeated Trauma Injury",
557
+ "Mental Injury",
558
+ "Occupational Disease",
559
+ "Not Sure"
560
+ ]
561
+ });
562
+
563
+ const causeOfDeath = () => sbsSelect({
564
+ label: "What was the Cause of the Victim's Death?",
565
+ name: 'Cause_Of_Death',
566
+ options: [
567
+ "Vehicle Accident",
568
+ "Negligent/Careless Act",
569
+ "Reckless Act",
570
+ "Other"
571
+ ]
572
+ });
573
+
574
+ const childHome = () => sbsSelect({
575
+ label: 'With Whom Do the Children Currently Live?',
576
+ name: 'Child_Home',
577
+ options: [
578
+ 'Mother',
579
+ 'Father',
580
+ 'Grandparents',
581
+ 'Other'
582
+ ]
583
+ });
584
+
585
+ const childPrimaryCaregiver = () => sbsSelect({
586
+ label: 'Who is the Primary Caregiver?',
587
+ name: 'Child_Primary_Caregiver',
588
+ options: [
589
+ 'Mother',
590
+ 'Father',
591
+ 'Other'
592
+ ]
593
+ });
594
+
595
+ const childRelationship = () => sbsSelect({
596
+ label: 'Your Relationship to Child(ren):',
597
+ name: 'Child_Relationship',
598
+ options: [
599
+ 'Father',
600
+ 'Mother',
601
+ 'Grandparent',
602
+ 'Aunt/Uncle',
603
+ 'Other'
604
+ ]
605
+ });
606
+
607
+ const claimStatus = () => sbsSelect({
608
+ label: "Status of Claim:",
609
+ name: 'Claim_Status',
610
+ options: [
611
+ "No action taken yet",
612
+ "Demand for compensation made",
613
+ "Lawsuit filed",
614
+ "Other"
615
+ ]
616
+ });
617
+
618
+ const comments$1 = (updates) => textArea(
619
+ merge({
620
+ label: 'Please briefly describe your situation:',
621
+ name: 'Comments',
622
+ placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
623
+ }, updates)
624
+ );
625
+
626
+ const countryOfCitizenship = () => sbsSelect({
627
+ label: 'What is Your Current Country of Citizenship?',
628
+ name: 'Country_Of_Citizenship',
629
+ options: [
630
+ "Afghanistan",
631
+ "Albania",
632
+ "Algeria",
633
+ "Andorra",
634
+ "Angola",
635
+ "Antigua and Barbuda",
636
+ "Argentina",
637
+ "Armenia",
638
+ "Australia",
639
+ "Austria",
640
+ "Azerbaijan",
641
+ "Bahamas",
642
+ "The Bahrain",
643
+ "Bangladesh",
644
+ "Barbados",
645
+ "Belarus",
646
+ "Belgium",
647
+ "Belize",
648
+ "Benin",
649
+ "Bhutan",
650
+ "Bolivia",
651
+ "Bosnia and Herzegovina",
652
+ "Botswana",
653
+ "Brazil",
654
+ "Brunei",
655
+ "Bulgaria",
656
+ "Burkina Faso",
657
+ "Burundi",
658
+ "Cambodia",
659
+ "Cameroon",
660
+ "Canada",
661
+ "Cape Verde",
662
+ "Central African Republic",
663
+ "Chad",
664
+ "Chile",
665
+ "China",
666
+ "Colombia",
667
+ "Comoros",
668
+ "Congo (Congoâ Kinshasa)",
669
+ "Congo (Congoâ Brazzaville)",
670
+ "Costa Rica",
671
+ "Coted'Ivoire (Ivory Coast)",
672
+ "Croatia",
673
+ "Cuba",
674
+ "Cyprus",
675
+ "Czech Republic",
676
+ "Denmark",
677
+ "Djibouti",
678
+ "Dominica",
679
+ "Dominican Republic",
680
+ "Ecuador",
681
+ "Egypt",
682
+ "El Salvador",
683
+ "Equatorial Guinea",
684
+ "Eritrea",
685
+ "Estonia",
686
+ "Ethiopia",
687
+ "Fiji",
688
+ "Finland",
689
+ "France",
690
+ "Gabon",
691
+ "Gambia",
692
+ "Georgia",
693
+ "Germany",
694
+ "Ghana",
695
+ "Greece",
696
+ "Grenada",
697
+ "Guatemala",
698
+ "Guinea",
699
+ "Guinea-Bissau",
700
+ "Guyana",
701
+ "Haiti",
702
+ "Honduras",
703
+ "Hungary",
704
+ "Iceland",
705
+ "India",
706
+ "Indonesia",
707
+ "Iran",
708
+ "Iraq",
709
+ "Ireland",
710
+ "Israel",
711
+ "Italy",
712
+ "Jamaica",
713
+ "Japan",
714
+ "Jordan",
715
+ "Kazakhstan",
716
+ "Kenya",
717
+ "Kiribati",
718
+ "Korea (North Korea)",
719
+ "Korea (South Korea)",
720
+ "Kuwait",
721
+ "Kyrgyzstan",
722
+ "Laos",
723
+ "Latvia",
724
+ "Lebanon",
725
+ "Lesotho",
726
+ "Liberia",
727
+ "Libya",
728
+ "Liechtenstein",
729
+ "Lithuania",
730
+ "Luxembourg",
731
+ "Macedonia",
732
+ "Madagascar",
733
+ "Malawi",
734
+ "Malaysia",
735
+ "Maldives",
736
+ "Mali",
737
+ "Malta",
738
+ "Marshall Islands",
739
+ "Mauritania",
740
+ "Mauritius",
741
+ "Mexico",
742
+ "Micronesia",
743
+ "Moldova",
744
+ "Monaco",
745
+ "Mongolia",
746
+ "Montenegro",
747
+ "Morocco",
748
+ "Mozambique",
749
+ "Myanmar (Burma)",
750
+ "Namibia",
751
+ "Nauru",
752
+ "Nepal",
753
+ "Netherlands",
754
+ "New Zealand",
755
+ "Nicaragua",
756
+ "Niger",
757
+ "Nigeria",
758
+ "Norway",
759
+ "Oman",
760
+ "Pakistan",
761
+ "Palau",
762
+ "Panama",
763
+ "Papua New Guinea",
764
+ "Paraguay",
765
+ "Peru",
766
+ "Philippines",
767
+ "Poland",
768
+ "Portugal",
769
+ "Qatar",
770
+ "Romania",
771
+ "Russia",
772
+ "Rwanda",
773
+ "Saint Kitts and Nevis",
774
+ "SaintLucia",
775
+ "Saint Vincent and the Grenadines",
776
+ "Samoa",
777
+ "San Marino",
778
+ "Sao Tome and Principe",
779
+ "Saudi Arabia",
780
+ "Senegal",
781
+ "Serbia",
782
+ "Seychelles",
783
+ "Sierra Leone",
784
+ "Singapore",
785
+ "Slovakia",
786
+ "Slovenia",
787
+ "Solomon Islands",
788
+ "Somalia",
789
+ "South Africa",
790
+ "Spain",
791
+ "SriLanka",
792
+ "Sudan",
793
+ "Suriname",
794
+ "Swaziland",
795
+ "Sweden",
796
+ "Switzerland",
797
+ "Syria",
798
+ "Tajikistan",
799
+ "Tanzania",
800
+ "Thailand",
801
+ "Timor-Leste (East Timor)",
802
+ "Togo",
803
+ "Tonga",
804
+ "Trinidad and Tobago",
805
+ "Tunisia",
806
+ "Turkey",
807
+ "Turkmenistan",
808
+ "Tuvalu",
809
+ "Uganda",
810
+ "Ukraine",
811
+ "United Arab Emirates",
812
+ "United Kingdom",
813
+ "United States",
814
+ "Uruguay",
815
+ "Uzbekistan",
816
+ "Vanuatu",
817
+ "Vatican City",
818
+ "Venezuela",
819
+ "Vietnam",
820
+ "Yemen",
821
+ "Zambia",
822
+ "Zimbabwe"
823
+ ]
824
+ });
825
+
826
+ const crimeCommittedDate = () => sbsDate({
827
+ label: 'When was the Alleged Crime?',
828
+ name: 'Crime_Committed_Date'
829
+ });
830
+
831
+ const criminalChargeType = () => sbsSelect({
832
+ label: 'What Type of Charge?',
833
+ name: 'Criminal_Charge_Type',
834
+ options: [
835
+ "Felony",
836
+ "Misdemeanor",
837
+ "Juvenile",
838
+ "Other"
839
+ ]
840
+ });
841
+
842
+ const criminalChargesFiled = () => sbsRadio({
843
+ name: 'Criminal_Charges_Filed',
844
+ label: "Were Criminal Charges Filed?",
845
+ options: [
846
+ "Yes",
847
+ "No",
848
+ "Not Sure"
849
+ ]
850
+ });
851
+
852
+ const degreeOfInterest = (help) => sbsSelect({
853
+ label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
854
+ name: 'Degree_Of_Interest',
855
+ help: help,
856
+ options: [
857
+ 'Definitely',
858
+ 'Probably',
859
+ 'Maybe',
860
+ "Absolutely Can't Afford"
861
+ ]
862
+ });
863
+
864
+ const defaultNotice = () => sbsYesNoRadio({
865
+ name: 'Default_Notice',
866
+ label: 'Have You Received a Notice of Default from the Lender?'
867
+ });
868
+
869
+ const degreeOfInterestHelp = () => degreeOfInterest('No payment necessary to speak with lawyers.');
870
+
871
+ const disabilityConditionStopWork = () => sbsYesNoRadio({
872
+ name: 'Disability_Condition_Stop_Work',
873
+ label: 'Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?'
874
+ });
875
+
876
+ const disabilityWorkHistory = () => sbsYesNoRadio({
877
+ name: 'Disability_Work_History',
878
+ label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
879
+ });
880
+
881
+ const doctorTreatment = () => sbsYesNoRadio({
882
+ name: 'Doctor_Treatment',
883
+ label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?'
884
+ });
885
+
886
+ const driversLicenseType = () => sbs2ItemRadio({
887
+ name: 'Drivers_License_Type',
888
+ label: "Type of Driver's License:",
889
+ options: [
890
+ "Private",
891
+ "Commercial"
892
+ ]
893
+ });
894
+
895
+ const email = () => sbsText({
896
+ $formkit: 'email',
897
+ name: 'Email',
898
+ label: 'Email Address:',
899
+ placeholder: 'email@domain.com',
900
+ validation: 'required|email',
901
+ validationMessages: {
902
+ required: 'Email is required',
903
+ email: 'Invalid Email'
904
+ }
905
+ });
906
+
907
+ const employerType = () => sbsSelect({
908
+ label: 'The Employer Is a:',
909
+ name: 'Employer_Type',
910
+ options: [
911
+ "Sole proprietorship (mom and pop)",
912
+ "Partnership",
913
+ "Franchise",
914
+ "Privately held company",
915
+ "Public corporation",
916
+ "Government Agency",
917
+ "Don't know"
918
+ ]
919
+ });
920
+
921
+ const estateLegalServicesNeeded = () => sbsSelect({
922
+ label: "Legal Services Needed for Your Estate:",
923
+ name: 'Estate_Legal_Services_Needed',
924
+ options: [
925
+ "Charitable Giving",
926
+ "Contested Wills",
927
+ "Drafting Wills or Trust",
928
+ "Estate Administration",
929
+ "Asset Protection",
930
+ "Other"
931
+ ]
932
+ });
933
+
934
+ const firstName = () => sbsText({
935
+ $formkit: 'text',
936
+ label: 'First Name:',
937
+ name: 'First_Name',
938
+ validationMessages: {
939
+ required: 'First Name is required'
940
+ }
941
+ });
942
+
943
+ const haveAttorney = () => sbsYesNoRadio({
944
+ name: 'Have_Attorney',
945
+ label: 'Are You Currently Working with An Attorney?'
946
+ });
947
+
948
+ const haveChildren = () => sbsYesNoRadio({
949
+ name: 'Have_Children',
950
+ label: 'Do You Have Children?'
951
+ });
952
+
953
+ const haveCourtDate = () => sbsYesNoRadio({
954
+ name: 'Have_Court_Date',
955
+ label: 'Do You Have a Court Date?'
956
+ });
957
+
958
+ const immigrationDetails = () => sbsSelect({
959
+ label: 'Where is the Person Seeking Immigration Located?',
960
+ name: 'Immigration_Details',
961
+ options: [
962
+ "In the USA with proper documentation",
963
+ "In the USA without proper documentation",
964
+ "Not in the USA",
965
+ "In Deportation/Removal Proceedings",
966
+ "Currently Detained (friend or family submitting this request)",
967
+ "Out on Bond",
968
+ "None Apply"
969
+ ]
970
+ });
971
+
972
+ const immigrationEntry = () => sbsSelect({
973
+ label: 'How are you Trying to Enter the Country?',
974
+ name: 'Immigration_Entry',
975
+ options: [
976
+ "With Proper Documents/Visa and Inspection through Customs Border Patrol",
977
+ "Illegally",
978
+ "No Entry",
979
+ "Other"
980
+ ]
981
+ });
982
+
983
+ const immigrationLocation = () => sbsSelect({
984
+ label: 'Where Are You Migrating To?',
985
+ name: 'Immigration_Location',
986
+ options: [
987
+ "In the USA",
988
+ "Outside the USA"
989
+ ]
990
+ });
991
+
992
+ const immigrationType = () => sbsSelect({
993
+ label: 'What Type of Immigration Issue?',
994
+ name: 'Immigration_Type',
995
+ options: [
996
+ "Citizenship (for current green card holders)",
997
+ "Permanent Visa Family Based (green cards)",
998
+ "Permanent Visa Business Based (green cards)",
999
+ "Temporary Business Visa",
1000
+ "Temporary Tourist Visa",
1001
+ "Investor",
1002
+ "Asylum",
1003
+ "Self Petition (violence & abuse victims)",
1004
+ "Removal/Deportation Proceeding",
1005
+ "Other"
1006
+ ]
1007
+ });
1008
+
1009
+ const immigrationStatus = () => sbsSelect({
1010
+ label: 'What is the Current Status of the Immigration Case?',
1011
+ name: 'Immigration_Status',
1012
+ options: [
1013
+ "Out of Status (overstayed my visa)",
1014
+ "Current Visa Holder (in status)",
1015
+ "Lawful Permanent Resident (green card)",
1016
+ "Not Applicable (outside the USA)",
1017
+ "Other"
1018
+ ]
1019
+ });
1020
+
1021
+ const incidentDate = () => sbsDate({
1022
+ label: 'Date of Incident:',
1023
+ name: 'Incident_Date'
1024
+ });
1025
+
1026
+ const lastName = () => sbsText({
1027
+ $formkit: 'text',
1028
+ label: 'Last Name:',
1029
+ name: 'Last_Name',
1030
+ validationMessages: {
1031
+ required: 'Last Name is required'
1032
+ }
1033
+ });
1034
+
1035
+ const landlordTenantParty = () => sbsSelect({
1036
+ label: 'I am the:',
1037
+ name: 'Landlord_Tenant_Party',
1038
+ options: [
1039
+ "Landlord",
1040
+ "Tenant",
1041
+ "Other"
1042
+ ]
1043
+ });
1044
+
1045
+ const landlordTenantIssue = () => sbsSelect({
1046
+ label: 'What is the Landlord / Tenant Issue?',
1047
+ name: 'Landlord_Tenant_Issue',
1048
+ options: [
1049
+ "Environmental Hazards",
1050
+ "Eviction",
1051
+ "Discrimination",
1052
+ "Lease and Rental Agreements",
1053
+ "Repairs and Maintenance",
1054
+ "Right of Entry and Privacy",
1055
+ "Screening and Applications",
1056
+ "Other Dispute"
1057
+ ]
1058
+ });
1059
+
1060
+ const lawsuitOtherParty = () => sbsSelect({
1061
+ label: 'The Other Party is a:',
1062
+ name: 'Lawsuit_Other_Party',
1063
+ options: [
1064
+ "Individual",
1065
+ "Small Business",
1066
+ "Large Corporation",
1067
+ "Government Entity"
1068
+ ]
1069
+ });
1070
+
1071
+ const lawyerPaymentMethod = () => sbsSelect({
1072
+ label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
1073
+ name: 'Lawyer_Payment_Method',
1074
+ help: 'No payment necessary to speak with lawyers.',
1075
+ options: [
1076
+ 'Cash',
1077
+ 'Check',
1078
+ 'Credit Card',
1079
+ 'Friend',
1080
+ 'Family',
1081
+ 'Other'
1082
+ ]
1083
+ });
1084
+
1085
+ const loanAmount = () => sbsSelect({
1086
+ label: 'Total Amount of Loan?',
1087
+ name: 'Loan_Amount',
1088
+ options: [
1089
+ "Less than $10,000",
1090
+ "$10,000 - $24,999",
1091
+ "$25,000 - $49,999",
1092
+ "$50,000 - $99,999",
1093
+ "$100,000 - $199,999",
1094
+ "$200,000 - $299,999",
1095
+ "$300,000 - $399,999",
1096
+ "$400,000 - $499,999",
1097
+ "$500,000 - $599,999",
1098
+ "More than $600,000"
1099
+ ]
1100
+ });
1101
+
1102
+ const maritalStatus = () => sbsSelect({
1103
+ label: 'Marital Status:',
1104
+ name: 'Marital_Status',
1105
+ options: [
1106
+ 'Unmarried, Living Together',
1107
+ 'Unmarried, Do Not Live Together',
1108
+ 'Married, Living Together',
1109
+ 'Separated',
1110
+ 'Divorced',
1111
+ 'Other'
1112
+ ]
1113
+ });
1114
+
1115
+ const medicalMalpracticeInjuries = () => sbsSelect({
1116
+ label: "Injuries from Medical Malpractice:",
1117
+ name: 'Medical_Malpractice_Injuries',
1118
+ options: [
1119
+ "No Injury",
1120
+ "Minor Injury",
1121
+ "Disfigurement or cosmetic injury",
1122
+ "Short term loss of physical ability",
1123
+ "Long term loss of physical injury",
1124
+ "Possibility of future harm",
1125
+ "Death of Patient"
1126
+ ]
1127
+ });
1128
+
1129
+ const numEmployeesOfBusiness = () => sbsSelect({
1130
+ label: 'Total Employees of Business? (estimated)',
1131
+ name: 'Num_Employees_Of_Business',
1132
+ options: [
1133
+ "1-5",
1134
+ "6-20",
1135
+ "21-50",
1136
+ "51-100",
1137
+ "101-500",
1138
+ "501-1,000",
1139
+ "More than 1,000"
1140
+ ]
1141
+ });
1142
+
1143
+ const nursingHomeStatus = () => sbsSelect({
1144
+ label: "The Elderly Person is Currently:",
1145
+ name: 'Nursing_Home_Status',
1146
+ options: [
1147
+ "Living at a nursing home",
1148
+ "Living at their own home with medical supervision",
1149
+ "Living at their own home without medical supervision ",
1150
+ "Living at the home of a child, grandchild or friend",
1151
+ "Deceased",
1152
+ "Other"
1153
+ ]
1154
+ });
1155
+
1156
+ const ownRealEstate = () => sbsYesNoRadio({
1157
+ name: 'Own_Real_Estate',
1158
+ label: 'Do You Own Real Estate?'
1159
+ });
1160
+
1161
+ const patentAssistanceType = () => sbsSelect({
1162
+ label: "Legal Assistance Needed:",
1163
+ name: 'Patent_Assistance_Type',
1164
+ options: [
1165
+ "Obtaining a Patent",
1166
+ "Avoiding Patent Infringement",
1167
+ "Suing for Patent Infringement",
1168
+ "Defending Against a Claim of Patent Infringement",
1169
+ "Other"
1170
+ ]
1171
+ });
1172
+
1173
+ const patentFor = () => sbsSelect({
1174
+ label: "The Patent is for a:",
1175
+ name: 'Patent_For',
1176
+ options: [
1177
+ "Product or Machine",
1178
+ "Process",
1179
+ "Computer Software",
1180
+ "Living Organism or Plant",
1181
+ "Ornamental Design",
1182
+ "Other"
1183
+ ]
1184
+ });
1185
+
1186
+ const pendingCharges = () => sbsYesNoRadio({
1187
+ name: 'Pending_Charges',
1188
+ label: 'Do you currently have any pending charges?'
1189
+ });
1190
+
1191
+ const phone = () => sbsText({
1192
+ $formkit: 'tel',
1193
+ name: 'Primary_Phone',
1194
+ label: 'Phone Number:',
1195
+ placeholder: 'xxx-xxx-xxxx',
1196
+ maxlength: 12,
1197
+ help: '10-digit phone number, hyphens optional',
1198
+ validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/',
1199
+ validationMessages: {
1200
+ required: 'Field is required',
1201
+ matches: 'Invalid Phone Number, use xxx-xxx-xxxx format'
1202
+ },
1203
+ helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
1204
+ });
1205
+
1206
+ const primaryInjury = () => sbs2ColRadio({
1207
+ label: 'Primary Injury:',
1208
+ name: 'Primary_Injury',
1209
+ options: [
1210
+ "Anxiety",
1211
+ "Back or Neck Pain",
1212
+ "Broken Bones",
1213
+ "Cuts and Bruises",
1214
+ "Headaches",
1215
+ "Memory Loss",
1216
+ "Loss of Limb",
1217
+ "Other (describe on next page)"
1218
+ ]
1219
+ });
1220
+
1221
+ const priorAlcoholOffenses = () => sbsYesNoRadio({
1222
+ name: 'Prior_Alcohol_Offenses',
1223
+ label: 'Any Prior Alcohol Related Offenses?'
1224
+ });
1225
+
1226
+ const policeReportFiled = () => sbsYesNoRadio({
1227
+ name: 'Police_Report_Filed',
1228
+ label: 'Was a Police Report Filed?'
1229
+ });
1230
+
1231
+ const realEstateArea = () => sbsSelect({
1232
+ label: "Area of Real Estate:",
1233
+ name: 'Real_Estate_Area',
1234
+ options: [
1235
+ "Condos and Coops",
1236
+ "Construction Disputes",
1237
+ "Purchase/Sale Contract",
1238
+ "Refinancing Agreement",
1239
+ "Title and Boundary Disputes",
1240
+ "Zoning, Planning and Land Use",
1241
+ "Property Deeds and Transfers",
1242
+ "Liens",
1243
+ "Other"
1244
+ ]
1245
+ });
1246
+
1247
+ const relationshipToVictim = () => sbsSelect({
1248
+ label: 'Relationship to the Victim:',
1249
+ name: 'Relationship_To_Victim',
1250
+ options: [
1251
+ "Parent",
1252
+ "Spouse",
1253
+ "Sibling",
1254
+ "Friend",
1255
+ "Other"
1256
+ ]
1257
+ });
1258
+
1259
+ const roleInMatterCriminal = () => sbsRadio({
1260
+ label: 'What is Your Role in this Matter?',
1261
+ name: 'Role_In_Matter_Criminal',
1262
+ options: [
1263
+ "I have been accused",
1264
+ "I am acting on behalf of someone who has been accused",
1265
+ "Other"
1266
+ ]
1267
+ });
1268
+
1269
+ const roleInMatterProbate = () => sbsSelect({
1270
+ label: "What Is Your Role in this Matter?",
1271
+ name: 'Role_In_Matter_Probate',
1272
+ options: [
1273
+ "Preparing My Will",
1274
+ "Executor",
1275
+ "Heir",
1276
+ "Other"
1277
+ ]
1278
+ });
1279
+
1280
+ const socialSecurityDisabilityReceivingBenefits = () => sbsYesNoRadio({
1281
+ name: 'Social_Security_Disability_Receiving_Benefits',
1282
+ label: 'Are You Currently Receiving Social Security Disability Benefits?'
1283
+ });
1284
+
1285
+ const taxLevel = () => sbsSelect({
1286
+ label: 'Which Level of Tax Issue?',
1287
+ name: 'Tax_Level',
1288
+ options: [
1289
+ "Federal",
1290
+ "State",
1291
+ "Local"
1292
+ ]
1293
+ });
1294
+
1295
+ const taxIssueType = () => sbsSelect({
1296
+ label: 'Type of Tax Issue:',
1297
+ name: 'Tax_Issue_Type',
1298
+ options: [
1299
+ "Income",
1300
+ "Property",
1301
+ "Corporate"
1302
+ ]
1303
+ });
1304
+
1305
+ const taxProblemDetails = () => sbsSelect({
1306
+ label: 'Details of Tax Problem:',
1307
+ name: 'Tax_Problem_Details',
1308
+ options: [
1309
+ "Assets Seized",
1310
+ "Bank Account Levied",
1311
+ "Cannot Pay Taxes",
1312
+ "Innocent Spouse",
1313
+ "Lien Filed",
1314
+ "Received Audit Notice",
1315
+ "Unpaid Interest",
1316
+ "Wage Garnishment",
1317
+ "Other"
1318
+ ]
1319
+ });
1320
+
1321
+ const totalDebt = () => sbsSelect({
1322
+ label: 'Total Debt?',
1323
+ name: 'Total_Debt',
1324
+ options: [
1325
+ "Less than 5K",
1326
+ "5K to 10K",
1327
+ "10K to 20K",
1328
+ "20K to 50K",
1329
+ "More than 50K"
1330
+ ]
1331
+ });
1332
+
1333
+ const totalMonthlyIncome = () => sbsSelect({
1334
+ label: 'Total Monthly Income?',
1335
+ name: 'Total_Monthly_Income',
1336
+ options: [
1337
+ "Less than 1K",
1338
+ "1K to 2K",
1339
+ "2K to 3K",
1340
+ "3K to 4K",
1341
+ "4K to 5K",
1342
+ "5K to 7K",
1343
+ "7K to 10K",
1344
+ "10K to 15K",
1345
+ "More than 15K"
1346
+ ]
1347
+ });
1348
+
1349
+ const TCPAConsent = () => ({
1350
+ $formkit: 'checkbox',
1351
+ label: '$meta.tcpaLanguage',
1352
+ name: 'TCPA_Opt_In',
1353
+ validation: 'required|accepted',
1354
+ validationMessages: {
1355
+ required: 'Consent is required',
1356
+ accepted: 'Consent is required'
1357
+ },
1358
+ classes: {
1359
+ label: "t-text-xs t-text-slate-500 t-font-normal"
1360
+ }
1361
+ });
1362
+
1363
+ const typeOfAlcoholTest = () => sbsSelect({
1364
+ label: 'Type of Alcohol Test Performed?',
1365
+ name: 'Type_Of_Alcohol_Test',
1366
+ options: [
1367
+ "No Test",
1368
+ "Refused Test",
1369
+ "Breath Test",
1370
+ "Blood Test",
1371
+ "Urine Test",
1372
+ "Don't Know"
1373
+ ]
1374
+ });
1375
+
1376
+ const typeOfAssets = () => col2Checkbox({
1377
+ label: 'Type of Assets:',
1378
+ name: 'Type_Of_Assets',
1379
+ options: [
1380
+ "Business Interests",
1381
+ "Cash",
1382
+ "Life Insurance Policies",
1383
+ "Pensions/Retirement",
1384
+ "Personal Possessions",
1385
+ "Property",
1386
+ "Stock/Bonds"
1387
+ ]
1388
+ });
1389
+
1390
+ const typeOfProperty = () => sbsSelect({
1391
+ label: 'Type of Property:',
1392
+ name: 'Type_Of_Property',
1393
+ options: [
1394
+ "Residential",
1395
+ "Commercial",
1396
+ "Industrial",
1397
+ "Agricultural",
1398
+ "Recreational",
1399
+ "Other"
1400
+ ]
1401
+ });
1402
+
1403
+ const trafficViolations = () => sbsSelect({
1404
+ label: 'Which Type of Violation?',
1405
+ name: 'Traffic_Violations',
1406
+ options: [
1407
+ "Disregarding a Red Light",
1408
+ "Disregarding a Stop Sign",
1409
+ "DMV Letter About License",
1410
+ "DUI/DWI",
1411
+ "Failure to Appear in Court",
1412
+ "License Suspended/Revoked",
1413
+ "Minor in Possession of Alcohol",
1414
+ "No Child Safety Seat",
1415
+ "No Liability Insurance",
1416
+ "No Seat Belt",
1417
+ "Open Container of Alcohol",
1418
+ "Parking Ticket",
1419
+ "Racing",
1420
+ "Speeding",
1421
+ "Unpaid Traffic Tickets",
1422
+ "Warrant Issue for Arrest",
1423
+ "Other Violation"
1424
+ ]
1425
+ });
1426
+
1427
+ const valueOfAssets = () => sbsSelect({
1428
+ label: 'Value of Your Assets?',
1429
+ name: 'Value_Of_Assets',
1430
+ options: [
1431
+ "Less than 50K",
1432
+ "50K to 100K",
1433
+ "100K to 250K",
1434
+ "250K to 500K",
1435
+ "500K to 1M",
1436
+ "More than 1M"
1437
+ ]
1438
+ });
1439
+
1440
+ const veteransDisabilityApplied = () => sbsSelect({
1441
+ label: 'Has the Applicant Applied for VA Disability Compensation?',
1442
+ name: 'Veterans_Disability_Applied',
1443
+ options: [
1444
+ "Yes, Claim filed and awaiting decision",
1445
+ "Yes, Claim denied",
1446
+ "Yes, Claim on appeal",
1447
+ "Yes, Claim approved",
1448
+ "Yes, Benefits awarded",
1449
+ "No, Claim has not been filed"
1450
+ ]
1451
+ });
1452
+
1453
+ const veteransDisabilityConditions = () => sbsCheckbox({
1454
+ label: 'What Service Connected Conditions Does the Applicant Have? (select all that apply)',
1455
+ name: 'Veterans_Disability_Conditions',
1456
+ options: [
1457
+ "Traumatic Physical Injury (broken bones, loss of limb)",
1458
+ "Mental Injury",
1459
+ "Occupational Disease",
1460
+ "Repeated Trauma Injury",
1461
+ "Other"
1462
+ ]
1463
+ });
1464
+
1465
+ const veteransDisabilityRelationship = () => sbsSelect({
1466
+ label: 'What is Your Relationship to the Applicant?',
1467
+ name: 'Veterans_Disability_Relationship',
1468
+ options: [
1469
+ "Self, Active Duty",
1470
+ "Self, Active Reserve",
1471
+ "Self, Discharged from Active Duty",
1472
+ "Self, Discharged as Reservist",
1473
+ "Surviving Family Member",
1474
+ "Other"
1475
+ ]
1476
+ });
1477
+
1478
+ const veteransDisabilityInjured = () => sbsYesNoRadio({
1479
+ name: 'Veterans_Disability_Injured',
1480
+ label: 'Was the Applicant Hurt While on Duty or is the Condition Related to Military Service?'
1481
+ });
1482
+
1483
+ const wouldLikeLawyerTo = () => sbsRadio({
1484
+ label: 'I Would Like a Lawyer to:',
1485
+ name: 'Would_Like_Lawyer_To',
1486
+ options: [
1487
+ "Give me general advice to protect my interests",
1488
+ "Act as my agent in the transaction",
1489
+ "Assist me in the remaining stages of the transaction",
1490
+ "Bring a lawsuit against another party",
1491
+ "Defend against a lawsuit filed by another party",
1492
+ "Other"
1493
+ ]
1494
+ });
1495
+
1496
+ const zipcode = () => sbsText({
1497
+ label: 'Zip Code:',
1498
+ placeholder: '#####',
1499
+ name: 'Zip',
1500
+ maxlength: 5,
1501
+ inputmode: "numeric",
1502
+ validation: 'required|matches:/^[0-9]{5}$/',
1503
+ validationMessages: {
1504
+ required: 'Zip Code is required',
1505
+ matches: 'Invalid Zip Code'
1506
+ }
1507
+ });
1508
+
1509
+ // ------ Question Groups
1510
+
1511
+ // NOTE: name must be unique within a form!
1512
+ const group = (name, updates) => {
1513
+ return merge({
1514
+ $cmp: 'FormKit',
1515
+ props: {
1516
+ type: 'group',
1517
+ key: name,
1518
+ id: name,
1519
+ name: name
1520
+ }
1521
+ }, updates)
1522
+ };
1523
+
1524
+
1525
+ const AdoptionQuestions = () => group(
1526
+ 'AdoptionQuestions',
1527
+ {
1528
+ if: '$get(Type_Of_Legal_Problem).value == "Adoption"',
1529
+ children: [
1530
+ haveAttorney(),
1531
+ maritalStatus(),
1532
+ haveChildren(),
1533
+ degreeOfInterest(),
1534
+ lawyerPaymentMethod()
1535
+ ]
1536
+ }
1537
+ );
1538
+
1539
+ const AsbestosAndMesotheliomaQuestions = () => group(
1540
+ 'AsbestosAndMesotheliomaQuestions',
1541
+ {
1542
+ if: '$get(Type_Of_Legal_Problem).value == "Asbestos and Mesothelioma"',
1543
+ children: [
1544
+ incidentDate(),
1545
+ doctorTreatment()
1546
+ ]
1547
+ }
1548
+ );
1549
+
1550
+ const AutoAndCarAccidentsQuestions = () => group(
1551
+ 'AutoAndCarAccidentsQuestions',
1552
+ {
1553
+ if: '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
1554
+ children: [
1555
+ haveAttorney(),
1556
+ incidentDate(),
1557
+ atFault(),
1558
+ primaryInjury(),
1559
+ doctorTreatment(),
1560
+ policeReportFiled()
1561
+ ]
1562
+ }
1563
+ );
1564
+
1565
+ const BankruptcyQuestions = () => group(
1566
+ 'BankruptcyQuestions',
1567
+ {
1568
+ if: '$get(Type_Of_Legal_Problem).value == "Bankruptcy"',
1569
+ children: [
1570
+ haveAttorney(),
1571
+ totalMonthlyIncome(),
1572
+ totalDebt(),
1573
+ ownRealEstate(),
1574
+ valueOfAssets(),
1575
+ degreeOfInterestHelp()
1576
+ ]
1577
+ }
1578
+ );
1579
+
1580
+ const BirthCertificateAndNameChangeQuestions = () => group(
1581
+ 'BirthCertificateAndNameChangeQuestions',
1582
+ {
1583
+ if: '$get(Type_Of_Legal_Problem).value == "Birth Certificate and Name Change"',
1584
+ children: [
1585
+ haveAttorney(),
1586
+ degreeOfInterestHelp()
1587
+ ]
1588
+ }
1589
+ );
1590
+
1591
+ const BusinessLawyersQuestions = () => group(
1592
+ 'BusinessLawyersQuestions',
1593
+ {
1594
+ if: '$get(Type_Of_Legal_Problem).value == "Business Lawyers"',
1595
+ children: [
1596
+ haveAttorney(),
1597
+ businessServices(),
1598
+ businessType(),
1599
+ numEmployeesOfBusiness(),
1600
+ degreeOfInterestHelp()
1601
+ ]
1602
+ }
1603
+ );
1604
+
1605
+ const ChildCustodyAndSupportQuestions = () => group(
1606
+ 'ChildCustodyAndSupportQuestions',
1607
+ {
1608
+ if: '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',
1609
+ children: [
1610
+ haveAttorney(),
1611
+ childRelationship(),
1612
+ childHome(),
1613
+ childPrimaryCaregiver(),
1614
+ degreeOfInterest(),
1615
+ lawyerPaymentMethod()
1616
+ ]
1617
+ }
1618
+ );
1619
+
1620
+ const CivilRightsAndDiscriminationQuestions = () => group(
1621
+ 'CivilRightsAndDiscriminationQuestions',
1622
+ {
1623
+ if: '$get(Type_Of_Legal_Problem).value == "Civil Rights and Discrimination"',
1624
+ children: [
1625
+ haveAttorney(),
1626
+ degreeOfInterestHelp()
1627
+ ]
1628
+ }
1629
+ );
1630
+
1631
+ const CivilLawsuitQuestions = () => group(
1632
+ 'CivilLawsuitQuestions',
1633
+ {
1634
+ if: '$get(Type_Of_Legal_Problem).value == "Civil Lawsuit"',
1635
+ children: [
1636
+ haveAttorney(),
1637
+ incidentDate(),
1638
+ lawsuitOtherParty(),
1639
+ degreeOfInterestHelp()
1640
+ ]
1641
+ }
1642
+ );
1643
+
1644
+ const ConsumerLawyersQuestions = () => group(
1645
+ 'ConsumerLawyersQuestions',
1646
+ {
1647
+ if: '$get(Type_Of_Legal_Problem).value == "Consumer Lawyers"',
1648
+ children: [
1649
+ haveAttorney(),
1650
+ incidentDate(),
1651
+ lawsuitOtherParty(),
1652
+ degreeOfInterestHelp()
1653
+ ]
1654
+ }
1655
+ );
1656
+
1657
+ const CopyrightsAndTrademarksQuestions = () => group(
1658
+ 'CopyrightsAndTrademarksQuestions',
1659
+ {
1660
+ if: '$get(Type_Of_Legal_Problem).value == "Copyrights and Trademarks"',
1661
+ children: [
1662
+ haveAttorney(),
1663
+ degreeOfInterestHelp()
1664
+ ]
1665
+ }
1666
+ );
1667
+
1668
+ const CriminalAndFelonyQuestions = () => group(
1669
+ 'CriminalAndFelonyQuestions',
1670
+ {
1671
+ if: '$get(Type_Of_Legal_Problem).value == "Criminal and Felony"',
1672
+ children: [
1673
+ haveAttorney(),
1674
+ crimeCommittedDate(),
1675
+ roleInMatterCriminal(),
1676
+ pendingCharges(),
1677
+ degreeOfInterest(),
1678
+ lawyerPaymentMethod()
1679
+ ]
1680
+ }
1681
+ );
1682
+
1683
+ const criminalTOLPDisplay = (updates) => col2Radio(merge({
1684
+ name: 'Type_Of_Legal_Problem_Display',
1685
+ if: '$get(Type_Of_Legal_Problem).value == "Criminal and Felony"',
1686
+ label: 'Which Type of Criminal Issue?',
1687
+ options: [
1688
+ 'Criminal Defense',
1689
+ 'Victim of a Crime',
1690
+ 'DUI and DWI',
1691
+ 'Expungement',
1692
+ 'Harrassment',
1693
+ 'Not Sure or Other',
1694
+ ]
1695
+ }, updates));
1696
+
1697
+ const DebtAndCollectionsQuestions = () => group(
1698
+ 'DebtAndCollectionsQuestions',
1699
+ {
1700
+ if: '$get(Type_Of_Legal_Problem).value == "Debt and Collections"',
1701
+ children: [
1702
+ haveAttorney(),
1703
+ totalMonthlyIncome(),
1704
+ totalDebt(),
1705
+ ownRealEstate(),
1706
+ valueOfAssets(),
1707
+ degreeOfInterestHelp()
1708
+ ]
1709
+ }
1710
+ );
1711
+
1712
+ const DivorceQuestions = () => group(
1713
+ 'DivorceQuestions',
1714
+ {
1715
+ if: '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
1716
+ children: [
1717
+ haveAttorney(),
1718
+ maritalStatus(),
1719
+ haveChildren(),
1720
+ degreeOfInterest(),
1721
+ lawyerPaymentMethod()
1722
+ ]
1723
+ }
1724
+ );
1725
+
1726
+ const DUIAndDWIQuestions = () => group(
1727
+ 'DUIAndDWIQuestions',
1728
+ {
1729
+ if: '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
1730
+ children: [
1731
+ haveAttorney(),
1732
+ incidentDate(),
1733
+ priorAlcoholOffenses(),
1734
+ typeOfAlcoholTest(),
1735
+ bloodContentAlcholTest(),
1736
+ pendingCharges(),
1737
+ degreeOfInterestHelp()
1738
+ ]
1739
+ }
1740
+ );
1741
+
1742
+ const ElderLawQuestions = () => group(
1743
+ 'ElderLawQuestions',
1744
+ {
1745
+ if: '$get(Type_Of_Legal_Problem).value == "Elder Law"',
1746
+ children: [
1747
+ haveAttorney(),
1748
+ degreeOfInterestHelp()
1749
+ ]
1750
+ }
1751
+ );
1752
+
1753
+ const EmploymentAndWorkplaceQuestions = () => group(
1754
+ 'EmploymentAndWorkplaceQuestions',
1755
+ {
1756
+ if: '$get(Type_Of_Legal_Problem).value == "Employment and Workplace"',
1757
+ children: [
1758
+ haveAttorney(),
1759
+ numEmployeesOfBusiness(),
1760
+ employerType(),
1761
+ degreeOfInterest(),
1762
+ lawyerPaymentMethod()
1763
+ ]
1764
+ }
1765
+ );
1766
+
1767
+ const ExpungementQuestions = () => group(
1768
+ 'ExpungementQuestions',
1769
+ {
1770
+ if: '$get(Type_Of_Legal_Problem).value == "Expungement"',
1771
+ children: [
1772
+ haveAttorney(),
1773
+ incidentDate(),
1774
+ criminalChargeType(),
1775
+ degreeOfInterest(),
1776
+ lawyerPaymentMethod()
1777
+ ]
1778
+ }
1779
+ );
1780
+
1781
+ const FamilyIssuesQuestions = () => group(
1782
+ 'FamilyIssuesQuestions',
1783
+ {
1784
+ if: '$get(Type_Of_Legal_Problem).value == "Family Issues"',
1785
+ children: [
1786
+ haveAttorney(),
1787
+ maritalStatus(),
1788
+ haveChildren(),
1789
+ degreeOfInterest(),
1790
+ lawyerPaymentMethod()
1791
+ ]
1792
+ }
1793
+ );
1794
+
1795
+ const ForeclosureQuestions = () => group(
1796
+ 'ForeclosureQuestions',
1797
+ {
1798
+ if: '$get(Type_Of_Legal_Problem).value == "Foreclosure"',
1799
+ children: [
1800
+ haveAttorney(),
1801
+ ownRealEstate(),
1802
+ typeOfProperty(),
1803
+ amountPaymentsPastDue(),
1804
+ loanAmount(),
1805
+ defaultNotice()
1806
+ ]
1807
+ }
1808
+ );
1809
+
1810
+ const GuardianshipQuestions = () => group(
1811
+ 'GuardianshipQuestions',
1812
+ {
1813
+ if: '$get(Type_Of_Legal_Problem).value == "Guardianship"',
1814
+ children: [
1815
+ haveAttorney(),
1816
+ maritalStatus(),
1817
+ haveChildren(),
1818
+ degreeOfInterest(),
1819
+ lawyerPaymentMethod()
1820
+ ]
1821
+ }
1822
+ );
1823
+
1824
+ const HarassmentAndDiscriminationQuestions = () => group(
1825
+ 'HarassmentAndDiscriminationQuestions',
1826
+ {
1827
+ if: '$get(Type_Of_Legal_Problem).value == "Harassment and Discrimination"',
1828
+ children: [
1829
+ haveAttorney(),
1830
+ degreeOfInterestHelp()
1831
+ ]
1832
+ }
1833
+ );
1834
+
1835
+ const IdentityTheftQuestions = () => group(
1836
+ 'IdentityTheftQuestions',
1837
+ {
1838
+ if: '$get(Type_Of_Legal_Problem).value == "Identity Theft"',
1839
+ children: [
1840
+ haveAttorney(),
1841
+ degreeOfInterestHelp()
1842
+ ]
1843
+ }
1844
+ );
1845
+
1846
+ const ImmigrationAndVisasQuestions = () => group(
1847
+ 'ImmigrationAndVisasQuestions',
1848
+ {
1849
+ if: '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"',
1850
+ children: [
1851
+ haveAttorney(),
1852
+ countryOfCitizenship(),
1853
+ immigrationLocation(),
1854
+ immigrationEntry(),
1855
+ immigrationType(),
1856
+ immigrationStatus(),
1857
+ immigrationDetails(),
1858
+ degreeOfInterestHelp()
1859
+ ]
1860
+ }
1861
+ );
1862
+
1863
+ const InsuranceQuestions = () => group(
1864
+ 'InsuranceQuestions',
1865
+ {
1866
+ if: '$get(Type_Of_Legal_Problem).value == "Insurance"',
1867
+ children: [
1868
+ haveAttorney(),
1869
+ degreeOfInterestHelp()
1870
+ ]
1871
+ }
1872
+ );
1873
+
1874
+ const LandlordAndTenantQuestions = () => group(
1875
+ 'LandlordAndTenantQuestions',
1876
+ {
1877
+ if: '$get(Type_Of_Legal_Problem).value == "Landlord and Tenant"',
1878
+ children: [
1879
+ haveAttorney(),
1880
+ landlordTenantParty(),
1881
+ landlordTenantIssue(),
1882
+ degreeOfInterestHelp()
1883
+ ]
1884
+ }
1885
+ );
1886
+
1887
+ const LemonLawQuestions = () => group(
1888
+ 'LemonLawQuestions',
1889
+ {
1890
+ if: '$get(Type_Of_Legal_Problem).value == "Lemon Law"',
1891
+ children: [
1892
+ haveAttorney(),
1893
+ incidentDate(),
1894
+ lawsuitOtherParty(),
1895
+ degreeOfInterestHelp()
1896
+ ]
1897
+ }
1898
+ );
1899
+
1900
+ const LongTermDisabilityQuestions = () => group(
1901
+ 'LongTermDisabilityQuestions',
1902
+ {
1903
+ if: '$get(Type_Of_Legal_Problem).value == "Long Term Disability"',
1904
+ children: [
1905
+ haveAttorney(),
1906
+ applicantOccupation(),
1907
+ applicantAge(),
1908
+ applicantLTDisabilityPolicy(),
1909
+ applicantDisabilityHowObtain(),
1910
+ applicantPreviouslyAppliedLtdBenefits(),
1911
+ applicantReceivedDisabilityBenefits(),
1912
+ applicantMonthlySalary()
1913
+ ]
1914
+ }
1915
+ );
1916
+
1917
+ const MedicalMalpracticeQuestions = () => group(
1918
+ 'MedicalMalpracticeQuestions',
1919
+ {
1920
+ if: '$get(Type_Of_Legal_Problem).value == "Medical Malpractice"',
1921
+ children: [
1922
+ haveAttorney(),
1923
+ incidentDate(),
1924
+ claimStatus(),
1925
+ doctorTreatment(),
1926
+ medicalMalpracticeInjuries()
1927
+ ]
1928
+ }
1929
+ );
1930
+
1931
+ const NursingHomeAbuseQuestions = () => group(
1932
+ 'NursingHomeAbuseQuestions',
1933
+ {
1934
+ if: '$get(Type_Of_Legal_Problem).value == "Nursing Home Abuse"',
1935
+ children: [
1936
+ haveAttorney(),
1937
+ incidentDate(),
1938
+ nursingHomeStatus()
1939
+ ]
1940
+ }
1941
+ );
1942
+
1943
+ const PatentsAndIntellectualPropertyQuestions = () => group(
1944
+ 'PatentsAndIntellectualPropertyQuestions',
1945
+ {
1946
+ if: '$get(Type_Of_Legal_Problem).value == "Patents and Intellectual Property"',
1947
+ children: [
1948
+ haveAttorney(),
1949
+ patentAssistanceType(),
1950
+ patentFor(),
1951
+ degreeOfInterestHelp()
1952
+ ]
1953
+ }
1954
+ );
1955
+
1956
+ const PersonalInjuryQuestions = () => group(
1957
+ 'PersonalInjuryQuestions',
1958
+ {
1959
+ if: '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
1960
+ children: [
1961
+ haveAttorney(),
1962
+ incidentDate(),
1963
+ claimStatus(),
1964
+ atFault(),
1965
+ primaryInjury(),
1966
+ doctorTreatment()
1967
+ ]
1968
+ }
1969
+ );
1970
+
1971
+ const PowerofAttorneyQuestions = () => group(
1972
+ 'PowerofAttorneyQuestions',
1973
+ {
1974
+ if: '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
1975
+ children: [
1976
+ haveAttorney(),
1977
+ degreeOfInterestHelp()
1978
+ ]
1979
+ }
1980
+ );
1981
+
1982
+ const ProbateAndEstatesQuestions = () => group(
1983
+ 'ProbateAndEstatesQuestions',
1984
+ {
1985
+ if: '$get(Type_Of_Legal_Problem).value == "Probate and Estates"',
1986
+ children: [
1987
+ haveAttorney(),
1988
+ valueOfAssets(),
1989
+ typeOfAssets(),
1990
+ roleInMatterProbate(),
1991
+ estateLegalServicesNeeded(),
1992
+ degreeOfInterestHelp()
1993
+ ]
1994
+ }
1995
+ );
1996
+
1997
+ const ProductLiabilityQuestions = () => group(
1998
+ 'ProductLiabilityQuestions',
1999
+ {
2000
+ if: '$get(Type_Of_Legal_Problem).value == "Product Liability"',
2001
+ children: [
2002
+ haveAttorney(),
2003
+ degreeOfInterestHelp()
2004
+ ]
2005
+ }
2006
+ );
2007
+
2008
+ const PropertyDamageQuestions = () => group(
2009
+ 'PropertyDamageQuestions',
2010
+ {
2011
+ if: '$get(Type_Of_Legal_Problem).value == "Property Damage"',
2012
+ children: [
2013
+ haveAttorney(),
2014
+ realEstateArea(),
2015
+ wouldLikeLawyerTo(),
2016
+ degreeOfInterestHelp()
2017
+ ]
2018
+ }
2019
+ );
2020
+
2021
+ const RealEstateQuestions = () => group(
2022
+ 'RealEstateQuestions',
2023
+ {
2024
+ if: '$get(Type_Of_Legal_Problem).value == "Real Estate"',
2025
+ children: [
2026
+ haveAttorney(),
2027
+ realEstateArea(),
2028
+ wouldLikeLawyerTo(),
2029
+ degreeOfInterestHelp()
2030
+ ]
2031
+ }
2032
+ );
2033
+
2034
+ const SocialSecurityDisabilityAndInsuranceQuestions = () => group(
2035
+ 'SocialSecurityDisabilityAndInsuranceQuestions',
2036
+ {
2037
+ if: '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"',
2038
+ children: [
2039
+ haveAttorney(),
2040
+ applicantAge(),
2041
+ disabilityConditionStopWork(),
2042
+ disabilityWorkHistory(),
2043
+ socialSecurityDisabilityReceivingBenefits(),
2044
+ doctorTreatment()
2045
+ ]
2046
+ }
2047
+ );
2048
+
2049
+ const TaxAndIRSQuestions = () => group(
2050
+ 'TaxAndIRSQuestions',
2051
+ {
2052
+ if: '$get(Type_Of_Legal_Problem).value == "Tax and IRS"',
2053
+ children: [
2054
+ haveAttorney(),
2055
+ totalDebt(),
2056
+ taxProblemDetails(),
2057
+ taxLevel(),
2058
+ taxIssueType(),
2059
+ degreeOfInterestHelp()
2060
+ ]
2061
+ }
2062
+ );
2063
+
2064
+ const TrafficAndTicketsQuestions = () => group(
2065
+ 'TrafficAndTicketsQuestions',
2066
+ {
2067
+ if: '$get(Type_Of_Legal_Problem).value == "Traffic and Tickets"',
2068
+ children: [
2069
+ haveAttorney(),
2070
+ driversLicenseType(),
2071
+ trafficViolations(),
2072
+ haveCourtDate(),
2073
+ degreeOfInterestHelp()
2074
+ ]
2075
+ }
2076
+ );
2077
+
2078
+ const UnemploymentQuestions = () => group(
2079
+ 'UnemploymentQuestions',
2080
+ {
2081
+ if: '$get(Type_Of_Legal_Problem).value == "Unemployment"',
2082
+ children: [
2083
+ numEmployeesOfBusiness(),
2084
+ employerType()
2085
+ ]
2086
+ }
2087
+ );
2088
+
2089
+ const VaccinationInjuryQuestions = () => group(
2090
+ 'VaccinationInjuryQuestions',
2091
+ {
2092
+ if: '$get(Type_Of_Legal_Problem).value == "Vaccination Injury"',
2093
+ children: [
2094
+ haveAttorney(),
2095
+ incidentDate()
2096
+ ]
2097
+ }
2098
+ );
2099
+
2100
+ const VeteransDisabilityQuestions = () => group(
2101
+ 'VeteransDisabilityQuestions',
2102
+ {
2103
+ if: '$get(Type_Of_Legal_Problem).value == "Veteran\'s Disability"',
2104
+ children: [
2105
+ veteransDisabilityRelationship(),
2106
+ veteransDisabilityInjured(),
2107
+ veteransDisabilityConditions(),
2108
+ veteransDisabilityApplied()
2109
+ ]
2110
+ }
2111
+ );
2112
+
2113
+ const VictimOfACrimeQuestions = () => group(
2114
+ 'VictimOfACrimeQuestions',
2115
+ {
2116
+ if: '$get(Type_Of_Legal_Problem).value == "Victim of a Crime"',
2117
+ children: [
2118
+ haveAttorney(),
2119
+ crimeCommittedDate(),
2120
+ roleInMatterCriminal(),
2121
+ pendingCharges(),
2122
+ degreeOfInterest(),
2123
+ lawyerPaymentMethod()
2124
+ ]
2125
+ }
2126
+ );
2127
+
2128
+ const WillsAndTrustsQuestions = () => group(
2129
+ 'WillsAndTrustsQuestions',
2130
+ {
2131
+ if: '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
2132
+ children: [
2133
+ haveAttorney(),
2134
+ valueOfAssets(),
2135
+ typeOfAssets(),
2136
+ roleInMatterProbate(),
2137
+ estateLegalServicesNeeded(),
2138
+ degreeOfInterestHelp()
2139
+ ]
2140
+ }
2141
+ );
2142
+
2143
+ const WorkersCompensationQuestions = () => group(
2144
+ 'WorkersCompensationQuestions',
2145
+ {
2146
+ if: '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
2147
+ children: [
2148
+ haveAttorney(),
2149
+ incidentDate(),
2150
+ claimStatus(),
2151
+ primaryInjury(),
2152
+ causeOfInjury(),
2153
+ doctorTreatment()
2154
+ ]
2155
+ }
2156
+ );
2157
+
2158
+ const WrongfulDeathQuestions = () => group(
2159
+ 'WrongfulDeathQuestions',
2160
+ {
2161
+ if: '$get(Type_Of_Legal_Problem).value == "Wrongful Death"',
2162
+ children: [
2163
+ haveAttorney(),
2164
+ incidentDate(),
2165
+ relationshipToVictim(),
2166
+ criminalChargesFiled(),
2167
+ causeOfDeath()
2168
+ ]
2169
+ }
2170
+ );
2171
+
2172
+ const WrongfulTerminationQuestions = () => group(
2173
+ 'WrongfulTerminationQuestions',
2174
+ {
2175
+ if: '$get(Type_Of_Legal_Problem).value == "Wrongful Termination"',
2176
+ children: [
2177
+ haveAttorney(),
2178
+ numEmployeesOfBusiness(),
2179
+ employerType(),
2180
+ degreeOfInterestHelp()
2181
+ ]
2182
+ }
2183
+ );
2184
+
2185
+ const NotSureOrOtherQuestions = () => group(
2186
+ 'NotSureOrOtherQuestions',
2187
+ {
2188
+ if: '$get(Type_Of_Legal_Problem).value == "Not Sure or Other"',
2189
+ children: [
2190
+ haveAttorney(),
2191
+ degreeOfInterestHelp()
2192
+ ]
2193
+ }
2194
+ );
2195
+
2196
+ const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
2197
+
2198
+ const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
2199
+
2200
+ const findLastInput = (n) => {
2201
+ if (isInput(n)) {
2202
+ return n
2203
+ }
2204
+ for (var i = n.children.length - 1; i >= 0; i--) {
2205
+ const child = n.children[i];
2206
+ if (isInput(child)) {
2207
+ return child
2208
+ }
2209
+ const res = findLastInput(child);
2210
+ if (res) {
2211
+ return res
2212
+ }
2213
+ }
2214
+ return null
2215
+ };
2216
+
2217
+ const stepDefaults = (step) => ({
2218
+ $el: 'section',
2219
+ if: '$stepIsEnabled("' + step + '")',
2220
+ attrs: {
2221
+ style: {
2222
+ if: '$activeStep !== "' + step + '"',
2223
+ then: 'display: none;'
2224
+ }
2225
+ }
2226
+ });
2227
+
2228
+ function step(name, inputs, nextOnEnter = true) {
2229
+ if (typeof nextOnEnter === 'undefined') {
2230
+ nextOnEnter = true;
2231
+ }
2232
+ if (inputs && inputs.length && nextOnEnter) {
2233
+ const lastInput = findLastInput(inputs[inputs.length - 1]);
2234
+ lastInput.onKeypress = NEXT_ON_ENTER;
2235
+ }
2236
+
2237
+ return merge(
2238
+ stepDefaults(name),
2239
+ {
2240
+ children: [
2241
+ {
2242
+ $formkit: 'group',
2243
+ id: name,
2244
+ name: name,
2245
+ children: inputs
2246
+ }
2247
+ ]
2248
+ }
2249
+ )
2250
+ }
2251
+
2252
+ const DEFAULT_COMMENTS_PLACEHOLDER = 'For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"';
2253
+ const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue:';
2254
+
2255
+ function comments(updates = {}) {
2256
+ return step(
2257
+ 'comments',
2258
+ [
2259
+ comments$1({
2260
+ label: updates.label || DEFAULT_COMMENTS_LABEL,
2261
+ placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER
2262
+ })
2263
+ ],
2264
+ updates.nextOnEnter
2265
+ )
2266
+ }
2267
+
2268
+ const DEFAULT_LAST_STEP_HEADLINE = "Based on your input, you may benefit from speaking with a legal professional. Please verify your contact information.";
2269
+
2270
+ function contactInfo(updates = {}) {
2271
+ return step(
2272
+ 'contactInfo',
2273
+ [
2274
+ {
2275
+ $el: 'h3',
2276
+ children: updates.headline || DEFAULT_LAST_STEP_HEADLINE,
2277
+ attrs: {
2278
+ class: 't-flex t-justify-center t-text-center t-text-lg t-font-bold t-pb-5 t-pt-0 t-px-3'
2279
+ }
2280
+ },
2281
+ email(),
2282
+ phone(),
2283
+ TCPAConsent(),
2284
+ privacyIcons()
2285
+ ],
2286
+ updates.nextOnEnter
2287
+ )
2288
+ }
2289
+
2290
+ function criminalTOLPAndZip(updates = {}) {
2291
+ return step(
2292
+ 'criminalTOLPAndZip',
2293
+ [
2294
+ {
2295
+ $formkit: 'hidden',
2296
+ name: "Type_Of_Legal_Problem",
2297
+ id: "Type_Of_Legal_Problem",
2298
+ value: "Criminal and Felony"
2299
+ },
2300
+ criminalTOLPDisplay({
2301
+ if: 'true'
2302
+ }),
2303
+ zipcode()
2304
+ ],
2305
+ updates.nextOnEnter
2306
+ )
2307
+ }
2308
+
2309
+ function firstAndLast(updates = {}) {
2310
+ return step(
2311
+ 'firstAndLast',
2312
+ [
2313
+ firstName(),
2314
+ lastName()
2315
+ ],
2316
+ updates.nextOnEnter
2317
+ )
2318
+ }
2319
+
2320
+ function generalLegalTOLPQuestions(updates = {}) {
2321
+ return step(
2322
+ 'TOLPQuestions',
2323
+ [
2324
+ {
2325
+ $el: 'h3',
2326
+ children: 'Please Complete the Following:',
2327
+ attrs: {
2328
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-3'
2329
+ }
2330
+ },
2331
+ AdoptionQuestions(),
2332
+ AsbestosAndMesotheliomaQuestions(),
2333
+ AutoAndCarAccidentsQuestions(),
2334
+ BankruptcyQuestions(),
2335
+ BirthCertificateAndNameChangeQuestions(),
2336
+ BusinessLawyersQuestions(),
2337
+ ChildCustodyAndSupportQuestions(),
2338
+ CivilRightsAndDiscriminationQuestions(),
2339
+ CivilLawsuitQuestions(),
2340
+ ConsumerLawyersQuestions(),
2341
+ CopyrightsAndTrademarksQuestions(),
2342
+ CriminalAndFelonyQuestions(),
2343
+ DebtAndCollectionsQuestions(),
2344
+ DivorceQuestions(),
2345
+ DUIAndDWIQuestions(),
2346
+ ElderLawQuestions(),
2347
+ EmploymentAndWorkplaceQuestions(),
2348
+ ExpungementQuestions(),
2349
+ FamilyIssuesQuestions(),
2350
+ ForeclosureQuestions(),
2351
+ GuardianshipQuestions(),
2352
+ HarassmentAndDiscriminationQuestions(),
2353
+ IdentityTheftQuestions(),
2354
+ ImmigrationAndVisasQuestions(),
2355
+ InsuranceQuestions(),
2356
+ LandlordAndTenantQuestions(),
2357
+ LemonLawQuestions(),
2358
+ LongTermDisabilityQuestions(),
2359
+ MedicalMalpracticeQuestions(),
2360
+ NursingHomeAbuseQuestions(),
2361
+ PatentsAndIntellectualPropertyQuestions(),
2362
+ PersonalInjuryQuestions(),
2363
+ PowerofAttorneyQuestions(),
2364
+ ProbateAndEstatesQuestions(),
2365
+ ProductLiabilityQuestions(),
2366
+ PropertyDamageQuestions(),
2367
+ RealEstateQuestions(),
2368
+ SocialSecurityDisabilityAndInsuranceQuestions(),
2369
+ TaxAndIRSQuestions(),
2370
+ TrafficAndTicketsQuestions(),
2371
+ UnemploymentQuestions(),
2372
+ VaccinationInjuryQuestions(),
2373
+ VeteransDisabilityQuestions(),
2374
+ VictimOfACrimeQuestions(),
2375
+ WillsAndTrustsQuestions(),
2376
+ WorkersCompensationQuestions(),
2377
+ WrongfulDeathQuestions(),
2378
+ WrongfulTerminationQuestions(),
2379
+ NotSureOrOtherQuestions()
2380
+ ],
2381
+ updates.nextOnEnter
2382
+ )
2383
+ }
2384
+
2385
+ // ------ Utilities
2386
+
2387
+ const formNavigation = () => ({
2388
+ $el: 'div',
2389
+ attrs: {
2390
+ class: 'step-nav'
2391
+ },
2392
+ children: [
2393
+ {
2394
+ $formkit: 'button',
2395
+ name: 'back_button',
2396
+ onClick: '$setPreviousStep($scrollAnchor($get(form)))',
2397
+ children: 'Back',
2398
+ style: {
2399
+ if: '$activeStep === $firstStep()',
2400
+ then: 'visibility: hidden;'
2401
+ }
2402
+ },
2403
+ {
2404
+ $formkit: 'button',
2405
+ name: 'next_button',
2406
+ onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
2407
+ children: 'Next',
2408
+ style: {
2409
+ if: '$activeStep === $lastStep()',
2410
+ then: 'display: none;'
2411
+ }
2412
+ },
2413
+ {
2414
+ $formkit: 'submit',
2415
+ name: 'submit_button',
2416
+ label: 'Submit',
2417
+ if: '$activeStep === $lastStep()',
2418
+ style: {
2419
+ if: '$activeStep !== $lastStep()',
2420
+ then: 'display: none;'
2421
+ }
2422
+ }
2423
+ ]
2424
+ });
2425
+
2426
+ const formDetails = () => ({
2427
+ $el: 'pre',
2428
+ if: '$urlParam("fdbg", "") == 1',
2429
+ children: [
2430
+ {
2431
+ $el: 'pre',
2432
+ children: '$stringify( $get(form).value )',
2433
+ attrs: {
2434
+ class: 't-text-xs',
2435
+ style: 'overflow: scroll'
2436
+ }
2437
+ },
2438
+ {
2439
+ $el: 'pre',
2440
+ children: ['activeStep: ', '$activeStep'],
2441
+ attrs: {
2442
+ class: 't-text-xs',
2443
+ style: 'overflow: scroll'
2444
+ }
2445
+ },
2446
+ {
2447
+ $el: 'pre',
2448
+ children: ['stepHistory: ', '$stepHistory'],
2449
+ attrs: {
2450
+ class: 't-text-xs',
2451
+ style: 'overflow: scroll'
2452
+ }
2453
+ },
2454
+ {
2455
+ $el: 'pre',
2456
+ children: ['stepQueue: ', '$stepQueue'],
2457
+ attrs: {
2458
+ class: 't-text-xs',
2459
+ style: 'overflow: scroll'
2460
+ }
2461
+ }
2462
+ ]
2463
+ });
2464
+
2465
+ const schema = [
2466
+ metaProps(),
2467
+ formAnchor(),
2468
+ {
2469
+ $cmp: 'FormKit',
2470
+ props: formProps({
2471
+ formId: 'civilLawsuit',
2472
+ onSubmit: '$submit($submitUrl, $prepData, $getRedirect)',
2473
+ redirectMap: legalRedirectMap(),
2474
+ anchorElement: 'form-anchor',
2475
+ valueOverrideMap: legalCriminalValueOverrideMap
2476
+ }),
2477
+ children: [
2478
+ headline({
2479
+ children: 'Start Here For a Free Consultation!',
2480
+ if: '$activeStep === $firstStep()'
2481
+ }),
2482
+ subHeadline({
2483
+ children: 'A Fast and Free Service Connecting You With Legal Help.',
2484
+ if: '$activeStep === $firstStep()'
2485
+ }),
2486
+ ...hiddenInputs,
2487
+ {
2488
+ $el: 'div',
2489
+ attrs: {
2490
+ class: 'form-body'
2491
+ },
2492
+ children: [
2493
+ criminalTOLPAndZip(),
2494
+ generalLegalTOLPQuestions(),
2495
+ comments({
2496
+ nextOnEnter: false,
2497
+ placeholder: 'For Example: "I was arrested for drug charges" or "I was pulled over for a DUI"'
2498
+ }),
2499
+ firstAndLast(),
2500
+ contactInfo({
2501
+ headline: [
2502
+ 'Based on your input, you may benefit from speaking with a Legal Professional. Please verify your contact information.'
2503
+ ],
2504
+ nextOnEnter: false
2505
+ }),
2506
+ formNavigation(),
2507
+ formDetails()
2508
+ ]
2509
+ }
2510
+ ]
2511
+ }
2512
+ ];
2513
+
2514
+ export { schema as default };