bhl-forms 0.5.3 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bhl-forms.es.js +11139 -18467
- package/dist/bhl-forms.iife.js +11 -135
- package/dist/bhl-forms.umd.js +11 -135
- package/dist/main.css +1 -1
- package/package.json +12 -11
- package/dist/bhl-forms.modern.es.js +0 -29216
- package/dist/bhl-forms.modern.iife.js +0 -145
- package/dist/bhl-forms.modern.umd.js +0 -145
- package/dist/forms/accidentsAndInjuries.es.js +0 -1263
- package/dist/forms/accidentsAndInjuries.iife.js +0 -1
- package/dist/forms/accidentsAndInjuries.json +0 -1
- package/dist/forms/appraisals.es.js +0 -342
- package/dist/forms/appraisals.iife.js +0 -1
- package/dist/forms/appraisals.json +0 -1
- package/dist/forms/childAndFamily.es.js +0 -1662
- package/dist/forms/childAndFamily.iife.js +0 -1
- package/dist/forms/childAndFamily.json +0 -1
- package/dist/forms/childAndFamilySingle.es.js +0 -1793
- package/dist/forms/childAndFamilySingle.iife.js +0 -1
- package/dist/forms/childAndFamilySingle.json +0 -1
- package/dist/forms/civilLawsuit.es.js +0 -2133
- package/dist/forms/civilLawsuit.iife.js +0 -1
- package/dist/forms/civilLawsuit.json +0 -1
- package/dist/forms/coins.es.js +0 -342
- package/dist/forms/coins.iife.js +0 -1
- package/dist/forms/coins.json +0 -1
- package/dist/forms/contracts.es.js +0 -981
- package/dist/forms/contracts.iife.js +0 -1
- package/dist/forms/contracts.json +0 -1
- package/dist/forms/criminal.es.js +0 -3231
- package/dist/forms/criminal.iife.js +0 -1
- package/dist/forms/criminal.json +0 -1
- package/dist/forms/employmentAndWorkplace.es.js +0 -1364
- package/dist/forms/employmentAndWorkplace.iife.js +0 -1
- package/dist/forms/employmentAndWorkplace.json +0 -1
- package/dist/forms/generalLegal.es.js +0 -3370
- package/dist/forms/generalLegal.iife.js +0 -1
- package/dist/forms/generalLegal.json +0 -1
- package/dist/forms/generalLegalPopUnder.es.js +0 -3372
- package/dist/forms/generalLegalPopUnder.iife.js +0 -1
- package/dist/forms/generalLegalPopUnder.json +0 -1
- package/dist/forms/generalLegalPopUnderTF.es.js +0 -3071
- package/dist/forms/generalLegalPopUnderTF.iife.js +0 -1
- package/dist/forms/generalLegalPopUnderTF.json +0 -1
- package/dist/forms/generalLegalSingle.es.js +0 -4276
- package/dist/forms/generalLegalSingle.iife.js +0 -1
- package/dist/forms/generalLegalSingle.json +0 -1
- package/dist/forms/generalLegalThankYou.es.js +0 -3051
- package/dist/forms/generalLegalThankYou.iife.js +0 -1
- package/dist/forms/generalLegalThankYou.json +0 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +0 -1017
- package/dist/forms/harassmentAndDiscrimination.iife.js +0 -1
- package/dist/forms/harassmentAndDiscrimination.json +0 -1
- package/dist/forms/malpractice.es.js +0 -1237
- package/dist/forms/malpractice.iife.js +0 -1
- package/dist/forms/malpractice.json +0 -1
- package/dist/forms/mechanics.es.js +0 -379
- package/dist/forms/mechanics.iife.js +0 -1
- package/dist/forms/mechanics.json +0 -1
- package/dist/forms/realEstate.es.js +0 -2934
- package/dist/forms/realEstate.iife.js +0 -1
- package/dist/forms/realEstate.json +0 -1
- package/dist/forms/repossession.es.js +0 -1248
- package/dist/forms/repossession.iife.js +0 -1
- package/dist/forms/repossession.json +0 -1
- package/dist/forms/ssdi.es.js +0 -1063
- package/dist/forms/ssdi.iife.js +0 -1
- package/dist/forms/ssdi.json +0 -1
- package/dist/forms/testForm.es.js +0 -725
- package/dist/forms/testForm.iife.js +0 -1
- package/dist/forms/testForm.json +0 -1
- package/dist/forms/testRedirects.es.js +0 -532
- package/dist/forms/testRedirects.iife.js +0 -1
- package/dist/forms/testRedirects.json +0 -1
- package/dist/forms/vets.es.js +0 -345
- package/dist/forms/vets.iife.js +0 -1
- package/dist/forms/vets.json +0 -1
- package/dist/forms/willsAndTrusts.es.js +0 -1198
- package/dist/forms/willsAndTrusts.iife.js +0 -1
- package/dist/forms/willsAndTrusts.json +0 -1
|
@@ -1,981 +0,0 @@
|
|
|
1
|
-
function merge() {
|
|
2
|
-
return Object.assign({}, ...arguments)
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
function LegalRedirectUrl() {
|
|
6
|
-
return 'https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}'
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
var TCPA_LANGUAGE = "By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.";
|
|
10
|
-
|
|
11
|
-
const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
|
|
12
|
-
const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
|
|
13
|
-
const DEFAULT_FINAL_HEADLINE = 'Submit Your Case';
|
|
14
|
-
const DEFAULT_FINAL_HEADLINE_DYNAMIC = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
|
|
15
|
-
const DEFAULT_FINAL_SUBHEADLINE = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
|
|
16
|
-
const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
|
|
17
|
-
|
|
18
|
-
const formPropDefaults = {
|
|
19
|
-
type: 'form',
|
|
20
|
-
id: 'form',
|
|
21
|
-
config: { validationVisibility: 'submit' },
|
|
22
|
-
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
|
|
23
|
-
plugins: '$plugins',
|
|
24
|
-
actions: false,
|
|
25
|
-
anchorElement: 'form-anchor',
|
|
26
|
-
useLocalStorage: true,
|
|
27
|
-
prepop: {
|
|
28
|
-
fromURL: true
|
|
29
|
-
},
|
|
30
|
-
errorCodes: {
|
|
31
|
-
403: { message: "An Error Occurred", abort: false },
|
|
32
|
-
409: { abort: false },
|
|
33
|
-
429: "An Error Occurred",
|
|
34
|
-
504: { message: "An Error Occurred", abort: false },
|
|
35
|
-
},
|
|
36
|
-
formClass: '!t-max-w-[40rem]'
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
function formProps(updates) {
|
|
40
|
-
const props = merge(
|
|
41
|
-
formPropDefaults,
|
|
42
|
-
updates
|
|
43
|
-
);
|
|
44
|
-
if (props.formId && !props.name) {
|
|
45
|
-
props.name = props.formId;
|
|
46
|
-
}
|
|
47
|
-
return props
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const metaDefaults = {
|
|
51
|
-
tcpaLanguage: TCPA_LANGUAGE
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
function metaProps(updates) {
|
|
55
|
-
const data = merge(
|
|
56
|
-
metaDefaults,
|
|
57
|
-
updates
|
|
58
|
-
);
|
|
59
|
-
return {
|
|
60
|
-
type: 'meta',
|
|
61
|
-
data
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function defaultMetaProps() {
|
|
66
|
-
return metaProps({
|
|
67
|
-
defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
|
|
68
|
-
commentsPlaceholders: TOLPCommentsPlaceholders,
|
|
69
|
-
defaultFinalHeadline: DEFAULT_FINAL_HEADLINE,
|
|
70
|
-
finalHeadlines: TOLPFinalHeadlines,
|
|
71
|
-
defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE,
|
|
72
|
-
finalSubHeadlines: TOLPFinalSubHeadlines,
|
|
73
|
-
// Added everywhere for now
|
|
74
|
-
// trustedFormTOLPs: trustedFormTOLPs
|
|
75
|
-
})
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
const formAnchorDefaults = {
|
|
79
|
-
$el: 'div',
|
|
80
|
-
children: [
|
|
81
|
-
{
|
|
82
|
-
$el: 'div',
|
|
83
|
-
attrs: {
|
|
84
|
-
id: 'form-anchor',
|
|
85
|
-
class: 't-absolute',
|
|
86
|
-
style: { top: '-30px', left: 0 }
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
attrs: {
|
|
91
|
-
class: 't-relative'
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
function formAnchor(updates) {
|
|
96
|
-
return merge(
|
|
97
|
-
formAnchorDefaults,
|
|
98
|
-
updates
|
|
99
|
-
)
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function headlineDefaults(updates = {}) {
|
|
103
|
-
return {
|
|
104
|
-
$el: 'h1',
|
|
105
|
-
attrs: {
|
|
106
|
-
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 || '')
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function headline(updates = {}) {
|
|
112
|
-
return merge(
|
|
113
|
-
headlineDefaults(updates),
|
|
114
|
-
updates
|
|
115
|
-
)
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function subHeadlineDefaults(updates = {}) {
|
|
119
|
-
return {
|
|
120
|
-
$el: 'h3',
|
|
121
|
-
attrs: {
|
|
122
|
-
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 || '')
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
function subHeadline(updates = {}) {
|
|
128
|
-
return merge(
|
|
129
|
-
subHeadlineDefaults(updates),
|
|
130
|
-
updates
|
|
131
|
-
)
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
const secureIconDefault = {
|
|
135
|
-
$el: 'div',
|
|
136
|
-
if: '$activeStep === $lastStep()',
|
|
137
|
-
attrs: {
|
|
138
|
-
class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
|
|
139
|
-
},
|
|
140
|
-
children: [
|
|
141
|
-
{
|
|
142
|
-
$el: 'img',
|
|
143
|
-
attrs: {
|
|
144
|
-
loading: 'lazy',
|
|
145
|
-
alt: '',
|
|
146
|
-
style: {
|
|
147
|
-
border: 0
|
|
148
|
-
},
|
|
149
|
-
width: '25',
|
|
150
|
-
height: '25',
|
|
151
|
-
src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
$el: 'span',
|
|
156
|
-
children: 'Secure & Encrypted',
|
|
157
|
-
attrs: {
|
|
158
|
-
class: 't-pl-2 t-pt-1 t-font-medium'
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
]
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
function secureIcon(updates) {
|
|
166
|
-
return merge(
|
|
167
|
-
secureIconDefault,
|
|
168
|
-
updates
|
|
169
|
-
)
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
const hiddenInputsBase = [
|
|
173
|
-
{
|
|
174
|
-
$formkit: 'hidden',
|
|
175
|
-
name: "gclid",
|
|
176
|
-
value: null
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
$formkit: 'hidden',
|
|
180
|
-
name: "campaignid",
|
|
181
|
-
value: null
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
$formkit: 'hidden',
|
|
185
|
-
name: "s",
|
|
186
|
-
value: null
|
|
187
|
-
}
|
|
188
|
-
];
|
|
189
|
-
|
|
190
|
-
const hiddenInputsLegal = [
|
|
191
|
-
{
|
|
192
|
-
$formkit: 'hidden',
|
|
193
|
-
name: "vertical",
|
|
194
|
-
value: "Legal"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
$formkit: 'hidden',
|
|
198
|
-
name: "TCPA_Language",
|
|
199
|
-
value: "$meta.tcpaLanguage"
|
|
200
|
-
},
|
|
201
|
-
...hiddenInputsBase
|
|
202
|
-
];
|
|
203
|
-
|
|
204
|
-
const legalRedirectMapDefaults = {
|
|
205
|
-
'*': LegalRedirectUrl()
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
function legalRedirectMap(updates) {
|
|
210
|
-
return merge(
|
|
211
|
-
legalRedirectMapDefaults,
|
|
212
|
-
updates
|
|
213
|
-
)
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
const TOLPCommentsPlaceholders = {
|
|
217
|
-
'Adoption': 'Example: "I need help with adoption forms"',
|
|
218
|
-
'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
|
|
219
|
-
'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"',
|
|
220
|
-
'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
|
|
221
|
-
'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
|
|
222
|
-
'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
|
|
223
|
-
'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
|
|
224
|
-
'Child Custody': 'Example: "Need help getting custody"',
|
|
225
|
-
'Child Support': 'Example: "Issues with child support payments"',
|
|
226
|
-
'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
|
|
227
|
-
'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
|
|
228
|
-
'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
|
|
229
|
-
'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
|
|
230
|
-
'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
|
|
231
|
-
'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
|
|
232
|
-
'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
|
|
233
|
-
'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
|
|
234
|
-
'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
|
|
235
|
-
'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
|
|
236
|
-
'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
|
|
237
|
-
'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
|
|
238
|
-
'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
|
|
239
|
-
'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
|
|
240
|
-
'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
|
|
241
|
-
'Guardianship': 'Example: "I need help with guardianship documents"',
|
|
242
|
-
'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
|
|
243
|
-
'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
|
|
244
|
-
'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
|
|
245
|
-
'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
|
|
246
|
-
'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
|
|
247
|
-
'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
|
|
248
|
-
'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
|
|
249
|
-
'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
|
|
250
|
-
'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
|
|
251
|
-
'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
|
|
252
|
-
'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
|
|
253
|
-
'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"',
|
|
254
|
-
'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
|
|
255
|
-
'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
|
|
256
|
-
'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
|
|
257
|
-
'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
|
|
258
|
-
'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
|
|
259
|
-
'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
|
|
260
|
-
'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
|
|
261
|
-
'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
|
|
262
|
-
'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"',
|
|
263
|
-
'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
|
|
264
|
-
'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
|
|
265
|
-
'Unemployment': 'Example: "I need help filing for unemployment benefits"',
|
|
266
|
-
'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
|
|
267
|
-
'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
|
|
268
|
-
'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
|
|
269
|
-
'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
|
|
270
|
-
'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
|
|
271
|
-
'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
const TOLPFinalHeadlines = {
|
|
275
|
-
// 'Adoption': '',
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
const TOLPFinalSubHeadlines = {
|
|
279
|
-
'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
|
|
280
|
-
// 'Asbestos and Mesothelioma': '',
|
|
281
|
-
'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
|
|
282
|
-
'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
|
|
283
|
-
// 'Birth Certificate and Name Change': '',
|
|
284
|
-
// 'Business Lawyers': '',
|
|
285
|
-
// 'Child Custody and Support': '',
|
|
286
|
-
// 'Civil Rights and Discrimination': '',
|
|
287
|
-
// 'Civil Lawsuit': '',
|
|
288
|
-
// 'Consumer Lawyers': '',
|
|
289
|
-
'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
|
|
290
|
-
// 'Criminal and Felony': '',
|
|
291
|
-
// 'Debt and Collections': '',
|
|
292
|
-
'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
|
|
293
|
-
'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
|
|
294
|
-
'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
|
|
295
|
-
// 'Employment and Workplace': '',
|
|
296
|
-
// 'Expungement': '',
|
|
297
|
-
// 'Family Issues': '',
|
|
298
|
-
'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
|
|
299
|
-
'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
|
|
300
|
-
// 'Harassment and Discrimination': '',
|
|
301
|
-
// 'Identity Theft': '',
|
|
302
|
-
'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
|
|
303
|
-
// 'Insurance': '',
|
|
304
|
-
'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
|
|
305
|
-
// 'Lemon Law': '',
|
|
306
|
-
'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
|
|
307
|
-
'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
|
|
308
|
-
'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
|
|
309
|
-
'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
|
|
310
|
-
// 'Power of Attorney': '',
|
|
311
|
-
'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
|
|
312
|
-
// 'Product Liability': '',
|
|
313
|
-
// 'Property Damage': '',
|
|
314
|
-
'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
|
|
315
|
-
'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
|
|
316
|
-
'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
|
|
317
|
-
// 'Traffic and Tickets': '',
|
|
318
|
-
'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
|
|
319
|
-
// 'Victim of a Crime': '',
|
|
320
|
-
// 'Wills and Trusts': '',
|
|
321
|
-
'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
|
|
322
|
-
// 'Wrongful Death': '',
|
|
323
|
-
// 'Wrongful Termination': '',
|
|
324
|
-
// 'Not Sure or Other': ''
|
|
325
|
-
// 'Sexual Harassment': '',
|
|
326
|
-
// 'Workplace Harassment': '',
|
|
327
|
-
// 'Non-Workplace Harassment': '',
|
|
328
|
-
// 'Workplace Discrimination': '',
|
|
329
|
-
// 'Non-Workplace Discrimination': '',
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
// ------ Common Base Settings
|
|
333
|
-
|
|
334
|
-
const checkbox = (updates) => {
|
|
335
|
-
return merge({
|
|
336
|
-
$formkit: 'checkbox',
|
|
337
|
-
validation: 'required',
|
|
338
|
-
validationMessages: {
|
|
339
|
-
required: 'Field is required'
|
|
340
|
-
}
|
|
341
|
-
}, updates)
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
const sbsCheckbox = (updates) => {
|
|
345
|
-
updates.legendClass = 'legend-left required';
|
|
346
|
-
updates.fieldsetClass = '$reset side-by-side';
|
|
347
|
-
updates.optionsClass = 't-pl-1';
|
|
348
|
-
updates.innerClass = 't-flex t-items-center';
|
|
349
|
-
updates.wrapperClass = 't-mb-3';
|
|
350
|
-
return checkbox(updates)
|
|
351
|
-
};
|
|
352
|
-
|
|
353
|
-
const radio = (updates) => {
|
|
354
|
-
return merge({
|
|
355
|
-
$formkit: 'radio',
|
|
356
|
-
validation: 'required',
|
|
357
|
-
validationMessages: {
|
|
358
|
-
required: 'Field is required'
|
|
359
|
-
},
|
|
360
|
-
optionsClass: 't-pt-3 t-pl-1',
|
|
361
|
-
legendClass: 'required'
|
|
362
|
-
}, updates)
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
const col2Radio = (updates) => {
|
|
366
|
-
updates.legendClass = 'required';
|
|
367
|
-
updates.fieldsetClass = '$reset';
|
|
368
|
-
updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
|
|
369
|
-
updates.innerClass = 't-items-start';
|
|
370
|
-
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
371
|
-
return radio(updates)
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
const sbs2ItemRadio = (updates) => {
|
|
375
|
-
updates.legendClass = 'legend-left t-pb-1 required';
|
|
376
|
-
updates.fieldsetClass = '$reset side-by-side t-items-center';
|
|
377
|
-
updates.optionsClass = 't-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center';
|
|
378
|
-
updates.innerClass = 't-flex t-items-center';
|
|
379
|
-
updates.optionClass = 't-pr-1';
|
|
380
|
-
return radio(updates)
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
const sbsYesNoRadio = (updates) => {
|
|
384
|
-
updates.options = ['Yes', 'No'];
|
|
385
|
-
return sbs2ItemRadio(updates)
|
|
386
|
-
};
|
|
387
|
-
|
|
388
|
-
const select = (updates) => {
|
|
389
|
-
return merge({
|
|
390
|
-
$formkit: 'select',
|
|
391
|
-
placeholder: "Please Select",
|
|
392
|
-
validation: 'required',
|
|
393
|
-
validationMessages: {
|
|
394
|
-
required: 'Field is required'
|
|
395
|
-
},
|
|
396
|
-
inputClass: 't-bg-white',
|
|
397
|
-
labelClass: 'required'
|
|
398
|
-
}, updates)
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
const sbsSelect = (updates) => {
|
|
402
|
-
updates.labelClass = 'required';
|
|
403
|
-
updates.wrapperClass = 'side-by-side t-items-center';
|
|
404
|
-
updates.innerClass = 'select-height-content';
|
|
405
|
-
updates.helpClass = 't-mt-2.5 md:t-text-right md:t-mt-[-5px]';
|
|
406
|
-
return select(updates)
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
const text = (updates) => {
|
|
410
|
-
return merge({
|
|
411
|
-
$formkit: 'text',
|
|
412
|
-
validation: 'required',
|
|
413
|
-
validationMessages: {
|
|
414
|
-
required: 'Field is required'
|
|
415
|
-
},
|
|
416
|
-
labelClass: 'required'
|
|
417
|
-
}, updates)
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
const sbsText = (updates) => {
|
|
421
|
-
updates.wrapperClass = 'side-by-side t-items-center';
|
|
422
|
-
return text(updates)
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
const textArea = (updates) => {
|
|
426
|
-
return merge({
|
|
427
|
-
$formkit: 'textarea',
|
|
428
|
-
rows: 5,
|
|
429
|
-
maxlength: 500,
|
|
430
|
-
validation: 'required',
|
|
431
|
-
validationMessages: {
|
|
432
|
-
required: 'Field is required'
|
|
433
|
-
},
|
|
434
|
-
innerClass: 't-max-w-xl',
|
|
435
|
-
labelClass: 'required'
|
|
436
|
-
}, updates)
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
const bankruptcyCrossSell = () => sbsCheckbox({
|
|
440
|
-
label: "I'd also like a consultation for bankruptcy or debt elimination (optional)",
|
|
441
|
-
help: "Note: you will be contacted separately by a bankruptcy/debt expert",
|
|
442
|
-
name: 'CrossSell_Bankruptcy',
|
|
443
|
-
id: 'CrossSell_Bankruptcy',
|
|
444
|
-
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")',
|
|
445
|
-
validation: null,
|
|
446
|
-
helpClass: "!t-text-sm"
|
|
447
|
-
});
|
|
448
|
-
|
|
449
|
-
const comments = (updates, scope) => textArea(
|
|
450
|
-
merge({
|
|
451
|
-
name: scope ? scope + ':' + 'Comments' : 'Comments',
|
|
452
|
-
label: 'Please briefly describe your situation in a few words:',
|
|
453
|
-
placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
|
|
454
|
-
}, updates)
|
|
455
|
-
);
|
|
456
|
-
|
|
457
|
-
const contractsTOLPDisplay = (updates) => col2Radio(merge({
|
|
458
|
-
name: 'Type_Of_Legal_Problem_Display',
|
|
459
|
-
label: 'Select The Contract Issue:',
|
|
460
|
-
options: [
|
|
461
|
-
'Contract Creation',
|
|
462
|
-
'Contract Enforcement',
|
|
463
|
-
'Contract Cancellation',
|
|
464
|
-
'Contract Fraud',
|
|
465
|
-
'Breach of Contract',
|
|
466
|
-
'Other Contract Issues'
|
|
467
|
-
]
|
|
468
|
-
}, updates));
|
|
469
|
-
|
|
470
|
-
const degreeOfInterest = (scope, help) => sbsSelect({
|
|
471
|
-
name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
|
|
472
|
-
id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
|
|
473
|
-
label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
|
|
474
|
-
help: help,
|
|
475
|
-
options: [
|
|
476
|
-
'Definitely',
|
|
477
|
-
'Probably',
|
|
478
|
-
'Maybe',
|
|
479
|
-
"Absolutely Can't Afford"
|
|
480
|
-
]
|
|
481
|
-
});
|
|
482
|
-
|
|
483
|
-
const degreeOfInterestHelp = (scope) => degreeOfInterest(scope, 'No payment necessary to speak with lawyers.');
|
|
484
|
-
|
|
485
|
-
const email = () => sbsText({
|
|
486
|
-
$formkit: 'email',
|
|
487
|
-
name: 'Email',
|
|
488
|
-
label: 'Email Address:',
|
|
489
|
-
placeholder: 'email@domain.com',
|
|
490
|
-
autocomplete: 'email',
|
|
491
|
-
'data-tf-sensitive': 'false',
|
|
492
|
-
validation: 'required|email',
|
|
493
|
-
validationMessages: {
|
|
494
|
-
required: 'Email is required',
|
|
495
|
-
email: 'Invalid Email'
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
|
|
499
|
-
const firstName = () => sbsText({
|
|
500
|
-
$formkit: 'text',
|
|
501
|
-
label: 'First Name:',
|
|
502
|
-
placeholder: 'First',
|
|
503
|
-
name: 'First_Name',
|
|
504
|
-
autocomplete: "given-name",
|
|
505
|
-
validationMessages: {
|
|
506
|
-
required: 'First Name is required'
|
|
507
|
-
}
|
|
508
|
-
});
|
|
509
|
-
|
|
510
|
-
const haveAttorney = (scope) => sbsYesNoRadio({
|
|
511
|
-
name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
|
|
512
|
-
label: 'Already Working with An Attorney?'
|
|
513
|
-
});
|
|
514
|
-
|
|
515
|
-
const lastName = () => sbsText({
|
|
516
|
-
$formkit: 'text',
|
|
517
|
-
label: 'Last Name:',
|
|
518
|
-
placeholder: 'Last',
|
|
519
|
-
name: 'Last_Name',
|
|
520
|
-
autocomplete: "family-name",
|
|
521
|
-
validationMessages: {
|
|
522
|
-
required: 'Last Name is required'
|
|
523
|
-
}
|
|
524
|
-
});
|
|
525
|
-
|
|
526
|
-
const phone = () => sbsText({
|
|
527
|
-
$formkit: 'tel',
|
|
528
|
-
name: 'Primary_Phone',
|
|
529
|
-
label: 'Phone Number:',
|
|
530
|
-
placeholder: '###-###-####',
|
|
531
|
-
maxlength: 12,
|
|
532
|
-
help: '10-digit phone number, hyphens optional',
|
|
533
|
-
autocomplete: 'tel-national',
|
|
534
|
-
'data-tf-sensitive': 'false',
|
|
535
|
-
validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
|
|
536
|
-
validationMessages: {
|
|
537
|
-
required: 'Field is required',
|
|
538
|
-
matches: 'Invalid Phone Format, use ###-###-####',
|
|
539
|
-
valid_phone: 'Invalid Phone Number'
|
|
540
|
-
},
|
|
541
|
-
helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
|
|
542
|
-
});
|
|
543
|
-
|
|
544
|
-
const TCPAConsent = () => ({
|
|
545
|
-
$formkit: 'checkbox',
|
|
546
|
-
label: '$meta.tcpaLanguage',
|
|
547
|
-
name: 'TCPA_Opt_In',
|
|
548
|
-
'data-tf-sensitive': 'false',
|
|
549
|
-
validation: 'required|accepted',
|
|
550
|
-
validationMessages: {
|
|
551
|
-
required: 'Consent is required',
|
|
552
|
-
accepted: 'Consent is required'
|
|
553
|
-
},
|
|
554
|
-
classes: {
|
|
555
|
-
label: "t-text-xs t-text-slate-500 t-font-normal"
|
|
556
|
-
}
|
|
557
|
-
});
|
|
558
|
-
|
|
559
|
-
const zipcode = () => sbsText({
|
|
560
|
-
label: 'Zip Code:',
|
|
561
|
-
placeholder: '#####',
|
|
562
|
-
name: 'Zip',
|
|
563
|
-
maxlength: 5,
|
|
564
|
-
inputmode: "numeric",
|
|
565
|
-
autocomplete: 'postal-code',
|
|
566
|
-
validation: 'required|matches:/^[0-9]{5}$/',
|
|
567
|
-
validationMessages: {
|
|
568
|
-
required: 'Zip Code is required',
|
|
569
|
-
matches: 'Invalid Zip Code'
|
|
570
|
-
}
|
|
571
|
-
});
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
// ------ Question Groups
|
|
575
|
-
|
|
576
|
-
// NOTE: name must be unique within a form!
|
|
577
|
-
const group = (name, updates) => {
|
|
578
|
-
return merge({
|
|
579
|
-
$cmp: 'FormKit',
|
|
580
|
-
props: {
|
|
581
|
-
type: 'group',
|
|
582
|
-
key: name,
|
|
583
|
-
id: name,
|
|
584
|
-
name: name
|
|
585
|
-
}
|
|
586
|
-
}, updates)
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
const ContractsQuestions = () => group(
|
|
590
|
-
'ContractsQuestions',
|
|
591
|
-
{
|
|
592
|
-
children: [
|
|
593
|
-
haveAttorney(),
|
|
594
|
-
degreeOfInterestHelp()
|
|
595
|
-
]
|
|
596
|
-
}
|
|
597
|
-
);
|
|
598
|
-
|
|
599
|
-
const NotSureOrOtherQuestions = () => group(
|
|
600
|
-
'NotSureOrOtherQuestions',
|
|
601
|
-
{
|
|
602
|
-
if: '$get(Type_Of_Legal_Problem).value == "Not Sure or Other"',
|
|
603
|
-
children: [
|
|
604
|
-
haveAttorney(),
|
|
605
|
-
degreeOfInterestHelp()
|
|
606
|
-
]
|
|
607
|
-
}
|
|
608
|
-
);
|
|
609
|
-
|
|
610
|
-
const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
|
|
611
|
-
const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
|
|
612
|
-
|
|
613
|
-
const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
|
|
614
|
-
|
|
615
|
-
const findLastInput = (n) => {
|
|
616
|
-
if (isInput(n)) {
|
|
617
|
-
return n
|
|
618
|
-
}
|
|
619
|
-
for (var i = n.children.length - 1; i >= 0; i--) {
|
|
620
|
-
if (typeof n.children === 'string') {
|
|
621
|
-
continue
|
|
622
|
-
}
|
|
623
|
-
const child = n.children[i];
|
|
624
|
-
if (isInput(child)) {
|
|
625
|
-
return child
|
|
626
|
-
}
|
|
627
|
-
const res = findLastInput(child);
|
|
628
|
-
if (res) {
|
|
629
|
-
return res
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
return null
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
function questionsStepHeadline(updates) {
|
|
636
|
-
return {
|
|
637
|
-
$el: 'h3',
|
|
638
|
-
children: updates.headline || 'Tell Us About Your Situation',
|
|
639
|
-
attrs: {
|
|
640
|
-
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'
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
function commentsStepHeadline(updates) {
|
|
648
|
-
return {
|
|
649
|
-
$el: 'h3',
|
|
650
|
-
children: updates.headline || 'Additional Case Details',
|
|
651
|
-
attrs: {
|
|
652
|
-
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 || '')
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
function firstAndLastStepHeadline(updates) {
|
|
658
|
-
return {
|
|
659
|
-
$el: 'h3',
|
|
660
|
-
children: updates.headline || 'Please Provide a Contact Name',
|
|
661
|
-
attrs: {
|
|
662
|
-
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 || '')
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
function contactStepHeadline(updates) {
|
|
668
|
-
return {
|
|
669
|
-
$el: 'h3',
|
|
670
|
-
children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
|
|
671
|
-
attrs: {
|
|
672
|
-
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 || '')
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
function contactStepSubHeadline(updates) {
|
|
678
|
-
return {
|
|
679
|
-
$el: 'h5',
|
|
680
|
-
children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC,
|
|
681
|
-
attrs: {
|
|
682
|
-
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 || '')
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
const TRUSTED_FORM_JS = `(function() {
|
|
688
|
-
if (window.xxTrustedFormLoaded) {
|
|
689
|
-
return
|
|
690
|
-
}
|
|
691
|
-
var vid = '';
|
|
692
|
-
if (typeof window.zar !== 'undefined') {
|
|
693
|
-
vid = window.zar.getVID();
|
|
694
|
-
}
|
|
695
|
-
window.xxTrustedFormLoaded = true;
|
|
696
|
-
var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'
|
|
697
|
-
var tf = document.createElement('script');
|
|
698
|
-
tf.type = 'text/javascript'; tf.async = true;
|
|
699
|
-
tf.src = ("https:" == document.location.protocol ? 'https' : 'http') + "://api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&identifier=" + vid + "&ping_field=xxTrustedFormPingUrl&provideReferrer=false&invert_field_sensitivity=true&sandbox=" + sandbox + "&l=" + new Date().getTime() + Math.random();
|
|
700
|
-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);
|
|
701
|
-
})();`;
|
|
702
|
-
|
|
703
|
-
function trustedFormScript() {
|
|
704
|
-
return {
|
|
705
|
-
$el: 'script',
|
|
706
|
-
// if: '$activeStep === $lastStep() && $getKey($meta, "trustedFormTOLPs." + $get(Type_Of_Legal_Problem).value, false) == true',
|
|
707
|
-
// Added everywhere:
|
|
708
|
-
if: '$activeStep === $lastStep()',
|
|
709
|
-
children: TRUSTED_FORM_JS
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
const stepDefaults = (step, stepKey) => ({
|
|
714
|
-
$el: 'section',
|
|
715
|
-
if: '$stepEnabled("' + step + '")',
|
|
716
|
-
attrs: {
|
|
717
|
-
hidden: '$activeStep !== "' + step + '"',
|
|
718
|
-
key: stepKey ? stepKey : step
|
|
719
|
-
}
|
|
720
|
-
});
|
|
721
|
-
|
|
722
|
-
function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = undefined, nextStepMap = undefined) {
|
|
723
|
-
if (typeof nextOnEnter === 'undefined') {
|
|
724
|
-
nextOnEnter = true;
|
|
725
|
-
}
|
|
726
|
-
if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
|
|
727
|
-
const lastInput = findLastInput(inputs[inputs.length - 1]);
|
|
728
|
-
if (lastInput && nextOnEnter === true) {
|
|
729
|
-
lastInput.onKeypress = NEXT_ON_ENTER;
|
|
730
|
-
}
|
|
731
|
-
if (lastInput && nextOnInput === true) {
|
|
732
|
-
lastInput.onInput = NEXT_ON_INPUT;
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
return merge(
|
|
737
|
-
stepDefaults(name, stepKey),
|
|
738
|
-
{
|
|
739
|
-
children: [
|
|
740
|
-
{
|
|
741
|
-
$formkit: 'group',
|
|
742
|
-
id: name,
|
|
743
|
-
name: name,
|
|
744
|
-
nextStepMap: nextStepMap,
|
|
745
|
-
children: inputs
|
|
746
|
-
}
|
|
747
|
-
]
|
|
748
|
-
}
|
|
749
|
-
)
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
function contractsTOLPAndZip(updates = {}) {
|
|
753
|
-
return step(
|
|
754
|
-
'contractsTOLPAndZip',
|
|
755
|
-
[
|
|
756
|
-
{
|
|
757
|
-
$formkit: 'hidden',
|
|
758
|
-
name: "Type_Of_Legal_Problem",
|
|
759
|
-
id: "Type_Of_Legal_Problem",
|
|
760
|
-
value: "Business Lawyers"
|
|
761
|
-
},
|
|
762
|
-
{
|
|
763
|
-
$formkit: 'hidden',
|
|
764
|
-
name: "Business_Services",
|
|
765
|
-
id: "Business_Services",
|
|
766
|
-
value: "Contracts"
|
|
767
|
-
},
|
|
768
|
-
contractsTOLPDisplay(),
|
|
769
|
-
zipcode()
|
|
770
|
-
],
|
|
771
|
-
updates.nextOnEnter
|
|
772
|
-
)
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
function commentsWithBankruptcyV2(updates = {}) {
|
|
776
|
-
return step(
|
|
777
|
-
'commentsWithBankruptcy',
|
|
778
|
-
[
|
|
779
|
-
commentsStepHeadline(updates),
|
|
780
|
-
comments({
|
|
781
|
-
label: updates.label === undefined ? DEFAULT_COMMENTS_LABEL : updates.label,
|
|
782
|
-
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
|
|
783
|
-
inputClass: updates.inputClass === undefined ? '!t-h-40' : updates.inputClass,
|
|
784
|
-
}),
|
|
785
|
-
bankruptcyCrossSell(),
|
|
786
|
-
{
|
|
787
|
-
$el: 'div',
|
|
788
|
-
if: '$get(CrossSell_Bankruptcy).value == true',
|
|
789
|
-
children: [
|
|
790
|
-
comments({
|
|
791
|
-
label: 'Bankruptcy or debt details:',
|
|
792
|
-
placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
|
|
793
|
-
inputClass: '!t-h-16'
|
|
794
|
-
}, 'CrossSell:Bankruptcy')
|
|
795
|
-
],
|
|
796
|
-
}
|
|
797
|
-
],
|
|
798
|
-
updates.nextOnEnter
|
|
799
|
-
)
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
function contactInfoV2(updates = {}) {
|
|
803
|
-
return step(
|
|
804
|
-
'contactInfo',
|
|
805
|
-
[
|
|
806
|
-
contactStepHeadline(updates),
|
|
807
|
-
contactStepSubHeadline(updates),
|
|
808
|
-
// Added TF everywhere
|
|
809
|
-
trustedFormScript(),
|
|
810
|
-
email(),
|
|
811
|
-
phone(),
|
|
812
|
-
TCPAConsent(),
|
|
813
|
-
secureIcon()
|
|
814
|
-
],
|
|
815
|
-
updates.nextOnEnter
|
|
816
|
-
)
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
function firstAndLastV2(updates = {}) {
|
|
820
|
-
return step(
|
|
821
|
-
'firstAndLast',
|
|
822
|
-
[
|
|
823
|
-
firstAndLastStepHeadline(updates),
|
|
824
|
-
firstName(),
|
|
825
|
-
lastName()
|
|
826
|
-
],
|
|
827
|
-
updates.nextOnEnter
|
|
828
|
-
)
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
function contractsTOLPQuestions(updates = {}) {
|
|
832
|
-
return step(
|
|
833
|
-
'TOLPQuestions',
|
|
834
|
-
[
|
|
835
|
-
questionsStepHeadline(updates),
|
|
836
|
-
ContractsQuestions(),
|
|
837
|
-
NotSureOrOtherQuestions()
|
|
838
|
-
],
|
|
839
|
-
updates.nextOnEnter
|
|
840
|
-
)
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
const formNavigationV2 = () => ({
|
|
844
|
-
$el: 'div',
|
|
845
|
-
attrs: {
|
|
846
|
-
class: 'step-nav'
|
|
847
|
-
},
|
|
848
|
-
children: [
|
|
849
|
-
{
|
|
850
|
-
$formkit: 'button',
|
|
851
|
-
name: 'back_button',
|
|
852
|
-
onClick: '$setPreviousStep($prevStepFunc($get(form)))',
|
|
853
|
-
children: 'Back',
|
|
854
|
-
style: {
|
|
855
|
-
if: '$activeStep === $firstStep()',
|
|
856
|
-
then: 'visibility: hidden;'
|
|
857
|
-
}
|
|
858
|
-
},
|
|
859
|
-
{
|
|
860
|
-
$formkit: 'button',
|
|
861
|
-
name: 'next_button',
|
|
862
|
-
onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
|
|
863
|
-
children: {
|
|
864
|
-
if: '$activeStep === $firstStep()',
|
|
865
|
-
then: 'Start',
|
|
866
|
-
else: 'Next'
|
|
867
|
-
},
|
|
868
|
-
outerClass: {
|
|
869
|
-
if: '$activeStep === $lastStep()',
|
|
870
|
-
then: 't-hidden',
|
|
871
|
-
else: ''
|
|
872
|
-
},
|
|
873
|
-
style: {
|
|
874
|
-
if: '$activeStep === $lastStep()',
|
|
875
|
-
then: 'display: none;'
|
|
876
|
-
}
|
|
877
|
-
},
|
|
878
|
-
{
|
|
879
|
-
$formkit: 'submit',
|
|
880
|
-
name: 'submit_button',
|
|
881
|
-
label: 'Submit',
|
|
882
|
-
if: '$activeStep === $lastStep()',
|
|
883
|
-
style: {
|
|
884
|
-
if: '$activeStep !== $lastStep()',
|
|
885
|
-
then: 'display: none;'
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
]
|
|
889
|
-
});
|
|
890
|
-
|
|
891
|
-
const formDetails = () => ({
|
|
892
|
-
$el: 'pre',
|
|
893
|
-
if: '$urlParam("fdbg", "") == 1',
|
|
894
|
-
children: [
|
|
895
|
-
{
|
|
896
|
-
$el: 'pre',
|
|
897
|
-
children: '$stringify( $get(form).value )',
|
|
898
|
-
attrs: {
|
|
899
|
-
class: 't-text-xs',
|
|
900
|
-
style: 'overflow: scroll'
|
|
901
|
-
}
|
|
902
|
-
},
|
|
903
|
-
{
|
|
904
|
-
$el: 'pre',
|
|
905
|
-
children: ['activeStep: ', '$activeStep'],
|
|
906
|
-
attrs: {
|
|
907
|
-
class: 't-text-xs',
|
|
908
|
-
style: 'overflow: scroll'
|
|
909
|
-
}
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
$el: 'pre',
|
|
913
|
-
children: ['stepHistory: ', '$stepHistory'],
|
|
914
|
-
attrs: {
|
|
915
|
-
class: 't-text-xs',
|
|
916
|
-
style: 'overflow: scroll'
|
|
917
|
-
}
|
|
918
|
-
},
|
|
919
|
-
{
|
|
920
|
-
$el: 'pre',
|
|
921
|
-
children: ['stepQueue: ', '$stepQueue'],
|
|
922
|
-
attrs: {
|
|
923
|
-
class: 't-text-xs',
|
|
924
|
-
style: 'overflow: scroll'
|
|
925
|
-
}
|
|
926
|
-
},
|
|
927
|
-
{
|
|
928
|
-
$el: 'pre',
|
|
929
|
-
children: ['steps: ', '$stepKeys()'],
|
|
930
|
-
attrs: {
|
|
931
|
-
class: 't-text-xs',
|
|
932
|
-
style: 'overflow: scroll'
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
]
|
|
936
|
-
});
|
|
937
|
-
|
|
938
|
-
const schema = [
|
|
939
|
-
defaultMetaProps(),
|
|
940
|
-
formAnchor(),
|
|
941
|
-
{
|
|
942
|
-
$cmp: 'FormKit',
|
|
943
|
-
props: formProps({
|
|
944
|
-
formId: 'contracts',
|
|
945
|
-
redirectMap: legalRedirectMap()
|
|
946
|
-
}),
|
|
947
|
-
children: [
|
|
948
|
-
headline({
|
|
949
|
-
children: '$urlParam("hl", "Get Contract Help Today!")',
|
|
950
|
-
if: '$activeStep === $firstStep()'
|
|
951
|
-
}),
|
|
952
|
-
subHeadline({
|
|
953
|
-
children: '$urlParam("shl", "Our Service is Fast, Easy, and Free")',
|
|
954
|
-
if: '$activeStep === $firstStep()'
|
|
955
|
-
}),
|
|
956
|
-
...hiddenInputsLegal,
|
|
957
|
-
{
|
|
958
|
-
$el: 'div',
|
|
959
|
-
attrs: {
|
|
960
|
-
class: 'form-body'
|
|
961
|
-
},
|
|
962
|
-
children: [
|
|
963
|
-
contractsTOLPAndZip(),
|
|
964
|
-
contractsTOLPQuestions(),
|
|
965
|
-
commentsWithBankruptcyV2({
|
|
966
|
-
nextOnEnter: false,
|
|
967
|
-
placeholder: 'Example: "I need to create a partner agreement for my business."',
|
|
968
|
-
}),
|
|
969
|
-
firstAndLastV2(),
|
|
970
|
-
contactInfoV2({
|
|
971
|
-
nextOnEnter: false
|
|
972
|
-
}),
|
|
973
|
-
formNavigationV2(),
|
|
974
|
-
formDetails()
|
|
975
|
-
]
|
|
976
|
-
}
|
|
977
|
-
]
|
|
978
|
-
}
|
|
979
|
-
];
|
|
980
|
-
|
|
981
|
-
export { schema as default };
|