bhl-forms 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/bhl-forms.es.js +5244 -4973
  2. package/dist/bhl-forms.iife.js +9 -9
  3. package/dist/bhl-forms.umd.js +9 -9
  4. package/package.json +2 -2
  5. package/dist/bhl-forms.modern.es.js +0 -16865
  6. package/dist/bhl-forms.modern.iife.js +0 -21
  7. package/dist/bhl-forms.modern.umd.js +0 -21
  8. package/dist/forms/accidentsAndInjuries.es.js +0 -1279
  9. package/dist/forms/accidentsAndInjuries.iife.js +0 -1
  10. package/dist/forms/accidentsAndInjuries.json +0 -1
  11. package/dist/forms/appraisals.es.js +0 -345
  12. package/dist/forms/appraisals.iife.js +0 -1
  13. package/dist/forms/appraisals.json +0 -1
  14. package/dist/forms/childAndFamily.es.js +0 -1678
  15. package/dist/forms/childAndFamily.iife.js +0 -1
  16. package/dist/forms/childAndFamily.json +0 -1
  17. package/dist/forms/childAndFamilySingle.es.js +0 -1809
  18. package/dist/forms/childAndFamilySingle.iife.js +0 -1
  19. package/dist/forms/childAndFamilySingle.json +0 -1
  20. package/dist/forms/civilLawsuit.es.js +0 -2149
  21. package/dist/forms/civilLawsuit.iife.js +0 -1
  22. package/dist/forms/civilLawsuit.json +0 -1
  23. package/dist/forms/coins.es.js +0 -345
  24. package/dist/forms/coins.iife.js +0 -1
  25. package/dist/forms/coins.json +0 -1
  26. package/dist/forms/contracts.es.js +0 -994
  27. package/dist/forms/contracts.iife.js +0 -1
  28. package/dist/forms/contracts.json +0 -1
  29. package/dist/forms/criminal.es.js +0 -3247
  30. package/dist/forms/criminal.iife.js +0 -1
  31. package/dist/forms/criminal.json +0 -1
  32. package/dist/forms/employmentAndWorkplace.es.js +0 -1380
  33. package/dist/forms/employmentAndWorkplace.iife.js +0 -1
  34. package/dist/forms/employmentAndWorkplace.json +0 -1
  35. package/dist/forms/generalLegal.es.js +0 -3386
  36. package/dist/forms/generalLegal.iife.js +0 -1
  37. package/dist/forms/generalLegal.json +0 -1
  38. package/dist/forms/generalLegalPopUnder.es.js +0 -3388
  39. package/dist/forms/generalLegalPopUnder.iife.js +0 -1
  40. package/dist/forms/generalLegalPopUnder.json +0 -1
  41. package/dist/forms/generalLegalPopUnderTF.es.js +0 -3087
  42. package/dist/forms/generalLegalPopUnderTF.iife.js +0 -1
  43. package/dist/forms/generalLegalPopUnderTF.json +0 -1
  44. package/dist/forms/generalLegalSingle.es.js +0 -4305
  45. package/dist/forms/generalLegalSingle.iife.js +0 -1
  46. package/dist/forms/generalLegalSingle.json +0 -1
  47. package/dist/forms/generalLegalThankYou.es.js +0 -3067
  48. package/dist/forms/generalLegalThankYou.iife.js +0 -1
  49. package/dist/forms/generalLegalThankYou.json +0 -1
  50. package/dist/forms/harassmentAndDiscrimination.es.js +0 -1030
  51. package/dist/forms/harassmentAndDiscrimination.iife.js +0 -1
  52. package/dist/forms/harassmentAndDiscrimination.json +0 -1
  53. package/dist/forms/malpractice.es.js +0 -1253
  54. package/dist/forms/malpractice.iife.js +0 -1
  55. package/dist/forms/malpractice.json +0 -1
  56. package/dist/forms/mechanics.es.js +0 -385
  57. package/dist/forms/mechanics.iife.js +0 -1
  58. package/dist/forms/mechanics.json +0 -1
  59. package/dist/forms/realEstate.es.js +0 -2950
  60. package/dist/forms/realEstate.iife.js +0 -1
  61. package/dist/forms/realEstate.json +0 -1
  62. package/dist/forms/repossession.es.js +0 -1261
  63. package/dist/forms/repossession.iife.js +0 -1
  64. package/dist/forms/repossession.json +0 -1
  65. package/dist/forms/ssdi.es.js +0 -1073
  66. package/dist/forms/ssdi.iife.js +0 -1
  67. package/dist/forms/ssdi.json +0 -1
  68. package/dist/forms/testForm.es.js +0 -729
  69. package/dist/forms/testForm.iife.js +0 -1
  70. package/dist/forms/testForm.json +0 -1
  71. package/dist/forms/testRedirects.es.js +0 -541
  72. package/dist/forms/testRedirects.iife.js +0 -1
  73. package/dist/forms/testRedirects.json +0 -1
  74. package/dist/forms/vets.es.js +0 -348
  75. package/dist/forms/vets.iife.js +0 -1
  76. package/dist/forms/vets.json +0 -1
  77. package/dist/forms/willsAndTrusts.es.js +0 -1214
  78. package/dist/forms/willsAndTrusts.iife.js +0 -1
  79. package/dist/forms/willsAndTrusts.json +0 -1
@@ -1,1809 +0,0 @@
1
- function merge() {
2
- return Object.assign({}, ...arguments)
3
- }
4
-
5
- function LegalRedirectUrl() {
6
- return 'https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}'
7
- }
8
-
9
- var TCPA_LANGUAGE = "By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.";
10
-
11
- const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
12
- const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
13
- const DEFAULT_FINAL_HEADLINE = 'Submit Your Case';
14
- const DEFAULT_FINAL_HEADLINE_DYNAMIC = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
15
- const DEFAULT_FINAL_SUBHEADLINE = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
16
- const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
17
-
18
- const formPropDefaults = {
19
- type: 'form',
20
- id: 'form',
21
- config: { validationVisibility: 'submit' },
22
- onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
23
- plugins: '$plugins',
24
- actions: false,
25
- anchorElement: 'form-anchor',
26
- useLocalStorage: true,
27
- prepop: {
28
- fromURL: true
29
- },
30
- errorCodes: {
31
- 403: { message: "An Error Occurred", abort: false },
32
- 409: { abort: false },
33
- 429: "An Error Occurred",
34
- 504: { message: "An Error Occurred", abort: false },
35
- },
36
- formClass: '!t-max-w-[40rem]'
37
- };
38
-
39
- function formProps(updates) {
40
- const props = merge(
41
- formPropDefaults,
42
- updates
43
- );
44
- if (props.formId && !props.name) {
45
- props.name = props.formId;
46
- }
47
- return props
48
- }
49
-
50
- const metaDefaults = {
51
- tcpaLanguage: TCPA_LANGUAGE
52
- };
53
-
54
- function metaProps(updates) {
55
- const data = merge(
56
- metaDefaults,
57
- updates
58
- );
59
- return {
60
- type: 'meta',
61
- data
62
- }
63
- }
64
-
65
- function defaultMetaProps() {
66
- return metaProps({
67
- defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
68
- commentsPlaceholders: TOLPCommentsPlaceholders,
69
- defaultFinalHeadline: DEFAULT_FINAL_HEADLINE,
70
- finalHeadlines: TOLPFinalHeadlines,
71
- defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE,
72
- finalSubHeadlines: TOLPFinalSubHeadlines,
73
- // Added everywhere for now
74
- // trustedFormTOLPs: trustedFormTOLPs
75
- })
76
- }
77
-
78
- const formAnchorDefaults = {
79
- $el: 'div',
80
- children: [
81
- {
82
- $el: 'div',
83
- attrs: {
84
- id: 'form-anchor',
85
- class: 't-absolute',
86
- style: { top: '-30px', left: 0 }
87
- }
88
- }
89
- ],
90
- attrs: {
91
- class: 't-relative'
92
- }
93
- };
94
-
95
- function formAnchor(updates) {
96
- return merge(
97
- formAnchorDefaults,
98
- updates
99
- )
100
- }
101
-
102
- const progressBarDefaults = {
103
- $el: 'div',
104
- attrs: {
105
- class: 't-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center',
106
- style: {
107
- if: '$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())',
108
- then: 'display: none'
109
- },
110
- },
111
- children: [
112
- {
113
- $el: 'div',
114
- attrs: {
115
- class: 't-flex t-justify-center'
116
- },
117
- children: [
118
- {
119
- $el: 'span',
120
- attrs: {
121
- id: 'progress-bar-text',
122
- class: 't-text-sm t-mb-1'
123
- },
124
- children: [
125
- "0% Complete"
126
- ]
127
- },
128
- ]
129
- },
130
- {
131
- $el: 'div',
132
- attrs: {
133
- class: 't-bg-gray-100 t-w-9/12 t-rounded'
134
- },
135
- children: [
136
- {
137
- $el: 'div',
138
- attrs: {
139
- id: 'progress-bar',
140
- class: 't-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]',
141
- style: {
142
- transition: 'width 0.5s ease'
143
- },
144
- },
145
- }
146
- ]
147
- }
148
- ]
149
- };
150
-
151
- function progressBar(updates) {
152
- return merge(
153
- progressBarDefaults,
154
- updates
155
- )
156
- }
157
-
158
- function headlineDefaults(updates = {}) {
159
- return {
160
- $el: 'h1',
161
- attrs: {
162
- class: 't-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3' + ' ' + (updates.headlineClass || '')
163
- }
164
- }
165
- }
166
-
167
- function headline(updates = {}) {
168
- return merge(
169
- headlineDefaults(updates),
170
- updates
171
- )
172
- }
173
-
174
- function subHeadlineDefaults(updates = {}) {
175
- return {
176
- $el: 'h3',
177
- attrs: {
178
- class: 't-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10' + ' ' + (updates.subheadlineClass || '')
179
- }
180
- }
181
- }
182
-
183
- function subHeadline(updates = {}) {
184
- return merge(
185
- subHeadlineDefaults(updates),
186
- updates
187
- )
188
- }
189
-
190
- const secureIconDefault = {
191
- $el: 'div',
192
- if: '$activeStep === $lastStep()',
193
- attrs: {
194
- class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
195
- },
196
- children: [
197
- {
198
- $el: 'img',
199
- attrs: {
200
- loading: 'lazy',
201
- alt: '',
202
- style: {
203
- border: 0
204
- },
205
- width: '25',
206
- height: '25',
207
- src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
208
- }
209
- },
210
- {
211
- $el: 'span',
212
- children: 'Secure & Encrypted',
213
- attrs: {
214
- class: 't-pl-2 t-pt-1 t-font-medium'
215
- }
216
- }
217
- ]
218
- };
219
-
220
-
221
- function secureIcon(updates) {
222
- return merge(
223
- secureIconDefault,
224
- updates
225
- )
226
- }
227
-
228
- const hiddenInputsBase = [
229
- {
230
- $formkit: 'hidden',
231
- name: "gclid",
232
- value: null
233
- },
234
- {
235
- $formkit: 'hidden',
236
- name: "campaignid",
237
- value: null
238
- },
239
- {
240
- $formkit: 'hidden',
241
- name: "s",
242
- value: null
243
- }
244
- ];
245
-
246
- const hiddenInputsLegal = [
247
- {
248
- $formkit: 'hidden',
249
- name: "vertical",
250
- value: "Legal"
251
- },
252
- {
253
- $formkit: 'hidden',
254
- name: "TCPA_Language",
255
- value: "$meta.tcpaLanguage"
256
- },
257
- ...hiddenInputsBase
258
- ];
259
-
260
- const legalRedirectMapDefaults = {
261
- '*': LegalRedirectUrl()
262
- };
263
-
264
-
265
- function legalRedirectMap(updates) {
266
- return merge(
267
- legalRedirectMapDefaults,
268
- updates
269
- )
270
- }
271
-
272
- const TOLPCommentsPlaceholders = {
273
- 'Adoption': 'Example: "I need help with adoption forms"',
274
- 'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
275
- '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"',
276
- 'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
277
- 'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
278
- 'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
279
- 'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
280
- 'Child Custody': 'Example: "Need help getting custody"',
281
- 'Child Support': 'Example: "Issues with child support payments"',
282
- 'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
283
- 'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
284
- 'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
285
- 'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
286
- 'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
287
- 'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
288
- 'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
289
- 'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
290
- 'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
291
- 'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
292
- 'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
293
- 'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
294
- 'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
295
- 'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
296
- 'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
297
- 'Guardianship': 'Example: "I need help with guardianship documents"',
298
- 'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
299
- 'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
300
- 'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
301
- 'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
302
- 'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
303
- 'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
304
- 'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
305
- 'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
306
- 'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
307
- 'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
308
- 'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
309
- '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"',
310
- 'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
311
- 'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
312
- 'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
313
- 'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
314
- 'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
315
- 'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
316
- 'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
317
- 'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
318
- '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"',
319
- 'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
320
- 'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
321
- 'Unemployment': 'Example: "I need help filing for unemployment benefits"',
322
- 'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
323
- 'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
324
- 'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
325
- 'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
326
- 'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
327
- 'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
328
- };
329
-
330
- const TOLPFinalHeadlines = {
331
- // 'Adoption': '',
332
- };
333
-
334
- const TOLPFinalSubHeadlines = {
335
- 'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
336
- // 'Asbestos and Mesothelioma': '',
337
- 'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
338
- 'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
339
- // 'Birth Certificate and Name Change': '',
340
- // 'Business Lawyers': '',
341
- // 'Child Custody and Support': '',
342
- // 'Civil Rights and Discrimination': '',
343
- // 'Civil Lawsuit': '',
344
- // 'Consumer Lawyers': '',
345
- 'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
346
- // 'Criminal and Felony': '',
347
- // 'Debt and Collections': '',
348
- 'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
349
- 'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
350
- 'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
351
- // 'Employment and Workplace': '',
352
- // 'Expungement': '',
353
- // 'Family Issues': '',
354
- 'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
355
- 'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
356
- // 'Harassment and Discrimination': '',
357
- // 'Identity Theft': '',
358
- 'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
359
- // 'Insurance': '',
360
- 'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
361
- // 'Lemon Law': '',
362
- 'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
363
- 'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
364
- 'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
365
- 'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
366
- // 'Power of Attorney': '',
367
- 'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
368
- // 'Product Liability': '',
369
- // 'Property Damage': '',
370
- 'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
371
- 'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
372
- 'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
373
- // 'Traffic and Tickets': '',
374
- 'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
375
- // 'Victim of a Crime': '',
376
- // 'Wills and Trusts': '',
377
- 'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
378
- // 'Wrongful Death': '',
379
- // 'Wrongful Termination': '',
380
- // 'Not Sure or Other': ''
381
- // 'Sexual Harassment': '',
382
- // 'Workplace Harassment': '',
383
- // 'Non-Workplace Harassment': '',
384
- // 'Workplace Discrimination': '',
385
- // 'Non-Workplace Discrimination': '',
386
- };
387
-
388
- // ------ Common Base Settings
389
-
390
- const checkbox = (updates) => {
391
- if (updates.name && !updates.id) {
392
- updates.id = updates.name;
393
- }
394
- return merge({
395
- $formkit: 'checkbox',
396
- validation: 'required',
397
- validationMessages: {
398
- required: 'Field is required'
399
- }
400
- }, updates)
401
- };
402
-
403
- const sbsCheckbox = (updates) => {
404
- updates.legendClass = 'legend-left required';
405
- updates.fieldsetClass = '$reset side-by-side';
406
- updates.optionsClass = 't-pl-1';
407
- updates.innerClass = 't-flex t-items-center';
408
- updates.wrapperClass = 't-mb-3';
409
- return checkbox(updates)
410
- };
411
-
412
- const col2Checkbox = (updates) => {
413
- if (!updates || !updates.legendClass) {
414
- updates.legendClass = 'required';
415
- }
416
- updates.fieldsetClass = '$reset';
417
- updates.optionsClass = 't-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
418
- updates.innerClass = 't-items-start';
419
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
420
- return checkbox(updates)
421
- };
422
-
423
- const radio = (updates) => {
424
- if (updates.name && !updates.id) {
425
- updates.id = updates.name;
426
- }
427
- return merge({
428
- $formkit: 'radio',
429
- validation: 'required',
430
- validationMessages: {
431
- required: 'Field is required'
432
- },
433
- optionsClass: 't-pt-3 t-pl-1',
434
- legendClass: 'required'
435
- }, updates)
436
- };
437
-
438
- const col2RadioCenter = (updates) => {
439
- updates.legendClass = 'required t-w-[100%] t-text-center';
440
- updates.fieldsetClass = '$reset';
441
- updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
442
- updates.innerClass = 't-items-start';
443
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
444
- updates.optionClass = 't-pl-4 md:t-pl-8';
445
- updates.messagesClass = 't-flex t-justify-center';
446
- return radio(updates)
447
- };
448
-
449
- const sbs2ColRadio = (updates) => {
450
- updates.legendClass = 'legend-left-flex md:t-max-w-[40%] required';
451
- updates.fieldsetClass = '$reset side-by-side-flex';
452
- updates.optionsClass = 'md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125';
453
- updates.innerClass = 't-flex t-items-start';
454
- updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
455
- return radio(updates)
456
- };
457
-
458
- const sbs2ItemRadio = (updates) => {
459
- updates.legendClass = 'legend-left t-pb-1 required';
460
- updates.fieldsetClass = '$reset side-by-side t-items-center';
461
- updates.optionsClass = 't-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center';
462
- updates.innerClass = 't-flex t-items-center';
463
- updates.optionClass = 't-pr-1';
464
- return radio(updates)
465
- };
466
-
467
- const sbsYesNoRadio = (updates) => {
468
- updates.options = ['Yes', 'No'];
469
- return sbs2ItemRadio(updates)
470
- };
471
-
472
- const vertical2ItemRadio = (updates) => {
473
- updates.legendClass = 'legend-left';
474
- updates.fieldsetClass = '$reset vertical t-items-center';
475
- updates.optionsClass = 't-flex t-justify-center t-my-4';
476
- updates.optionClass = 'radiobtn t-mx-2 md:t-mx-5';
477
- updates.wrapperClass = '$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]';
478
- updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
479
- updates.decoratorIcon = false;
480
- updates.messagesClass = 't-flex t-justify-center';
481
- return radio(updates)
482
- };
483
-
484
- const verticalYesNoRadio = (updates) => {
485
- updates.options = ['Yes', 'No'];
486
- return vertical2ItemRadio(updates)
487
- };
488
-
489
- const select = (updates) => {
490
- if (updates.name && !updates.id) {
491
- updates.id = updates.name;
492
- }
493
- return merge({
494
- $formkit: 'select',
495
- placeholder: "Please Select",
496
- validation: 'required',
497
- validationMessages: {
498
- required: 'Field is required'
499
- },
500
- inputClass: 't-bg-white',
501
- labelClass: 'required'
502
- }, updates)
503
- };
504
-
505
- const sbsSelect = (updates) => {
506
- updates.labelClass = 'required';
507
- updates.wrapperClass = 'side-by-side t-items-center';
508
- updates.innerClass = 'select-height-content';
509
- updates.helpClass = 't-mt-2.5 md:t-text-right md:t-mt-[-5px]';
510
- return select(updates)
511
- };
512
-
513
- const verticalSelect = (updates) => {
514
- updates.labelClass = 'required';
515
- updates.wrapperClass = 't-flex t-justify-center';
516
- updates.messagesClass = 't-flex t-justify-center';
517
- updates.inputClass = 't-min-w-[150px] t-bg-white';
518
- updates.helpClass = 't-mt-2.5 t-text-center';
519
- return select(updates)
520
- };
521
-
522
- const text = (updates) => {
523
- if (updates.name && !updates.id) {
524
- updates.id = updates.name;
525
- }
526
- return merge({
527
- $formkit: 'text',
528
- validation: 'required',
529
- validationMessages: {
530
- required: 'Field is required'
531
- },
532
- labelClass: 'required'
533
- }, updates)
534
- };
535
-
536
- const sbsText = (updates) => {
537
- updates.wrapperClass = 'side-by-side t-items-center';
538
- return text(updates)
539
- };
540
-
541
- const textArea = (updates) => {
542
- if (updates.name && !updates.id) {
543
- updates.id = updates.name;
544
- }
545
- return merge({
546
- $formkit: 'textarea',
547
- rows: 5,
548
- maxlength: 500,
549
- validation: 'required',
550
- validationMessages: {
551
- required: 'Field is required'
552
- },
553
- innerClass: 't-max-w-xl',
554
- labelClass: 'required'
555
- }, updates)
556
- };
557
-
558
- const date = (updates) => {
559
- if (updates.name && !updates.id) {
560
- updates.id = updates.name;
561
- }
562
- return merge({
563
- $formkit: 'DatePicker',
564
- validation: 'required',
565
- validationMessages: {
566
- required: 'Field is required'
567
- },
568
- labelClass: 'required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500',
569
- innerClass: 't-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500'
570
- }, updates)
571
- };
572
-
573
- const sbsDate = (updates) => {
574
- updates.wrapperClass = 'side-by-side t-items-center';
575
- return date(updates)
576
- };
577
-
578
- const applicantAge = (scope) => sbsText({
579
- name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
580
- label: 'Age of Applicant?',
581
- placeholder: 'Age between 18 and 65',
582
- maxlength: 2,
583
- inputmode: "numeric",
584
- validation: "required|min:18,max:65",
585
- validationMessages: {
586
- required: 'Applicant Age is required',
587
- min: 'Invalid Age - must be between 18 and 65',
588
- max: 'Invalid Age - must be between 18 and 65',
589
- }
590
- });
591
-
592
- const atFault = (scope) => sbsYesNoRadio({
593
- name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
594
- label: 'Were You at Fault?'
595
- });
596
-
597
- const bankruptcyCrossSell = () => sbsCheckbox({
598
- label: "I'd also like a consultation for bankruptcy or debt elimination (optional)",
599
- help: "Note: you will be contacted separately by a bankruptcy/debt expert",
600
- name: 'CrossSell_Bankruptcy',
601
- id: 'CrossSell_Bankruptcy',
602
- 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")',
603
- validation: null,
604
- helpClass: "!t-text-sm"
605
- });
606
-
607
- const bloodContentAlcoholTest = (scope) => sbsSelect({
608
- name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
609
- label: 'Blood Alcohol Content Measured by Test:',
610
- options: [
611
- "No Test",
612
- "0.00% - 0.04%",
613
- "0.05% - 0.08%",
614
- "0.09% - 0.12%",
615
- "0.13% - 0.16%",
616
- "0.17% - 0.20%",
617
- "More than 0.20%",
618
- "Don't know"
619
- ]
620
- });
621
-
622
- const childAndFamilyTOLPCenter = () => col2RadioCenter({
623
- name: 'Type_Of_Legal_Problem',
624
- id: 'Type_Of_Legal_Problem',
625
- options: [
626
- 'Child Custody',
627
- 'Child Support',
628
- 'Adoption',
629
- 'Family Issues',
630
- 'Guardianship',
631
- 'Divorce and Separation',
632
- 'Not Sure or Other'
633
- ]
634
- });
635
-
636
- const childHomeCenter = (scope) => verticalSelect({
637
- name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
638
- options: [
639
- 'Mother',
640
- 'Father',
641
- 'Grandparents',
642
- 'Other'
643
- ]
644
- });
645
-
646
- const childPrimaryCaregiverCenter = (scope) => verticalSelect({
647
- name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
648
- options: [
649
- 'Mother',
650
- 'Father',
651
- 'Other'
652
- ]
653
- });
654
-
655
- const childRelationshipCenter = (scope) => verticalSelect({
656
- name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
657
- options: [
658
- 'Father',
659
- 'Mother',
660
- 'Grandparent',
661
- 'Aunt/Uncle',
662
- 'Other'
663
- ]
664
- });
665
-
666
- const claimStatus = (scope) => sbsSelect({
667
- name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
668
- label: "Status of Claim:",
669
- options: [
670
- "No action taken yet",
671
- "Demand for compensation made",
672
- "Lawsuit filed",
673
- "Other"
674
- ]
675
- });
676
-
677
- const comments = (updates, scope) => textArea(
678
- merge({
679
- name: scope ? scope + ':' + 'Comments' : 'Comments',
680
- label: 'Please briefly describe your situation in a few words:',
681
- placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
682
- }, updates)
683
- );
684
-
685
- const degreeOfInterest$1 = (scope, help) => sbsSelect({
686
- name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
687
- id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
688
- label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
689
- help: help,
690
- options: [
691
- 'Definitely',
692
- 'Probably',
693
- 'Maybe',
694
- "Absolutely Can't Afford"
695
- ]
696
- });
697
-
698
- const degreeOfInterestCenter = (scope, help) => verticalSelect({
699
- name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
700
- id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
701
- help: help,
702
- options: [
703
- 'Definitely',
704
- 'Probably',
705
- 'Maybe',
706
- "Absolutely Can't Afford"
707
- ]
708
- });
709
-
710
- const degreeOfInterestHelp = (scope) => degreeOfInterest$1(scope, 'No payment necessary to speak with lawyers.');
711
-
712
- const disabilityConditionStopWork = (scope) => sbsYesNoRadio({
713
- name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
714
- label: 'Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?'
715
- });
716
-
717
- const disabilityWorkHistory = (scope) => sbsYesNoRadio({
718
- name: scope ? scope + ':' + 'Disability_Work_History' : 'Disability_Work_History',
719
- label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
720
- });
721
-
722
- const doctorTreatment = (scope) => sbsYesNoRadio({
723
- name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
724
- label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
725
- });
726
-
727
- const email = () => sbsText({
728
- $formkit: 'email',
729
- name: 'Email',
730
- label: 'Email Address:',
731
- placeholder: 'email@domain.com',
732
- autocomplete: 'email',
733
- 'data-tf-sensitive': 'false',
734
- validation: 'required|email',
735
- validationMessages: {
736
- required: 'Email is required',
737
- email: 'Invalid Email'
738
- }
739
- });
740
-
741
- const estateLegalServicesNeeded = (scope) => sbsSelect({
742
- name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
743
- label: "Legal Services Needed for Your Estate:",
744
- options: [
745
- "Charitable Giving",
746
- "Contested Wills",
747
- "Drafting Wills or Trust",
748
- "Estate Administration",
749
- "Asset Protection",
750
- "Other"
751
- ]
752
- });
753
-
754
- const firstName = () => sbsText({
755
- $formkit: 'text',
756
- label: 'First Name:',
757
- placeholder: 'First',
758
- name: 'First_Name',
759
- autocomplete: "given-name",
760
- validationMessages: {
761
- required: 'First Name is required'
762
- }
763
- });
764
-
765
- const haveAttorney$1 = (scope) => sbsYesNoRadio({
766
- name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
767
- label: 'Already Working with An Attorney?'
768
- });
769
-
770
- const haveAttorneyCenter = () => verticalYesNoRadio({
771
- name: 'Have_Attorney',
772
- });
773
-
774
- const haveChildrenCenter = (scope) => verticalYesNoRadio({
775
- name: scope ? scope + ':' + 'Have_Children' : 'Have_Children'
776
- });
777
-
778
- const incidentDate = (scope) => sbsDate({
779
- name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
780
- label: 'Date of Incident:',
781
- });
782
-
783
- const lastName = () => sbsText({
784
- $formkit: 'text',
785
- label: 'Last Name:',
786
- placeholder: 'Last',
787
- name: 'Last_Name',
788
- autocomplete: "family-name",
789
- validationMessages: {
790
- required: 'Last Name is required'
791
- }
792
- });
793
-
794
- const lawyerPaymentMethodCenter = (scope) => verticalSelect({
795
- name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
796
- help: 'No payment necessary to speak with lawyers.',
797
- options: [
798
- 'Cash',
799
- 'Check',
800
- 'Credit Card',
801
- 'Friend',
802
- 'Family',
803
- 'Other'
804
- ]
805
- });
806
-
807
- const legalCrossSells$1 = () => col2Checkbox({
808
- id: 'Legal_CrossSells',
809
- name: 'Legal_CrossSells',
810
- help: 'Note: just hit "Next" if none apply',
811
- helpClass: 't-text-center !t-text-sm',
812
- validation: null,
813
- options: {
814
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Auto and Car Accidents"',
815
- then: {
816
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
817
- 'Wills and Trusts': 'Need a Will or Trust',
818
- 'Workers Compensation': 'Workplace Injury',
819
- 'Power of Attorney': 'Update Power of Attorney',
820
- 'Divorce and Separation': 'Need a Divorce or Separation',
821
- 'Child Custody': 'Need help with Child Custody',
822
- },
823
- else: {
824
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Personal Injury" || $getVal($get(form), "Type_Of_Legal_Problem") === "Workers Compensation"',
825
- then: {
826
- 'DUI and DWI': 'Involved in a DUI/DWI',
827
- 'Wills and Trusts': 'Need a Will or Trust',
828
- 'Power of Attorney': 'Update Power of Attorney',
829
- 'Divorce and Separation': 'Need a Divorce or Separation',
830
- 'Child Custody': 'Need help with Child Custody',
831
- // TODO add one more?
832
- },
833
- else: {
834
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "DUI and DWI"',
835
- then: {
836
- 'Personal Injury': 'Personal or Workplace Injury',
837
- 'Wills and Trusts': 'Need a Will or Trust',
838
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
839
- 'Power of Attorney': 'Update Power of Attorney',
840
- 'Divorce and Separation': 'Need a Divorce or Separation',
841
- 'Child Custody': 'Need help with Child Custody',
842
- },
843
- else: {
844
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Wills and Trusts" || $getVal($get(form), "Type_Of_Legal_Problem") === "Probate and Estates" || $getVal($get(form), "Type_Of_Legal_Problem") === "Power of Attorney"',
845
- then: {
846
- 'Auto and Car Accidents': 'Injured in a Car Accident',
847
- 'Personal Injury': 'Personal or Workplace Injury',
848
- 'DUI and DWI': 'Involved in a DUI/DWI',
849
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
850
- 'Divorce and Separation': 'Need a Divorce or Separation',
851
- 'Child Custody': 'Need help with Child Custody',
852
- },
853
- else: {
854
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Long Term Disability" || $getVal($get(form), "Type_Of_Legal_Problem") === "Social Security Disability and Insurance"',
855
- then: {
856
- 'Auto and Car Accidents': 'Injured in a Car Accident',
857
- 'DUI and DWI': 'Involved in a DUI/DWI',
858
- 'Wills and Trusts': 'Need a Will or Trust',
859
- 'Power of Attorney': 'Update Power of Attorney',
860
- 'Divorce and Separation': 'Need a Divorce or Separation',
861
- 'Child Custody': 'Need help with Child Custody',
862
- },
863
- else: {
864
- 'Auto and Car Accidents': 'Injured in a Car Accident',
865
- 'Personal Injury': 'Personal or Workplace Injury',
866
- 'DUI and DWI': 'Involved in a DUI/DWI',
867
- 'Wills and Trusts': 'Need a Will or Trust',
868
- 'Power of Attorney': 'Update Power of Attorney',
869
- 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
870
- }
871
- }
872
- }
873
- }
874
- }
875
- }
876
- });
877
-
878
- const maritalStatusCenter = (scope) => verticalSelect({
879
- name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
880
- options: [
881
- 'Unmarried, Living Together',
882
- 'Unmarried, Do Not Live Together',
883
- 'Married, Living Together',
884
- 'Separated',
885
- 'Divorced',
886
- 'Other'
887
- ]
888
- });
889
-
890
- const pendingCharges = (scope) => sbsYesNoRadio({
891
- name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
892
- label: 'Do you currently have any pending charges?'
893
- });
894
-
895
- const phone = () => sbsText({
896
- $formkit: 'tel',
897
- name: 'Primary_Phone',
898
- label: 'Phone Number:',
899
- placeholder: '###-###-####',
900
- maxlength: 12,
901
- help: '10-digit phone number, hyphens optional',
902
- autocomplete: 'tel-national',
903
- 'data-tf-sensitive': 'false',
904
- validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
905
- validationMessages: {
906
- required: 'Field is required',
907
- matches: 'Invalid Phone Format, use ###-###-####',
908
- valid_phone: 'Invalid Phone Number'
909
- },
910
- helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
911
- });
912
-
913
- const primaryInjury = (scope) => sbs2ColRadio({
914
- name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
915
- label: 'Primary Injury:',
916
- options: [
917
- "Anxiety",
918
- "Back or Neck Pain",
919
- "Broken Bones",
920
- "Cuts and Bruises",
921
- "Headaches",
922
- "Memory Loss",
923
- "Loss of Limb",
924
- "Other (describe on next page)"
925
- ]
926
- });
927
-
928
- const priorAlcoholOffenses = (scope) => sbsYesNoRadio({
929
- name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
930
- label: 'Any Prior Alcohol Related Offenses?'
931
- });
932
-
933
- const policeReportFiled = (scope) => sbsYesNoRadio({
934
- name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
935
- label: 'Was a Police Report Filed?'
936
- });
937
-
938
- const roleInMatterProbate = (scope) => sbsSelect({
939
- name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
940
- label: "What Is Your Role in this Matter?",
941
- options: [
942
- "Preparing My Will",
943
- "Executor",
944
- "Heir",
945
- "Other"
946
- ]
947
- });
948
-
949
- const socialSecurityDisabilityReceivingBenefits = (scope) => sbsYesNoRadio({
950
- name: scope ? scope + ':' + 'Social_Security_Disability_Receiving_Benefits' : 'Social_Security_Disability_Receiving_Benefits',
951
- label: 'Are You Currently Receiving Social Security Disability Benefits?'
952
- });
953
-
954
- const TCPAConsent = () => ({
955
- $formkit: 'checkbox',
956
- label: '$meta.tcpaLanguage',
957
- name: 'TCPA_Opt_In',
958
- 'data-tf-sensitive': 'false',
959
- validation: 'required|accepted',
960
- validationMessages: {
961
- required: 'Consent is required',
962
- accepted: 'Consent is required'
963
- },
964
- classes: {
965
- label: "t-text-xs t-text-slate-500 t-font-normal"
966
- }
967
- });
968
-
969
- const typeOfAlcoholTest = (scope) => sbsSelect({
970
- name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
971
- label: 'Type of Alcohol Test Performed?',
972
- options: [
973
- "No Test",
974
- "Refused Test",
975
- "Breath Test",
976
- "Blood Test",
977
- "Urine Test",
978
- "Don't Know"
979
- ]
980
- });
981
-
982
- const typeOfAssets = (scope) => col2Checkbox({
983
- name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
984
- label: 'Type of Assets:',
985
- options: [
986
- "Business Interests",
987
- "Cash",
988
- "Life Insurance Policies",
989
- "Pensions/Retirement",
990
- "Personal Possessions",
991
- "Property",
992
- "Stock/Bonds"
993
- ]
994
- });
995
-
996
- const valueOfAssets = (scope) => sbsSelect({
997
- name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
998
- label: 'Value of Your Assets?',
999
- options: [
1000
- "Less than 50K",
1001
- "50K to 100K",
1002
- "100K to 250K",
1003
- "250K to 500K",
1004
- "500K to 1M",
1005
- "More than 1M"
1006
- ]
1007
- });
1008
-
1009
- const zipcodeCenter = () => text({
1010
- placeholder: '#####',
1011
- help: "We try to match you with local legal help.",
1012
- name: 'Zip',
1013
- maxlength: 5,
1014
- inputmode: "numeric",
1015
- autocomplete: 'postal-code',
1016
- validation: 'required|matches:/^[0-9]{5}$/',
1017
- validationMessages: {
1018
- required: 'Zip Code is required',
1019
- matches: 'Invalid Zip Code'
1020
- },
1021
- wrapperClass: 't-flex t-justify-center',
1022
- messagesClass: 't-flex t-justify-center',
1023
- inputClass: 't-text-center',
1024
- helpClass: 't-mt-2.5 !t-text-sm t-text-center'
1025
- });
1026
-
1027
-
1028
- // ------ Question Groups
1029
-
1030
- // NOTE: name must be unique within a form!
1031
- const group = (name, updates) => {
1032
- return merge({
1033
- $cmp: 'FormKit',
1034
- props: {
1035
- type: 'group',
1036
- key: name,
1037
- id: name,
1038
- name: name
1039
- }
1040
- }, updates)
1041
- };
1042
-
1043
- const AutoAndCarAccidentsQuestions = (condition, scope) => group(
1044
- 'AutoAndCarAccidentsQuestions',
1045
- {
1046
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
1047
- children: [
1048
- haveAttorney$1(scope),
1049
- incidentDate(scope),
1050
- atFault(scope),
1051
- primaryInjury(scope),
1052
- doctorTreatment(scope),
1053
- policeReportFiled(scope)
1054
- ]
1055
- }
1056
- );
1057
-
1058
- const DUIAndDWIQuestions = (condition, scope) => group(
1059
- 'DUIAndDWIQuestions',
1060
- {
1061
- if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
1062
- children: [
1063
- haveAttorney$1(scope),
1064
- incidentDate(scope),
1065
- priorAlcoholOffenses(scope),
1066
- typeOfAlcoholTest(scope),
1067
- bloodContentAlcoholTest(scope),
1068
- pendingCharges(scope),
1069
- degreeOfInterestHelp(scope)
1070
- ]
1071
- }
1072
- );
1073
-
1074
- const PersonalInjuryQuestions = (condition, scope) => group(
1075
- 'PersonalInjuryQuestions',
1076
- {
1077
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
1078
- children: [
1079
- haveAttorney$1(scope),
1080
- incidentDate(scope),
1081
- claimStatus(scope),
1082
- atFault(scope),
1083
- primaryInjury(scope),
1084
- doctorTreatment(scope)
1085
- ]
1086
- }
1087
- );
1088
-
1089
- const PowerofAttorneyQuestions = (condition, scope) => group(
1090
- 'PowerofAttorneyQuestions',
1091
- {
1092
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
1093
- children: [
1094
- haveAttorney$1(scope),
1095
- degreeOfInterestHelp(scope)
1096
- ]
1097
- }
1098
- );
1099
-
1100
- const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) => group(
1101
- 'SocialSecurityDisabilityAndInsuranceQuestions',
1102
- {
1103
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"'),
1104
- children: [
1105
- haveAttorney$1(scope),
1106
- applicantAge(scope),
1107
- disabilityConditionStopWork(scope),
1108
- disabilityWorkHistory(scope),
1109
- socialSecurityDisabilityReceivingBenefits(scope),
1110
- doctorTreatment(scope)
1111
- ]
1112
- }
1113
- );
1114
-
1115
- const WillsAndTrustsQuestions = (condition, scope) => group(
1116
- 'WillsAndTrustsQuestions',
1117
- {
1118
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
1119
- children: [
1120
- haveAttorney$1(scope),
1121
- valueOfAssets(scope),
1122
- typeOfAssets(scope),
1123
- roleInMatterProbate(scope),
1124
- estateLegalServicesNeeded(scope),
1125
- degreeOfInterestHelp(scope)
1126
- ]
1127
- }
1128
- );
1129
-
1130
- const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
1131
- const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
1132
-
1133
- const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
1134
-
1135
- const findLastInput = (n) => {
1136
- if (isInput(n)) {
1137
- return n
1138
- }
1139
- for (var i = n.children.length - 1; i >= 0; i--) {
1140
- if (typeof n.children === 'string') {
1141
- continue
1142
- }
1143
- const child = n.children[i];
1144
- if (isInput(child)) {
1145
- return child
1146
- }
1147
- const res = findLastInput(child);
1148
- if (res) {
1149
- return res
1150
- }
1151
- }
1152
- return null
1153
- };
1154
-
1155
- function crossSellQuestionsStepHeadline(updates) {
1156
- return {
1157
- $el: 'h3',
1158
- children: updates.headline || 'Tell Us About Your Situation',
1159
- attrs: {
1160
- 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'
1161
- }
1162
- }
1163
- }
1164
-
1165
- function crossSellQuestionsStepSubHeadline(updates) {
1166
- return {
1167
- $el: 'h5',
1168
- children: updates.subheadline || 'Tell us about your situation:',
1169
- attrs: {
1170
- 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'
1171
- }
1172
- }
1173
- }
1174
-
1175
- function verticalStepHeadline(updates) {
1176
- return {
1177
- $el: 'h3',
1178
- children: updates.headline || 'Tell Us About Your Situation',
1179
- attrs: {
1180
- 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 || '')
1181
- }
1182
- }
1183
- }
1184
-
1185
-
1186
-
1187
- function commentsStepHeadline(updates) {
1188
- return {
1189
- $el: 'h3',
1190
- children: updates.headline || 'Additional Case Details',
1191
- attrs: {
1192
- 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 || '')
1193
- }
1194
- }
1195
- }
1196
-
1197
- function firstAndLastStepHeadline(updates) {
1198
- return {
1199
- $el: 'h3',
1200
- children: updates.headline || 'Please Provide a Contact Name',
1201
- attrs: {
1202
- 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 || '')
1203
- }
1204
- }
1205
- }
1206
-
1207
- function legalCrossSellsStepHeadline(updates) {
1208
- return {
1209
- $el: 'h3',
1210
- children: updates.headline || 'Do any of the following situations apply?',
1211
- attrs: {
1212
- 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 || '')
1213
- }
1214
- }
1215
- }
1216
-
1217
- function contactStepHeadline(updates) {
1218
- return {
1219
- $el: 'h3',
1220
- children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
1221
- attrs: {
1222
- 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 || '')
1223
- }
1224
- }
1225
- }
1226
-
1227
- function contactStepSubHeadline(updates) {
1228
- return {
1229
- $el: 'h5',
1230
- children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC,
1231
- attrs: {
1232
- 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 || '')
1233
- }
1234
- }
1235
- }
1236
-
1237
- const TRUSTED_FORM_JS = `(function() {
1238
- if (window.xxTrustedFormLoaded) {
1239
- return
1240
- }
1241
- var vid = '';
1242
- if (typeof window.zar !== 'undefined') {
1243
- vid = window.zar.getVID();
1244
- }
1245
- window.xxTrustedFormLoaded = true;
1246
- var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'
1247
- var tf = document.createElement('script');
1248
- tf.type = 'text/javascript'; tf.async = true;
1249
- 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();
1250
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);
1251
- })();`;
1252
-
1253
- function trustedFormScript() {
1254
- return {
1255
- $el: 'script',
1256
- if: '$activeStep === $lastStep()',
1257
- children: TRUSTED_FORM_JS
1258
- }
1259
- }
1260
-
1261
- const stepDefaults = (step, stepKey) => ({
1262
- $el: 'section',
1263
- if: '$stepEnabled("' + step + '")',
1264
- attrs: {
1265
- hidden: '$activeStep !== "' + step + '"',
1266
- key: stepKey ? stepKey : step
1267
- }
1268
- });
1269
-
1270
- function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = undefined, nextStepMap = undefined) {
1271
- if (typeof nextOnEnter === 'undefined') {
1272
- nextOnEnter = true;
1273
- }
1274
- if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
1275
- const lastInput = findLastInput(inputs[inputs.length - 1]);
1276
- if (lastInput && nextOnEnter === true) {
1277
- lastInput.onKeypress = NEXT_ON_ENTER;
1278
- }
1279
- if (lastInput && nextOnInput === true) {
1280
- lastInput.onInput = NEXT_ON_INPUT;
1281
- }
1282
- }
1283
-
1284
- return merge(
1285
- stepDefaults(name, stepKey),
1286
- {
1287
- children: [
1288
- {
1289
- $formkit: 'group',
1290
- id: name,
1291
- name: name,
1292
- nextStepMap: nextStepMap,
1293
- children: inputs
1294
- }
1295
- ]
1296
- }
1297
- )
1298
- }
1299
-
1300
- // Single question step
1301
- function sqstep(name, input, defaultHeadline, updates = {}) {
1302
- return step(
1303
- name,
1304
- [
1305
- verticalStepHeadline({ headline: updates.headline ?? defaultHeadline, headlineClass: updates.headlineClass }),
1306
- ...Array.isArray(input) ? input : [input],
1307
- ],
1308
- updates.nextOnEnter,
1309
- typeof updates.nextOnInput === 'undefined' ? true : updates.nextOnInput,
1310
- updates.stepKey,
1311
- updates.nextStepMap
1312
- )
1313
- }
1314
-
1315
- function commentsWithBankruptcyV2(updates = {}) {
1316
- return step(
1317
- 'commentsWithBankruptcy',
1318
- [
1319
- commentsStepHeadline(updates),
1320
- comments({
1321
- label: updates.label === undefined ? DEFAULT_COMMENTS_LABEL : updates.label,
1322
- placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
1323
- inputClass: updates.inputClass === undefined ? '!t-h-40' : updates.inputClass,
1324
- }),
1325
- bankruptcyCrossSell(),
1326
- {
1327
- $el: 'div',
1328
- if: '$get(CrossSell_Bankruptcy).value == true',
1329
- children: [
1330
- comments({
1331
- label: 'Bankruptcy or debt details:',
1332
- placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
1333
- inputClass: '!t-h-16'
1334
- }, 'CrossSell:Bankruptcy')
1335
- ],
1336
- }
1337
- ],
1338
- updates.nextOnEnter
1339
- )
1340
- }
1341
-
1342
- function contactInfoTF(updates = {}) {
1343
- return step(
1344
- 'contactInfo',
1345
- [
1346
- contactStepHeadline(updates),
1347
- contactStepSubHeadline(updates),
1348
- trustedFormScript(),
1349
- email(),
1350
- phone(),
1351
- TCPAConsent(),
1352
- secureIcon()
1353
- ],
1354
- updates.nextOnEnter
1355
- )
1356
- }
1357
-
1358
- function firstAndLastV2(updates = {}) {
1359
- return step(
1360
- 'firstAndLast',
1361
- [
1362
- firstAndLastStepHeadline(updates),
1363
- firstName(),
1364
- lastName()
1365
- ],
1366
- updates.nextOnEnter
1367
- )
1368
- }
1369
-
1370
-
1371
- function autoAndCarAccidentCrossSellQuestions(updates = {}) {
1372
- return step(
1373
- 'autoAndCarAccidentCrossSellQuestions',
1374
- [
1375
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Compensation' }),
1376
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your accident:' }),
1377
- AutoAndCarAccidentsQuestions("true", 'CrossSell:Auto_and_Car_Accidents'),
1378
- comments(
1379
- {
1380
- label: 'Accident Description:',
1381
- placeholder: 'Please describe your accident in a few words...',
1382
- inputClass: '!t-h-16'
1383
- },
1384
- 'CrossSell:Auto_and_Car_Accidents'
1385
- )
1386
- ],
1387
- updates.nextOnEnter
1388
- )
1389
- }
1390
-
1391
- function duiAndDWICrossSellQuestions(updates = {}) {
1392
- return step(
1393
- 'duiAndDWICrossSellQuestions',
1394
- [
1395
- crossSellQuestionsStepHeadline({ headline: 'About Your DUI/DWI' }),
1396
- DUIAndDWIQuestions("true", 'CrossSell:DUI_and_DWI'),
1397
- comments(
1398
- {
1399
- label: 'Incident Description:',
1400
- placeholder: 'Please describe your incident in a few words...',
1401
- inputClass: '!t-h-16'
1402
- },
1403
- 'CrossSell:DUI_and_DWI'
1404
- )
1405
- ],
1406
- updates.nextOnEnter
1407
- )
1408
- }
1409
-
1410
- function ssdiCrossSellQuestions(updates = {}) {
1411
- return step(
1412
- 'ssdiCrossSellQuestions',
1413
- [
1414
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Benefits' }),
1415
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your disability:' }),
1416
- SocialSecurityDisabilityAndInsuranceQuestions("true", 'CrossSell:Social_Security_Disability_and_Insurance'),
1417
- comments(
1418
- {
1419
- label: 'Description:',
1420
- placeholder: 'Please describe your situation in a few words...',
1421
- inputClass: '!t-h-16'
1422
- },
1423
- 'CrossSell:Social_Security_Disability_and_Insurance'
1424
- )
1425
- ],
1426
- updates.nextOnEnter
1427
- )
1428
- }
1429
-
1430
- function personalInjuryCrossSellQuestions(updates = {}) {
1431
- return step(
1432
- 'personalInjuryCrossSellQuestions',
1433
- [
1434
- crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Compensation' }),
1435
- crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your injury:' }),
1436
- PersonalInjuryQuestions("true", 'CrossSell:Personal_Injury'),
1437
- comments(
1438
- {
1439
- label: 'Injury Description:',
1440
- placeholder: 'Please describe your injury in a few words...',
1441
- inputClass: '!t-h-16'
1442
- },
1443
- 'CrossSell:Personal_Injury'
1444
- )
1445
- ],
1446
- updates.nextOnEnter
1447
- )
1448
- }
1449
-
1450
- function powerOfAttorneyCrossSellQuestions(updates = {}) {
1451
- return step(
1452
- 'powerOfAttorneyCrossSellQuestions',
1453
- [
1454
- crossSellQuestionsStepHeadline({ headline: 'Power of Attorney Information' }),
1455
- PowerofAttorneyQuestions("true", 'CrossSell:Power_of_Attorney'),
1456
- comments(
1457
- {
1458
- label: 'Description:',
1459
- placeholder: 'Please describe your situation in a few words...',
1460
- inputClass: '!t-h-16'
1461
- },
1462
- 'CrossSell:Power_of_Attorney'
1463
- )
1464
- ],
1465
- updates.nextOnEnter
1466
- )
1467
- }
1468
-
1469
- function willsAndTrustsCrossSellQuestions(updates = {}) {
1470
- return step(
1471
- 'willsAndTrustsCrossSellQuestions',
1472
- [
1473
- crossSellQuestionsStepHeadline({ headline: 'Will or Trust Information' }),
1474
- WillsAndTrustsQuestions("true", 'CrossSell:Wills_and_Trusts'),
1475
- comments(
1476
- {
1477
- label: 'Description:',
1478
- placeholder: 'Please describe your situation in a few words...',
1479
- inputClass: '!t-h-16'
1480
- },
1481
- 'CrossSell:Wills_and_Trusts'
1482
- )
1483
- ],
1484
- updates.nextOnEnter
1485
- )
1486
- }
1487
-
1488
- function legalCrossSells(updates = {}) {
1489
- return step(
1490
- 'legalCrossSells',
1491
- [
1492
- legalCrossSellsStepHeadline(updates),
1493
- legalCrossSells$1(),
1494
- ],
1495
- updates.nextOnEnter,
1496
- false,
1497
- '$get(Type_Of_Legal_Problem).value'
1498
- )
1499
- }
1500
-
1501
- function childAndFamilyTOLP(updates = {}) {
1502
- return step(
1503
- 'childAndFamilyTOLP',
1504
- [
1505
- childAndFamilyTOLPCenter()
1506
- ],
1507
- updates.nextOnEnter,
1508
- updates.nextOnInput,
1509
- updates.stepKey,
1510
- updates.nextStepMap
1511
- )
1512
- }
1513
-
1514
- function zipcode(updates = {}) {
1515
- return sqstep(
1516
- 'zipcode',
1517
- zipcodeCenter(),
1518
- 'Please verify your Zip Code',
1519
- updates
1520
- )
1521
- }
1522
-
1523
- function maritalStatus(updates = {}) {
1524
- return sqstep(
1525
- 'maritalStatus',
1526
- maritalStatusCenter(),
1527
- 'What is your marital status?',
1528
- updates
1529
- )
1530
- }
1531
-
1532
- function haveChildren(updates = {}) {
1533
- return sqstep(
1534
- 'haveChildren',
1535
- haveChildrenCenter(),
1536
- 'Do you have children?',
1537
- updates
1538
- )
1539
- }
1540
-
1541
- function childRelationship(updates = {}) {
1542
- return sqstep(
1543
- 'childRelationship',
1544
- childRelationshipCenter(),
1545
- 'Your relationship to the children:',
1546
- updates
1547
- )
1548
- }
1549
-
1550
- function childHome(updates = {}) {
1551
- return sqstep(
1552
- 'childHome',
1553
- childHomeCenter(),
1554
- 'Who do the children currently live with?',
1555
- updates
1556
- )
1557
- }
1558
-
1559
- function childPrimaryCaregiver(updates = {}) {
1560
- return sqstep(
1561
- 'childPrimaryCaregiver',
1562
- childPrimaryCaregiverCenter(),
1563
- 'Who is the primary caregiver?',
1564
- updates
1565
- )
1566
- }
1567
-
1568
- function haveAttorney(updates = {}) {
1569
- return sqstep(
1570
- 'haveAttorney',
1571
- haveAttorneyCenter(),
1572
- 'Already working with an attorney?',
1573
- updates
1574
- )
1575
- }
1576
-
1577
- function degreeOfInterest(updates = {}) {
1578
- return sqstep(
1579
- 'degreeOfInterest',
1580
- degreeOfInterestCenter(),
1581
- 'Could you pay if your issue could be resolved?',
1582
- updates
1583
- )
1584
- }
1585
-
1586
- function lawyerPaymentMethod(updates = {}) {
1587
- return sqstep(
1588
- 'lawyerPaymentMethod',
1589
- lawyerPaymentMethodCenter(),
1590
- 'How will you pay if you decide to hire a lawyer?',
1591
- updates
1592
- )
1593
- }
1594
-
1595
- const formNavigationV2 = () => ({
1596
- $el: 'div',
1597
- attrs: {
1598
- class: 'step-nav'
1599
- },
1600
- children: [
1601
- {
1602
- $formkit: 'button',
1603
- name: 'back_button',
1604
- onClick: '$setPreviousStep($prevStepFunc($get(form)))',
1605
- children: 'Back',
1606
- style: {
1607
- if: '$activeStep === $firstStep()',
1608
- then: 'visibility: hidden;'
1609
- }
1610
- },
1611
- {
1612
- $formkit: 'button',
1613
- name: 'next_button',
1614
- onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
1615
- children: {
1616
- if: '$activeStep === $firstStep()',
1617
- then: 'Start',
1618
- else: 'Next'
1619
- },
1620
- outerClass: {
1621
- if: '$activeStep === $lastStep()',
1622
- then: 't-hidden',
1623
- else: ''
1624
- },
1625
- style: {
1626
- if: '$activeStep === $lastStep()',
1627
- then: 'display: none;'
1628
- }
1629
- },
1630
- {
1631
- $formkit: 'submit',
1632
- name: 'submit_button',
1633
- label: 'Submit',
1634
- if: '$activeStep === $lastStep()',
1635
- style: {
1636
- if: '$activeStep !== $lastStep()',
1637
- then: 'display: none;'
1638
- }
1639
- }
1640
- ]
1641
- });
1642
-
1643
- const formDetails = () => ({
1644
- $el: 'pre',
1645
- if: '$urlParam("fdbg", "") == 1',
1646
- children: [
1647
- {
1648
- $el: 'pre',
1649
- children: '$stringify( $get(form).value )',
1650
- attrs: {
1651
- class: 't-text-xs',
1652
- style: 'overflow: scroll'
1653
- }
1654
- },
1655
- {
1656
- $el: 'pre',
1657
- children: ['activeStep: ', '$activeStep'],
1658
- attrs: {
1659
- class: 't-text-xs',
1660
- style: 'overflow: scroll'
1661
- }
1662
- },
1663
- {
1664
- $el: 'pre',
1665
- children: ['stepHistory: ', '$stepHistory'],
1666
- attrs: {
1667
- class: 't-text-xs',
1668
- style: 'overflow: scroll'
1669
- }
1670
- },
1671
- {
1672
- $el: 'pre',
1673
- children: ['stepQueue: ', '$stepQueue'],
1674
- attrs: {
1675
- class: 't-text-xs',
1676
- style: 'overflow: scroll'
1677
- }
1678
- },
1679
- {
1680
- $el: 'pre',
1681
- children: ['steps: ', '$stepKeys()'],
1682
- attrs: {
1683
- class: 't-text-xs',
1684
- style: 'overflow: scroll'
1685
- }
1686
- }
1687
- ]
1688
- });
1689
-
1690
- const schema = [
1691
- defaultMetaProps(),
1692
- formAnchor(),
1693
- {
1694
- $cmp: 'FormKit',
1695
- props: formProps({
1696
- formId: 'childAndFamilySingle',
1697
- redirectMap: legalRedirectMap()
1698
- }),
1699
- children: [
1700
- progressBar(),
1701
- headline({
1702
- children: '$urlParam("hl", "Get Child & Family Help Today")',
1703
- if: '$activeStep === $firstStep()',
1704
- }),
1705
- subHeadline({
1706
- children: '$urlParam("shl", "Select a Category Below to Get Started!")',
1707
- if: '$activeStep === $firstStep()',
1708
- }),
1709
- ...hiddenInputsLegal,
1710
- {
1711
- $el: 'div',
1712
- attrs: {
1713
- class: 'form-body'
1714
- },
1715
- children: [
1716
- childAndFamilyTOLP({
1717
- nextStepMap: {
1718
- 'Type_Of_Legal_Problem': {
1719
- 'Child Custody': [
1720
- 'childRelationship',
1721
- 'childHome',
1722
- 'childPrimaryCaregiver',
1723
- 'haveAttorney',
1724
- 'degreeOfInterest',
1725
- 'commentsWithBankruptcy',
1726
- 'zipcode',
1727
- 'legalCrossSells',
1728
- 'firstAndLast',
1729
- 'contactInfo',
1730
- ],
1731
- 'Child Support': [
1732
- 'childRelationship',
1733
- 'childHome',
1734
- 'childPrimaryCaregiver',
1735
- 'haveAttorney',
1736
- 'degreeOfInterest',
1737
- 'commentsWithBankruptcy',
1738
- 'zipcode',
1739
- 'legalCrossSells',
1740
- 'firstAndLast',
1741
- 'contactInfo',
1742
- ],
1743
- 'Not Sure or Other': [
1744
- 'haveAttorney',
1745
- 'degreeOfInterest',
1746
- 'commentsWithBankruptcy',
1747
- 'zipcode',
1748
- 'legalCrossSells',
1749
- 'firstAndLast',
1750
- 'contactInfo',
1751
- ]
1752
- },
1753
- '*': [
1754
- 'maritalStatus',
1755
- 'haveChildren',
1756
- 'haveAttorney',
1757
- 'degreeOfInterest',
1758
- 'lawyerPaymentMethod',
1759
- 'commentsWithBankruptcy',
1760
- 'zipcode',
1761
- 'legalCrossSells',
1762
- 'firstAndLast',
1763
- 'contactInfo',
1764
- ]
1765
- }
1766
- }),
1767
- zipcode(),
1768
- maritalStatus(),
1769
- haveChildren(),
1770
- childRelationship(),
1771
- childHome(),
1772
- childPrimaryCaregiver(),
1773
- haveAttorney(),
1774
- degreeOfInterest(),
1775
- lawyerPaymentMethod(),
1776
- commentsWithBankruptcyV2({
1777
- nextOnEnter: false,
1778
- label: null,
1779
- headline: 'Please briefly describe your situation:',
1780
- headlineClass: '!t-text-dark',
1781
- inputClass: '!t-h-32'
1782
- }),
1783
- legalCrossSells({
1784
- headlineClass: '!t-text-dark'
1785
- }),
1786
- // Note: this is purposefully limited to a subset of values
1787
- // that could show up in the Legal_CrossSells input because
1788
- // this form only allows a handful of TOLPs on stage 1!
1789
- autoAndCarAccidentCrossSellQuestions(),
1790
- personalInjuryCrossSellQuestions(),
1791
- duiAndDWICrossSellQuestions(),
1792
- ssdiCrossSellQuestions(),
1793
- powerOfAttorneyCrossSellQuestions(),
1794
- willsAndTrustsCrossSellQuestions(),
1795
- firstAndLastV2({
1796
- headlineClass: '!t-text-dark'
1797
- }),
1798
- contactInfoTF({
1799
- nextOnEnter: false
1800
- }),
1801
- formNavigationV2(),
1802
- formDetails()
1803
- ]
1804
- }
1805
- ]
1806
- }
1807
- ];
1808
-
1809
- export { schema as default };