bhl-forms 0.4.21 → 0.4.23
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.iife.js +1 -1
- package/dist/bhl-forms.modern.iife.js +1 -1
- package/dist/bhl-forms.modern.umd.js +1 -1
- package/dist/bhl-forms.umd.js +1 -1
- package/dist/forms/accidentsAndInjuries.es.js +3 -1
- package/dist/forms/accidentsAndInjuries.iife.js +1 -1
- package/dist/forms/accidentsAndInjuries.json +1 -1
- package/dist/forms/childAndFamily.es.js +14 -23
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/childAndFamilySingle.es.js +14 -23
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -1
- package/dist/forms/civilLawsuit.es.js +14 -23
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/contracts.es.js +3 -1
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/contracts.json +1 -1
- package/dist/forms/criminal.es.js +14 -23
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/employmentAndWorkplace.es.js +3 -1
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -1
- package/dist/forms/generalLegal.es.js +84 -66
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +14 -23
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderTF.es.js +3 -1
- package/dist/forms/generalLegalPopUnderTF.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderTF.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +3 -1
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYou.json +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +3 -1
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.json +1 -1
- package/dist/forms/malpractice.es.js +3 -1
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/malpractice.json +1 -1
- package/dist/forms/realEstate.es.js +3 -1
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/repossession.es.js +3 -1
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/repossession.json +1 -1
- package/dist/forms/ssdi.es.js +3 -1
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -1
- package/dist/forms/testForm.es.js +2 -0
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/forms/willsAndTrusts.es.js +3 -1
- package/dist/forms/willsAndTrusts.iife.js +1 -1
- package/dist/forms/willsAndTrusts.json +1 -1
- package/dist/main.css +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ function LegalRedirectUrl() {
|
|
|
9
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
10
|
|
|
11
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:';
|
|
12
13
|
const DEFAULT_FINAL_HEADLINE = 'Submit Your Case';
|
|
13
14
|
const DEFAULT_FINAL_HEADLINE_DYNAMIC = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
|
|
14
15
|
const DEFAULT_FINAL_SUBHEADLINE = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
|
|
@@ -527,6 +528,15 @@ const checkbox = (updates) => {
|
|
|
527
528
|
}, updates)
|
|
528
529
|
};
|
|
529
530
|
|
|
531
|
+
const sbsCheckbox = (updates) => {
|
|
532
|
+
updates.legendClass = 'legend-left required';
|
|
533
|
+
updates.fieldsetClass = '$reset side-by-side';
|
|
534
|
+
updates.optionsClass = 't-pl-1';
|
|
535
|
+
updates.innerClass = 't-flex t-items-center';
|
|
536
|
+
updates.wrapperClass = 't-mb-3';
|
|
537
|
+
return checkbox(updates)
|
|
538
|
+
};
|
|
539
|
+
|
|
530
540
|
const col2Checkbox = (updates) => {
|
|
531
541
|
if (!updates || !updates.legendClass) {
|
|
532
542
|
updates.legendClass = 'required';
|
|
@@ -754,6 +764,16 @@ const atFault = (scope) => sbsYesNoRadio({
|
|
|
754
764
|
label: 'Were You at Fault?'
|
|
755
765
|
});
|
|
756
766
|
|
|
767
|
+
const bankruptcyCrossSell = () => sbsCheckbox({
|
|
768
|
+
label: "I'd also like a consultation for bankruptcy or debt elimination (optional)",
|
|
769
|
+
help: "Note: you will be contacted separately by a bankruptcy/debt expert",
|
|
770
|
+
name: 'CrossSell_Bankruptcy',
|
|
771
|
+
id: 'CrossSell_Bankruptcy',
|
|
772
|
+
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")',
|
|
773
|
+
validation: null,
|
|
774
|
+
helpClass: "!t-text-sm"
|
|
775
|
+
});
|
|
776
|
+
|
|
757
777
|
const bloodContentAlcholTest = (scope) => sbsSelect({
|
|
758
778
|
name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
|
|
759
779
|
label: 'Blood Alcohol Content Measured by Test:',
|
|
@@ -1261,6 +1281,7 @@ const estateLegalServicesNeeded = (scope) => sbsSelect({
|
|
|
1261
1281
|
const firstName = () => sbsText({
|
|
1262
1282
|
$formkit: 'text',
|
|
1263
1283
|
label: 'First Name:',
|
|
1284
|
+
placeholder: 'First',
|
|
1264
1285
|
name: 'First_Name',
|
|
1265
1286
|
autocomplete: "given-name",
|
|
1266
1287
|
validationMessages: {
|
|
@@ -1414,6 +1435,7 @@ const incidentDate = (scope) => sbsDate({
|
|
|
1414
1435
|
const lastName = () => sbsText({
|
|
1415
1436
|
$formkit: 'text',
|
|
1416
1437
|
label: 'Last Name:',
|
|
1438
|
+
placeholder: 'Last',
|
|
1417
1439
|
name: 'Last_Name',
|
|
1418
1440
|
autocomplete: "family-name",
|
|
1419
1441
|
validationMessages: {
|
|
@@ -1487,7 +1509,7 @@ const legalCrossSells$1 = () => col2Checkbox({
|
|
|
1487
1509
|
'Workers Compensation': 'Workplace Injury',
|
|
1488
1510
|
'Power of Attorney': 'Update Power of Attorney',
|
|
1489
1511
|
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
1490
|
-
'
|
|
1512
|
+
'Child Custody': 'Need help with Child Custody',
|
|
1491
1513
|
},
|
|
1492
1514
|
else: {
|
|
1493
1515
|
if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Personal Injury" || $getVal($get(form), "Type_Of_Legal_Problem") === "Workers Compensation"',
|
|
@@ -1496,7 +1518,7 @@ const legalCrossSells$1 = () => col2Checkbox({
|
|
|
1496
1518
|
'Wills and Trusts': 'Need a Will or Trust',
|
|
1497
1519
|
'Power of Attorney': 'Update Power of Attorney',
|
|
1498
1520
|
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
1499
|
-
'
|
|
1521
|
+
'Child Custody': 'Need help with Child Custody',
|
|
1500
1522
|
// TODO add one more?
|
|
1501
1523
|
},
|
|
1502
1524
|
else: {
|
|
@@ -1507,7 +1529,7 @@ const legalCrossSells$1 = () => col2Checkbox({
|
|
|
1507
1529
|
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
1508
1530
|
'Power of Attorney': 'Update Power of Attorney',
|
|
1509
1531
|
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
1510
|
-
'
|
|
1532
|
+
'Child Custody': 'Need help with Child Custody',
|
|
1511
1533
|
},
|
|
1512
1534
|
else: {
|
|
1513
1535
|
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"',
|
|
@@ -1517,7 +1539,7 @@ const legalCrossSells$1 = () => col2Checkbox({
|
|
|
1517
1539
|
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
1518
1540
|
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
1519
1541
|
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
1520
|
-
'
|
|
1542
|
+
'Child Custody': 'Need help with Child Custody',
|
|
1521
1543
|
},
|
|
1522
1544
|
else: {
|
|
1523
1545
|
if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Long Term Disability" || $getVal($get(form), "Type_Of_Legal_Problem") === "Social Security Disability and Insurance"',
|
|
@@ -1527,26 +1549,15 @@ const legalCrossSells$1 = () => col2Checkbox({
|
|
|
1527
1549
|
'Wills and Trusts': 'Need a Will or Trust',
|
|
1528
1550
|
'Power of Attorney': 'Update Power of Attorney',
|
|
1529
1551
|
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
1530
|
-
'
|
|
1552
|
+
'Child Custody': 'Need help with Child Custody',
|
|
1531
1553
|
},
|
|
1532
1554
|
else: {
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
'Power of Attorney': 'Update Power of Attorney',
|
|
1540
|
-
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
1541
|
-
},
|
|
1542
|
-
else: {
|
|
1543
|
-
'Auto and Car Accidents': 'Injured in a Car Accident',
|
|
1544
|
-
'Personal Injury': 'Personal or Workplace Injury',
|
|
1545
|
-
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
1546
|
-
'Wills and Trusts': 'Need a Will or Trust',
|
|
1547
|
-
'Bankruptcy': 'Need Debt or Bankruptcy Help',
|
|
1548
|
-
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
1549
|
-
}
|
|
1555
|
+
'Auto and Car Accidents': 'Injured in a Car Accident',
|
|
1556
|
+
'Personal Injury': 'Personal or Workplace Injury',
|
|
1557
|
+
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
1558
|
+
'Wills and Trusts': 'Need a Will or Trust',
|
|
1559
|
+
'Power of Attorney': 'Update Power of Attorney',
|
|
1560
|
+
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
1550
1561
|
}
|
|
1551
1562
|
}
|
|
1552
1563
|
}
|
|
@@ -1932,9 +1943,9 @@ const wouldLikeLawyerTo = () => sbsRadio({
|
|
|
1932
1943
|
]
|
|
1933
1944
|
});
|
|
1934
1945
|
|
|
1935
|
-
const
|
|
1946
|
+
const zipcode = () => sbsText({
|
|
1947
|
+
label: 'Zip Code:',
|
|
1936
1948
|
placeholder: '#####',
|
|
1937
|
-
help: "We try to match you with local legal help.",
|
|
1938
1949
|
name: 'Zip',
|
|
1939
1950
|
maxlength: 5,
|
|
1940
1951
|
inputmode: "numeric",
|
|
@@ -1943,11 +1954,7 @@ const zipcodeCenter = () => text({
|
|
|
1943
1954
|
validationMessages: {
|
|
1944
1955
|
required: 'Zip Code is required',
|
|
1945
1956
|
matches: 'Invalid Zip Code'
|
|
1946
|
-
}
|
|
1947
|
-
wrapperClass: 't-flex t-justify-center',
|
|
1948
|
-
messagesClass: 't-flex t-justify-center',
|
|
1949
|
-
inputClass: 't-text-center',
|
|
1950
|
-
helpClass: 't-mt-2.5 !t-text-sm t-text-center'
|
|
1957
|
+
}
|
|
1951
1958
|
});
|
|
1952
1959
|
|
|
1953
1960
|
|
|
@@ -2756,12 +2763,14 @@ function crossSellQuestionsStepSubHeadline(updates) {
|
|
|
2756
2763
|
}
|
|
2757
2764
|
}
|
|
2758
2765
|
|
|
2759
|
-
|
|
2766
|
+
|
|
2767
|
+
|
|
2768
|
+
function commentsStepHeadline(updates) {
|
|
2760
2769
|
return {
|
|
2761
2770
|
$el: 'h3',
|
|
2762
|
-
children: updates.headline || '
|
|
2771
|
+
children: updates.headline || 'Additional Case Details',
|
|
2763
2772
|
attrs: {
|
|
2764
|
-
class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-
|
|
2773
|
+
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 || '')
|
|
2765
2774
|
}
|
|
2766
2775
|
}
|
|
2767
2776
|
}
|
|
@@ -2871,9 +2880,9 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
|
|
|
2871
2880
|
)
|
|
2872
2881
|
}
|
|
2873
2882
|
|
|
2874
|
-
function
|
|
2883
|
+
function generalLegalTOLPAndZip(updates = {}) {
|
|
2875
2884
|
return step(
|
|
2876
|
-
'
|
|
2885
|
+
'generalLegalTOLPAndZip',
|
|
2877
2886
|
[
|
|
2878
2887
|
generalTOLP(),
|
|
2879
2888
|
civilDefense(),
|
|
@@ -2882,7 +2891,34 @@ function generalLegalTOLPAndComments(updates = {}) {
|
|
|
2882
2891
|
employmentAndWorkplaceTOLPDisplay(),
|
|
2883
2892
|
landlordTenantIssueRadio(),
|
|
2884
2893
|
realEstateTOLPDisplay(),
|
|
2885
|
-
|
|
2894
|
+
zipcode()
|
|
2895
|
+
],
|
|
2896
|
+
updates.nextOnEnter
|
|
2897
|
+
)
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2900
|
+
function commentsWithBankruptcyV2(updates = {}) {
|
|
2901
|
+
return step(
|
|
2902
|
+
'commentsWithBankruptcy',
|
|
2903
|
+
[
|
|
2904
|
+
commentsStepHeadline(updates),
|
|
2905
|
+
comments({
|
|
2906
|
+
label: updates.label === undefined ? DEFAULT_COMMENTS_LABEL : updates.label,
|
|
2907
|
+
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
|
|
2908
|
+
inputClass: updates.inputClass === undefined ? '!t-h-40' : updates.inputClass,
|
|
2909
|
+
}),
|
|
2910
|
+
bankruptcyCrossSell(),
|
|
2911
|
+
{
|
|
2912
|
+
$el: 'div',
|
|
2913
|
+
if: '$get(CrossSell_Bankruptcy).value == true',
|
|
2914
|
+
children: [
|
|
2915
|
+
comments({
|
|
2916
|
+
label: 'Bankruptcy or debt details:',
|
|
2917
|
+
placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
|
|
2918
|
+
inputClass: '!t-h-16'
|
|
2919
|
+
}, 'CrossSell:Bankruptcy')
|
|
2920
|
+
],
|
|
2921
|
+
}
|
|
2886
2922
|
],
|
|
2887
2923
|
updates.nextOnEnter
|
|
2888
2924
|
)
|
|
@@ -3012,19 +3048,19 @@ function autoAndCarAccidentCrossSellQuestions(updates = {}) {
|
|
|
3012
3048
|
)
|
|
3013
3049
|
}
|
|
3014
3050
|
|
|
3015
|
-
function
|
|
3051
|
+
function childCustodyCrossSellQuestions(updates = {}) {
|
|
3016
3052
|
return step(
|
|
3017
|
-
'
|
|
3053
|
+
'childCustodyCrossSellQuestions',
|
|
3018
3054
|
[
|
|
3019
|
-
crossSellQuestionsStepHeadline({ headline: '
|
|
3020
|
-
|
|
3055
|
+
crossSellQuestionsStepHeadline({ headline: 'Child Custody Information' }),
|
|
3056
|
+
ChildCustodyQuestions("true", 'CrossSell:Child_Custody'),
|
|
3021
3057
|
comments(
|
|
3022
3058
|
{
|
|
3023
3059
|
label: 'Description:',
|
|
3024
3060
|
placeholder: 'Please describe your situation in a few words...',
|
|
3025
3061
|
inputClass: '!t-h-16'
|
|
3026
3062
|
},
|
|
3027
|
-
'CrossSell:
|
|
3063
|
+
'CrossSell:Child_Custody'
|
|
3028
3064
|
)
|
|
3029
3065
|
],
|
|
3030
3066
|
updates.nextOnEnter
|
|
@@ -3180,18 +3216,6 @@ function legalCrossSells(updates = {}) {
|
|
|
3180
3216
|
)
|
|
3181
3217
|
}
|
|
3182
3218
|
|
|
3183
|
-
function zipcode(updates = {}) {
|
|
3184
|
-
return step(
|
|
3185
|
-
'zipcode',
|
|
3186
|
-
[
|
|
3187
|
-
verticalStepHeadline(updates),
|
|
3188
|
-
zipcodeCenter()
|
|
3189
|
-
],
|
|
3190
|
-
updates.nextOnEnter,
|
|
3191
|
-
updates.nextOnInput
|
|
3192
|
-
)
|
|
3193
|
-
}
|
|
3194
|
-
|
|
3195
3219
|
const formNavigationV2 = () => ({
|
|
3196
3220
|
$el: 'div',
|
|
3197
3221
|
attrs: {
|
|
@@ -3310,19 +3334,13 @@ const schema = [
|
|
|
3310
3334
|
class: 'form-body'
|
|
3311
3335
|
},
|
|
3312
3336
|
children: [
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
generalLegalTOLPQuestions({
|
|
3321
|
-
headline: 'Details Of Your Situation',
|
|
3322
|
-
}),
|
|
3323
|
-
zipcode({
|
|
3324
|
-
headline: 'Please verify your Zip Code',
|
|
3325
|
-
headlineClass: '!t-text-blue-500',
|
|
3337
|
+
generalLegalTOLPAndZip(),
|
|
3338
|
+
generalLegalTOLPQuestions(),
|
|
3339
|
+
commentsWithBankruptcyV2({
|
|
3340
|
+
headline: 'How Can We Help?',
|
|
3341
|
+
label: 'Comment below, your input is safe and private:',
|
|
3342
|
+
inputClass: '!t-h-28',
|
|
3343
|
+
nextOnEnter: false,
|
|
3326
3344
|
}),
|
|
3327
3345
|
legalCrossSells(),
|
|
3328
3346
|
autoAndCarAccidentCrossSellQuestions(),
|
|
@@ -3333,7 +3351,7 @@ const schema = [
|
|
|
3333
3351
|
powerOfAttorneyCrossSellQuestions(),
|
|
3334
3352
|
willsAndTrustsCrossSellQuestions(),
|
|
3335
3353
|
divorceAndSeparationCrossSellQuestions(),
|
|
3336
|
-
|
|
3354
|
+
childCustodyCrossSellQuestions(),
|
|
3337
3355
|
firstAndLastV2(),
|
|
3338
3356
|
contactInfoV2({
|
|
3339
3357
|
nextOnEnter: false
|