bhl-forms 0.0.2 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,575 @@
1
+ var childAndFamily = (function () {
2
+ 'use strict';
3
+
4
+ function merge() {
5
+ return Object.assign({}, ...arguments)
6
+ }
7
+
8
+ // ------ Common Base Settings
9
+
10
+ const radio = (updates) => {
11
+ return merge({
12
+ $formkit: 'radio',
13
+ validation: 'required',
14
+ validationMessages: {
15
+ required: 'Field is required',
16
+ },
17
+ optionsClass: 'pt-3 pl-1',
18
+ }, updates)
19
+ };
20
+
21
+ const sbsRadio = (updates) => {
22
+ updates.legendClass = 'legend-left';
23
+ updates.fieldsetClass = '$reset side-by-side';
24
+ updates.optionsClass = 'pl-1';
25
+ updates.innerClass = 'center-label';
26
+ return radio(updates)
27
+ };
28
+
29
+ const sbsYesNoRadio = (updates) => {
30
+ updates.options = ['Yes', 'No'];
31
+ updates.legendClass = 'legend-left';
32
+ updates.fieldsetClass = '$reset side-by-side';
33
+ updates.optionsClass = 'pl-1 side-by-side center-label';
34
+ updates.innerClass = 'center-label';
35
+ return radio(updates)
36
+ };
37
+
38
+ const select = (updates) => {
39
+ return merge({
40
+ $formkit: 'select',
41
+ placeholder: "Please Select",
42
+ validation: 'required',
43
+ validationMessages: {
44
+ required: 'Field is required',
45
+ },
46
+ inputClass: 'bg-white',
47
+ }, updates)
48
+ };
49
+
50
+ const sbsSelect = (updates) => {
51
+ updates.labelClass = 'center-label';
52
+ updates.wrapperClass = 'side-by-side';
53
+ updates.innerClass = 'select-height-content';
54
+ return select(updates)
55
+ };
56
+
57
+ const text = (updates) => {
58
+ return merge({
59
+ $formkit: 'text',
60
+ validation: 'required',
61
+ validationMessages: {
62
+ required: 'Field is required',
63
+ },
64
+ }, updates)
65
+ };
66
+
67
+ const sbsText = (updates) => {
68
+ updates.labelClass = 'center-label';
69
+ updates.wrapperClass = 'side-by-side';
70
+ return text(updates)
71
+ };
72
+
73
+ const childAndFamilyTOLP = () => sbsRadio({
74
+ label: 'Type of Legal Issue *',
75
+ name: 'Type_Of_Legal_Problem',
76
+ id: 'Type_Of_Legal_Problem',
77
+ options: [
78
+ 'Adoption',
79
+ 'Child Custody and Support',
80
+ // 'Family Issues',
81
+ // 'Guardianship',
82
+ // 'Divorce and Separation',
83
+ 'Not Sure or Other'
84
+ ]
85
+ });
86
+
87
+ const childHome = () => sbsSelect({
88
+ label: 'With Whom Do the Children Currently Live? *',
89
+ name: 'Child_Home',
90
+ // id: 'Child_Home',
91
+ options: [
92
+ 'Mother',
93
+ 'Father',
94
+ 'Grandparents',
95
+ 'Other'
96
+ ]
97
+ });
98
+
99
+ const childPrimaryCaregiver = () => sbsSelect({
100
+ label: 'Who is the Primary Caregiver? *',
101
+ name: 'Child_Primary_Caregiver',
102
+ options: [
103
+ 'Mother',
104
+ 'Father',
105
+ 'Other'
106
+ ]
107
+ });
108
+
109
+ const childRelationship = () => sbsSelect({
110
+ label: 'Your Relationship to Child(ren): *',
111
+ name: 'Child_Relationship',
112
+ options: [
113
+ 'Father',
114
+ 'Mother',
115
+ 'Grandparent',
116
+ 'Aunt/Uncle',
117
+ 'Other'
118
+ ]
119
+ });
120
+
121
+ const comments$1 = () => ({
122
+ $formkit: 'textarea',
123
+ label: 'Please provide a brief description of your situation *',
124
+ name: 'Comments',
125
+ placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
126
+ rows: 1,
127
+ validation: 'required',
128
+ maxlength: 1000,
129
+ validationMessages: {
130
+ required: 'Description is required',
131
+ },
132
+ });
133
+
134
+ const degreeOfInterest = () => sbsSelect({
135
+ label: 'How Likely Are You to Pay if Your Issue Could be Resolved? *',
136
+ name: 'Degree_Of_Interest',
137
+ help: 'No payment necessary to speak with lawyers.',
138
+ options: [
139
+ 'Definitely',
140
+ 'Probably',
141
+ 'Maybe',
142
+ "Absolutely Can't Afford"
143
+ ]
144
+ });
145
+
146
+ const firstName = () => ({
147
+ $formkit: 'text',
148
+ label: 'First Name *',
149
+ name: 'First_Name',
150
+ validation: 'required',
151
+ validationMessages: {
152
+ required: 'First Name is required'
153
+ },
154
+ });
155
+
156
+ const email = () => ({
157
+ $formkit: 'email',
158
+ name: 'Email',
159
+ label: 'Email Address *',
160
+ placeholder: 'email@domain.com',
161
+ validation: 'required|email',
162
+ validationMessages: {
163
+ required: 'Email is required',
164
+ email: 'Invalid Email',
165
+ },
166
+ });
167
+
168
+ const haveAttorney = () => sbsYesNoRadio({
169
+ name: 'Have_Attorney',
170
+ label: 'Are You Currently Working with An Attorney? *',
171
+ });
172
+
173
+ const haveChildren = () => sbsYesNoRadio({
174
+ name: 'Have_Children',
175
+ label: 'Do You Have Children? *',
176
+ });
177
+
178
+ const lastName = () => ({
179
+ $formkit: 'text',
180
+ label: 'Last Name *',
181
+ name: 'Last_Name',
182
+ validation: 'required',
183
+ validationMessages: {
184
+ required: 'Last Name is required'
185
+ },
186
+ });
187
+
188
+ const lawyerPaymentMethod = () => sbsSelect({
189
+ label: 'How Will You Pay for Legal Fees if You Hire a Lawyer? *',
190
+ name: 'Lawyer_Payment_Method',
191
+ help: 'No payment necessary to speak with lawyers.',
192
+ options: [
193
+ 'Cash',
194
+ 'Check',
195
+ 'Credit Card',
196
+ 'Friend',
197
+ 'Family',
198
+ 'Other'
199
+ ]
200
+ });
201
+
202
+ const maritalStatus = () => sbsSelect({
203
+ label: 'Marital Status *',
204
+ name: 'Marital_Status',
205
+ options: [
206
+ 'Unmarried, Living Together',
207
+ 'Unmarried, Do Not Live Together',
208
+ 'Married, Living Together',
209
+ 'Separated',
210
+ 'Divorced',
211
+ 'Other',
212
+ ]
213
+ });
214
+
215
+ const phone = () => ({
216
+ $formkit: 'tel',
217
+ name: 'Primary_Phone',
218
+ label: 'Phone Number *',
219
+ placeholder: 'xxx-xxx-xxxx',
220
+ help: '10-digit US phone number, hyphens optional.',
221
+ validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/',
222
+ validationMessages: {
223
+ required: 'Phone Number is required',
224
+ matches: 'Invalid Phone Number',
225
+ },
226
+ });
227
+
228
+ const TCPAConsent = () => ({
229
+ $formkit: 'checkbox',
230
+ label: '$meta.tcpaLanguage',
231
+ name: 'TCPA_Opt_In',
232
+ validation: 'required|accepted',
233
+ validationMessages: {
234
+ accepted: 'Consent is required',
235
+ },
236
+ classes: {
237
+ label: "text-xs text-slate-500"
238
+ }
239
+ });
240
+
241
+ const zipcode = () => sbsText({
242
+ label: 'Zip Code *',
243
+ placeholder: '90210',
244
+ name: 'Zip',
245
+ validation: 'required|matches:/^[0-9]{5}$/',
246
+ validationMessages: {
247
+ required: 'Zip Code is required',
248
+ matches: 'Invalid Zip Code',
249
+ },
250
+ });
251
+
252
+ // ------ Question Groups
253
+
254
+ // NOTE: name must be unique!
255
+ const group = (name, updates) => {
256
+ return merge({
257
+ $cmp: 'FormKit',
258
+ props: {
259
+ type: 'group',
260
+ key: name,
261
+ id: name,
262
+ name: name
263
+ },
264
+ }, updates)
265
+ };
266
+
267
+
268
+ const AdoptionQuestions = () => group(
269
+ 'AdoptionQuestions',
270
+ {
271
+ if: '$get(Type_Of_Legal_Problem).value == "Adoption"',
272
+ children: [
273
+ haveAttorney(),
274
+ maritalStatus(),
275
+ haveChildren(),
276
+ degreeOfInterest(),
277
+ lawyerPaymentMethod()
278
+ ]
279
+ }
280
+ );
281
+
282
+ const ChildCustodyAndSupportQuestions = () => group(
283
+ 'ChildCustodyAndSupportQuestions',
284
+ {
285
+ if: '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',
286
+ children: [
287
+ haveAttorney(),
288
+ childRelationship(),
289
+ childHome(),
290
+ childPrimaryCaregiver(),
291
+ degreeOfInterest(),
292
+ lawyerPaymentMethod()
293
+ ]
294
+ }
295
+ );
296
+
297
+ const stepDefaults = (step) => ({
298
+ $el: 'section',
299
+ if: '$stepIsEnabled("' + step + '")',
300
+ attrs: {
301
+ style: {
302
+ if: '$activeStep !== "' + step + '"',
303
+ then: 'display: none;'
304
+ }
305
+ }
306
+ });
307
+
308
+ // ...args get merged onto the group since the 'section' node basically
309
+ // disappears in the formkit hierarchy
310
+ function step(name, inputs, ...args) {
311
+ return merge(
312
+ stepDefaults(name),
313
+ {
314
+ children: [
315
+ merge({
316
+ $formkit: 'group',
317
+ id: name,
318
+ name: name,
319
+ children: inputs
320
+ }, ...args)
321
+ ],
322
+ }
323
+ )
324
+ }
325
+
326
+
327
+ function childAndFamilyTOLPAndZip() {
328
+ return step(
329
+ 'childAndFamilyTOLPAndZip',
330
+ [
331
+ childAndFamilyTOLP(),
332
+ zipcode(),
333
+ ],
334
+ ...arguments
335
+ )
336
+ }
337
+
338
+ function comments() {
339
+ return step(
340
+ 'comments',
341
+ [
342
+ comments$1(),
343
+ ],
344
+ ...arguments
345
+ )
346
+ }
347
+
348
+ function contactInfo() {
349
+ return step(
350
+ 'contactInfo',
351
+ [
352
+ email(),
353
+ phone(),
354
+ TCPAConsent(),
355
+ {
356
+ $el: 'img',
357
+ if: '$activeStep === $lastStep()',
358
+ attrs: {
359
+ loading: 'lazy',
360
+ alt: '',
361
+ style: { border: 0 },
362
+ src: 'https://www.jotform.com/uploads/bunker_hill/form_files/SecurePrivacy.61e1c17c976f80.61736956.png',
363
+ width: '320',
364
+ height: '100'
365
+ }
366
+ },
367
+ ],
368
+ ...arguments
369
+ )
370
+ }
371
+
372
+ function firstAndLast() {
373
+ return step(
374
+ 'firstAndLast',
375
+ [
376
+ firstName(),
377
+ lastName(),
378
+ ],
379
+ ...arguments
380
+ )
381
+ }
382
+
383
+ const formNavigation = () => ({
384
+ $el: 'div',
385
+ attrs: {
386
+ class: 'step-nav'
387
+ },
388
+ children: [
389
+ {
390
+ $formkit: 'button',
391
+ onClick: '$setPreviousStep()',
392
+ children: 'Previous Step',
393
+ style: {
394
+ if: '$activeStep === $firstStep()',
395
+ then: 'visibility: hidden;'
396
+ }
397
+ },
398
+ {
399
+ $formkit: 'button',
400
+ onClick: '$setNextStep()',
401
+ children: 'Next Step',
402
+ style: {
403
+ if: '$activeStep === $lastStep()',
404
+ then: 'display: none;'
405
+ }
406
+ },
407
+ {
408
+ $formkit: 'submit',
409
+ label: 'Submit Application',
410
+ if: '$activeStep === $lastStep()',
411
+ style: {
412
+ if: '$activeStep !== $lastStep()',
413
+ then: 'display: none;'
414
+ }
415
+ }
416
+ ]
417
+ });
418
+
419
+ const formDetails = () => ({
420
+ $el: 'pre',
421
+ if: '$urlParam("fdbg", "") == 1',
422
+ children: [
423
+ {
424
+ $el: 'pre',
425
+ children: '$stringify( $get(form).value )',
426
+ attrs: {
427
+ class: 'text-xs',
428
+ style: 'overflow: scroll'
429
+ }
430
+ },
431
+ {
432
+ $el: 'pre',
433
+ children: ['activeStep: ', '$activeStep'],
434
+ attrs: {
435
+ class: 'text-xs',
436
+ style: 'overflow: scroll'
437
+ }
438
+ },
439
+ {
440
+ $el: 'pre',
441
+ children: ['stepHistory: ', '$stepHistory'],
442
+ attrs: {
443
+ class: 'text-xs',
444
+ style: 'overflow: scroll'
445
+ }
446
+ },
447
+ {
448
+ $el: 'pre',
449
+ children: ['stepQueue: ', '$stepQueue'],
450
+ attrs: {
451
+ class: 'text-xs',
452
+ style: 'overflow: scroll'
453
+ }
454
+ }
455
+ ]
456
+ });
457
+
458
+ function TOLPQuestions() {
459
+ return step(
460
+ 'TOLPQuestions',
461
+ [
462
+ {
463
+ $el: 'h3',
464
+ children: 'Please Complete the Following:',
465
+ attrs: {
466
+ class: 'flex justify-center text-xl font-bold text-blue-500 pb-3'
467
+ }
468
+ },
469
+ AdoptionQuestions(),
470
+ ChildCustodyAndSupportQuestions()
471
+ ],
472
+ ...arguments
473
+ )
474
+ }
475
+
476
+ const schema = [
477
+ {
478
+ type: 'meta',
479
+ data: {
480
+ tcpaLanguage: "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 855-506-0847."
481
+ }
482
+ },
483
+ {
484
+ $cmp: 'FormKit',
485
+ props: {
486
+ type: 'form',
487
+ id: 'form',
488
+ // onSubmit: '$submit("https://httpbin.org/post")',
489
+ // onSubmit: '$submit("https://httpbin.org/post", "https://www.google.com?x=${vertical}")',
490
+ onSubmit: '$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData)',
491
+ plugins: '$plugins',
492
+ actions: false,
493
+ prepop: {
494
+ fromURL: true
495
+ },
496
+ errorCodes: {
497
+ 403: "An Error Occurred",
498
+ 409: { abort: false },
499
+ 429: "An Error Occurred"
500
+ },
501
+ formClass: '!max-w-xl'
502
+ },
503
+ children: [
504
+ {
505
+ $el: 'h1',
506
+ if: '$activeStep === $firstStep()',
507
+ children: 'Need Help? Start Here!',
508
+ attrs: {
509
+ class: 'flex justify-center text-3xl font-bold'
510
+ }
511
+ },
512
+ {
513
+ $el: 'h3',
514
+ if: '$activeStep === $firstStep()',
515
+ children: 'Get Your Questions Answered Today!',
516
+ attrs: {
517
+ class: 'flex justify-center text-l font-bold text-blue-500'
518
+ }
519
+ },
520
+ {
521
+ $formkit: 'hidden',
522
+ name: "vertical",
523
+ value: "Legal"
524
+ },
525
+ {
526
+ $formkit: 'hidden',
527
+ name: "TCPA_Language",
528
+ value: "$meta.tcpaLanguage"
529
+ },
530
+ {
531
+ $formkit: 'hidden',
532
+ name: "gclid",
533
+ value: null,
534
+ },
535
+ {
536
+ $formkit: 'hidden',
537
+ name: "campaignid",
538
+ value: null,
539
+ },
540
+ {
541
+ $formkit: 'hidden',
542
+ name: "s",
543
+ value: null,
544
+ },
545
+ {
546
+ $el: 'div',
547
+ attrs: {
548
+ class: 'form-body'
549
+ },
550
+ children: [
551
+ childAndFamilyTOLPAndZip(
552
+ {
553
+ nextStepMap: {
554
+ 'Type_Of_Legal_Problem': {
555
+ 'Not Sure or Other': ['comments', 'firstAndLast', 'contactInfo'],
556
+ },
557
+ '*': ['TOLPQuestions', 'comments', 'firstAndLast', 'contactInfo']
558
+ }
559
+ }
560
+ ),
561
+ TOLPQuestions(),
562
+ comments(),
563
+ firstAndLast(),
564
+ contactInfo(),
565
+ formNavigation(),
566
+ formDetails(),
567
+ ]
568
+ },
569
+ ]
570
+ }
571
+ ];
572
+
573
+ return schema;
574
+
575
+ })();
@@ -0,0 +1 @@
1
+ [{"type":"meta","data":{"tcpaLanguage":"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 855-506-0847."}},{"$cmp":"FormKit","props":{"type":"form","id":"form","onSubmit":"$submit(\"http://localhost:8080/api/v1/form_leads_ext\", $prepData)","plugins":"$plugins","actions":false,"prepop":{"fromURL":true},"errorCodes":{"403":"An Error Occurred","409":{"abort":false},"429":"An Error Occurred"},"formClass":"!max-w-xl"},"children":[{"$el":"h1","if":"$activeStep === $firstStep()","children":"Need Help? Start Here!","attrs":{"class":"flex justify-center text-3xl font-bold"}},{"$el":"h3","if":"$activeStep === $firstStep()","children":"Get Your Questions Answered Today!","attrs":{"class":"flex justify-center text-l font-bold text-blue-500"}},{"$formkit":"hidden","name":"vertical","value":"Legal"},{"$formkit":"hidden","name":"TCPA_Language","value":"$meta.tcpaLanguage"},{"$formkit":"hidden","name":"gclid","value":null},{"$formkit":"hidden","name":"campaignid","value":null},{"$formkit":"hidden","name":"s","value":null},{"$el":"div","attrs":{"class":"form-body"},"children":[{"$el":"section","if":"$stepIsEnabled(\"childAndFamilyTOLPAndZip\")","attrs":{"style":{"if":"$activeStep !== \"childAndFamilyTOLPAndZip\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"childAndFamilyTOLPAndZip","name":"childAndFamilyTOLPAndZip","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1","label":"Type of Legal Issue *","name":"Type_Of_Legal_Problem","id":"Type_Of_Legal_Problem","options":["Adoption","Child Custody and Support","Not Sure or Other"],"legendClass":"legend-left","fieldsetClass":"$reset side-by-side","innerClass":"center-label"},{"$formkit":"text","validation":"required|matches:/^[0-9]{5}$/","validationMessages":{"required":"Zip Code is required","matches":"Invalid Zip Code"},"label":"Zip Code *","placeholder":"90210","name":"Zip","labelClass":"center-label","wrapperClass":"side-by-side"}],"nextStepMap":{"Type_Of_Legal_Problem":{"Not Sure or Other":["comments","firstAndLast","contactInfo"]},"*":["TOLPQuestions","comments","firstAndLast","contactInfo"]}}]},{"$el":"section","if":"$stepIsEnabled(\"TOLPQuestions\")","attrs":{"style":{"if":"$activeStep !== \"TOLPQuestions\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"TOLPQuestions","name":"TOLPQuestions","children":[{"$el":"h3","children":"Please Complete the Following:","attrs":{"class":"flex justify-center text-xl font-bold text-blue-500 pb-3"}},{"$cmp":"FormKit","props":{"type":"group","key":"AdoptionQuestions","id":"AdoptionQuestions","name":"AdoptionQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Adoption\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1 side-by-side center-label","name":"Have_Attorney","label":"Are You Currently Working with An Attorney? *","options":["Yes","No"],"legendClass":"legend-left","fieldsetClass":"$reset side-by-side","innerClass":"center-label"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"Marital Status *","name":"Marital_Status","options":["Unmarried, Living Together","Unmarried, Do Not Live Together","Married, Living Together","Separated","Divorced","Other"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1 side-by-side center-label","name":"Have_Children","label":"Do You Have Children? *","options":["Yes","No"],"legendClass":"legend-left","fieldsetClass":"$reset side-by-side","innerClass":"center-label"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"How Likely Are You to Pay if Your Issue Could be Resolved? *","name":"Degree_Of_Interest","help":"No payment necessary to speak with lawyers.","options":["Definitely","Probably","Maybe","Absolutely Can't Afford"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"How Will You Pay for Legal Fees if You Hire a Lawyer? *","name":"Lawyer_Payment_Method","help":"No payment necessary to speak with lawyers.","options":["Cash","Check","Credit Card","Friend","Family","Other"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"}]},{"$cmp":"FormKit","props":{"type":"group","key":"ChildCustodyAndSupportQuestions","id":"ChildCustodyAndSupportQuestions","name":"ChildCustodyAndSupportQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Child Custody and Support\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"pl-1 side-by-side center-label","name":"Have_Attorney","label":"Are You Currently Working with An Attorney? *","options":["Yes","No"],"legendClass":"legend-left","fieldsetClass":"$reset side-by-side","innerClass":"center-label"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"Your Relationship to Child(ren): *","name":"Child_Relationship","options":["Father","Mother","Grandparent","Aunt/Uncle","Other"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"With Whom Do the Children Currently Live? *","name":"Child_Home","options":["Mother","Father","Grandparents","Other"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"Who is the Primary Caregiver? *","name":"Child_Primary_Caregiver","options":["Mother","Father","Other"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"How Likely Are You to Pay if Your Issue Could be Resolved? *","name":"Degree_Of_Interest","help":"No payment necessary to speak with lawyers.","options":["Definitely","Probably","Maybe","Absolutely Can't Afford"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"bg-white","label":"How Will You Pay for Legal Fees if You Hire a Lawyer? *","name":"Lawyer_Payment_Method","help":"No payment necessary to speak with lawyers.","options":["Cash","Check","Credit Card","Friend","Family","Other"],"labelClass":"center-label","wrapperClass":"side-by-side","innerClass":"select-height-content"}]}]}]},{"$el":"section","if":"$stepIsEnabled(\"comments\")","attrs":{"style":{"if":"$activeStep !== \"comments\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"comments","name":"comments","children":[{"$formkit":"textarea","label":"Please provide a brief description of your situation *","name":"Comments","placeholder":"For Example: \"I would like help with child support payments\" or \"I need help with visitation rights\"","rows":1,"validation":"required","maxlength":1000,"validationMessages":{"required":"Description is required"}}]}]},{"$el":"section","if":"$stepIsEnabled(\"firstAndLast\")","attrs":{"style":{"if":"$activeStep !== \"firstAndLast\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"firstAndLast","name":"firstAndLast","children":[{"$formkit":"text","label":"First Name *","name":"First_Name","validation":"required","validationMessages":{"required":"First Name is required"}},{"$formkit":"text","label":"Last Name *","name":"Last_Name","validation":"required","validationMessages":{"required":"Last Name is required"}}]}]},{"$el":"section","if":"$stepIsEnabled(\"contactInfo\")","attrs":{"style":{"if":"$activeStep !== \"contactInfo\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"contactInfo","name":"contactInfo","children":[{"$formkit":"email","name":"Email","label":"Email Address *","placeholder":"email@domain.com","validation":"required|email","validationMessages":{"required":"Email is required","email":"Invalid Email"}},{"$formkit":"tel","name":"Primary_Phone","label":"Phone Number *","placeholder":"xxx-xxx-xxxx","help":"10-digit US phone number, hyphens optional.","validation":"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/","validationMessages":{"required":"Phone Number is required","matches":"Invalid Phone Number"}},{"$formkit":"checkbox","label":"$meta.tcpaLanguage","name":"TCPA_Opt_In","validation":"required|accepted","validationMessages":{"accepted":"Consent is required"},"classes":{"label":"text-xs text-slate-500"}},{"$el":"img","if":"$activeStep === $lastStep()","attrs":{"loading":"lazy","alt":"","style":{"border":0},"src":"https://www.jotform.com/uploads/bunker_hill/form_files/SecurePrivacy.61e1c17c976f80.61736956.png","width":"320","height":"100"}}]}]},{"$el":"div","attrs":{"class":"step-nav"},"children":[{"$formkit":"button","onClick":"$setPreviousStep()","children":"Previous Step","style":{"if":"$activeStep === $firstStep()","then":"visibility: hidden;"}},{"$formkit":"button","onClick":"$setNextStep()","children":"Next Step","style":{"if":"$activeStep === $lastStep()","then":"display: none;"}},{"$formkit":"submit","label":"Submit Application","if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"}}]},{"$el":"pre","if":"$urlParam(\"fdbg\", \"\") == 1","children":[{"$el":"pre","children":"$stringify( $get(form).value )","attrs":{"class":"text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["activeStep: ","$activeStep"],"attrs":{"class":"text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepHistory: ","$stepHistory"],"attrs":{"class":"text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepQueue: ","$stepQueue"],"attrs":{"class":"text-xs","style":"overflow: scroll"}}]}]}]}]