bhl-forms 0.7.3 → 0.7.5

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 (101) hide show
  1. package/dist/bhl-forms.es.js +551 -543
  2. package/dist/bhl-forms.iife.js +4 -4
  3. package/dist/bhl-forms.modern.es.js +649 -649
  4. package/dist/bhl-forms.modern.iife.js +7 -7
  5. package/dist/bhl-forms.modern.umd.js +7 -7
  6. package/dist/bhl-forms.umd.js +4 -4
  7. package/dist/forms/accidentsAndInjuries.es.js +1461 -1151
  8. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  9. package/dist/forms/accidentsAndInjuries.json +1 -1
  10. package/dist/forms/appraisals.es.js +138 -137
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/business.es.js +1434 -1149
  13. package/dist/forms/business.iife.js +1 -1
  14. package/dist/forms/business.json +1 -1
  15. package/dist/forms/childAndFamily.es.js +1329 -1043
  16. package/dist/forms/childAndFamily.iife.js +1 -1
  17. package/dist/forms/childAndFamily.json +1 -1
  18. package/dist/forms/childAndFamilySingle.es.js +1528 -1378
  19. package/dist/forms/childAndFamilySingle.iife.js +1 -1
  20. package/dist/forms/childAndFamilySingle.json +1 -1
  21. package/dist/forms/civilLawsuit.es.js +2000 -1807
  22. package/dist/forms/civilLawsuit.iife.js +1 -1
  23. package/dist/forms/civilLawsuit.json +1 -1
  24. package/dist/forms/coins.es.js +138 -137
  25. package/dist/forms/coins.iife.js +1 -1
  26. package/dist/forms/contracts.es.js +1349 -1050
  27. package/dist/forms/contracts.iife.js +1 -1
  28. package/dist/forms/contracts.json +1 -1
  29. package/dist/forms/criminal.es.js +1832 -1711
  30. package/dist/forms/criminal.iife.js +1 -1
  31. package/dist/forms/criminal.json +1 -1
  32. package/dist/forms/divorce.es.js +1541 -1385
  33. package/dist/forms/divorce.iife.js +1 -1
  34. package/dist/forms/divorce.json +1 -1
  35. package/dist/forms/employmentAndWorkplace.es.js +1833 -1678
  36. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  37. package/dist/forms/employmentAndWorkplace.json +1 -1
  38. package/dist/forms/generalHomeImprovement.es.js +2381 -2010
  39. package/dist/forms/generalHomeImprovement.iife.js +1 -1
  40. package/dist/forms/generalHomeImprovement.json +1 -1
  41. package/dist/forms/generalHomeImprovementThankYou.es.js +1795 -2008
  42. package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
  43. package/dist/forms/generalHomeImprovementThankYou.json +1 -1
  44. package/dist/forms/generalLegal.es.js +3037 -2535
  45. package/dist/forms/generalLegal.iife.js +1 -1
  46. package/dist/forms/generalLegal.json +1 -1
  47. package/dist/forms/generalLegalJustAnswer.es.js +3216 -2872
  48. package/dist/forms/generalLegalJustAnswer.iife.js +1 -1
  49. package/dist/forms/generalLegalJustAnswer.json +1 -1
  50. package/dist/forms/generalLegalPopUnder.es.js +3037 -2535
  51. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  52. package/dist/forms/generalLegalPopUnder.json +1 -1
  53. package/dist/forms/generalLegalPopUnderSingle.es.js +3216 -2872
  54. package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
  55. package/dist/forms/generalLegalPopUnderSingle.json +1 -1
  56. package/dist/forms/generalLegalSingle.es.js +3216 -2872
  57. package/dist/forms/generalLegalSingle.iife.js +1 -1
  58. package/dist/forms/generalLegalSingle.json +1 -1
  59. package/dist/forms/generalLegalThankYou.es.js +2825 -2303
  60. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  61. package/dist/forms/generalLegalThankYou.json +1 -1
  62. package/dist/forms/generalLegalThankYouConsultation.es.js +3216 -2872
  63. package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
  64. package/dist/forms/generalLegalThankYouConsultation.json +1 -1
  65. package/dist/forms/harassmentAndDiscrimination.es.js +1425 -1120
  66. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  67. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  68. package/dist/forms/landlordTenant.es.js +1395 -1106
  69. package/dist/forms/landlordTenant.iife.js +1 -1
  70. package/dist/forms/landlordTenant.json +1 -1
  71. package/dist/forms/malpractice.es.js +1531 -1223
  72. package/dist/forms/malpractice.iife.js +1 -1
  73. package/dist/forms/malpractice.json +1 -1
  74. package/dist/forms/mechanics.es.js +702 -530
  75. package/dist/forms/mechanics.iife.js +1 -1
  76. package/dist/forms/mechanics.json +1 -1
  77. package/dist/forms/patentsAndIP.es.js +1830 -1652
  78. package/dist/forms/patentsAndIP.iife.js +1 -1
  79. package/dist/forms/patentsAndIP.json +1 -1
  80. package/dist/forms/realEstate.es.js +2852 -2405
  81. package/dist/forms/realEstate.iife.js +1 -1
  82. package/dist/forms/realEstate.json +1 -1
  83. package/dist/forms/repossession.es.js +1568 -1251
  84. package/dist/forms/repossession.iife.js +1 -1
  85. package/dist/forms/repossession.json +1 -1
  86. package/dist/forms/ssdi.es.js +635 -520
  87. package/dist/forms/ssdi.iife.js +1 -1
  88. package/dist/forms/ssdi.json +1 -1
  89. package/dist/forms/testForm.es.js +409 -371
  90. package/dist/forms/testForm.iife.js +1 -1
  91. package/dist/forms/testForm.json +1 -1
  92. package/dist/forms/testRedirects.es.js +421 -316
  93. package/dist/forms/testRedirects.iife.js +1 -1
  94. package/dist/forms/testRedirects.json +1 -1
  95. package/dist/forms/vets.es.js +138 -137
  96. package/dist/forms/vets.iife.js +1 -1
  97. package/dist/forms/willsAndTrusts.es.js +1428 -1112
  98. package/dist/forms/willsAndTrusts.iife.js +1 -1
  99. package/dist/forms/willsAndTrusts.json +1 -1
  100. package/dist/main.css +1 -1
  101. package/package.json +1 -1
@@ -6,96 +6,101 @@ function LegalRedirectUrl() {
6
6
  return 'https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}'
7
7
  }
8
8
 
9
- const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
10
- const DEFAULT_COMMENTS_LABEL_LEGAL = 'Please briefly describe your legal issue in a few words:';
11
- const DEFAULT_FINAL_HEADLINE_LEGAL = 'Submit Your Case';
12
- const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
13
- const DEFAULT_FINAL_SUBHEADLINE_LEGAL = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
14
- const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
15
- const TCPA_LANGUAGE_LEGAL = "By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.";
9
+ const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL =
10
+ '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
11
+ const DEFAULT_COMMENTS_LABEL_LEGAL = "Please briefly describe your legal issue in a few words:";
12
+ const DEFAULT_FINAL_HEADLINE_LEGAL = "Submit Your Case";
13
+ const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL =
14
+ '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
15
+ const DEFAULT_FINAL_SUBHEADLINE_LEGAL =
16
+ "You may benefit from speaking with a legal professional. Please verify your contact information.";
17
+ const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL =
18
+ '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
19
+ const TCPA_LANGUAGE_LEGAL =
20
+ "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.";
16
21
  const defaultLegalImprovementCrossSells = {
17
- 'Auto and Car Accidents': 'Injured in a Car Accident',
18
- 'Personal Injury': 'Personal or Workplace Injury',
19
- 'DUI and DWI': 'Involved in a DUI/DWI',
20
- 'Wills and Trusts': 'Need a Will or Trust',
21
- 'Power of Attorney': 'Update Power of Attorney',
22
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
22
+ "Auto and Car Accidents": "Injured in a Car Accident",
23
+ "Personal Injury": "Personal or Workplace Injury",
24
+ "DUI and DWI": "Involved in a DUI/DWI",
25
+ "Wills and Trusts": "Need a Will or Trust",
26
+ "Power of Attorney": "Update Power of Attorney",
27
+ "Social Security Disability and Insurance": "Interest in Disability Benefits",
23
28
  };
24
29
  const CROSS_SELL_OPTION_MAP_LEGAL = {
25
30
  // Values can be a list or a map of value -> display value
26
- 'Auto and Car Accidents': {
27
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
28
- 'Wills and Trusts': 'Need a Will or Trust',
29
- 'Workers Compensation': 'Workplace Injury',
30
- 'Power of Attorney': 'Update Power of Attorney',
31
- 'Divorce and Separation': 'Need a Divorce or Separation',
32
- 'Child Custody': 'Need help with Child Custody',
31
+ "Auto and Car Accidents": {
32
+ "Social Security Disability and Insurance": "Interest in Disability Benefits",
33
+ "Wills and Trusts": "Need a Will or Trust",
34
+ "Workers Compensation": "Workplace Injury",
35
+ "Power of Attorney": "Update Power of Attorney",
36
+ "Divorce and Separation": "Need a Divorce or Separation",
37
+ "Child Custody": "Need help with Child Custody",
33
38
  },
34
39
  "Personal Injury": {
35
- 'DUI and DWI': 'Involved in a DUI/DWI',
36
- 'Wills and Trusts': 'Need a Will or Trust',
37
- 'Power of Attorney': 'Update Power of Attorney',
38
- 'Divorce and Separation': 'Need a Divorce or Separation',
39
- 'Child Custody': 'Need help with Child Custody',
40
+ "DUI and DWI": "Involved in a DUI/DWI",
41
+ "Wills and Trusts": "Need a Will or Trust",
42
+ "Power of Attorney": "Update Power of Attorney",
43
+ "Divorce and Separation": "Need a Divorce or Separation",
44
+ "Child Custody": "Need help with Child Custody",
40
45
  // TODO add one more?
41
46
  },
42
47
  "Workers Compensation": {
43
- 'DUI and DWI': 'Involved in a DUI/DWI',
44
- 'Wills and Trusts': 'Need a Will or Trust',
45
- 'Power of Attorney': 'Update Power of Attorney',
46
- 'Divorce and Separation': 'Need a Divorce or Separation',
47
- 'Child Custody': 'Need help with Child Custody',
48
+ "DUI and DWI": "Involved in a DUI/DWI",
49
+ "Wills and Trusts": "Need a Will or Trust",
50
+ "Power of Attorney": "Update Power of Attorney",
51
+ "Divorce and Separation": "Need a Divorce or Separation",
52
+ "Child Custody": "Need help with Child Custody",
48
53
  // TODO add one more?
49
54
  },
50
55
  "DUI and DWI": {
51
- 'Personal Injury': 'Personal or Workplace Injury',
52
- 'Wills and Trusts': 'Need a Will or Trust',
53
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
54
- 'Power of Attorney': 'Update Power of Attorney',
55
- 'Divorce and Separation': 'Need a Divorce or Separation',
56
- 'Child Custody': 'Need help with Child Custody',
56
+ "Personal Injury": "Personal or Workplace Injury",
57
+ "Wills and Trusts": "Need a Will or Trust",
58
+ "Social Security Disability and Insurance": "Interest in Disability Benefits",
59
+ "Power of Attorney": "Update Power of Attorney",
60
+ "Divorce and Separation": "Need a Divorce or Separation",
61
+ "Child Custody": "Need help with Child Custody",
57
62
  },
58
63
  "Wills and Trusts": {
59
- 'Auto and Car Accidents': 'Injured in a Car Accident',
60
- 'Personal Injury': 'Personal or Workplace Injury',
61
- 'DUI and DWI': 'Involved in a DUI/DWI',
62
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
63
- 'Divorce and Separation': 'Need a Divorce or Separation',
64
- 'Child Custody': 'Need help with Child Custody',
64
+ "Auto and Car Accidents": "Injured in a Car Accident",
65
+ "Personal Injury": "Personal or Workplace Injury",
66
+ "DUI and DWI": "Involved in a DUI/DWI",
67
+ "Social Security Disability and Insurance": "Interest in Disability Benefits",
68
+ "Divorce and Separation": "Need a Divorce or Separation",
69
+ "Child Custody": "Need help with Child Custody",
65
70
  },
66
71
  "Probate and Estates": {
67
- 'Auto and Car Accidents': 'Injured in a Car Accident',
68
- 'Personal Injury': 'Personal or Workplace Injury',
69
- 'DUI and DWI': 'Involved in a DUI/DWI',
70
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
71
- 'Divorce and Separation': 'Need a Divorce or Separation',
72
- 'Child Custody': 'Need help with Child Custody',
72
+ "Auto and Car Accidents": "Injured in a Car Accident",
73
+ "Personal Injury": "Personal or Workplace Injury",
74
+ "DUI and DWI": "Involved in a DUI/DWI",
75
+ "Social Security Disability and Insurance": "Interest in Disability Benefits",
76
+ "Divorce and Separation": "Need a Divorce or Separation",
77
+ "Child Custody": "Need help with Child Custody",
73
78
  },
74
79
  "Power of Attorney": {
75
- 'Auto and Car Accidents': 'Injured in a Car Accident',
76
- 'Personal Injury': 'Personal or Workplace Injury',
77
- 'DUI and DWI': 'Involved in a DUI/DWI',
78
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
79
- 'Divorce and Separation': 'Need a Divorce or Separation',
80
- 'Child Custody': 'Need help with Child Custody',
80
+ "Auto and Car Accidents": "Injured in a Car Accident",
81
+ "Personal Injury": "Personal or Workplace Injury",
82
+ "DUI and DWI": "Involved in a DUI/DWI",
83
+ "Social Security Disability and Insurance": "Interest in Disability Benefits",
84
+ "Divorce and Separation": "Need a Divorce or Separation",
85
+ "Child Custody": "Need help with Child Custody",
81
86
  },
82
87
  "Long Term Disability": {
83
- 'Auto and Car Accidents': 'Injured in a Car Accident',
84
- 'DUI and DWI': 'Involved in a DUI/DWI',
85
- 'Wills and Trusts': 'Need a Will or Trust',
86
- 'Power of Attorney': 'Update Power of Attorney',
87
- 'Divorce and Separation': 'Need a Divorce or Separation',
88
- 'Child Custody': 'Need help with Child Custody',
88
+ "Auto and Car Accidents": "Injured in a Car Accident",
89
+ "DUI and DWI": "Involved in a DUI/DWI",
90
+ "Wills and Trusts": "Need a Will or Trust",
91
+ "Power of Attorney": "Update Power of Attorney",
92
+ "Divorce and Separation": "Need a Divorce or Separation",
93
+ "Child Custody": "Need help with Child Custody",
89
94
  },
90
95
  "Social Security Disability and Insurance": {
91
- 'Auto and Car Accidents': 'Injured in a Car Accident',
92
- 'DUI and DWI': 'Involved in a DUI/DWI',
93
- 'Wills and Trusts': 'Need a Will or Trust',
94
- 'Power of Attorney': 'Update Power of Attorney',
95
- 'Divorce and Separation': 'Need a Divorce or Separation',
96
- 'Child Custody': 'Need help with Child Custody',
96
+ "Auto and Car Accidents": "Injured in a Car Accident",
97
+ "DUI and DWI": "Involved in a DUI/DWI",
98
+ "Wills and Trusts": "Need a Will or Trust",
99
+ "Power of Attorney": "Update Power of Attorney",
100
+ "Divorce and Separation": "Need a Divorce or Separation",
101
+ "Child Custody": "Need help with Child Custody",
97
102
  },
98
- '*': defaultLegalImprovementCrossSells,
103
+ "*": defaultLegalImprovementCrossSells,
99
104
  };
100
105
 
101
106
  // ------ Common Base Settings
@@ -104,32 +109,49 @@ const checkbox = (updates) => {
104
109
  if (updates.name && !updates.id) {
105
110
  updates.id = updates.name;
106
111
  }
107
- return merge({
108
- $formkit: 'checkbox',
109
- validation: 'required',
110
- validationMessages: {
111
- required: 'Field is required'
112
- }
113
- }, updates)
112
+ return merge(
113
+ {
114
+ $formkit: "checkbox",
115
+ validation: "required",
116
+ validationMessages: {
117
+ required: "Field is required",
118
+ },
119
+ },
120
+ updates
121
+ )
114
122
  };
115
123
 
116
124
  const sbsCheckbox = (updates) => {
117
- updates.legendClass = 'legend-left required';
118
- updates.fieldsetClass = '$reset side-by-side';
119
- updates.optionsClass = 't-pl-1';
120
- updates.innerClass = 't-flex t-items-center';
121
- updates.wrapperClass = 't-mb-3';
125
+ updates.legendClass = "legend-left required";
126
+ updates.fieldsetClass = "$reset side-by-side";
127
+ updates.optionsClass = "t-pl-1";
128
+ updates.innerClass = "t-flex t-items-center";
129
+ updates.wrapperClass = "t-mb-3";
122
130
  return checkbox(updates)
123
131
  };
124
132
 
125
133
  const col2Checkbox = (updates) => {
126
134
  if (!updates || !updates.legendClass) {
127
- updates.legendClass = 'required';
135
+ updates.legendClass = "required";
128
136
  }
129
- updates.fieldsetClass = '$reset';
130
- updates.optionsClass = 't-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
131
- updates.innerClass = 't-items-start';
132
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
137
+ updates.fieldsetClass = "$reset";
138
+ updates.optionsClass = "t-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
139
+ updates.innerClass = "t-items-start";
140
+ updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
141
+ return checkbox(updates)
142
+ };
143
+
144
+ const verticalCol2Checkbox = (updates) => {
145
+ if (!updates || !updates.legendClass) {
146
+ updates.legendClass = "required t-w-[100%] t-text-center";
147
+ }
148
+ updates.fieldsetClass = "$reset t-flex t-justify-center t-flex-col";
149
+ updates.innerClass = "t-items-start";
150
+ updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
151
+ updates.optionClass = "t-pl-4 md:t-pl-16 md:t-min-w-[200px]";
152
+ updates.optionsClass = "t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
153
+ updates.messagesClass = "t-flex t-justify-center";
154
+ updates.helpClass = "t-mt-0 t-mb-4 !t-text-sm t-text-center";
133
155
  return checkbox(updates)
134
156
  };
135
157
 
@@ -137,72 +159,85 @@ const radio = (updates) => {
137
159
  if (updates.name && !updates.id) {
138
160
  updates.id = updates.name;
139
161
  }
140
- return merge({
141
- $formkit: 'radio',
142
- validation: 'required',
143
- validationMessages: {
144
- required: 'Field is required'
162
+ return merge(
163
+ {
164
+ $formkit: "radio",
165
+ validation: "required",
166
+ validationMessages: {
167
+ required: "Field is required",
168
+ },
169
+ optionsClass: "t-pt-3 t-pl-1",
170
+ legendClass: "required",
145
171
  },
146
- optionsClass: 't-pt-3 t-pl-1',
147
- legendClass: 'required'
148
- }, updates)
172
+ updates
173
+ )
174
+ };
175
+
176
+ const col2Radio = (updates) => {
177
+ updates.legendClass = "required";
178
+ updates.fieldsetClass = "$reset";
179
+ updates.optionsClass = "t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
180
+ updates.innerClass = "t-items-start";
181
+ updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
182
+ return radio(updates)
149
183
  };
150
184
 
185
+ // TODO: rename
151
186
  const col2RadioCenter = (updates) => {
152
- updates.legendClass = 'required t-w-[100%] t-text-center';
153
- if (typeof updates.fieldsetClass === 'undefined') {
154
- updates.fieldsetClass = '$reset t-flex t-justify-center';
187
+ updates.legendClass = "required t-w-[100%] t-text-center";
188
+ if (typeof updates.fieldsetClass === "undefined") {
189
+ updates.fieldsetClass = "$reset t-flex t-justify-center";
155
190
  }
156
- updates.optionsClass = 't-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
157
- updates.innerClass = 't-items-start';
158
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
159
- updates.optionClass = 't-pl-4 md:t-pl-8 md:t-min-w-[200px]';
160
- updates.messagesClass = 't-flex t-justify-center';
161
- updates.helpClass = 't-mt-0 t-mb-4 !t-text-sm t-text-center';
191
+ updates.innerClass = "t-items-start";
192
+ updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
193
+ updates.optionClass = "t-pl-4 md:t-pl-8 md:t-min-w-[200px]";
194
+ updates.optionsClass = "t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
195
+ updates.messagesClass = "t-flex t-justify-center";
196
+ updates.helpClass = "t-mt-0 t-mb-4 !t-text-sm t-text-center";
162
197
  return radio(updates)
163
198
  };
164
199
 
165
200
  const sbs2ColRadio = (updates) => {
166
- updates.legendClass = 'legend-left-flex md:t-max-w-[40%] required';
167
- updates.fieldsetClass = '$reset side-by-side-flex';
168
- updates.optionsClass = 'md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125';
169
- updates.innerClass = 't-flex t-items-start';
170
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
201
+ updates.legendClass = "legend-left-flex md:t-max-w-[40%] required";
202
+ updates.fieldsetClass = "$reset side-by-side-flex";
203
+ updates.optionsClass = "md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125";
204
+ updates.innerClass = "t-flex t-items-start";
205
+ updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
171
206
  return radio(updates)
172
207
  };
173
208
 
174
209
  const sbs2ItemRadio = (updates) => {
175
- updates.legendClass = 'legend-left t-pb-1 required';
176
- updates.fieldsetClass = '$reset side-by-side t-items-center';
177
- updates.optionsClass = 't-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center';
178
- updates.innerClass = 't-flex t-items-center';
179
- updates.optionClass = 't-pr-1';
210
+ updates.legendClass = "legend-left t-pb-1 required";
211
+ updates.fieldsetClass = "$reset side-by-side t-items-center";
212
+ updates.optionsClass = "t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center";
213
+ updates.innerClass = "t-flex t-items-center";
214
+ updates.optionClass = "t-pr-1";
180
215
  return radio(updates)
181
216
  };
182
217
 
183
218
  const sbsYesNoRadio = (updates) => {
184
- updates.options = ['Yes', 'No'];
219
+ updates.options = ["Yes", "No"];
185
220
  return sbs2ItemRadio(updates)
186
221
  };
187
222
 
188
223
  const verticalButtonRadio = (updates) => {
189
- updates.legendClass = 'legend-left';
190
- updates.fieldsetClass = '$reset t-flex t-justify-center t-flex-col-reverse t-items-center';
191
- if (typeof updates.optionsClass === 'undefined') {
192
- updates.optionsClass = 't-flex t-flex-col sm:t-flex-row t-justify-center t-my-3';
224
+ updates.legendClass = "legend-left";
225
+ updates.fieldsetClass = "$reset t-flex t-justify-center t-flex-col-reverse t-items-center";
226
+ if (typeof updates.optionsClass === "undefined") {
227
+ updates.optionsClass = "t-flex t-flex-col sm:t-flex-row t-justify-center t-my-3";
193
228
  }
194
- updates.optionClass = 'radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5';
195
- updates.wrapperClass = '$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]';
196
- updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
229
+ updates.optionClass = "radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5";
230
+ updates.wrapperClass = "$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]";
231
+ updates.labelClass = "t-font-semibold t-text-[#1e448f] t-w-[100%]";
197
232
  updates.decoratorIcon = false;
198
- updates.messagesClass = 't-flex t-justify-center';
199
- updates.helpClass = 't-mt-2.5 !t-text-sm t-text-center';
233
+ updates.messagesClass = "t-flex t-justify-center";
234
+ updates.helpClass = "t-mt-2.5 !t-text-sm t-text-center";
200
235
  return radio(updates)
201
236
  };
202
237
 
203
238
  const verticalYesNoRadio = (updates) => {
204
- updates.options = ['Yes', 'No'];
205
- updates.optionsClass = 't-flex t-justify-center t-my-3';
239
+ updates.options = ["Yes", "No"];
240
+ updates.optionsClass = "t-flex t-justify-center t-my-3";
206
241
  return verticalButtonRadio(updates)
207
242
  };
208
243
 
@@ -210,23 +245,35 @@ const select = (updates) => {
210
245
  if (updates.name && !updates.id) {
211
246
  updates.id = updates.name;
212
247
  }
213
- return merge({
214
- $formkit: 'select',
215
- placeholder: "Please Select",
216
- validation: 'required',
217
- validationMessages: {
218
- required: 'Field is required'
248
+ return merge(
249
+ {
250
+ $formkit: "select",
251
+ placeholder: "Please Select",
252
+ validation: "required",
253
+ validationMessages: {
254
+ required: "Field is required",
255
+ },
256
+ inputClass: "t-bg-white",
257
+ labelClass: "required",
219
258
  },
220
- inputClass: 't-bg-white',
221
- labelClass: 'required'
222
- }, updates)
259
+ updates
260
+ )
223
261
  };
224
262
 
225
263
  const sbsSelect = (updates) => {
226
- updates.labelClass = 'required';
227
- updates.wrapperClass = 'side-by-side t-items-center';
228
- updates.innerClass = 'select-height-content';
229
- updates.helpClass = 't-mt-2.5 md:t-text-right md:t-mt-[-5px]';
264
+ updates.labelClass = "required";
265
+ updates.wrapperClass = "side-by-side t-items-center";
266
+ updates.innerClass = "select-height-content";
267
+ updates.helpClass = "t-mt-2.5 md:t-text-right md:t-mt-[-5px]";
268
+ return select(updates)
269
+ };
270
+
271
+ const verticalSelect = (updates) => {
272
+ updates.labelClass = "required";
273
+ updates.wrapperClass = "t-flex t-justify-center";
274
+ updates.messagesClass = "t-flex t-justify-center";
275
+ updates.inputClass = "t-min-w-[150px] t-bg-white";
276
+ updates.helpClass = "t-mt-2.5 t-text-center";
230
277
  return select(updates)
231
278
  };
232
279
 
@@ -234,26 +281,29 @@ const text = (updates) => {
234
281
  if (updates.name && !updates.id) {
235
282
  updates.id = updates.name;
236
283
  }
237
- return merge({
238
- $formkit: 'text',
239
- validation: 'required',
240
- validationMessages: {
241
- required: 'Field is required'
284
+ return merge(
285
+ {
286
+ $formkit: "text",
287
+ validation: "required",
288
+ validationMessages: {
289
+ required: "Field is required",
290
+ },
291
+ labelClass: "required",
242
292
  },
243
- labelClass: 'required'
244
- }, updates)
293
+ updates
294
+ )
245
295
  };
246
296
 
247
297
  const sbsText = (updates) => {
248
- updates.wrapperClass = 'side-by-side t-items-center';
298
+ updates.wrapperClass = "side-by-side t-items-center";
249
299
  return text(updates)
250
300
  };
251
301
 
252
302
  const verticalText = (updates) => {
253
- updates.wrapperClass = 't-flex t-justify-center';
254
- updates.messagesClass = 't-flex t-justify-center';
255
- updates.inputClass = 't-text-center';
256
- updates.helpClass = 't-mt-2.5 !t-text-sm t-text-center';
303
+ updates.wrapperClass = "t-flex t-justify-center";
304
+ updates.messagesClass = "t-flex t-justify-center";
305
+ updates.inputClass = "t-text-center";
306
+ updates.helpClass = "t-mt-2.5 !t-text-sm t-text-center";
257
307
  return text(updates)
258
308
  };
259
309
 
@@ -261,468 +311,708 @@ const textArea = (updates) => {
261
311
  if (updates.name && !updates.id) {
262
312
  updates.id = updates.name;
263
313
  }
264
- return merge({
265
- $formkit: 'textarea',
266
- rows: 5,
267
- maxlength: 500,
268
- validation: 'required',
269
- validationMessages: {
270
- required: 'Field is required'
314
+ return merge(
315
+ {
316
+ $formkit: "textarea",
317
+ rows: 5,
318
+ maxlength: 500,
319
+ validation: "required",
320
+ validationMessages: {
321
+ required: "Field is required",
322
+ },
323
+ innerClass: "t-max-w-xl",
324
+ labelClass: "required",
271
325
  },
272
- innerClass: 't-max-w-xl',
273
- labelClass: 'required'
274
- }, updates)
326
+ updates
327
+ )
275
328
  };
276
329
 
277
330
  const date = (updates) => {
278
331
  if (updates.name && !updates.id) {
279
332
  updates.id = updates.name;
280
333
  }
281
- return merge({
282
- $formkit: 'DatePicker',
283
- validation: 'required',
284
- validationMessages: {
285
- required: 'Field is required'
334
+ return merge(
335
+ {
336
+ $formkit: "DatePicker",
337
+ validation: "required",
338
+ validationMessages: {
339
+ required: "Field is required",
340
+ },
341
+ labelClass: "required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500",
342
+ innerClass:
343
+ "t-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500",
286
344
  },
287
- labelClass: 'required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500',
288
- innerClass: 't-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500'
289
- }, updates)
345
+ updates
346
+ )
290
347
  };
291
348
 
292
349
  const sbsDate = (updates) => {
293
- updates.wrapperClass = 'side-by-side t-items-center';
350
+ updates.wrapperClass = "side-by-side t-items-center";
294
351
  return date(updates)
295
352
  };
296
353
 
297
- const email = (scope) => sbsText({
298
- $formkit: 'email',
299
- name: scope ? scope + ':' + 'Email' : 'Email',
300
- label: 'Email Address:',
301
- placeholder: 'email@domain.com',
302
- autocomplete: 'email',
303
- 'data-tf-sensitive': 'false',
304
- validation: 'required|email',
305
- validationMessages: {
306
- required: 'Email is required',
307
- email: 'Invalid Email'
308
- }
309
- });
354
+ const verticalDate = (updates) => {
355
+ updates.wrapperClass = "t-flex t-justify-center";
356
+ updates.inputClass = "t-text-center";
357
+ updates.messagesClass = "t-flex t-justify-center";
358
+ return date(updates)
359
+ };
310
360
 
311
- const firstName = (scope) => sbsText({
312
- label: 'First Name:',
313
- placeholder: 'First',
314
- name: scope ? scope + ':' + 'First_Name' : 'First_Name',
315
- autocomplete: "given-name",
316
- validationMessages: {
317
- required: 'First Name is required'
318
- }
319
- });
361
+ const email = (scope, vertical, updates = {}) => {
362
+ const func = vertical ? verticalText : sbsText;
363
+ const label = vertical ? updates.label : "Email Address:";
364
+ return func({
365
+ $formkit: "email",
366
+ name: scope ? scope + ":" + "Email" : "Email",
367
+ label,
368
+ placeholder: "email@domain.com",
369
+ autocomplete: "email",
370
+ "data-tf-sensitive": "false",
371
+ validation: "required|email",
372
+ validationMessages: {
373
+ required: "Email is required",
374
+ email: "Invalid Email",
375
+ },
376
+ ...updates,
377
+ })
378
+ };
320
379
 
321
- const lastName = (scope) => sbsText({
322
- label: 'Last Name:',
323
- placeholder: 'Last',
324
- name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
325
- autocomplete: "family-name",
326
- validationMessages: {
327
- required: 'Last Name is required'
328
- }
329
- });
380
+ const firstName = (scope, vertical, updates = {}) => {
381
+ const func = vertical ? verticalText : sbsText;
382
+ const label = vertical ? updates.label : "First Name:";
383
+ return func({
384
+ label,
385
+ placeholder: "First",
386
+ name: scope ? scope + ":" + "First_Name" : "First_Name",
387
+ autocomplete: "given-name",
388
+ validationMessages: {
389
+ required: "First Name is required",
390
+ },
391
+ ...updates,
392
+ })
393
+ };
330
394
 
331
- const phone = (scope) => sbsText({
332
- $formkit: 'tel',
333
- name: scope ? scope + ':' + 'Primary_Phone' : 'Primary_Phone',
334
- label: 'Phone Number:',
335
- placeholder: '###-###-####',
336
- maxlength: 12,
337
- help: '10-digit phone number, hyphens optional',
338
- autocomplete: 'tel-national',
339
- 'data-tf-sensitive': 'false',
340
- validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
341
- validationMessages: {
342
- required: 'Field is required',
343
- matches: 'Invalid Phone Format, use ###-###-####',
344
- valid_phone: 'Invalid Phone Number'
345
- },
346
- helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
347
- });
395
+ const lastName = (scope, vertical, updates = {}) => {
396
+ const func = vertical ? verticalText : sbsText;
397
+ const label = vertical ? updates.label : "Last Name:";
398
+ return func({
399
+ label,
400
+ placeholder: "Last",
401
+ name: scope ? scope + ":" + "Last_Name" : "Last_Name",
402
+ autocomplete: "family-name",
403
+ validationMessages: {
404
+ required: "Last Name is required",
405
+ },
406
+ ...updates,
407
+ })
408
+ };
348
409
 
410
+ const phone = (scope, vertical, updates = {}) => {
411
+ const func = vertical ? verticalText : sbsText;
412
+ const label = vertical ? updates.label : "Phone Number:";
413
+ return func({
414
+ $formkit: "tel",
415
+ name: scope ? scope + ":" + "Primary_Phone" : "Primary_Phone",
416
+ label,
417
+ placeholder: "###-###-####",
418
+ maxlength: 12,
419
+ help: "10-digit phone number, hyphens optional",
420
+ autocomplete: "tel-national",
421
+ "data-tf-sensitive": "false",
422
+ validation: "required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone",
423
+ validationMessages: {
424
+ required: "Phone Number is required",
425
+ matches: "Invalid Phone Format, use ###-###-####",
426
+ valid_phone: "Invalid Phone Number",
427
+ },
428
+ helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]",
429
+ ...updates,
430
+ })
431
+ };
349
432
 
350
433
  const zipcode$1 = (scope, vertical, updates = {}) => {
351
434
  const func = vertical ? verticalText : sbsText;
352
- const label = vertical ? (updates.label) : 'Zip Code:';
353
- const help = vertical ? (updates.help ?? "We try to match you with local help") : null;
435
+ const label = vertical ? updates.label : "Zip Code:";
436
+ const help = vertical ? updates.help ?? "We try to match you with local help" : null;
354
437
  return func({
355
438
  label,
356
439
  help,
357
- placeholder: '#####',
358
- name: scope ? scope + ':' + 'Zip' : 'Zip',
440
+ placeholder: "#####",
441
+ name: scope ? scope + ":" + "Zip" : "Zip",
359
442
  maxlength: 5,
360
443
  inputmode: "numeric",
361
- autocomplete: 'postal-code',
362
- validation: 'required|matches:/^[0-9]{5}$/',
444
+ autocomplete: "postal-code",
445
+ validation: "required|matches:/^[0-9]{5}$/",
363
446
  validationMessages: {
364
- required: 'Zip Code is required',
365
- matches: 'Invalid Zip Code'
447
+ required: "Zip Code is required",
448
+ matches: "Invalid Zip Code",
366
449
  },
367
- ...updates
450
+ ...updates,
368
451
  })
369
452
  };
370
453
 
371
454
  const applicantAge = (scope, vertical, updates = {}) => {
372
455
  const func = vertical ? verticalText : sbsText;
373
- const label = vertical ? (updates.label) : 'Age of Applicant?';
374
- const value = vertical ? (updates.value ?? "50") : null;
375
- return func(merge({
376
- label,
377
- placeholder: 'Age between 18 and 65',
378
- name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
379
- value,
380
- maxlength: 2,
381
- inputmode: "numeric",
382
- validation: "required|min:18,max:65",
383
- validationMessages: {
384
- required: 'Applicant Age is required',
385
- min: 'Invalid Age - must be between 18 and 65',
386
- max: 'Invalid Age - must be between 18 and 65',
387
- },
388
- ...updates
389
- }))
456
+ const label = vertical ? updates.label : "Age of Applicant?";
457
+ const value = vertical ? updates.value ?? "50" : null;
458
+ return func(
459
+ merge({
460
+ label,
461
+ placeholder: "Age between 18 and 65",
462
+ name: scope ? scope + ":" + "Applicant_Age" : "Applicant_Age",
463
+ value,
464
+ maxlength: 2,
465
+ inputmode: "numeric",
466
+ validation: "required|min:18,max:65",
467
+ validationMessages: {
468
+ required: "Applicant Age is required",
469
+ min: "Invalid Age - must be between 18 and 65",
470
+ max: "Invalid Age - must be between 18 and 65",
471
+ },
472
+ ...updates,
473
+ })
474
+ )
390
475
  };
391
476
 
392
- const atFault = (scope) => sbsYesNoRadio({
393
- name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
394
- label: 'Were You at Fault?'
395
- });
396
-
397
- const bankruptcyCrossSell = () => sbsCheckbox({
398
- label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
399
- help: "Note: you will be contacted separately by a bankruptcy/debt expert",
400
- name: 'CrossSell_Bankruptcy',
401
- id: 'CrossSell_Bankruptcy',
402
- 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")',
403
- validation: null,
404
- helpClass: "!t-text-sm"
405
- });
406
-
407
- const bloodContentAlcoholTest = (scope) => sbsSelect({
408
- name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
409
- label: 'Blood Alcohol Content Measured by Test:',
410
- options: [
411
- "No Test",
412
- "0.00% - 0.04%",
413
- "0.05% - 0.08%",
414
- "0.09% - 0.12%",
415
- "0.13% - 0.16%",
416
- "0.17% - 0.20%",
417
- "More than 0.20%",
418
- "Don't know"
419
- ]
420
- });
477
+ const atFault = (scope, vertical, updates = {}) => {
478
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
479
+ const label = vertical ? updates.label : "Were You at Fault?";
480
+ return func(
481
+ merge(
482
+ {
483
+ label,
484
+ name: scope ? scope + ":" + "At_Fault" : "At_Fault",
485
+ },
486
+ updates
487
+ )
488
+ )
489
+ };
421
490
 
422
- const childAndFamilyTOLPCenter = () => col2RadioCenter({
423
- name: 'Type_Of_Legal_Problem',
424
- id: 'Type_Of_Legal_Problem',
425
- options: [
426
- 'Child Custody',
427
- 'Child Support',
428
- 'Adoption',
429
- 'Family Issues',
430
- 'Guardianship',
431
- 'Divorce and Separation',
432
- 'Not Sure or Other'
433
- ]
434
- });
491
+ const bankruptcyCrossSell = (scope) =>
492
+ sbsCheckbox({
493
+ label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
494
+ help: "Note: you will be contacted separately by a bankruptcy/debt expert",
495
+ name: scope ? scope + ":CrossSell_Bankruptcy" : "CrossSell_Bankruptcy",
496
+ id: scope ? scope + ":CrossSell_Bankruptcy" : "CrossSell_Bankruptcy",
497
+ 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")',
498
+ validation: null,
499
+ helpClass: "!t-text-sm",
500
+ });
501
+
502
+ const bloodContentAlcoholTest = (scope, vertical, updates = {}) => {
503
+ const func = vertical ? verticalSelect : sbsSelect;
504
+ const label = vertical ? updates.label : "Blood Alcohol Content Measured by Test:";
505
+ return func(
506
+ merge(
507
+ {
508
+ label,
509
+ name: scope ? scope + ":" + "Blood_Alcohol_Content_Test" : "Blood_Alcohol_Content_Test",
510
+ options: [
511
+ "No Test",
512
+ "0.00% - 0.04%",
513
+ "0.05% - 0.08%",
514
+ "0.09% - 0.12%",
515
+ "0.13% - 0.16%",
516
+ "0.17% - 0.20%",
517
+ "More than 0.20%",
518
+ "Don't know",
519
+ ],
520
+ },
521
+ updates
522
+ )
523
+ )
524
+ };
435
525
 
436
- const childHomeCenter = (scope) => col2RadioCenter({
437
- name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
438
- options: [
439
- 'Mother',
440
- 'Father',
441
- 'Grandparents',
442
- 'Other'
443
- ]
444
- });
526
+ const childAndFamilyTOLP$1 = (scope, vertical, updates = {}) => {
527
+ const func = vertical ? col2RadioCenter : col2Radio;
528
+ const label = vertical ? updates.label : "Type of Help Needed:";
529
+ return func(
530
+ merge(
531
+ {
532
+ label,
533
+ id: scope ? scope + ":" + "Type_Of_Legal_Problem" : "Type_Of_Legal_Problem",
534
+ name: scope ? scope + ":" + "Type_Of_Legal_Problem" : "Type_Of_Legal_Problem",
535
+ options: [
536
+ "Child Custody",
537
+ "Child Support",
538
+ "Adoption",
539
+ "Family Issues",
540
+ "Guardianship",
541
+ "Divorce and Separation",
542
+ "Not Sure or Other",
543
+ ],
544
+ },
545
+ updates
546
+ )
547
+ )
548
+ };
445
549
 
446
- const childPrimaryCaregiverCenter = (scope) => verticalButtonRadio({
447
- name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
448
- options: [
449
- 'Mother',
450
- 'Father',
451
- 'Other'
452
- ]
453
- });
550
+ const childHome$1 = (scope, vertical, updates = {}) => {
551
+ const func = vertical ? col2RadioCenter : sbsSelect;
552
+ const label = vertical ? updates.label : "With Whom Do the Children Currently Live?";
553
+ return func(
554
+ merge(
555
+ {
556
+ label,
557
+ name: scope ? scope + ":" + "Child_Home" : "Child_Home",
558
+ options: ["Mother", "Father", "Grandparents", "Other"],
559
+ },
560
+ updates
561
+ )
562
+ )
563
+ };
454
564
 
455
- const childRelationshipCenter = (scope) => col2RadioCenter({
456
- name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
457
- options: [
458
- 'Father',
459
- 'Mother',
460
- 'Grandparent',
461
- 'Aunt/Uncle',
462
- 'Other'
463
- ]
464
- });
565
+ const childPrimaryCaregiver$1 = (scope, vertical, updates = {}) => {
566
+ const func = vertical ? verticalButtonRadio : sbsSelect;
567
+ const label = vertical ? updates.label : "Who is the Primary Caregiver?";
568
+ return func(
569
+ merge(
570
+ {
571
+ label,
572
+ name: scope ? scope + ":" + "Child_Primary_Caregiver" : "Child_Primary_Caregiver",
573
+ options: ["Mother", "Father", "Other"],
574
+ },
575
+ updates
576
+ )
577
+ )
578
+ };
465
579
 
466
- const claimStatus = (scope) => sbsSelect({
467
- name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
468
- label: "Status of Claim:",
469
- options: [
470
- "No action taken yet",
471
- "Demand for compensation made",
472
- "Lawsuit filed",
473
- "Other"
474
- ]
475
- });
580
+ const childRelationship$1 = (scope, vertical, updates = {}) => {
581
+ const func = vertical ? col2RadioCenter : sbsSelect;
582
+ const label = vertical ? updates.label : "Your Relationship to Child(ren):";
583
+ return func(
584
+ merge(
585
+ {
586
+ label,
587
+ name: scope ? scope + ":" + "Child_Relationship" : "Child_Relationship",
588
+ options: ["Father", "Mother", "Grandparent", "Aunt/Uncle", "Other"],
589
+ },
590
+ updates
591
+ )
592
+ )
593
+ };
476
594
 
477
- const comments = (updates, scope) => textArea(
478
- merge({
479
- name: scope ? scope + ':' + 'Comments' : 'Comments',
480
- label: 'Please briefly describe your situation in a few words:',
481
- placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
482
- }, updates)
483
- );
484
-
485
- const degreeOfInterest$1 = (scope, help) => sbsSelect({
486
- name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
487
- id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
488
- label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
489
- help: help,
490
- options: [
491
- 'Definitely',
492
- 'Probably',
493
- 'Maybe',
494
- "Absolutely Can't Afford"
495
- ]
496
- });
595
+ const claimStatus = (scope, vertical, updates = {}) => {
596
+ const func = vertical ? col2RadioCenter : sbsSelect;
597
+ const label = vertical ? updates.label : "Status of Claim:";
598
+ return func(
599
+ merge(
600
+ {
601
+ label,
602
+ name: scope ? scope + ":" + "Claim_Status" : "Claim_Status",
603
+ options: ["No action taken yet", "Demand for compensation made", "Lawsuit filed", "Other"],
604
+ },
605
+ updates
606
+ )
607
+ )
608
+ };
497
609
 
498
- const degreeOfInterestCenter = (scope, help) => col2RadioCenter({
499
- name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
500
- id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
501
- help: help,
502
- options: [
503
- 'Definitely',
504
- 'Probably',
505
- 'Maybe',
506
- "Absolutely Can't Afford"
507
- ]
508
- });
610
+ // TODO: vertical not supported yet
611
+ const comments = (scope, vertical, updates) =>
612
+ textArea(
613
+ merge(
614
+ {
615
+ name: scope ? scope + ":" + "Comments" : "Comments",
616
+ label: "Please briefly describe your situation in a few words:",
617
+ placeholder:
618
+ 'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
619
+ },
620
+ updates
621
+ )
622
+ );
509
623
 
510
- const degreeOfInterestHelp = (scope) => degreeOfInterest$1(scope, 'No payment necessary to speak with lawyers.');
624
+ const degreeOfInterest$1 = (scope, vertical, updates = {}) => {
625
+ const func = vertical ? col2RadioCenter : sbsSelect;
626
+ const label = vertical ? updates.label : "How Likely Are You to Pay if Your Issue Could be Resolved?";
627
+ const help = vertical ? updates.help : "No payment necessary to speak with lawyers.";
628
+ return func(
629
+ merge(
630
+ {
631
+ name: scope ? scope + ":" + "Degree_Of_Interest" : "Degree_Of_Interest",
632
+ id: scope ? scope + ":" + "Degree_Of_Interest" : "Degree_Of_Interest",
633
+ label,
634
+ help,
635
+ options: ["Definitely", "Probably", "Maybe", "Absolutely Can't Afford"],
636
+ },
637
+ updates
638
+ )
639
+ )
640
+ };
511
641
 
512
- const disabilityConditionStopWork = (scope) => sbsYesNoRadio({
513
- name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
514
- label: 'Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?'
515
- });
642
+ const degreeOfInterestHelp = (scope, vertical, updates = {}) =>
643
+ degreeOfInterest$1(scope, vertical, merge(updates, { help: "No payment necessary to speak with lawyers." }));
516
644
 
517
- const disabilityWorkHistory = (scope) => sbsYesNoRadio({
518
- name: scope ? scope + ':' + 'Disability_Work_History' : 'Disability_Work_History',
519
- label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
520
- });
645
+ const disabilityConditionStopWork = (scope, vertical, updates = {}) => {
646
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
647
+ const label = vertical
648
+ ? updates.label
649
+ : "Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?";
650
+ return func(
651
+ merge(
652
+ {
653
+ name: scope ? scope + ":" + "Disability_Condition_Stop_Work" : "Disability_Condition_Stop_Work",
654
+ label,
655
+ },
656
+ updates
657
+ )
658
+ )
659
+ };
521
660
 
522
- const doctorTreatment = (scope) => sbsYesNoRadio({
523
- name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
524
- label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
525
- });
661
+ const disabilityWorkHistory = (scope, vertical, updates = {}) => {
662
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
663
+ const label = vertical ? updates.label : "Have You Had a Full-Time Job Within the Past 5 Years?";
664
+ return func(
665
+ merge(
666
+ {
667
+ name: scope ? scope + ":" + "Disability_Work_History" : "Disability_Work_History",
668
+ label,
669
+ },
670
+ updates
671
+ )
672
+ )
673
+ };
526
674
 
527
- const estateLegalServicesNeeded = (scope) => sbsSelect({
528
- name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
529
- label: "Legal Services Needed for Your Estate:",
530
- options: [
531
- "Charitable Giving",
532
- "Contested Wills",
533
- "Drafting Wills or Trust",
534
- "Estate Administration",
535
- "Asset Protection",
536
- "Other"
537
- ]
538
- });
675
+ const doctorTreatment = (scope, vertical, updates = {}) => {
676
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
677
+ const label = vertical ? updates.label : "Have You Recently Been Treated by a Doctor, Hospital or Clinic?";
678
+ return func(
679
+ merge(
680
+ {
681
+ name: scope ? scope + ":" + "Doctor_Treatment" : "Doctor_Treatment",
682
+ label,
683
+ },
684
+ updates
685
+ )
686
+ )
687
+ };
539
688
 
540
- const haveAttorney$1 = (scope) => sbsYesNoRadio({
541
- name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
542
- label: 'Already Working with An Attorney?'
543
- });
689
+ const estateLegalServicesNeeded = (scope, vertical, updates = {}) => {
690
+ const func = vertical ? col2RadioCenter : sbsSelect;
691
+ const label = vertical ? updates.label : "Legal Services Needed for Your Estate:";
692
+ return func(
693
+ merge(
694
+ {
695
+ name: scope ? scope + ":" + "Estate_Legal_Services_Needed" : "Estate_Legal_Services_Needed",
696
+ label,
697
+ options: [
698
+ "Charitable Giving",
699
+ "Contested Wills",
700
+ "Drafting Wills or Trust",
701
+ "Estate Administration",
702
+ "Asset Protection",
703
+ "Other",
704
+ ],
705
+ },
706
+ updates
707
+ )
708
+ )
709
+ };
544
710
 
545
- const haveAttorneyCenter = (scope) => verticalYesNoRadio({
546
- name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
547
- });
711
+ const haveAttorney$1 = (scope, vertical, updates = {}) => {
712
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
713
+ const label = vertical ? updates.label : "Already Working with An Attorney?";
714
+ return func(
715
+ merge(
716
+ {
717
+ label,
718
+ name: scope ? scope + ":" + "Have_Attorney" : "Have_Attorney",
719
+ },
720
+ updates
721
+ )
722
+ )
723
+ };
548
724
 
549
- const haveChildrenCenter = (scope) => verticalYesNoRadio({
550
- name: scope ? scope + ':' + 'Have_Children' : 'Have_Children'
551
- });
725
+ const haveChildren$1 = (scope, vertical, updates = {}) => {
726
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
727
+ const label = vertical ? updates.label : "Do You Have Children?";
728
+ return func(
729
+ merge(
730
+ {
731
+ name: scope ? scope + ":" + "Have_Children" : "Have_Children",
732
+ label,
733
+ },
734
+ updates
735
+ )
736
+ )
737
+ };
552
738
 
553
- const incidentDate = (scope) => sbsDate({
554
- name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
555
- label: 'Date of Incident:',
556
- });
739
+ const incidentDate = (scope, vertical, updates = {}) => {
740
+ const func = vertical ? verticalDate : sbsDate;
741
+ const label = vertical ? updates.label : "Date of Incident:";
742
+ return func(
743
+ merge(
744
+ {
745
+ label,
746
+ name: scope ? scope + ":" + "Incident_Date" : "Incident_Date",
747
+ },
748
+ updates
749
+ )
750
+ )
751
+ };
557
752
 
558
- const lawyerPaymentMethodCenter = (scope) => col2RadioCenter({
559
- name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
560
- help: 'No payment necessary to start a consultation.',
561
- options: {
562
- 'Cash': 'Cash',
563
- 'Credit Card': 'Credit Card',
564
- 'Family': 'Family or Friend',
565
- 'Other': 'Other'
566
- },
567
- fieldsetClass: '$reset t-flex t-flex-col t-items-center'
568
- });
753
+ const lawyerPaymentMethod$1 = (scope, vertical, updates = {}) => {
754
+ const func = vertical ? col2RadioCenter : sbsSelect;
755
+ const label = vertical ? updates.label : "How Will You Pay for Legal Fees if You Hire a Lawyer?";
756
+ const help = vertical ? updates.help : "No payment necessary to start a consultation.";
757
+ const options = vertical
758
+ ? {
759
+ Cash: "Cash",
760
+ "Credit Card": "Credit Card",
761
+ Family: "Family or Friend",
762
+ Other: "Other",
763
+ }
764
+ : ["Cash", "Check", "Credit Card", "Friend", "Family", "Other"];
765
+ return func(
766
+ merge(
767
+ {
768
+ label,
769
+ help,
770
+ name: scope ? scope + ":" + "Lawyer_Payment_Method" : "Lawyer_Payment_Method",
771
+ options,
772
+ fieldsetClass: vertical ? "$reset t-flex t-flex-col t-items-center" : undefined,
773
+ },
774
+ updates
775
+ )
776
+ )
777
+ };
569
778
 
570
- const legalCrossSells$1 = () => col2Checkbox({
571
- id: 'Legal_CrossSells',
572
- name: 'Legal_CrossSells',
573
- help: 'Just hit "Next" if none apply',
574
- helpClass: 't-text-center !t-text-sm',
575
- validation: null,
576
- options: '$getCrossSellOptions($get(form), $getVal($get(form), "Type_Of_Legal_Problem"))',
577
- });
779
+ const legalCrossSells$1 = () =>
780
+ col2Checkbox({
781
+ id: "Legal_CrossSells",
782
+ name: "Legal_CrossSells",
783
+ help: 'Just hit "Next" if none apply',
784
+ helpClass: "t-text-center !t-text-sm",
785
+ validation: null,
786
+ options: '$getCrossSellOptions($get(form), $getVal($get(form), "Type_Of_Legal_Problem"))',
787
+ });
788
+
789
+ const maritalStatus$1 = (scope, vertical, updates = {}) => {
790
+ const func = vertical ? col2RadioCenter : sbsSelect;
791
+ const label = vertical ? updates.label : "Marital Status:";
792
+ return func(
793
+ merge(
794
+ {
795
+ label,
796
+ name: scope ? scope + ":" + "Marital_Status" : "Marital_Status",
797
+ options: [
798
+ "Unmarried, Living Together",
799
+ "Unmarried, Do Not Live Together",
800
+ "Married, Living Together",
801
+ "Separated",
802
+ "Divorced",
803
+ "Other",
804
+ ],
805
+ },
806
+ updates
807
+ )
808
+ )
809
+ };
578
810
 
579
- const maritalStatusCenter = (scope) => col2RadioCenter({
580
- name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
581
- options: [
582
- 'Unmarried, Living Together',
583
- 'Unmarried, Do Not Live Together',
584
- 'Married, Living Together',
585
- 'Separated',
586
- 'Divorced',
587
- 'Other'
588
- ]
589
- });
811
+ // XXX HERE
590
812
 
591
- const pendingCharges = (scope) => sbsYesNoRadio({
592
- name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
593
- label: 'Do you currently have any pending charges?'
594
- });
813
+ const pendingCharges = (scope, vertical, updates = {}) => {
814
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
815
+ const label = vertical ? updates.label : "Do you currently have any pending charges?";
816
+ return func(
817
+ merge(
818
+ {
819
+ name: scope ? scope + ":" + "Pending_Charges" : "Pending_Charges",
820
+ label,
821
+ },
822
+ updates
823
+ )
824
+ )
825
+ };
595
826
 
596
- const primaryInjury = (scope) => sbs2ColRadio({
597
- name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
598
- label: 'Primary Injury:',
599
- options: [
600
- "Anxiety",
601
- "Back or Neck Pain",
602
- "Broken Bones",
603
- "Cuts and Bruises",
604
- "Headaches",
605
- "Memory Loss",
606
- "Loss of Limb",
607
- "Not Sure or Other"
608
- ]
609
- });
827
+ const primaryInjury = (scope, vertical, updates = {}) => {
828
+ const func = vertical ? col2RadioCenter : sbs2ColRadio;
829
+ const label = vertical ? updates.label : "Primary Injury:";
830
+ return func(
831
+ merge(
832
+ {
833
+ label,
834
+ name: scope ? scope + ":" + "Primary_Injury" : "Primary_Injury",
835
+ options: [
836
+ "Anxiety",
837
+ "Back or Neck Pain",
838
+ "Broken Bones",
839
+ "Cuts and Bruises",
840
+ "Headaches",
841
+ "Memory Loss",
842
+ "Loss of Limb",
843
+ "Not Sure or Other",
844
+ ],
845
+ },
846
+ updates
847
+ )
848
+ )
849
+ };
610
850
 
611
- const priorAlcoholOffenses = (scope) => sbsYesNoRadio({
612
- name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
613
- label: 'Any Prior Alcohol Related Offenses?'
614
- });
851
+ const priorAlcoholOffenses = (scope, vertical, updates = {}) => {
852
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
853
+ const label = vertical ? updates.label : "Any Prior Alcohol Related Offenses?";
854
+ return func(
855
+ merge(
856
+ {
857
+ name: scope ? scope + ":" + "Prior_Alcohol_Offenses" : "Prior_Alcohol_Offenses",
858
+ label,
859
+ },
860
+ updates
861
+ )
862
+ )
863
+ };
615
864
 
616
- const policeReportFiled = (scope) => sbsYesNoRadio({
617
- name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
618
- label: 'Was a Police Report Filed?'
619
- });
865
+ const policeReportFiled = (scope, vertical, updates = {}) => {
866
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
867
+ const label = vertical ? updates.label : "Was a Police Report Filed?";
868
+ return func(
869
+ merge(
870
+ {
871
+ name: scope ? scope + ":" + "Police_Report_Filed" : "Police_Report_Filed",
872
+ label,
873
+ },
874
+ updates
875
+ )
876
+ )
877
+ };
620
878
 
621
- const roleInMatterProbate = (scope) => sbsSelect({
622
- name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
623
- label: "What Is Your Role in this Matter?",
624
- options: [
625
- "Preparing My Will",
626
- "Executor",
627
- "Heir",
628
- "Other"
629
- ]
630
- });
879
+ const roleInMatterProbate = (scope, vertical, updates = {}) => {
880
+ const func = vertical ? col2RadioCenter : sbsSelect;
881
+ const label = vertical ? updates.label : "What is Your Role in this Matter?";
882
+ return func(
883
+ merge(
884
+ {
885
+ label,
886
+ name: scope ? scope + ":" + "Role_In_Matter_Probate" : "Role_In_Matter_Probate",
887
+ options: ["Preparing My Will", "Executor", "Heir", "Other"],
888
+ },
889
+ updates
890
+ )
891
+ )
892
+ };
631
893
 
632
- const socialSecurityDisabilityReceivingBenefits = (scope) => sbsYesNoRadio({
633
- name: scope ? scope + ':' + 'Social_Security_Disability_Receiving_Benefits' : 'Social_Security_Disability_Receiving_Benefits',
634
- label: 'Are You Currently Receiving Social Security Disability Benefits?'
635
- });
894
+ const socialSecurityDisabilityReceivingBenefits = (scope, vertical, updates = {}) => {
895
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
896
+ const label = vertical ? updates.label : "Are You Currently Receiving Social Security Disability Benefits?";
897
+ return func(
898
+ merge(
899
+ {
900
+ name: scope
901
+ ? scope + ":" + "Social_Security_Disability_Receiving_Benefits"
902
+ : "Social_Security_Disability_Receiving_Benefits",
903
+ label,
904
+ },
905
+ updates
906
+ )
907
+ )
908
+ };
636
909
 
637
910
  const TCPAConsent = (scope) => ({
638
- $formkit: 'checkbox',
639
- label: '$meta.tcpaLanguage',
640
- name: scope ? scope + ':' + 'TCPA_Opt_In' : 'TCPA_Opt_In',
641
- 'data-tf-sensitive': 'false',
642
- validation: 'required|accepted',
911
+ $formkit: "checkbox",
912
+ label: "$meta.tcpaLanguage",
913
+ // Necessary to get links to work in the tcpa language
914
+ __raw__sectionsSchema: {
915
+ label: { attrs: { innerHTML: "$label" } },
916
+ },
917
+ name: scope ? scope + ":" + "TCPA_Opt_In" : "TCPA_Opt_In",
918
+ "data-tf-sensitive": "false",
919
+ validation: "required|accepted",
643
920
  validationMessages: {
644
- required: 'Consent is required',
645
- accepted: 'Consent is required'
921
+ required: "Consent is required",
922
+ accepted: "Consent is required",
646
923
  },
647
924
  classes: {
648
- label: "t-text-xs t-text-slate-500 t-font-normal"
649
- }
925
+ label: "t-text-xs t-text-slate-500 t-font-normal",
926
+ },
650
927
  });
651
928
 
652
- const typeOfAlcoholTest = (scope) => sbsSelect({
653
- name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
654
- label: 'Type of Alcohol Test Performed?',
655
- options: [
656
- "No Test",
657
- "Refused Test",
658
- "Breath Test",
659
- "Blood Test",
660
- "Urine Test",
661
- "Don't Know"
662
- ]
663
- });
929
+ const typeOfAlcoholTest = (scope, vertical, updates = {}) => {
930
+ const func = vertical ? col2RadioCenter : sbsSelect;
931
+ const label = vertical ? updates.label : "Type of Alcohol Test Performed?";
932
+ return func(
933
+ merge(
934
+ {
935
+ label,
936
+ name: scope ? scope + ":" + "Type_Of_Alcohol_Test" : "Type_Of_Alcohol_Test",
937
+ options: ["No Test", "Refused Test", "Breath Test", "Blood Test", "Urine Test", "Don't Know"],
938
+ },
939
+ updates
940
+ )
941
+ )
942
+ };
664
943
 
665
- const typeOfAssets = (scope) => col2Checkbox({
666
- name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
667
- label: 'Type of Assets:',
668
- options: [
669
- "Business Interests",
670
- "Cash",
671
- "Life Insurance Policies",
672
- "Pensions/Retirement",
673
- "Personal Possessions",
674
- "Property",
675
- "Stock/Bonds"
676
- ]
677
- });
944
+ const typeOfAssets = (scope, vertical, updates = {}) => {
945
+ const func = vertical ? verticalCol2Checkbox : col2Checkbox;
946
+ const label = vertical ? updates.label : "Type of Assets:";
947
+ return func(
948
+ merge(
949
+ {
950
+ label,
951
+ name: scope ? scope + ":" + "Type_Of_Assets" : "Type_Of_Assets",
952
+ options: [
953
+ "Business Interests",
954
+ "Cash",
955
+ "Life Insurance Policies",
956
+ "Pensions/Retirement",
957
+ "Personal Possessions",
958
+ "Property",
959
+ "Stock/Bonds",
960
+ ],
961
+ },
962
+ updates
963
+ )
964
+ )
965
+ };
678
966
 
679
- const valueOfAssets = (scope) => sbsSelect({
680
- name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
681
- label: 'Value of Your Assets?',
682
- options: [
683
- "Less than 50K",
684
- "50K to 100K",
685
- "100K to 250K",
686
- "250K to 500K",
687
- "500K to 1M",
688
- "More than 1M"
689
- ]
690
- });
967
+ const valueOfAssets = (scope, vertical, updates = {}) => {
968
+ const func = vertical ? col2RadioCenter : sbsSelect;
969
+ const label = vertical ? updates.label : "Value of Your Assets?";
970
+ return func(
971
+ merge(
972
+ {
973
+ label,
974
+ name: scope ? scope + ":" + "Value_Of_Assets" : "Value_Of_Assets",
975
+ options: ["Less than 50K", "50K to 100K", "100K to 250K", "250K to 500K", "500K to 1M", "More than 1M"],
976
+ },
977
+ updates
978
+ )
979
+ )
980
+ };
691
981
 
692
- // ------ Question Groups
982
+ // ------ Question Groups - TODO: move these go separate file groups.js
693
983
 
694
984
  // NOTE: name must be unique within a form!
695
985
  const group = (name, updates) => {
696
- return merge({
697
- $cmp: 'FormKit',
698
- props: {
699
- type: 'group',
700
- key: name,
701
- id: name,
702
- name: name
703
- }
704
- }, updates)
986
+ return merge(
987
+ {
988
+ $cmp: "FormKit",
989
+ props: {
990
+ type: "group",
991
+ key: name,
992
+ id: name,
993
+ name: name,
994
+ },
995
+ },
996
+ updates
997
+ )
705
998
  };
706
999
 
707
- const AutoAndCarAccidentsQuestions = (condition, scope) => group(
708
- 'AutoAndCarAccidentsQuestions',
709
- {
710
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
1000
+ const AutoAndCarAccidentsQuestions = (condition, scope) =>
1001
+ group("AutoAndCarAccidentsQuestions", {
1002
+ if: condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
711
1003
  children: [
712
1004
  haveAttorney$1(scope),
713
1005
  incidentDate(scope),
714
1006
  atFault(scope),
715
1007
  primaryInjury(scope),
716
1008
  doctorTreatment(scope),
717
- policeReportFiled(scope)
718
- ]
719
- }
720
- );
1009
+ policeReportFiled(scope),
1010
+ ],
1011
+ });
721
1012
 
722
- const DUIAndDWIQuestions = (condition, scope) => group(
723
- 'DUIAndDWIQuestions',
724
- {
725
- if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
1013
+ const DUIAndDWIQuestions = (condition, scope) =>
1014
+ group("DUIAndDWIQuestions", {
1015
+ if: condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
726
1016
  children: [
727
1017
  haveAttorney$1(scope),
728
1018
  incidentDate(scope),
@@ -730,78 +1020,68 @@ const DUIAndDWIQuestions = (condition, scope) => group(
730
1020
  typeOfAlcoholTest(scope),
731
1021
  bloodContentAlcoholTest(scope),
732
1022
  pendingCharges(scope),
733
- degreeOfInterestHelp(scope)
734
- ]
735
- }
736
- );
1023
+ degreeOfInterestHelp(scope),
1024
+ ],
1025
+ });
737
1026
 
738
- const PersonalInjuryQuestions = (condition, scope) => group(
739
- 'PersonalInjuryQuestions',
740
- {
741
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
1027
+ const PersonalInjuryQuestions = (condition, scope) =>
1028
+ group("PersonalInjuryQuestions", {
1029
+ if: condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
742
1030
  children: [
743
1031
  haveAttorney$1(scope),
744
1032
  incidentDate(scope),
745
1033
  claimStatus(scope),
746
1034
  atFault(scope),
747
1035
  primaryInjury(scope),
748
- doctorTreatment(scope)
749
- ]
750
- }
751
- );
1036
+ doctorTreatment(scope),
1037
+ ],
1038
+ });
752
1039
 
753
- const PowerofAttorneyQuestions = (condition, scope) => group(
754
- 'PowerofAttorneyQuestions',
755
- {
756
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
757
- children: [
758
- haveAttorney$1(scope),
759
- degreeOfInterestHelp(scope)
760
- ]
761
- }
762
- );
1040
+ const PowerofAttorneyQuestions = (condition, scope) =>
1041
+ group("PowerofAttorneyQuestions", {
1042
+ if: condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
1043
+ children: [haveAttorney$1(scope), degreeOfInterestHelp(scope)],
1044
+ });
763
1045
 
764
- const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) => group(
765
- 'SocialSecurityDisabilityAndInsuranceQuestions',
766
- {
767
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"'),
1046
+ const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) =>
1047
+ group("SocialSecurityDisabilityAndInsuranceQuestions", {
1048
+ if: condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"',
768
1049
  children: [
769
1050
  haveAttorney$1(scope),
770
1051
  applicantAge(scope),
771
1052
  disabilityConditionStopWork(scope),
772
1053
  disabilityWorkHistory(scope),
773
1054
  socialSecurityDisabilityReceivingBenefits(scope),
774
- doctorTreatment(scope)
775
- ]
776
- }
777
- );
1055
+ doctorTreatment(scope),
1056
+ ],
1057
+ });
778
1058
 
779
- const WillsAndTrustsQuestions = (condition, scope) => group(
780
- 'WillsAndTrustsQuestions',
781
- {
782
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
1059
+ const WillsAndTrustsQuestions = (condition, scope) =>
1060
+ group("WillsAndTrustsQuestions", {
1061
+ if: condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
783
1062
  children: [
784
1063
  haveAttorney$1(scope),
785
1064
  valueOfAssets(scope),
786
1065
  typeOfAssets(scope),
787
1066
  roleInMatterProbate(scope),
788
1067
  estateLegalServicesNeeded(scope),
789
- degreeOfInterestHelp(scope)
790
- ]
791
- }
792
- );
1068
+ degreeOfInterestHelp(scope),
1069
+ ],
1070
+ });
793
1071
 
794
- const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
795
- const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
1072
+ const NEXT_ON_ENTER = "$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
1073
+ const NEXT_ON_INPUT = "$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
796
1074
 
797
- const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
1075
+ const isInput = (n) => {
1076
+ return n.type !== "group" && n.type !== "section" && n.type !== "form" && n.$formkit !== "hidden" && !n.children
1077
+ };
798
1078
 
799
1079
  const findLastInput = (n) => {
800
1080
  if (isInput(n)) {
801
1081
  return n
802
1082
  }
803
1083
  for (var i = n.children.length - 1; i >= 0; i--) {
804
- if (typeof n.children === 'string') {
1084
+ if (typeof n.children === "string") {
805
1085
  continue
806
1086
  }
807
1087
  const child = n.children[i];
@@ -817,136 +1097,154 @@ const findLastInput = (n) => {
817
1097
  };
818
1098
 
819
1099
  const secureIconDefault = {
820
- $el: 'div',
821
- if: '$activeStep === $lastStep()',
1100
+ $el: "div",
1101
+ if: "$activeStep === $lastStep()",
822
1102
  attrs: {
823
- class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
1103
+ class: "t-flex t-justify-center t-items-center t-text-sm t-text-gray-500",
824
1104
  },
825
1105
  children: [
826
1106
  {
827
- $el: 'img',
1107
+ $el: "img",
828
1108
  attrs: {
829
- loading: 'lazy',
830
- alt: '',
1109
+ loading: "lazy",
1110
+ alt: "",
831
1111
  style: {
832
- border: 0
1112
+ border: 0,
833
1113
  },
834
- width: '25',
835
- height: '25',
836
- src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
837
- }
1114
+ width: "25",
1115
+ height: "25",
1116
+ src: "https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg",
1117
+ },
838
1118
  },
839
1119
  {
840
- $el: 'span',
841
- children: 'Secure & Encrypted',
1120
+ $el: "span",
1121
+ children: "Secure & Encrypted",
842
1122
  attrs: {
843
- class: 't-pl-2 t-pt-1 t-font-medium'
844
- }
845
- }
846
- ]
1123
+ class: "t-pl-2 t-pt-1 t-font-medium",
1124
+ },
1125
+ },
1126
+ ],
847
1127
  };
848
1128
 
849
1129
  function secureIcon(updates) {
850
- return merge(
851
- secureIconDefault,
852
- updates
853
- )
1130
+ return merge(secureIconDefault, updates)
854
1131
  }
855
1132
 
856
1133
  function crossSellQuestionsStepHeadline(updates) {
857
1134
  return {
858
- $el: 'h3',
859
- children: updates.headline || 'Tell Us About Your Situation',
1135
+ $el: "h3",
1136
+ children: updates.headline || "Tell Us About Your Situation",
860
1137
  attrs: {
861
- 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'
862
- }
1138
+ class: "t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-4 t-pt-0 t-px-1",
1139
+ },
863
1140
  }
864
1141
  }
865
1142
 
866
1143
  function crossSellQuestionsStepSubHeadline(updates) {
867
1144
  return {
868
- $el: 'h5',
869
- children: updates.subheadline || 'Tell us about your situation:',
1145
+ $el: "h5",
1146
+ children: updates.subheadline || "Tell us about your situation:",
870
1147
  attrs: {
871
- 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'
872
- }
1148
+ 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",
1149
+ },
873
1150
  }
874
1151
  }
875
1152
 
876
1153
  function verticalStepHeadline(updates) {
877
1154
  return {
878
- $el: 'h3',
879
- children: updates.headline || 'Tell Us About Your Situation',
1155
+ $el: "h3",
1156
+ children: updates.headline || "Tell Us About Your Situation",
880
1157
  attrs: {
881
- 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 || '')
882
- }
1158
+ class:
1159
+ "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" +
1160
+ " " +
1161
+ (updates.headlineClass || ""),
1162
+ },
883
1163
  }
884
1164
  }
885
1165
 
886
1166
  function verticalStepSubHeadline(updates) {
887
1167
  return {
888
- $el: 'h5',
889
- children: updates.subheadline || '',
1168
+ $el: "h5",
1169
+ children: updates.subheadline || "",
890
1170
  attrs: {
891
- class: 't-flex t-justify-center t-text-center !t-text-lg t-font-normal t-text-dark t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.subheadlineClass || '')
892
- }
1171
+ class:
1172
+ "t-flex t-justify-center t-text-center !t-text-lg t-font-normal t-text-dark t-pb-5 t-pt-0 t-px-1" +
1173
+ " " +
1174
+ (updates.subheadlineClass || ""),
1175
+ },
893
1176
  }
894
1177
  }
895
1178
 
896
1179
  function commentsStepHeadline(updates) {
897
1180
  return {
898
- $el: 'h3',
899
- children: updates.headline || 'Additional Details',
1181
+ $el: "h3",
1182
+ children: updates.headline || "Additional Details",
900
1183
  attrs: {
901
- 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 || '')
902
- }
1184
+ class:
1185
+ "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" +
1186
+ " " +
1187
+ (updates.headlineClass || ""),
1188
+ },
903
1189
  }
904
1190
  }
905
1191
 
906
1192
  function commentsStepHeadlineLegal(updates) {
907
1193
  return commentsStepHeadline({
908
- headline: updates.headline || 'Additional Case Details',
909
- headlineClass: updates.headlineClass
1194
+ headline: updates.headline || "Additional Case Details",
1195
+ headlineClass: updates.headlineClass,
910
1196
  })
911
1197
  }
912
1198
 
913
1199
  function firstAndLastStepHeadline(updates) {
914
1200
  return {
915
- $el: 'h3',
916
- children: updates.headline || 'Please Provide a Contact Name',
1201
+ $el: "h3",
1202
+ children: updates.headline || "Please Provide a Contact Name",
917
1203
  attrs: {
918
- 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 || '')
919
- }
1204
+ class:
1205
+ "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" +
1206
+ " " +
1207
+ (updates.headlineClass || ""),
1208
+ },
920
1209
  }
921
1210
  }
922
1211
 
923
1212
  function legalCrossSellsStepHeadline(updates) {
924
1213
  return {
925
- $el: 'h3',
926
- children: updates.headline || 'Do any of the following situations apply?',
1214
+ $el: "h3",
1215
+ children: updates.headline || "Do any of the following situations apply?",
927
1216
  attrs: {
928
- 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 || '')
929
- }
1217
+ class:
1218
+ "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" +
1219
+ " " +
1220
+ (updates.headlineClass || ""),
1221
+ },
930
1222
  }
931
1223
  }
932
1224
 
933
1225
  function contactStepHeadline(updates) {
934
1226
  return {
935
- $el: 'h3',
1227
+ $el: "h3",
936
1228
  children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL,
937
1229
  attrs: {
938
- 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 || '')
939
- }
1230
+ class:
1231
+ "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" +
1232
+ " " +
1233
+ (updates.headlineClass || ""),
1234
+ },
940
1235
  }
941
1236
  }
942
1237
 
943
1238
  function contactStepSubHeadline(updates) {
944
1239
  return {
945
- $el: 'h5',
1240
+ $el: "h5",
946
1241
  children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL,
947
1242
  attrs: {
948
- 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 || '')
949
- }
1243
+ class:
1244
+ "t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3" +
1245
+ " " +
1246
+ (updates.subheadlineClass || ""),
1247
+ },
950
1248
  }
951
1249
  }
952
1250
 
@@ -968,19 +1266,19 @@ const TRUSTED_FORM_JS = `(function() {
968
1266
 
969
1267
  function trustedFormScript() {
970
1268
  return {
971
- $el: 'script',
972
- if: '$activeStep === $lastStep()',
973
- children: TRUSTED_FORM_JS
1269
+ $el: "script",
1270
+ if: "$activeStep === $lastStep()",
1271
+ children: TRUSTED_FORM_JS,
974
1272
  }
975
1273
  }
976
1274
 
977
1275
  const stepDefaults = (step, stepKey) => ({
978
- $el: 'section',
1276
+ $el: "section",
979
1277
  if: '$stepEnabled("' + step + '")',
980
1278
  attrs: {
981
1279
  hidden: '$activeStep !== "' + step + '"',
982
- key: stepKey ? stepKey : step
983
- }
1280
+ key: stepKey ? stepKey : step,
1281
+ },
984
1282
  });
985
1283
 
986
1284
  function step(name, inputs, updates = {}) {
@@ -1003,35 +1301,35 @@ function step(name, inputs, updates = {}) {
1003
1301
  }
1004
1302
  }
1005
1303
 
1006
- return merge(
1007
- stepDefaults(name, stepKey),
1008
- {
1009
- children: [
1010
- {
1011
- $formkit: 'group',
1012
- id: name,
1013
- name: name,
1014
- nextStepMap: nextStepMap,
1015
- triggerRedirectMap: triggerRedirectMap,
1016
- autoFocus: autoFocus,
1017
- children: inputs
1018
- }
1019
- ]
1020
- }
1021
- )
1304
+ return merge(stepDefaults(name, stepKey), {
1305
+ children: [
1306
+ {
1307
+ $formkit: "group",
1308
+ id: name,
1309
+ name: name,
1310
+ nextStepMap: nextStepMap,
1311
+ triggerRedirectMap: triggerRedirectMap,
1312
+ autoFocus: autoFocus,
1313
+ children: inputs,
1314
+ },
1315
+ ],
1316
+ })
1022
1317
  }
1023
1318
 
1024
1319
  // Single question step
1025
1320
  function sqstep(name, input, defaultHeadline, updates = {}) {
1026
- if (typeof updates.nextOnInput === 'undefined') {
1321
+ if (typeof updates.nextOnInput === "undefined") {
1027
1322
  updates.nextOnInput = true;
1028
1323
  }
1029
-
1324
+
1030
1325
  return step(
1031
1326
  name,
1032
1327
  [
1033
- verticalStepHeadline({ headline: updates.headline ?? defaultHeadline, headlineClass: updates.headlineClass }),
1034
- ...Array.isArray(input) ? input : [input],
1328
+ verticalStepHeadline({
1329
+ headline: updates.headline ?? defaultHeadline,
1330
+ headlineClass: updates.headlineClass,
1331
+ }),
1332
+ ...(Array.isArray(input) ? input : [input]),
1035
1333
  ],
1036
1334
  updates
1037
1335
  )
@@ -1039,7 +1337,7 @@ function sqstep(name, input, defaultHeadline, updates = {}) {
1039
1337
 
1040
1338
  function contactInfo(updates = {}) {
1041
1339
  return step(
1042
- 'contactInfo',
1340
+ "contactInfo",
1043
1341
  [
1044
1342
  contactStepHeadline(updates),
1045
1343
  contactStepSubHeadline(updates),
@@ -1047,63 +1345,58 @@ function contactInfo(updates = {}) {
1047
1345
  email(updates.scope),
1048
1346
  phone(updates.scope),
1049
1347
  TCPAConsent(updates.scope),
1050
- secureIcon()
1348
+ secureIcon(),
1051
1349
  ],
1052
1350
  { nextOnEnter: false }
1053
1351
  )
1054
1352
  }
1055
1353
 
1056
- function firstAndLastV3(updates = {}, scope) {
1354
+ function firstAndLastV3(updates = {}) {
1057
1355
  return step(
1058
- 'firstAndLast',
1356
+ "firstAndLast",
1059
1357
  [
1060
1358
  firstAndLastStepHeadline({
1061
- headline: updates.headline ?? 'Who is looking for help?',
1062
- headlineClass: updates.headlineClass
1359
+ headline: updates.headline ?? "Who is looking for help?",
1360
+ headlineClass: updates.headlineClass,
1063
1361
  }),
1064
1362
  verticalStepSubHeadline({
1065
- subheadline: updates.subheadline ?? 'Note: we never share info without consent',
1066
- subheadlineClass: '!t-text-sm !t-text-gray-500'
1363
+ subheadline: updates.subheadline ?? "Note: we never share info without consent",
1364
+ subheadlineClass: "!t-text-sm !t-text-gray-500",
1067
1365
  }),
1068
- firstName(scope),
1069
- lastName(scope)
1366
+ firstName(updates.scope),
1367
+ lastName(updates.scope),
1070
1368
  ],
1071
1369
  updates
1072
1370
  )
1073
1371
  }
1074
1372
 
1075
1373
  function zipcode(updates = {}) {
1076
- return sqstep(
1077
- 'zipcode',
1078
- zipcode$1(updates.scope, true, updates),
1079
- 'Please verify your Zip Code',
1080
- updates
1081
- )
1374
+ return sqstep("zipcode", zipcode$1(updates.scope, true, updates.input), "Please verify your Zip Code", updates)
1082
1375
  }
1083
1376
 
1084
1377
  function commentsWithBankruptcy(updates = {}) {
1085
1378
  return step(
1086
- 'commentsWithBankruptcy',
1379
+ "commentsWithBankruptcy",
1087
1380
  [
1088
1381
  commentsStepHeadlineLegal(updates),
1089
- comments({
1090
- label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL_LEGAL : updates.label,
1382
+ comments(updates.scope, false, {
1383
+ label: typeof updates.label === "undefined" ? DEFAULT_COMMENTS_LABEL_LEGAL : updates.label,
1091
1384
  placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
1092
- inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
1093
- }, updates.scope),
1385
+ inputClass: typeof updates.inputClass === "undefined" ? "!t-h-32" : updates.inputClass,
1386
+ }),
1094
1387
  // TODO: needs scope support
1095
1388
  bankruptcyCrossSell(),
1096
1389
  {
1097
- $el: 'div',
1098
- if: '$get(CrossSell_Bankruptcy).value == true',
1390
+ $el: "div",
1391
+ if: "$get(CrossSell_Bankruptcy).value == true",
1099
1392
  children: [
1100
- comments({
1101
- label: 'Bankruptcy or debt details:',
1102
- placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
1103
- inputClass: '!t-h-16'
1104
- }, 'CrossSell:Bankruptcy')
1393
+ comments("CrossSell:Bankruptcy", false, {
1394
+ label: "Bankruptcy or debt details:",
1395
+ placeholder: "Please describe your bankrtupcy or debt situation in a few words...",
1396
+ inputClass: "!t-h-16",
1397
+ }),
1105
1398
  ],
1106
- }
1399
+ },
1107
1400
  ],
1108
1401
  { nextOnEnter: false }
1109
1402
  )
@@ -1111,19 +1404,20 @@ function commentsWithBankruptcy(updates = {}) {
1111
1404
 
1112
1405
  function autoAndCarAccidentCrossSellQuestions(updates = {}) {
1113
1406
  return step(
1114
- 'autoAndCarAccidentCrossSellQuestions',
1407
+ "autoAndCarAccidentCrossSellQuestions",
1115
1408
  [
1116
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Compensation' }),
1117
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your accident:' }),
1118
- AutoAndCarAccidentsQuestions("true", 'CrossSell:Auto_and_Car_Accidents'),
1119
- comments(
1120
- {
1121
- label: 'Accident Description:',
1122
- placeholder: 'Please describe your accident in a few words...',
1123
- inputClass: '!t-h-16'
1124
- },
1125
- 'CrossSell:Auto_and_Car_Accidents'
1126
- )
1409
+ crossSellQuestionsStepHeadline({
1410
+ headline: "You May Be Entitled To Compensation",
1411
+ }),
1412
+ crossSellQuestionsStepSubHeadline({
1413
+ subheadline: "Tell us about your accident:",
1414
+ }),
1415
+ AutoAndCarAccidentsQuestions("true", "CrossSell:Auto_and_Car_Accidents"),
1416
+ comments("CrossSell:Auto_and_Car_Accidents", false, {
1417
+ label: "Accident Description:",
1418
+ placeholder: "Please describe your accident in a few words...",
1419
+ inputClass: "!t-h-16",
1420
+ }),
1127
1421
  ],
1128
1422
  updates
1129
1423
  )
@@ -1131,18 +1425,15 @@ function autoAndCarAccidentCrossSellQuestions(updates = {}) {
1131
1425
 
1132
1426
  function duiAndDWICrossSellQuestions(updates = {}) {
1133
1427
  return step(
1134
- 'duiAndDWICrossSellQuestions',
1428
+ "duiAndDWICrossSellQuestions",
1135
1429
  [
1136
- crossSellQuestionsStepHeadline({ headline: 'About Your DUI/DWI' }),
1137
- DUIAndDWIQuestions("true", 'CrossSell:DUI_and_DWI'),
1138
- comments(
1139
- {
1140
- label: 'Incident Description:',
1141
- placeholder: 'Please describe your incident in a few words...',
1142
- inputClass: '!t-h-16'
1143
- },
1144
- 'CrossSell:DUI_and_DWI'
1145
- )
1430
+ crossSellQuestionsStepHeadline({ headline: "About Your DUI/DWI" }),
1431
+ DUIAndDWIQuestions("true", "CrossSell:DUI_and_DWI"),
1432
+ comments("CrossSell:DUI_and_DWI", false, {
1433
+ label: "Incident Description:",
1434
+ placeholder: "Please describe your incident in a few words...",
1435
+ inputClass: "!t-h-16",
1436
+ }),
1146
1437
  ],
1147
1438
  updates
1148
1439
  )
@@ -1150,19 +1441,20 @@ function duiAndDWICrossSellQuestions(updates = {}) {
1150
1441
 
1151
1442
  function ssdiCrossSellQuestions(updates = {}) {
1152
1443
  return step(
1153
- 'ssdiCrossSellQuestions',
1444
+ "ssdiCrossSellQuestions",
1154
1445
  [
1155
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Benefits' }),
1156
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your disability:' }),
1157
- SocialSecurityDisabilityAndInsuranceQuestions("true", 'CrossSell:Social_Security_Disability_and_Insurance'),
1158
- comments(
1159
- {
1160
- label: 'Description:',
1161
- placeholder: 'Please describe your situation in a few words...',
1162
- inputClass: '!t-h-16'
1163
- },
1164
- 'CrossSell:Social_Security_Disability_and_Insurance'
1165
- )
1446
+ crossSellQuestionsStepHeadline({
1447
+ headline: "You May Be Entitled To Benefits",
1448
+ }),
1449
+ crossSellQuestionsStepSubHeadline({
1450
+ subheadline: "Tell us about your disability:",
1451
+ }),
1452
+ SocialSecurityDisabilityAndInsuranceQuestions("true", "CrossSell:Social_Security_Disability_and_Insurance"),
1453
+ comments("CrossSell:Social_Security_Disability_and_Insurance", false, {
1454
+ label: "Description:",
1455
+ placeholder: "Please describe your situation in a few words...",
1456
+ inputClass: "!t-h-16",
1457
+ }),
1166
1458
  ],
1167
1459
  updates
1168
1460
  )
@@ -1170,19 +1462,20 @@ function ssdiCrossSellQuestions(updates = {}) {
1170
1462
 
1171
1463
  function personalInjuryCrossSellQuestions(updates = {}) {
1172
1464
  return step(
1173
- 'personalInjuryCrossSellQuestions',
1465
+ "personalInjuryCrossSellQuestions",
1174
1466
  [
1175
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Compensation' }),
1176
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your injury:' }),
1177
- PersonalInjuryQuestions("true", 'CrossSell:Personal_Injury'),
1178
- comments(
1179
- {
1180
- label: 'Injury Description:',
1181
- placeholder: 'Please describe your injury in a few words...',
1182
- inputClass: '!t-h-16'
1183
- },
1184
- 'CrossSell:Personal_Injury'
1185
- )
1467
+ crossSellQuestionsStepHeadline({
1468
+ headline: "You May Be Entitled To Compensation",
1469
+ }),
1470
+ crossSellQuestionsStepSubHeadline({
1471
+ subheadline: "Tell us about your injury:",
1472
+ }),
1473
+ PersonalInjuryQuestions("true", "CrossSell:Personal_Injury"),
1474
+ comments("CrossSell:Personal_Injury", false, {
1475
+ label: "Injury Description:",
1476
+ placeholder: "Please describe your injury in a few words...",
1477
+ inputClass: "!t-h-16",
1478
+ }),
1186
1479
  ],
1187
1480
  updates
1188
1481
  )
@@ -1190,18 +1483,17 @@ function personalInjuryCrossSellQuestions(updates = {}) {
1190
1483
 
1191
1484
  function powerOfAttorneyCrossSellQuestions(updates = {}) {
1192
1485
  return step(
1193
- 'powerOfAttorneyCrossSellQuestions',
1486
+ "powerOfAttorneyCrossSellQuestions",
1194
1487
  [
1195
- crossSellQuestionsStepHeadline({ headline: 'Power of Attorney Information' }),
1196
- PowerofAttorneyQuestions("true", 'CrossSell:Power_of_Attorney'),
1197
- comments(
1198
- {
1199
- label: 'Description:',
1200
- placeholder: 'Please describe your situation in a few words...',
1201
- inputClass: '!t-h-16'
1202
- },
1203
- 'CrossSell:Power_of_Attorney'
1204
- )
1488
+ crossSellQuestionsStepHeadline({
1489
+ headline: "Power of Attorney Information",
1490
+ }),
1491
+ PowerofAttorneyQuestions("true", "CrossSell:Power_of_Attorney"),
1492
+ comments("CrossSell:Power_of_Attorney", false, {
1493
+ label: "Description:",
1494
+ placeholder: "Please describe your situation in a few words...",
1495
+ inputClass: "!t-h-16",
1496
+ }),
1205
1497
  ],
1206
1498
  updates
1207
1499
  )
@@ -1209,18 +1501,15 @@ function powerOfAttorneyCrossSellQuestions(updates = {}) {
1209
1501
 
1210
1502
  function willsAndTrustsCrossSellQuestions(updates = {}) {
1211
1503
  return step(
1212
- 'willsAndTrustsCrossSellQuestions',
1504
+ "willsAndTrustsCrossSellQuestions",
1213
1505
  [
1214
- crossSellQuestionsStepHeadline({ headline: 'Will or Trust Information' }),
1215
- WillsAndTrustsQuestions("true", 'CrossSell:Wills_and_Trusts'),
1216
- comments(
1217
- {
1218
- label: 'Description:',
1219
- placeholder: 'Please describe your situation in a few words...',
1220
- inputClass: '!t-h-16'
1221
- },
1222
- 'CrossSell:Wills_and_Trusts'
1223
- )
1506
+ crossSellQuestionsStepHeadline({ headline: "Will or Trust Information" }),
1507
+ WillsAndTrustsQuestions("true", "CrossSell:Wills_and_Trusts"),
1508
+ comments("CrossSell:Wills_and_Trusts", false, {
1509
+ label: "Description:",
1510
+ placeholder: "Please describe your situation in a few words...",
1511
+ inputClass: "!t-h-16",
1512
+ }),
1224
1513
  ],
1225
1514
  updates
1226
1515
  )
@@ -1228,205 +1517,187 @@ function willsAndTrustsCrossSellQuestions(updates = {}) {
1228
1517
 
1229
1518
  function legalCrossSells(updates = {}) {
1230
1519
  updates.nextOnInput = false;
1231
- updates.stepKey = '$get(Type_Of_Legal_Problem).value';
1232
- return step(
1233
- 'legalCrossSells',
1234
- [
1235
- legalCrossSellsStepHeadline(updates),
1236
- legalCrossSells$1(),
1237
- ],
1238
- updates
1239
- )
1520
+ updates.stepKey = "$get(Type_Of_Legal_Problem).value";
1521
+ return step("legalCrossSells", [legalCrossSellsStepHeadline(updates), legalCrossSells$1()], updates)
1240
1522
  }
1241
1523
 
1242
1524
  function childAndFamilyTOLP(updates = {}) {
1243
- return step(
1244
- 'childAndFamilyTOLP',
1245
- [
1246
- childAndFamilyTOLPCenter()
1247
- ],
1248
- updates
1249
- )
1525
+ return step("childAndFamilyTOLP", [childAndFamilyTOLP$1(updates.scope, true, updates.input)], updates)
1250
1526
  }
1251
1527
 
1252
1528
  function maritalStatus(updates = {}) {
1253
1529
  return sqstep(
1254
- 'maritalStatus',
1255
- maritalStatusCenter(),
1256
- 'What is your marital status?',
1530
+ "maritalStatus",
1531
+ maritalStatus$1(updates.scope, true, updates.input),
1532
+ "What is your marital status?",
1257
1533
  updates
1258
1534
  )
1259
1535
  }
1260
1536
 
1261
1537
  function haveChildren(updates = {}) {
1262
- return sqstep(
1263
- 'haveChildren',
1264
- haveChildrenCenter(),
1265
- 'Do you have children?',
1266
- updates
1267
- )
1538
+ return sqstep("haveChildren", haveChildren$1(updates.scope, true, updates.input), "Do you have children?", updates)
1268
1539
  }
1269
1540
 
1270
1541
  function childRelationship(updates = {}) {
1271
1542
  return sqstep(
1272
- 'childRelationship',
1273
- childRelationshipCenter(),
1274
- 'Your relationship to the children:',
1543
+ "childRelationship",
1544
+ childRelationship$1(updates.scope, true, updates.input),
1545
+ "Your relationship to the children:",
1275
1546
  updates
1276
1547
  )
1277
1548
  }
1278
1549
 
1279
1550
  function childHome(updates = {}) {
1280
1551
  return sqstep(
1281
- 'childHome',
1282
- childHomeCenter(),
1283
- 'Who do the children currently live with?',
1552
+ "childHome",
1553
+ childHome$1(updates.scope, true, updates.input),
1554
+ "Who do the children currently live with?",
1284
1555
  updates
1285
1556
  )
1286
1557
  }
1287
1558
 
1288
1559
  function childPrimaryCaregiver(updates = {}) {
1289
1560
  return sqstep(
1290
- 'childPrimaryCaregiver',
1291
- childPrimaryCaregiverCenter(),
1292
- 'Who is the primary caregiver?',
1561
+ "childPrimaryCaregiver",
1562
+ childPrimaryCaregiver$1(updates.scope, true, updates.input),
1563
+ "Who is the primary caregiver?",
1293
1564
  updates
1294
1565
  )
1295
1566
  }
1296
1567
 
1297
1568
  function haveAttorney(updates = {}) {
1298
1569
  return sqstep(
1299
- 'haveAttorney',
1300
- haveAttorneyCenter(updates.scope),
1301
- 'Already working with an attorney?',
1570
+ "haveAttorney",
1571
+ haveAttorney$1(updates.scope, true, updates.input),
1572
+ "Already working with an attorney?",
1302
1573
  updates
1303
1574
  )
1304
1575
  }
1305
1576
 
1306
1577
  function degreeOfInterest(updates = {}) {
1307
1578
  return sqstep(
1308
- 'degreeOfInterest',
1309
- degreeOfInterestCenter(),
1310
- 'Could you pay if your issue could be resolved?',
1579
+ "degreeOfInterest",
1580
+ degreeOfInterest$1(updates.scope, true, updates.input),
1581
+ "Could you pay if your issue could be resolved?",
1311
1582
  updates
1312
1583
  )
1313
1584
  }
1314
1585
 
1315
1586
  function lawyerPaymentMethod(updates = {}) {
1316
1587
  return sqstep(
1317
- 'lawyerPaymentMethod',
1318
- lawyerPaymentMethodCenter(),
1319
- 'How would you pay if a solution required it?',
1588
+ "lawyerPaymentMethod",
1589
+ lawyerPaymentMethod$1(updates.scope, true, updates.input),
1590
+ "How would you pay if a solution required it?",
1320
1591
  updates
1321
1592
  )
1322
1593
  }
1323
1594
 
1324
1595
  const formNavigation = (updates = {}) => ({
1325
- $el: 'div',
1596
+ $el: "div",
1326
1597
  attrs: {
1327
- class: 'step-nav'
1598
+ class: "step-nav",
1328
1599
  },
1329
1600
  children: [
1330
1601
  {
1331
- $formkit: 'button',
1332
- name: 'back_button',
1333
- onClick: '$setPreviousStep($prevStepFunc($get(form)))',
1334
- children: 'Back',
1602
+ $formkit: "button",
1603
+ name: "back_button",
1604
+ onClick: "$setPreviousStep($prevStepFunc($get(form)))",
1605
+ children: "Back",
1335
1606
  style: {
1336
- if: '$activeStep === $firstStep()',
1337
- then: 'visibility: hidden;'
1338
- }
1607
+ if: "$activeStep === $firstStep()",
1608
+ then: "visibility: hidden;",
1609
+ },
1339
1610
  },
1340
1611
  {
1341
- $formkit: 'button',
1342
- name: 'next_button',
1343
- onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
1612
+ $formkit: "button",
1613
+ name: "next_button",
1614
+ onClick: "$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",
1344
1615
  children: {
1345
- if: '$activeStep === $firstStep()',
1346
- then: 'Start',
1347
- else: 'Next'
1616
+ if: "$activeStep === $firstStep()",
1617
+ then: "Start",
1618
+ else: "Next",
1348
1619
  },
1349
1620
  outerClass: {
1350
- if: '$activeStep === $lastStep()',
1351
- then: 't-hidden',
1352
- else: ''
1621
+ if: "$activeStep === $lastStep()",
1622
+ then: "t-hidden",
1623
+ else: "",
1353
1624
  },
1354
1625
  style: {
1355
- if: '$activeStep === $lastStep()',
1356
- then: 'display: none;'
1357
- }
1626
+ if: "$activeStep === $lastStep()",
1627
+ then: "display: none;",
1628
+ },
1358
1629
  },
1359
1630
  {
1360
- $formkit: 'submit',
1361
- name: 'submit_button',
1362
- label: updates.submitLabel || 'Submit',
1363
- if: '$activeStep === $lastStep()',
1631
+ $formkit: "submit",
1632
+ name: "submit_button",
1633
+ label: updates.submitLabel || "Submit",
1634
+ if: "$activeStep === $lastStep()",
1364
1635
  style: {
1365
- if: '$activeStep !== $lastStep()',
1366
- then: 'display: none;'
1367
- }
1368
- }
1369
- ]
1636
+ if: "$activeStep !== $lastStep()",
1637
+ then: "display: none;",
1638
+ },
1639
+ },
1640
+ ],
1370
1641
  });
1371
1642
 
1372
1643
  const formDetails = () => ({
1373
- $el: 'pre',
1644
+ $el: "pre",
1374
1645
  if: '$urlParam("fdbg", "") == 1',
1375
1646
  children: [
1376
1647
  {
1377
- $el: 'pre',
1378
- children: '$stringify( $get(form).value )',
1648
+ $el: "pre",
1649
+ children: "$stringify( $get(form).value )",
1379
1650
  attrs: {
1380
- class: 't-text-xs',
1381
- style: 'overflow: scroll'
1382
- }
1651
+ class: "t-text-xs",
1652
+ style: "overflow: scroll",
1653
+ },
1383
1654
  },
1384
1655
  {
1385
- $el: 'pre',
1386
- children: ['activeStep: ', '$activeStep'],
1656
+ $el: "pre",
1657
+ children: ["activeStep: ", "$activeStep"],
1387
1658
  attrs: {
1388
- class: 't-text-xs',
1389
- style: 'overflow: scroll'
1390
- }
1659
+ class: "t-text-xs",
1660
+ style: "overflow: scroll",
1661
+ },
1391
1662
  },
1392
1663
  {
1393
- $el: 'pre',
1394
- children: ['stepHistory: ', '$stepHistory'],
1664
+ $el: "pre",
1665
+ children: ["stepHistory: ", "$stepHistory"],
1395
1666
  attrs: {
1396
- class: 't-text-xs',
1397
- style: 'overflow: scroll'
1398
- }
1667
+ class: "t-text-xs",
1668
+ style: "overflow: scroll",
1669
+ },
1399
1670
  },
1400
1671
  {
1401
- $el: 'pre',
1402
- children: ['stepQueue: ', '$stepQueue'],
1672
+ $el: "pre",
1673
+ children: ["stepQueue: ", "$stepQueue"],
1403
1674
  attrs: {
1404
- class: 't-text-xs',
1405
- style: 'overflow: scroll'
1406
- }
1675
+ class: "t-text-xs",
1676
+ style: "overflow: scroll",
1677
+ },
1407
1678
  },
1408
1679
  {
1409
- $el: 'pre',
1410
- children: ['steps: ', '$stepKeys()'],
1680
+ $el: "pre",
1681
+ children: ["steps: ", "$stepKeys()"],
1411
1682
  attrs: {
1412
- class: 't-text-xs',
1413
- style: 'overflow: scroll'
1414
- }
1415
- }
1416
- ]
1683
+ class: "t-text-xs",
1684
+ style: "overflow: scroll",
1685
+ },
1686
+ },
1687
+ ],
1417
1688
  });
1418
1689
 
1419
1690
  const formPropDefaults = {
1420
- type: 'form',
1421
- id: 'form',
1422
- config: { validationVisibility: 'submit' },
1691
+ type: "form",
1692
+ id: "form",
1693
+ config: { validationVisibility: "submit" },
1423
1694
  onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
1424
- plugins: '$plugins',
1695
+ plugins: "$plugins",
1425
1696
  actions: false,
1426
- anchorElement: 'form-anchor',
1697
+ anchorElement: "form-anchor",
1427
1698
  useLocalStorage: true,
1428
1699
  prepop: {
1429
- fromURL: true
1700
+ fromURL: true,
1430
1701
  },
1431
1702
  errorCodes: {
1432
1703
  403: { message: "An Error Occurred", abort: false },
@@ -1434,13 +1705,11 @@ const formPropDefaults = {
1434
1705
  429: "An Error Occurred",
1435
1706
  504: { message: "An Error Occurred", abort: false },
1436
1707
  },
1437
- formClass: '!t-max-w-[40rem]'
1708
+ formClass: "!t-max-w-[40rem]",
1438
1709
  };
1439
1710
 
1440
1711
  function filterMapByKey(obj, keyList) {
1441
- return Object.fromEntries(
1442
- Object.entries(obj).filter(([key]) => keyList.includes(key))
1443
- );
1712
+ return Object.fromEntries(Object.entries(obj).filter(([key]) => keyList.includes(key)))
1444
1713
  }
1445
1714
 
1446
1715
  // export function filteredNextStepsMapLegal(keyList) {
@@ -1450,10 +1719,7 @@ function filterMapByKey(obj, keyList) {
1450
1719
  // }
1451
1720
 
1452
1721
  function formProps(updates) {
1453
- const props = merge(
1454
- formPropDefaults,
1455
- updates
1456
- );
1722
+ const props = merge(formPropDefaults, updates);
1457
1723
  if (props.formId && !props.name) {
1458
1724
  props.name = props.formId;
1459
1725
  }
@@ -1463,13 +1729,10 @@ function formProps(updates) {
1463
1729
  const metaDefaults = {};
1464
1730
 
1465
1731
  function metaProps(updates) {
1466
- const data = merge(
1467
- metaDefaults,
1468
- updates
1469
- );
1732
+ const data = merge(metaDefaults, updates);
1470
1733
  return {
1471
- type: 'meta',
1472
- data
1734
+ type: "meta",
1735
+ data,
1473
1736
  }
1474
1737
  }
1475
1738
 
@@ -1489,233 +1752,232 @@ function defaultMetaPropsLegal(tolps = null) {
1489
1752
  defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_LEGAL,
1490
1753
  finalHeadlines: finalHeadlines,
1491
1754
  defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_LEGAL,
1492
- finalSubHeadlines: finalSubHeadlines
1755
+ finalSubHeadlines: finalSubHeadlines,
1493
1756
  })
1494
1757
  }
1495
1758
 
1496
- function dynamicSchemaNode(field = 'Type_Of_Legal_Problem') {
1759
+ function dynamicSchemaNode(field = "Type_Of_Legal_Problem") {
1497
1760
  return {
1498
- $cmp: 'FormKitSchema',
1499
- if: '$get(' + field + ').value',
1761
+ $cmp: "FormKitSchema",
1762
+ if: "$get(" + field + ").value",
1500
1763
  props: {
1501
- schema: '$meta.dynamicSchema',
1502
- data: '$buildData($meta)'
1503
- }
1764
+ schema: "$meta.dynamicSchema",
1765
+ data: "$buildData($meta)",
1766
+ },
1504
1767
  }
1505
1768
  }
1506
1769
 
1507
1770
  const formAnchorDefaults = {
1508
- $el: 'div',
1771
+ $el: "div",
1509
1772
  children: [
1510
1773
  {
1511
- $el: 'div',
1774
+ $el: "div",
1512
1775
  attrs: {
1513
- id: 'form-anchor',
1514
- class: 't-absolute',
1515
- style: { top: '-30px', left: 0 }
1516
- }
1517
- }
1776
+ id: "form-anchor",
1777
+ class: "t-absolute",
1778
+ style: { top: "-30px", left: 0 },
1779
+ },
1780
+ },
1518
1781
  ],
1519
1782
  attrs: {
1520
- class: 't-relative'
1521
- }
1783
+ class: "t-relative",
1784
+ },
1522
1785
  };
1523
1786
 
1524
1787
  function formAnchor(updates) {
1525
- return merge(
1526
- formAnchorDefaults,
1527
- updates
1528
- )
1788
+ return merge(formAnchorDefaults, updates)
1529
1789
  }
1530
1790
 
1531
1791
  const progressBarDefaults = {
1532
- $el: 'div',
1792
+ $el: "div",
1533
1793
  attrs: {
1534
- class: 't-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center',
1794
+ class: "t-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center",
1535
1795
  style: {
1536
- if: '$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())',
1537
- then: 'display: none'
1796
+ if: "$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",
1797
+ then: "display: none",
1538
1798
  },
1539
1799
  },
1540
1800
  children: [
1541
1801
  {
1542
- $el: 'div',
1802
+ $el: "div",
1543
1803
  attrs: {
1544
- class: 't-flex t-justify-center'
1804
+ class: "t-flex t-justify-center",
1545
1805
  },
1546
1806
  children: [
1547
1807
  {
1548
- $el: 'span',
1808
+ $el: "span",
1549
1809
  attrs: {
1550
- id: 'progress-bar-text',
1551
- class: 't-text-sm t-mb-1'
1810
+ id: "progress-bar-text",
1811
+ class: "t-text-sm t-mb-1",
1552
1812
  },
1553
- children: [
1554
- "0% Complete"
1555
- ]
1813
+ children: ["0% Complete"],
1556
1814
  },
1557
- ]
1815
+ ],
1558
1816
  },
1559
1817
  {
1560
- $el: 'div',
1818
+ $el: "div",
1561
1819
  attrs: {
1562
- class: 't-bg-gray-100 t-w-9/12 t-rounded'
1820
+ class: "t-bg-gray-100 t-w-9/12 t-rounded",
1563
1821
  },
1564
1822
  children: [
1565
1823
  {
1566
- $el: 'div',
1824
+ $el: "div",
1567
1825
  attrs: {
1568
- id: 'progress-bar',
1569
- 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]',
1826
+ id: "progress-bar",
1827
+ class:
1828
+ "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]",
1570
1829
  style: {
1571
- transition: 'width 0.5s ease'
1830
+ transition: "width 0.5s ease",
1572
1831
  },
1573
1832
  },
1574
- }
1575
- ]
1576
- }
1577
- ]
1833
+ },
1834
+ ],
1835
+ },
1836
+ ],
1578
1837
  };
1579
1838
 
1580
1839
  function progressBar(updates) {
1581
- return merge(
1582
- progressBarDefaults,
1583
- updates
1584
- )
1840
+ return merge(progressBarDefaults, updates)
1585
1841
  }
1586
1842
 
1587
1843
  function headlineDefaults(updates = {}) {
1588
1844
  return {
1589
- $el: 'h1',
1845
+ $el: "h1",
1590
1846
  attrs: {
1591
- 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 || '')
1592
- }
1847
+ class:
1848
+ "t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3" +
1849
+ " " +
1850
+ (updates.headlineClass || ""),
1851
+ },
1593
1852
  }
1594
1853
  }
1595
1854
 
1596
1855
  function headline(updates = {}) {
1597
- return merge(
1598
- headlineDefaults(updates),
1599
- updates
1600
- )
1856
+ return merge(headlineDefaults(updates), updates)
1601
1857
  }
1602
1858
 
1603
1859
  function subHeadlineDefaults(updates = {}) {
1604
1860
  return {
1605
- $el: 'h3',
1861
+ $el: "h3",
1606
1862
  attrs: {
1607
- 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 || '')
1608
- }
1863
+ class:
1864
+ "t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10" +
1865
+ " " +
1866
+ (updates.subheadlineClass || ""),
1867
+ },
1609
1868
  }
1610
1869
  }
1611
1870
 
1612
1871
  function subHeadline(updates = {}) {
1613
- return merge(
1614
- subHeadlineDefaults(updates),
1615
- updates
1616
- )
1872
+ return merge(subHeadlineDefaults(updates), updates)
1617
1873
  }
1618
1874
 
1619
1875
  const hiddenInputsBase = [
1620
1876
  {
1621
- $formkit: 'hidden',
1877
+ $formkit: "hidden",
1622
1878
  name: "gclid",
1623
- value: null
1879
+ value: null,
1624
1880
  },
1625
1881
  {
1626
- $formkit: 'hidden',
1882
+ $formkit: "hidden",
1627
1883
  name: "campaignid",
1628
- value: null
1884
+ value: null,
1629
1885
  },
1630
1886
  {
1631
- $formkit: 'hidden',
1887
+ $formkit: "hidden",
1632
1888
  name: "s",
1633
- value: null
1634
- }
1889
+ value: null,
1890
+ },
1635
1891
  ];
1636
1892
 
1637
1893
  const hiddenInputsLegal = [
1638
1894
  {
1639
- $formkit: 'hidden',
1895
+ $formkit: "hidden",
1640
1896
  name: "vertical",
1641
- value: "Legal"
1897
+ value: "Legal",
1642
1898
  },
1643
1899
  {
1644
- $formkit: 'hidden',
1900
+ $formkit: "hidden",
1645
1901
  name: "TCPA_Language",
1646
- value: "$meta.tcpaLanguage"
1902
+ value: "$meta.tcpaLanguage",
1647
1903
  },
1648
- ...hiddenInputsBase
1904
+ ...hiddenInputsBase,
1649
1905
  ];
1650
1906
 
1651
1907
  const legalRedirectMapDefaults = {
1652
- '*': LegalRedirectUrl()
1908
+ "*": LegalRedirectUrl(),
1653
1909
  };
1654
1910
 
1655
-
1656
1911
  function legalRedirectMap(updates) {
1657
- return merge(
1658
- legalRedirectMapDefaults,
1659
- updates
1660
- )
1912
+ return merge(legalRedirectMapDefaults, updates)
1661
1913
  }
1662
1914
 
1663
1915
  const TOLPCommentsPlaceholders = {
1664
- 'Adoption': 'Example: "I need help with adoption forms"',
1665
- 'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
1666
- '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"',
1667
- 'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
1668
- 'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
1669
- 'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
1670
- 'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
1671
- 'Child Custody': 'Example: "Need help getting custody"',
1672
- 'Child Support': 'Example: "Issues with child support payments"',
1673
- 'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
1674
- 'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
1675
- 'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
1676
- 'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
1677
- 'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
1678
- 'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
1679
- 'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
1680
- 'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
1681
- 'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
1682
- 'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
1683
- 'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
1684
- 'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
1685
- 'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
1686
- 'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
1687
- 'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
1688
- 'Guardianship': 'Example: "I need help with guardianship documents"',
1689
- 'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
1690
- 'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
1691
- 'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
1692
- 'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
1693
- 'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
1694
- 'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
1695
- 'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
1696
- 'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
1697
- 'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
1698
- 'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
1699
- 'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
1700
- '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"',
1701
- 'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
1702
- 'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
1703
- 'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
1704
- 'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
1705
- 'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
1706
- 'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
1707
- 'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
1708
- 'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
1709
- '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"',
1710
- 'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
1711
- 'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
1712
- 'Unemployment': 'Example: "I need help filing for unemployment benefits"',
1713
- 'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
1714
- 'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
1715
- 'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
1716
- 'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
1717
- 'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
1718
- 'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
1916
+ Adoption: 'Example: "I need help with adoption forms"',
1917
+ "Asbestos and Mesothelioma": 'Example: "I was exposed to asbestos at work and would like to file a claim"',
1918
+ "Auto and Car Accidents":
1919
+ 'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',
1920
+ Bankruptcy: 'Example: "I need help filing for bankruptcy"',
1921
+ "Birth Certificate and Name Change": 'Example: "Just married and would like to change my last name"',
1922
+ "Business Lawyers": 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
1923
+ "Child Custody and Support": 'Example: "Need help getting custody" or "Issues with child support payments"',
1924
+ "Child Custody": 'Example: "Need help getting custody"',
1925
+ "Child Support": 'Example: "Issues with child support payments"',
1926
+ "Civil Rights and Discrimination": 'Example: "Police brutality" or "Coworker keeps harassing me"',
1927
+ "Civil Lawsuit":
1928
+ 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
1929
+ "File a Lawsuit": 'Example: "A contractor took my money and never completed the job"',
1930
+ "Defend a Lawsuit": 'Example: "I am being sued by a neighbor"',
1931
+ "Consumer Lawyers":
1932
+ 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
1933
+ "Copyrights and Trademarks": 'Example: "I would like to register a trademark or copyright a name"',
1934
+ "Criminal and Felony":
1935
+ 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
1936
+ "Debt and Collections": 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
1937
+ "Divorce and Separation": 'Example: "I would like to file for an uncontested divorce"',
1938
+ "DUI and DWI": 'Example: "I was arrested for DUI and need legal defense"',
1939
+ "Elder Law": 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
1940
+ "Employment and Workplace": 'Example: "I was injured while on the job" or "My company is discriminating against me"',
1941
+ Expungement: 'Example: "I would like to file for an expungement and clear my record"',
1942
+ "Family Issues": 'Example: "I need help with guardianship" or "I need a simple will created"',
1943
+ Foreclosure: 'Example: "I need help to avoid foreclosure on my house"',
1944
+ Guardianship: 'Example: "I need help with guardianship documents"',
1945
+ "Harassment and Discrimination": 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
1946
+ "Sexual Harassment": 'Example: "I am being sexually harassed by a coworker"',
1947
+ "Workplace Harassment": 'Example: "My coworker is being aggressive towards me"',
1948
+ "Non-Workplace Harassment": 'Example: "My neighbor is harassing me"',
1949
+ "Workplace Discrimination": 'Example: "I am being discriminated at work based on my age"',
1950
+ "Non-Workplace Discrimination": 'Example: "I am being discriminated against by a local official"',
1951
+ "Identity Theft": 'Example: "Someone stole my identity and I need help fixing the issue"',
1952
+ "Immigration and Visas": 'Example: "I need help filing for a visa" or "Help with a green card"',
1953
+ Insurance: 'Example: "I need help filing an insurance claim for damage to my house"',
1954
+ "Landlord and Tenant":
1955
+ 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
1956
+ "Lemon Law": 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
1957
+ "Long Term Disability":
1958
+ 'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',
1959
+ "Medical Malpractice": 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
1960
+ "Patents and Intellectual Property": 'Example: "I would like to file for a patent" or "I need to copyright a name"',
1961
+ "Personal Injury": 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
1962
+ "Power of Attorney": 'Example: "I need help with a limited or general power of attorney"',
1963
+ "Probate and Estates":
1964
+ 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
1965
+ "Product Liability": 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
1966
+ "Property Damage": 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
1967
+ "Real Estate":
1968
+ 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
1969
+ "Social Security Disability and Insurance":
1970
+ 'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',
1971
+ "Tax and IRS": 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
1972
+ "Traffic and Tickets":
1973
+ 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
1974
+ Unemployment: 'Example: "I need help filing for unemployment benefits"',
1975
+ "Victim of a Crime": 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
1976
+ "Wills and Trusts": 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
1977
+ "Workers Compensation": 'Example: "I was injured at work and would like to file for workers compensation benefits"',
1978
+ "Wrongful Death": 'Example: "A family member was killed on the job and we need legal representation"',
1979
+ "Wrongful Termination": 'Example: "I was fired by my employer without cause"',
1980
+ "Not Sure or Other": 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"',
1719
1981
  };
1720
1982
 
1721
1983
  const TOLPFinalHeadlines = {
@@ -1723,49 +1985,64 @@ const TOLPFinalHeadlines = {
1723
1985
  };
1724
1986
 
1725
1987
  const TOLPFinalSubHeadlines = {
1726
- 'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
1988
+ Adoption: "You may benefit from speaking with an adoption professional. Please verify your contact information.",
1727
1989
  // 'Asbestos and Mesothelioma': '',
1728
- 'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
1729
- 'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
1990
+ "Auto and Car Accidents":
1991
+ "You may benefit from speaking with an accident professional. Please verify your contact information.",
1992
+ Bankruptcy: "You may benefit from speaking with a bankruptcy professional. Please verify your contact information.",
1730
1993
  // 'Birth Certificate and Name Change': '',
1731
1994
  // 'Business Lawyers': '',
1732
1995
  // 'Child Custody and Support': '',
1733
1996
  // 'Civil Rights and Discrimination': '',
1734
1997
  // 'Civil Lawsuit': '',
1735
1998
  // 'Consumer Lawyers': '',
1736
- 'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
1999
+ "Copyrights and Trademarks":
2000
+ "You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.",
1737
2001
  // 'Criminal and Felony': '',
1738
2002
  // 'Debt and Collections': '',
1739
- 'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
1740
- 'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
1741
- 'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
2003
+ "Divorce and Separation":
2004
+ "You may benefit from speaking with a divorce professional. Please verify your contact information.",
2005
+ "DUI and DWI": "You may benefit from speaking with a DUI professional. Please verify your contact information.",
2006
+ "Elder Law": "You may benefit from speaking with an elder law professional. Please verify your contact information.",
1742
2007
  // 'Employment and Workplace': '',
1743
2008
  // 'Expungement': '',
1744
2009
  // 'Family Issues': '',
1745
- 'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
1746
- 'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
2010
+ Foreclosure: "You may benefit from speaking with a foreclosure professional. Please verify your contact information.",
2011
+ Guardianship:
2012
+ "You may benefit from speaking with a guardianship professional. Please verify your contact information.",
1747
2013
  // 'Harassment and Discrimination': '',
1748
2014
  // 'Identity Theft': '',
1749
- 'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
2015
+ "Immigration and Visas":
2016
+ "You may benefit from speaking with a immigration professional. Please verify your contact information.",
1750
2017
  // 'Insurance': '',
1751
- 'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
2018
+ "Landlord and Tenant":
2019
+ "You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.",
1752
2020
  // 'Lemon Law': '',
1753
- 'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
1754
- 'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
1755
- 'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
1756
- 'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
2021
+ "Long Term Disability":
2022
+ "You may benefit from speaking with a disability legal professional. Please verify your contact information.",
2023
+ "Medical Malpractice":
2024
+ "You may benefit from speaking with a malpractice professional. Please verify your contact information.",
2025
+ "Patents and Intellectual Property":
2026
+ "You may benefit from speaking with a patent professional. Please verify your contact information.",
2027
+ "Personal Injury":
2028
+ "You may benefit from speaking with a personal injury professional. Please verify your contact information.",
1757
2029
  // 'Power of Attorney': '',
1758
- 'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
2030
+ "Probate and Estates":
2031
+ "You may benefit from speaking with a probate and estate professional. Please verify your contact information.",
1759
2032
  // 'Product Liability': '',
1760
2033
  // 'Property Damage': '',
1761
- 'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
1762
- 'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
1763
- 'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
2034
+ "Real Estate":
2035
+ "You may benefit from speaking with a real estate professional. Please verify your contact information.",
2036
+ "Social Security Disability and Insurance":
2037
+ "You may benefit from speaking with an SSDI professional. Please verify your contact information.",
2038
+ "Tax and IRS": "You may benefit from speaking with a tax professional. Please verify your contact information.",
1764
2039
  // 'Traffic and Tickets': '',
1765
- 'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
2040
+ Unemployment:
2041
+ "You may benefit from speaking with an unemployment professional. Please verify your contact information.",
1766
2042
  // 'Victim of a Crime': '',
1767
2043
  // 'Wills and Trusts': '',
1768
- 'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
2044
+ "Workers Compensation":
2045
+ "You may benefit from speaking with a workers compensation professional. Please verify your contact information.",
1769
2046
  // 'Wrongful Death': '',
1770
2047
  // 'Wrongful Termination': '',
1771
2048
  // 'Not Sure or Other': ''
@@ -1777,428 +2054,301 @@ const TOLPFinalSubHeadlines = {
1777
2054
  };
1778
2055
 
1779
2056
  const nextStepsLegalDefault = [
1780
- 'haveAttorney',
1781
- 'degreeOfInterest',
1782
- 'commentsWithBankruptcy',
1783
- 'zipcode',
1784
- 'legalCrossSells',
1785
- 'firstAndLast',
1786
- 'contactInfo',
2057
+ "haveAttorney",
2058
+ "degreeOfInterest",
2059
+ "commentsWithBankruptcy",
2060
+ "zipcode",
2061
+ "legalCrossSells",
2062
+ "firstAndLast",
2063
+ "contactInfo",
1787
2064
  ];
1788
2065
 
1789
2066
  const nextStepsLegalDefaultLPM = [
1790
- 'haveAttorney',
1791
- 'degreeOfInterest',
1792
- 'lawyerPaymentMethod',
1793
- 'commentsWithBankruptcy',
1794
- 'zipcode',
1795
- 'legalCrossSells',
1796
- 'firstAndLast',
1797
- 'contactInfo',
2067
+ "haveAttorney",
2068
+ "degreeOfInterest",
2069
+ "lawyerPaymentMethod",
2070
+ "commentsWithBankruptcy",
2071
+ "zipcode",
2072
+ "legalCrossSells",
2073
+ "firstAndLast",
2074
+ "contactInfo",
1798
2075
  ];
1799
2076
 
1800
2077
  const nextStepsLegalNoDOI = [
1801
- 'haveAttorney',
1802
- 'commentsWithBankruptcy',
1803
- 'zipcode',
1804
- 'legalCrossSells',
1805
- 'firstAndLast',
1806
- 'contactInfo',
2078
+ "haveAttorney",
2079
+ "commentsWithBankruptcy",
2080
+ "zipcode",
2081
+ "legalCrossSells",
2082
+ "firstAndLast",
2083
+ "contactInfo",
1807
2084
  ];
1808
2085
 
1809
2086
  const nextStepsLegalNoHA = [
1810
- 'degreeOfInterest',
1811
- 'commentsWithBankruptcy',
1812
- 'zipcode',
1813
- 'legalCrossSells',
1814
- 'firstAndLast',
1815
- 'contactInfo',
2087
+ "degreeOfInterest",
2088
+ "commentsWithBankruptcy",
2089
+ "zipcode",
2090
+ "legalCrossSells",
2091
+ "firstAndLast",
2092
+ "contactInfo",
1816
2093
  ];
1817
2094
 
1818
2095
  const nextStepsMapGeneralLegal = {
1819
2096
  values: {
1820
- 'Type_Of_Legal_Problem': {
1821
- 'Adoption': [
1822
- 'maritalStatus',
1823
- 'haveChildren',
1824
- ...nextStepsLegalDefaultLPM
1825
- ],
1826
- 'Asbestos and Mesothelioma': [
1827
- 'incidentDate',
1828
- 'doctorTreatment',
1829
- ...nextStepsLegalDefault
1830
- ],
1831
- 'Auto and Car Accidents': [
1832
- 'incidentDate',
1833
- 'atFault',
1834
- 'primaryInjury',
1835
- 'doctorTreatment',
1836
- 'policeReportFiled',
1837
- ...nextStepsLegalNoDOI
1838
- ],
1839
- 'Bankruptcy': [
1840
- 'totalMonthlyIncome',
1841
- 'totalDebt',
1842
- 'ownRealEstate',
1843
- 'valueOfAssets',
1844
- ...nextStepsLegalDefault
1845
- ],
1846
- 'Business Lawyers': [
1847
- 'businessServices',
1848
- 'businessType',
1849
- 'numEmployeesOfBusiness',
1850
- ...nextStepsLegalDefault
1851
- ],
1852
- 'Child Custody': [
1853
- 'childRelationship',
1854
- 'childHome',
1855
- 'childPrimaryCaregiver',
1856
- ...nextStepsLegalDefaultLPM
1857
- ],
1858
- 'Child Support': [
1859
- 'childRelationship',
1860
- 'childHome',
1861
- 'childPrimaryCaregiver',
1862
- ...nextStepsLegalDefaultLPM
1863
- ],
1864
- 'Civil Rights and Discrimination': [
1865
- 'civilRightsType',
1866
- ...nextStepsLegalDefault
1867
- ],
1868
- 'Civil Lawsuit': [
1869
- 'civilDefense',
1870
- 'lawsuitOtherParty',
1871
- ...nextStepsLegalDefault
1872
- ],
1873
- 'File a Lawsuit': [
1874
- 'civilLawsuitTOLPDisplay',
1875
- 'lawsuitOtherParty',
1876
- ...nextStepsLegalDefault
1877
- ],
1878
- 'Defend a Lawsuit': [
1879
- 'lawsuitOtherParty',
1880
- ...nextStepsLegalDefault
1881
- ],
1882
- 'Consumer Lawyers': [
1883
- 'consumerLawyerType',
1884
- 'incidentDate',
1885
- 'lawsuitOtherParty',
1886
- ...nextStepsLegalDefault
1887
- ],
1888
- 'Criminal and Felony': [
1889
- 'criminalTOLPDisplay',
1890
- 'crimeCommittedDate',
1891
- 'roleInMatterCriminal',
1892
- 'pendingCharges',
1893
- ...nextStepsLegalDefaultLPM
1894
- ],
1895
- 'Debt and Collections': [
1896
- 'totalMonthlyIncome',
1897
- 'totalDebt',
1898
- 'ownRealEstate',
1899
- 'valueOfAssets',
1900
- ...nextStepsLegalDefault
1901
- ],
1902
- 'Divorce and Separation': [
1903
- 'maritalStatus',
1904
- 'haveChildren',
1905
- ...nextStepsLegalDefaultLPM
1906
- ],
1907
- 'DUI and DWI': [
1908
- 'incidentDate',
1909
- 'priorAlcoholOffenses',
1910
- 'typeOfAlcoholTest',
1911
- 'bloodContentAlcoholTest',
1912
- 'pendingCharges',
1913
- ...nextStepsLegalDefault
2097
+ Type_Of_Legal_Problem: {
2098
+ Adoption: ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
2099
+ "Asbestos and Mesothelioma": ["incidentDate", "doctorTreatment", ...nextStepsLegalDefault],
2100
+ "Auto and Car Accidents": [
2101
+ "incidentDate",
2102
+ "atFault",
2103
+ "primaryInjury",
2104
+ "doctorTreatment",
2105
+ "policeReportFiled",
2106
+ ...nextStepsLegalNoDOI,
1914
2107
  ],
1915
- 'Employment and Workplace': [
1916
- 'employmentAndWorkplaceTOLPDisplay',
1917
- 'numEmployeesOfBusiness',
1918
- 'employerType',
1919
- 'employeeAtCompany',
1920
- ...nextStepsLegalDefault
2108
+ Bankruptcy: ["totalMonthlyIncome", "totalDebt", "ownRealEstate", "valueOfAssets", ...nextStepsLegalDefault],
2109
+ "Business Lawyers": ["businessServices", "businessType", "numEmployeesOfBusiness", ...nextStepsLegalDefault],
2110
+ "Child Custody": ["childRelationship", "childHome", "childPrimaryCaregiver", ...nextStepsLegalDefaultLPM],
2111
+ "Child Support": ["childRelationship", "childHome", "childPrimaryCaregiver", ...nextStepsLegalDefaultLPM],
2112
+ "Civil Rights and Discrimination": ["civilRightsType", ...nextStepsLegalDefault],
2113
+ "Civil Lawsuit": ["civilDefense", "lawsuitOtherParty", ...nextStepsLegalDefault],
2114
+ "File a Lawsuit": ["civilLawsuitTOLPDisplay", "lawsuitOtherParty", ...nextStepsLegalDefault],
2115
+ "Defend a Lawsuit": ["lawsuitOtherParty", ...nextStepsLegalDefault],
2116
+ "Consumer Lawyers": ["consumerLawyerType", "incidentDate", "lawsuitOtherParty", ...nextStepsLegalDefault],
2117
+ "Criminal and Felony": [
2118
+ "criminalTOLPDisplay",
2119
+ "crimeCommittedDate",
2120
+ "roleInMatterCriminal",
2121
+ "pendingCharges",
2122
+ ...nextStepsLegalDefaultLPM,
1921
2123
  ],
1922
- 'Expungement': [
1923
- 'incidentDate',
1924
- 'criminalChargeType',
1925
- ...nextStepsLegalDefaultLPM
2124
+ "Debt and Collections": [
2125
+ "totalMonthlyIncome",
2126
+ "totalDebt",
2127
+ "ownRealEstate",
2128
+ "valueOfAssets",
2129
+ ...nextStepsLegalDefault,
1926
2130
  ],
1927
- 'Family Issues': [
1928
- 'maritalStatus',
1929
- 'haveChildren',
1930
- ...nextStepsLegalDefaultLPM
2131
+ "Divorce and Separation": ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
2132
+ "DUI and DWI": [
2133
+ "incidentDate",
2134
+ "priorAlcoholOffenses",
2135
+ "typeOfAlcoholTest",
2136
+ "bloodContentAlcoholTest",
2137
+ "pendingCharges",
2138
+ ...nextStepsLegalDefault,
1931
2139
  ],
1932
- 'Foreclosure': [
1933
- 'ownRealEstate',
1934
- 'typeOfProperty',
1935
- 'amountPaymentsPastDue',
1936
- 'loanAmount',
1937
- 'defaultNotice',
1938
- ...nextStepsLegalDefault
2140
+ "Employment and Workplace": [
2141
+ "employmentAndWorkplaceTOLPDisplay",
2142
+ "numEmployeesOfBusiness",
2143
+ "employerType",
2144
+ "employeeAtCompany",
2145
+ ...nextStepsLegalDefault,
1939
2146
  ],
1940
- 'Guardianship': [
1941
- 'maritalStatus',
1942
- 'haveChildren',
1943
- ...nextStepsLegalDefaultLPM
2147
+ Expungement: ["incidentDate", "criminalChargeType", ...nextStepsLegalDefaultLPM],
2148
+ "Family Issues": ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
2149
+ Foreclosure: [
2150
+ "ownRealEstate",
2151
+ "typeOfProperty",
2152
+ "amountPaymentsPastDue",
2153
+ "loanAmount",
2154
+ "defaultNotice",
2155
+ ...nextStepsLegalDefault,
1944
2156
  ],
1945
- 'Immigration and Visas': [
1946
- 'countryOfCitizenship',
1947
- 'immigrationLocation',
1948
- 'immigrationEntry',
1949
- 'immigrationType',
1950
- 'immigrationStatus',
1951
- 'immigrationDetails',
1952
- ...nextStepsLegalDefault
2157
+ Guardianship: ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
2158
+ "Immigration and Visas": [
2159
+ "countryOfCitizenship",
2160
+ "immigrationLocation",
2161
+ "immigrationEntry",
2162
+ "immigrationType",
2163
+ "immigrationStatus",
2164
+ "immigrationDetails",
2165
+ ...nextStepsLegalDefault,
1953
2166
  ],
1954
- 'Landlord and Tenant': [
1955
- 'landlordTenantIssue',
1956
- 'landlordTenantParty',
1957
- ...nextStepsLegalDefault
2167
+ "Landlord and Tenant": ["landlordTenantIssue", "landlordTenantParty", ...nextStepsLegalDefault],
2168
+ "Lemon Law": ["incidentDate", "lawsuitOtherParty", ...nextStepsLegalDefault],
2169
+ "Long Term Disability": [
2170
+ "applicantOccupation",
2171
+ "applicantAge",
2172
+ "applicantLTDisabilityPolicy",
2173
+ "applicantDisabilityHowObtain",
2174
+ "applicantPreviouslyAppliedLtdBenefits",
2175
+ "applicantReceivedDisabilityBenefits",
2176
+ "applicantMonthlySalary",
2177
+ ...nextStepsLegalNoDOI,
1958
2178
  ],
1959
- 'Lemon Law': [
1960
- 'incidentDate',
1961
- 'lawsuitOtherParty',
1962
- ...nextStepsLegalDefault
2179
+ "Medical Malpractice": [
2180
+ "incidentDate",
2181
+ "claimStatus",
2182
+ "doctorTreatment",
2183
+ "medicalMalpracticeInjuries",
2184
+ ...nextStepsLegalDefault,
1963
2185
  ],
1964
- 'Long Term Disability': [
1965
- 'applicantOccupation',
1966
- 'applicantAge',
1967
- 'applicantLTDisabilityPolicy',
1968
- 'applicantDisabilityHowObtain',
1969
- 'applicantPreviouslyAppliedLtdBenefits',
1970
- 'applicantReceivedDisabilityBenefits',
1971
- 'applicantMonthlySalary',
1972
- ...nextStepsLegalNoDOI
2186
+ "Patents and Intellectual Property": ["patentAssistanceType", "patentFor", ...nextStepsLegalDefault],
2187
+ "Personal Injury": [
2188
+ "incidentDate",
2189
+ "claimStatus",
2190
+ "atFault",
2191
+ "primaryInjury",
2192
+ "doctorTreatment",
2193
+ ...nextStepsLegalNoDOI,
1973
2194
  ],
1974
- 'Medical Malpractice': [
1975
- 'incidentDate',
1976
- 'claimStatus',
1977
- 'doctorTreatment',
1978
- 'medicalMalpracticeInjuries',
1979
- ...nextStepsLegalDefault
2195
+ "Probate and Estates": [
2196
+ "valueOfAssets",
2197
+ "typeOfAssets",
2198
+ "roleInMatterProbate",
2199
+ "estateLegalServicesNeeded",
2200
+ ...nextStepsLegalDefault,
1980
2201
  ],
1981
- 'Patents and Intellectual Property': [
1982
- 'patentAssistanceType',
1983
- 'patentFor',
1984
- ...nextStepsLegalDefault
2202
+ "Property Damage": ["realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
2203
+ "Real Estate": ["realEstateTOLPDisplay", "realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
2204
+ "Social Security Disability and Insurance": [
2205
+ "applicantAge",
2206
+ "disabilityConditionStopWork",
2207
+ "disabilityWorkHistory",
2208
+ "socialSecurityDisabilityReceivingBenefits",
2209
+ "doctorTreatment",
2210
+ ...nextStepsLegalNoDOI,
1985
2211
  ],
1986
- 'Personal Injury': [
1987
- 'incidentDate',
1988
- 'claimStatus',
1989
- 'atFault',
1990
- 'primaryInjury',
1991
- 'doctorTreatment',
1992
- ...nextStepsLegalNoDOI
2212
+ "Tax and IRS": ["totalDebt", "taxProblemDetails", "taxLevel", "taxIssueType", ...nextStepsLegalDefault],
2213
+ "Traffic and Tickets": ["driversLicenseType", "trafficViolations", "haveCourtDate", ...nextStepsLegalDefault],
2214
+ Unemployment: ["numEmployeesOfBusiness", "employerType", ...nextStepsLegalNoHA],
2215
+ "Victim of a Crime": [
2216
+ "crimeCommittedDate",
2217
+ "roleInMatterCriminal",
2218
+ "pendingCharges",
2219
+ ...nextStepsLegalDefaultLPM,
1993
2220
  ],
1994
- 'Probate and Estates': [
1995
- 'valueOfAssets',
1996
- 'typeOfAssets',
1997
- 'roleInMatterProbate',
1998
- 'estateLegalServicesNeeded',
1999
- ...nextStepsLegalDefault
2221
+ "Wills and Trusts": [
2222
+ "valueOfAssets",
2223
+ "typeOfAssets",
2224
+ "roleInMatterProbate",
2225
+ "estateLegalServicesNeeded",
2226
+ ...nextStepsLegalDefault,
2000
2227
  ],
2001
- 'Property Damage': [
2002
- 'realEstateArea',
2003
- 'wouldLikeLawyerTo',
2004
- ...nextStepsLegalDefault
2228
+ "Workers Compensation": [
2229
+ "incidentDate",
2230
+ "claimStatus",
2231
+ "primaryInjury",
2232
+ "causeOfInjury",
2233
+ "doctorTreatment",
2234
+ ...nextStepsLegalNoDOI,
2005
2235
  ],
2006
- 'Real Estate': [
2007
- 'realEstateTOLPDisplay',
2008
- 'realEstateArea',
2009
- 'wouldLikeLawyerTo',
2010
- ...nextStepsLegalDefault
2236
+ "Workplace Harassment": ["numEmployeesOfBusiness", "employerType", "employeeAtCompany", ...nextStepsLegalDefault],
2237
+ "Workplace Discrimination": [
2238
+ "numEmployeesOfBusiness",
2239
+ "employerType",
2240
+ "employeeAtCompany",
2241
+ ...nextStepsLegalDefault,
2011
2242
  ],
2012
- 'Social Security Disability and Insurance': [
2013
- 'applicantAge',
2014
- 'disabilityConditionStopWork',
2015
- 'disabilityWorkHistory',
2016
- 'socialSecurityDisabilityReceivingBenefits',
2017
- 'doctorTreatment',
2018
- ...nextStepsLegalNoDOI
2019
- ],
2020
- 'Tax and IRS': [
2021
- 'totalDebt',
2022
- 'taxProblemDetails',
2023
- 'taxLevel',
2024
- 'taxIssueType',
2025
- ...nextStepsLegalDefault
2026
- ],
2027
- 'Traffic and Tickets': [
2028
- 'driversLicenseType',
2029
- 'trafficViolations',
2030
- 'haveCourtDate',
2031
- ...nextStepsLegalDefault
2032
- ],
2033
- 'Unemployment': [
2034
- 'numEmployeesOfBusiness',
2035
- 'employerType',
2036
- ...nextStepsLegalNoHA
2037
- ],
2038
- 'Victim of a Crime': [
2039
- 'crimeCommittedDate',
2040
- 'roleInMatterCriminal',
2041
- 'pendingCharges',
2042
- ...nextStepsLegalDefaultLPM
2043
- ],
2044
- 'Wills and Trusts': [
2045
- 'valueOfAssets',
2046
- 'typeOfAssets',
2047
- 'roleInMatterProbate',
2048
- 'estateLegalServicesNeeded',
2049
- ...nextStepsLegalDefault
2050
- ],
2051
- 'Workers Compensation': [
2052
- 'incidentDate',
2053
- 'claimStatus',
2054
- 'primaryInjury',
2055
- 'causeOfInjury',
2056
- 'doctorTreatment',
2057
- ...nextStepsLegalNoDOI
2058
- ],
2059
- 'Workplace Harassment': [
2060
- 'numEmployeesOfBusiness',
2061
- 'employerType',
2062
- 'employeeAtCompany',
2063
- ...nextStepsLegalDefault
2064
- ],
2065
- 'Workplace Discrimination': [
2066
- 'numEmployeesOfBusiness',
2067
- 'employerType',
2068
- 'employeeAtCompany',
2069
- ...nextStepsLegalDefault
2070
- ],
2071
- 'Wrongful Death': [
2072
- 'incidentDate',
2073
- 'relationshipToVictim',
2074
- 'criminalChargesFiled',
2075
- 'causeOfDeath',
2076
- ...nextStepsLegalNoDOI
2077
- ],
2078
- 'Wrongful Termination': [
2079
- 'numEmployeesOfBusiness',
2080
- 'employerType',
2081
- ...nextStepsLegalDefault
2243
+ "Wrongful Death": [
2244
+ "incidentDate",
2245
+ "relationshipToVictim",
2246
+ "criminalChargesFiled",
2247
+ "causeOfDeath",
2248
+ ...nextStepsLegalNoDOI,
2082
2249
  ],
2250
+ "Wrongful Termination": ["numEmployeesOfBusiness", "employerType", ...nextStepsLegalDefault],
2083
2251
  },
2084
- '*': nextStepsLegalDefault
2085
- }
2252
+ "*": nextStepsLegalDefault,
2253
+ },
2086
2254
  };
2087
2255
 
2088
2256
  const TOLPNextSteps = nextStepsMapGeneralLegal["values"]["Type_Of_Legal_Problem"];
2089
2257
 
2090
2258
  const nextStepsMapChildAndFamily = {
2091
2259
  values: {
2092
- 'Type_Of_Legal_Problem': {
2093
- 'Child Custody': TOLPNextSteps["Child Custody"],
2094
- 'Child Support': TOLPNextSteps["Child Support"],
2095
- 'Not Sure or Other': nextStepsMapGeneralLegal["values"]["*"],
2260
+ Type_Of_Legal_Problem: {
2261
+ "Child Custody": TOLPNextSteps["Child Custody"],
2262
+ "Child Support": TOLPNextSteps["Child Support"],
2263
+ "Not Sure or Other": nextStepsMapGeneralLegal["values"]["*"],
2096
2264
  },
2097
- '*': TOLPNextSteps["Family Issues"]
2098
- }
2265
+ "*": TOLPNextSteps["Family Issues"],
2266
+ },
2099
2267
  };
2100
2268
 
2101
2269
  ({
2102
2270
  values: {
2103
- 'Civil_Defense': {
2104
- 'Yes': TOLPNextSteps["Defend a Lawsuit"],
2105
- 'No': TOLPNextSteps["File a Lawsuit"],
2271
+ Civil_Defense: {
2272
+ Yes: TOLPNextSteps["Defend a Lawsuit"],
2273
+ No: TOLPNextSteps["File a Lawsuit"],
2106
2274
  },
2107
- '*': [
2108
- 'lawsuitOtherParty',
2109
- ...nextStepsLegalDefault
2110
- ]
2111
- }
2275
+ "*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
2276
+ },
2112
2277
  });
2113
2278
 
2114
2279
  ({
2115
2280
  values: {
2116
- 'Type_Of_Legal_Problem': {
2117
- 'Defend a Lawsuit': TOLPNextSteps["Defend a Lawsuit"],
2118
- 'File a Lawsuit': TOLPNextSteps["File a Lawsuit"],
2281
+ Type_Of_Legal_Problem: {
2282
+ "Defend a Lawsuit": TOLPNextSteps["Defend a Lawsuit"],
2283
+ "File a Lawsuit": TOLPNextSteps["File a Lawsuit"],
2119
2284
  },
2120
- '*': [
2121
- 'lawsuitOtherParty',
2122
- ...nextStepsLegalDefault
2123
- ]
2124
- }
2285
+ "*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
2286
+ },
2125
2287
  });
2126
2288
 
2127
2289
  ({
2128
2290
  values: {
2129
- 'Type_Of_Legal_Problem_Display': {
2130
- 'Automobile Accident': TOLPNextSteps["Auto and Car Accidents"],
2131
- 'Contract Disputes': TOLPNextSteps["Business Lawyers"],
2132
- 'Dog Bite': TOLPNextSteps["Personal Injury"],
2133
- 'Employment and Workplace': TOLPNextSteps["Employment and Workplace"],
2134
- 'Fraud': TOLPNextSteps["Consumer Lawyers"],
2135
- 'Medical Malpractice': TOLPNextSteps["Medical Malpractice"],
2136
- 'Personal Injury': TOLPNextSteps["Personal Injury"],
2137
- 'Property Damage': TOLPNextSteps["Property Damage"],
2138
- 'Real Estate': TOLPNextSteps["Real Estate"],
2139
- 'Not Sure or Other': nextStepsMapGeneralLegal["values"]["*"],
2291
+ Type_Of_Legal_Problem_Display: {
2292
+ "Automobile Accident": TOLPNextSteps["Auto and Car Accidents"],
2293
+ "Contract Disputes": TOLPNextSteps["Business Lawyers"],
2294
+ "Dog Bite": TOLPNextSteps["Personal Injury"],
2295
+ "Employment and Workplace": TOLPNextSteps["Employment and Workplace"],
2296
+ Fraud: TOLPNextSteps["Consumer Lawyers"],
2297
+ "Medical Malpractice": TOLPNextSteps["Medical Malpractice"],
2298
+ "Personal Injury": TOLPNextSteps["Personal Injury"],
2299
+ "Property Damage": TOLPNextSteps["Property Damage"],
2300
+ "Real Estate": TOLPNextSteps["Real Estate"],
2301
+ "Not Sure or Other": nextStepsMapGeneralLegal["values"]["*"],
2140
2302
  },
2141
- '*': [
2142
- 'lawsuitOtherParty',
2143
- ...nextStepsLegalDefault
2144
- ]
2145
- }
2303
+ "*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
2304
+ },
2146
2305
  });
2147
2306
 
2148
2307
  ({
2149
2308
  values: {
2150
- 'Type_Of_Legal_Problem_Display': {
2151
- 'Wrongful Termination': TOLPNextSteps["Wrongful Termination"],
2152
- 'Workers Compensation': TOLPNextSteps["Workers Compensation"],
2153
- 'Personal Injury': TOLPNextSteps["Personal Injury"],
2154
- 'Unemployment': TOLPNextSteps["Unemployment"],
2309
+ Type_Of_Legal_Problem_Display: {
2310
+ "Wrongful Termination": TOLPNextSteps["Wrongful Termination"],
2311
+ "Workers Compensation": TOLPNextSteps["Workers Compensation"],
2312
+ "Personal Injury": TOLPNextSteps["Personal Injury"],
2313
+ Unemployment: TOLPNextSteps["Unemployment"],
2155
2314
  },
2156
- '*': [
2157
- 'numEmployeesOfBusiness',
2158
- 'employerType',
2159
- 'employeeAtCompany',
2160
- ...nextStepsLegalDefault
2161
- ]
2162
- }
2315
+ "*": ["numEmployeesOfBusiness", "employerType", "employeeAtCompany", ...nextStepsLegalDefault],
2316
+ },
2163
2317
  });
2164
2318
 
2165
2319
  ({
2166
2320
  values: {
2167
- 'Type_Of_Legal_Problem_Display': {
2168
- 'Foreclosure': TOLPNextSteps["Foreclosure"],
2169
- 'Landlord and Tenant': TOLPNextSteps["Landlord and Tenant"],
2170
- 'Wills, Trusts, and Estates': TOLPNextSteps["Wills and Trusts"],
2171
- 'Property Damage': TOLPNextSteps['Property Damage'],
2321
+ Type_Of_Legal_Problem_Display: {
2322
+ Foreclosure: TOLPNextSteps["Foreclosure"],
2323
+ "Landlord and Tenant": TOLPNextSteps["Landlord and Tenant"],
2324
+ "Wills, Trusts, and Estates": TOLPNextSteps["Wills and Trusts"],
2325
+ "Property Damage": TOLPNextSteps["Property Damage"],
2172
2326
  },
2173
- '*': [
2174
- 'realEstateArea',
2175
- 'wouldLikeLawyerTo',
2176
- ...nextStepsLegalDefault
2177
- ]
2178
- }
2327
+ "*": ["realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
2328
+ },
2179
2329
  });
2180
2330
 
2181
2331
  const nextStepsMapLegalCrossSells = {
2182
2332
  values: {
2183
- 'Legal_CrossSells': {
2184
- 'Auto and Car Accidents': ['autoAndCarAccidentCrossSellQuestions'],
2185
- 'Personal Injury': ['personalInjuryCrossSellQuestions'],
2186
- 'Workers Compensation': ['workersCompensationCrossSellQuestions'],
2187
- 'DUI and DWI': ['duiAndDWICrossSellQuestions'],
2188
- 'Long Term Disability': ['longTermDisabilityCrossSellQuestions'],
2189
- 'Social Security Disability and Insurance': ['ssdiCrossSellQuestions'],
2190
- 'Bankruptcy': ['bankruptcyCrossSellQuestions'],
2191
- 'Power of Attorney': ['powerOfAttorneyCrossSellQuestions'],
2192
- 'Wills and Trusts': ['willsAndTrustsCrossSellQuestions'],
2193
- 'Divorce and Separation': ['divorceAndSeparationCrossSellQuestions'],
2194
- 'Child Custody': ['childCustodyCrossSellQuestions'],
2333
+ Legal_CrossSells: {
2334
+ "Auto and Car Accidents": ["autoAndCarAccidentCrossSellQuestions"],
2335
+ "Personal Injury": ["personalInjuryCrossSellQuestions"],
2336
+ "Workers Compensation": ["workersCompensationCrossSellQuestions"],
2337
+ "DUI and DWI": ["duiAndDWICrossSellQuestions"],
2338
+ "Long Term Disability": ["longTermDisabilityCrossSellQuestions"],
2339
+ "Social Security Disability and Insurance": ["ssdiCrossSellQuestions"],
2340
+ Bankruptcy: ["bankruptcyCrossSellQuestions"],
2341
+ "Power of Attorney": ["powerOfAttorneyCrossSellQuestions"],
2342
+ "Wills and Trusts": ["willsAndTrustsCrossSellQuestions"],
2343
+ "Divorce and Separation": ["divorceAndSeparationCrossSellQuestions"],
2344
+ "Child Custody": ["childCustodyCrossSellQuestions"],
2195
2345
  },
2196
- '*': ['firstAndLast', 'contactInfo'],
2346
+ "*": ["firstAndLast", "contactInfo"],
2197
2347
  },
2198
-
2348
+
2199
2349
  // NOTE: this assumes a certain placement of the cross sell question
2200
2350
  // in the form flow.
2201
- appendSteps: ['firstAndLast', 'contactInfo'],
2351
+ appendSteps: ["firstAndLast", "contactInfo"],
2202
2352
  matchesAllowed: 1,
2203
2353
  };
2204
2354