bhl-forms 0.6.15 → 0.7.0

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 (94) hide show
  1. package/dist/bhl-forms.es.js +1757 -1759
  2. package/dist/bhl-forms.iife.js +4 -4
  3. package/dist/bhl-forms.modern.es.js +2804 -2811
  4. package/dist/bhl-forms.modern.iife.js +6 -6
  5. package/dist/bhl-forms.modern.umd.js +6 -6
  6. package/dist/bhl-forms.umd.js +4 -4
  7. package/dist/forms/accidentsAndInjuries.es.js +278 -215
  8. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  9. package/dist/forms/accidentsAndInjuries.json +1 -1
  10. package/dist/forms/appraisals.es.js +16 -7
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/business.es.js +288 -226
  13. package/dist/forms/business.iife.js +1 -1
  14. package/dist/forms/business.json +1 -1
  15. package/dist/forms/childAndFamily.es.js +271 -214
  16. package/dist/forms/childAndFamily.iife.js +1 -1
  17. package/dist/forms/childAndFamily.json +1 -1
  18. package/dist/forms/childAndFamilySingle.es.js +614 -545
  19. package/dist/forms/childAndFamilySingle.iife.js +1 -1
  20. package/dist/forms/childAndFamilySingle.json +1 -1
  21. package/dist/forms/civilLawsuit.es.js +608 -541
  22. package/dist/forms/civilLawsuit.iife.js +1 -1
  23. package/dist/forms/civilLawsuit.json +1 -1
  24. package/dist/forms/coins.es.js +16 -7
  25. package/dist/forms/coins.iife.js +1 -1
  26. package/dist/forms/contracts.es.js +275 -217
  27. package/dist/forms/contracts.iife.js +1 -1
  28. package/dist/forms/contracts.json +1 -1
  29. package/dist/forms/criminal.es.js +631 -562
  30. package/dist/forms/criminal.iife.js +1 -1
  31. package/dist/forms/criminal.json +1 -1
  32. package/dist/forms/divorce.es.js +614 -545
  33. package/dist/forms/divorce.iife.js +1 -1
  34. package/dist/forms/divorce.json +1 -1
  35. package/dist/forms/employmentAndWorkplace.es.js +555 -496
  36. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  37. package/dist/forms/employmentAndWorkplace.json +1 -1
  38. package/dist/forms/generalHomeImprovement.es.js +3224 -0
  39. package/dist/forms/generalHomeImprovement.iife.js +1 -0
  40. package/dist/forms/generalHomeImprovement.json +1 -0
  41. package/dist/forms/generalLegal.es.js +274 -216
  42. package/dist/forms/generalLegal.iife.js +1 -1
  43. package/dist/forms/generalLegal.json +1 -1
  44. package/dist/forms/generalLegalJustAnswer.es.js +4534 -0
  45. package/dist/forms/generalLegalJustAnswer.iife.js +1 -0
  46. package/dist/forms/generalLegalJustAnswer.json +1 -0
  47. package/dist/forms/generalLegalPopUnder.es.js +275 -217
  48. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  49. package/dist/forms/generalLegalPopUnder.json +1 -1
  50. package/dist/forms/generalLegalPopUnderSingle.es.js +645 -573
  51. package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
  52. package/dist/forms/generalLegalPopUnderSingle.json +1 -1
  53. package/dist/forms/generalLegalSingle.es.js +645 -573
  54. package/dist/forms/generalLegalSingle.iife.js +1 -1
  55. package/dist/forms/generalLegalSingle.json +1 -1
  56. package/dist/forms/generalLegalThankYou.es.js +137 -130
  57. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  58. package/dist/forms/generalLegalThankYouConsultation.es.js +645 -573
  59. package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
  60. package/dist/forms/generalLegalThankYouConsultation.json +1 -1
  61. package/dist/forms/harassmentAndDiscrimination.es.js +271 -214
  62. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  63. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  64. package/dist/forms/landlordTenant.es.js +287 -230
  65. package/dist/forms/landlordTenant.iife.js +1 -1
  66. package/dist/forms/landlordTenant.json +1 -1
  67. package/dist/forms/malpractice.es.js +276 -217
  68. package/dist/forms/malpractice.iife.js +1 -1
  69. package/dist/forms/malpractice.json +1 -1
  70. package/dist/forms/mechanics.es.js +171 -165
  71. package/dist/forms/mechanics.iife.js +1 -1
  72. package/dist/forms/mechanics.json +1 -1
  73. package/dist/forms/patentsAndIP.es.js +617 -548
  74. package/dist/forms/patentsAndIP.iife.js +1 -1
  75. package/dist/forms/patentsAndIP.json +1 -1
  76. package/dist/forms/realEstate.es.js +272 -215
  77. package/dist/forms/realEstate.iife.js +1 -1
  78. package/dist/forms/realEstate.json +1 -1
  79. package/dist/forms/repossession.es.js +275 -217
  80. package/dist/forms/repossession.iife.js +1 -1
  81. package/dist/forms/repossession.json +1 -1
  82. package/dist/forms/ssdi.es.js +139 -138
  83. package/dist/forms/ssdi.iife.js +1 -1
  84. package/dist/forms/ssdi.json +1 -1
  85. package/dist/forms/testForm.es.js +55 -52
  86. package/dist/forms/testForm.iife.js +1 -1
  87. package/dist/forms/testRedirects.es.js +28 -22
  88. package/dist/forms/testRedirects.iife.js +1 -1
  89. package/dist/forms/vets.es.js +16 -7
  90. package/dist/forms/vets.iife.js +1 -1
  91. package/dist/forms/willsAndTrusts.es.js +272 -213
  92. package/dist/forms/willsAndTrusts.iife.js +1 -1
  93. package/dist/forms/willsAndTrusts.json +1 -1
  94. package/package.json +3 -3
@@ -2,14 +2,13 @@ function merge() {
2
2
  return Object.assign({}, ...arguments)
3
3
  }
4
4
 
5
- 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.";
6
-
7
- const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
8
- const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
9
- const DEFAULT_FINAL_HEADLINE = 'Submit Your Case';
10
- const DEFAULT_FINAL_HEADLINE_DYNAMIC = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
11
- const DEFAULT_FINAL_SUBHEADLINE = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
12
- const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
5
+ const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
6
+ const DEFAULT_COMMENTS_LABEL_LEGAL = 'Please briefly describe your legal issue in a few words:';
7
+ const DEFAULT_FINAL_HEADLINE_LEGAL = 'Submit Your Case';
8
+ const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
9
+ const DEFAULT_FINAL_SUBHEADLINE_LEGAL = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
10
+ const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
11
+ const TCPA_LANGUAGE_LEGAL = "By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.";
13
12
 
14
13
  // ------ Common Base Settings
15
14
 
@@ -182,6 +181,73 @@ const sbsDate = (updates) => {
182
181
  return date(updates)
183
182
  };
184
183
 
184
+ const email = (scope) => sbsText({
185
+ $formkit: 'email',
186
+ name: scope ? scope + ':' + 'Email' : 'Email',
187
+ label: 'Email Address:',
188
+ placeholder: 'email@domain.com',
189
+ autocomplete: 'email',
190
+ 'data-tf-sensitive': 'false',
191
+ validation: 'required|email',
192
+ validationMessages: {
193
+ required: 'Email is required',
194
+ email: 'Invalid Email'
195
+ }
196
+ });
197
+
198
+ const firstName = (scope) => sbsText({
199
+ label: 'First Name:',
200
+ placeholder: 'First',
201
+ name: scope ? scope + ':' + 'First_Name' : 'First_Name',
202
+ autocomplete: "given-name",
203
+ validationMessages: {
204
+ required: 'First Name is required'
205
+ }
206
+ });
207
+
208
+ const lastName = (scope) => sbsText({
209
+ label: 'Last Name:',
210
+ placeholder: 'Last',
211
+ name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
212
+ autocomplete: "family-name",
213
+ validationMessages: {
214
+ required: 'Last Name is required'
215
+ }
216
+ });
217
+
218
+ const phone = (scope) => sbsText({
219
+ $formkit: 'tel',
220
+ name: scope ? scope + ':' + 'Primary_Phone' : 'Primary_Phone',
221
+ label: 'Phone Number:',
222
+ placeholder: '###-###-####',
223
+ maxlength: 12,
224
+ help: '10-digit phone number, hyphens optional',
225
+ autocomplete: 'tel-national',
226
+ 'data-tf-sensitive': 'false',
227
+ validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
228
+ validationMessages: {
229
+ required: 'Field is required',
230
+ matches: 'Invalid Phone Format, use ###-###-####',
231
+ valid_phone: 'Invalid Phone Number'
232
+ },
233
+ helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
234
+ });
235
+
236
+
237
+ const zipcode = (scope) => sbsText({
238
+ label: 'Zip Code:',
239
+ placeholder: '#####',
240
+ name: scope ? scope + ':' + 'Zip' : 'Zip',
241
+ maxlength: 5,
242
+ inputmode: "numeric",
243
+ autocomplete: 'postal-code',
244
+ validation: 'required|matches:/^[0-9]{5}$/',
245
+ validationMessages: {
246
+ required: 'Zip Code is required',
247
+ matches: 'Invalid Zip Code'
248
+ }
249
+ });
250
+
185
251
  const amountPaymentsPastDue = () => sbsSelect({
186
252
  label: 'Total Amount of Payments that are Past Due:',
187
253
  name: 'Amount_Payments_Past_Due',
@@ -732,20 +798,6 @@ const driversLicenseType = () => sbs2ItemRadio({
732
798
  ]
733
799
  });
734
800
 
735
- const email = (scope) => sbsText({
736
- $formkit: 'email',
737
- name: scope ? scope + ':' + 'Email' : 'Email',
738
- label: 'Email Address:',
739
- placeholder: 'email@domain.com',
740
- autocomplete: 'email',
741
- 'data-tf-sensitive': 'false',
742
- validation: 'required|email',
743
- validationMessages: {
744
- required: 'Email is required',
745
- email: 'Invalid Email'
746
- }
747
- });
748
-
749
801
  const employerType = () => sbsSelect({
750
802
  label: 'The Employer Is a:',
751
803
  name: 'Employer_Type',
@@ -794,16 +846,6 @@ const estateLegalServicesNeeded = (scope) => sbsSelect({
794
846
  ]
795
847
  });
796
848
 
797
- const firstName = (scope) => sbsText({
798
- $formkit: 'text',
799
- label: 'First Name:',
800
- placeholder: 'First',
801
- name: scope ? scope + ':' + 'First_Name' : 'First_Name',
802
- autocomplete: "given-name",
803
- validationMessages: {
804
- required: 'First Name is required'
805
- }
806
- });
807
849
 
808
850
  const TOLPOptions = [
809
851
  'Adoption',
@@ -951,17 +993,6 @@ const incidentDate = (scope) => sbsDate({
951
993
  label: 'Date of Incident:',
952
994
  });
953
995
 
954
- const lastName = (scope) => sbsText({
955
- $formkit: 'text',
956
- label: 'Last Name:',
957
- placeholder: 'Last',
958
- name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
959
- autocomplete: "family-name",
960
- validationMessages: {
961
- required: 'Last Name is required'
962
- }
963
- });
964
-
965
996
  const landlordTenantParty = () => sbsSelect({
966
997
  label: 'I am the:',
967
998
  name: 'Landlord_Tenant_Party',
@@ -1108,24 +1139,6 @@ const pendingCharges = (scope) => sbsYesNoRadio({
1108
1139
  label: 'Do you currently have any pending charges?'
1109
1140
  });
1110
1141
 
1111
- const phone = (scope) => sbsText({
1112
- $formkit: 'tel',
1113
- name: scope ? scope + ':' + 'Primary_Phone' : 'Primary_Phone',
1114
- label: 'Phone Number:',
1115
- placeholder: '###-###-####',
1116
- maxlength: 12,
1117
- help: '10-digit phone number, hyphens optional',
1118
- autocomplete: 'tel-national',
1119
- 'data-tf-sensitive': 'false',
1120
- validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
1121
- validationMessages: {
1122
- required: 'Field is required',
1123
- matches: 'Invalid Phone Format, use ###-###-####',
1124
- valid_phone: 'Invalid Phone Number'
1125
- },
1126
- helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
1127
- });
1128
-
1129
1142
  const primaryInjury = (scope) => sbs2ColRadio({
1130
1143
  name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
1131
1144
  label: 'Primary Injury:',
@@ -1392,21 +1405,6 @@ const wouldLikeLawyerTo = () => sbsRadio({
1392
1405
  ]
1393
1406
  });
1394
1407
 
1395
- const zipcode = (scope) => sbsText({
1396
- label: 'Zip Code:',
1397
- placeholder: '#####',
1398
- name: scope ? scope + ':' + 'Zip' : 'Zip',
1399
- maxlength: 5,
1400
- inputmode: "numeric",
1401
- autocomplete: 'postal-code',
1402
- validation: 'required|matches:/^[0-9]{5}$/',
1403
- validationMessages: {
1404
- required: 'Zip Code is required',
1405
- matches: 'Invalid Zip Code'
1406
- }
1407
- });
1408
-
1409
-
1410
1408
  // ------ Question Groups
1411
1409
 
1412
1410
  // NOTE: name must be unique within a form!
@@ -2245,13 +2243,20 @@ function questionsStepHeadline(updates) {
2245
2243
  function commentsStepHeadline(updates) {
2246
2244
  return {
2247
2245
  $el: 'h3',
2248
- children: updates.headline || 'Additional Case Details',
2246
+ children: updates.headline || 'Additional Details',
2249
2247
  attrs: {
2250
2248
  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 || '')
2251
2249
  }
2252
2250
  }
2253
2251
  }
2254
2252
 
2253
+ function commentsStepHeadlineLegal(updates) {
2254
+ return commentsStepHeadline({
2255
+ headline: updates.headline || 'Additional Case Details',
2256
+ headlineClass: updates.headlineClass
2257
+ })
2258
+ }
2259
+
2255
2260
  function firstAndLastStepHeadline(updates) {
2256
2261
  return {
2257
2262
  $el: 'h3',
@@ -2265,7 +2270,7 @@ function firstAndLastStepHeadline(updates) {
2265
2270
  function contactStepHeadline(updates) {
2266
2271
  return {
2267
2272
  $el: 'h3',
2268
- children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
2273
+ children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL,
2269
2274
  attrs: {
2270
2275
  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 || '')
2271
2276
  }
@@ -2275,7 +2280,7 @@ function contactStepHeadline(updates) {
2275
2280
  function contactStepSubHeadline(updates) {
2276
2281
  return {
2277
2282
  $el: 'h5',
2278
- children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC,
2283
+ children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL,
2279
2284
  attrs: {
2280
2285
  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 || '')
2281
2286
  }
@@ -2315,10 +2320,16 @@ const stepDefaults = (step, stepKey) => ({
2315
2320
  }
2316
2321
  });
2317
2322
 
2318
- function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = undefined, nextStepMap = undefined, autoFocus = undefined) {
2319
- if (typeof nextOnEnter === 'undefined') {
2320
- nextOnEnter = true;
2321
- }
2323
+ function step(name, inputs, updates = {}) {
2324
+ const {
2325
+ nextOnEnter = true,
2326
+ nextOnInput = false,
2327
+ stepKey = undefined,
2328
+ nextStepMap = undefined,
2329
+ triggerRedirectMap = undefined,
2330
+ autoFocus = undefined,
2331
+ } = updates;
2332
+
2322
2333
  if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
2323
2334
  const lastInput = findLastInput(inputs[inputs.length - 1]);
2324
2335
  if (lastInput && nextOnEnter === true) {
@@ -2338,6 +2349,7 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
2338
2349
  id: name,
2339
2350
  name: name,
2340
2351
  nextStepMap: nextStepMap,
2352
+ triggerRedirectMap: triggerRedirectMap,
2341
2353
  autoFocus: autoFocus,
2342
2354
  children: inputs
2343
2355
  }
@@ -2346,6 +2358,34 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
2346
2358
  )
2347
2359
  }
2348
2360
 
2361
+ function contactInfo(updates = {}) {
2362
+ return step(
2363
+ 'contactInfo',
2364
+ [
2365
+ contactStepHeadline(updates),
2366
+ contactStepSubHeadline(updates),
2367
+ trustedFormScript(),
2368
+ email(updates.scope),
2369
+ phone(updates.scope),
2370
+ TCPAConsent(updates.scope),
2371
+ secureIcon()
2372
+ ],
2373
+ { nextOnEnter: false }
2374
+ )
2375
+ }
2376
+
2377
+ function firstAndLastV2(updates = {}) {
2378
+ return step(
2379
+ 'firstAndLast',
2380
+ [
2381
+ firstAndLastStepHeadline(updates),
2382
+ firstName(),
2383
+ lastName()
2384
+ ],
2385
+ updates
2386
+ )
2387
+ }
2388
+
2349
2389
  function generalLegalTOLPAndZip(updates = {}) {
2350
2390
  return step(
2351
2391
  'generalLegalTOLPAndZip',
@@ -2359,10 +2399,7 @@ function generalLegalTOLPAndZip(updates = {}) {
2359
2399
  realEstateTOLPDisplay(),
2360
2400
  zipcode()
2361
2401
  ],
2362
- updates.nextOnEnter,
2363
- updates.nextOnInput,
2364
- updates.stepKey,
2365
- updates.nextStepMap
2402
+ updates
2366
2403
  )
2367
2404
  }
2368
2405
 
@@ -2370,10 +2407,10 @@ function commentsWithBankruptcy(updates = {}) {
2370
2407
  return step(
2371
2408
  'commentsWithBankruptcy',
2372
2409
  [
2373
- commentsStepHeadline(updates),
2410
+ commentsStepHeadlineLegal(updates),
2374
2411
  comments({
2375
- label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL : updates.label,
2376
- placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
2412
+ label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL_LEGAL : updates.label,
2413
+ placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
2377
2414
  inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
2378
2415
  }, updates.scope),
2379
2416
  // TODO: needs scope support
@@ -2390,39 +2427,10 @@ function commentsWithBankruptcy(updates = {}) {
2390
2427
  ],
2391
2428
  }
2392
2429
  ],
2393
- false // nextOnEnter
2430
+ { nextOnEnter: false }
2394
2431
  )
2395
2432
  }
2396
2433
 
2397
- function contactInfo(updates = {}) {
2398
- return step(
2399
- 'contactInfo',
2400
- [
2401
- contactStepHeadline(updates),
2402
- contactStepSubHeadline(updates),
2403
- trustedFormScript(),
2404
- email(updates.scope),
2405
- phone(updates.scope),
2406
- TCPAConsent(updates.scope),
2407
- secureIcon()
2408
- ],
2409
- false, // nextOnEnter
2410
- )
2411
- }
2412
-
2413
- function firstAndLastV2(updates = {}) {
2414
- return step(
2415
- 'firstAndLast',
2416
- [
2417
- firstAndLastStepHeadline(updates),
2418
- firstName(),
2419
- lastName()
2420
- ],
2421
- updates.nextOnEnter
2422
- )
2423
- }
2424
-
2425
-
2426
2434
  const AllTOLPQuestions = () => {
2427
2435
  return [
2428
2436
  AdoptionQuestions(),
@@ -2493,7 +2501,7 @@ function generalLegalTOLPQuestions(updates = {}) {
2493
2501
  return step(
2494
2502
  'TOLPQuestions',
2495
2503
  questions,
2496
- updates.nextOnEnter
2504
+ updates
2497
2505
  )
2498
2506
  }
2499
2507
 
@@ -2636,9 +2644,7 @@ function formProps(updates) {
2636
2644
  return props
2637
2645
  }
2638
2646
 
2639
- const metaDefaults = {
2640
- tcpaLanguage: TCPA_LANGUAGE
2641
- };
2647
+ const metaDefaults = {};
2642
2648
 
2643
2649
  function metaProps(updates) {
2644
2650
  const data = merge(
@@ -2651,7 +2657,7 @@ function metaProps(updates) {
2651
2657
  }
2652
2658
  }
2653
2659
 
2654
- function defaultMetaProps(tolps = null) {
2660
+ function defaultMetaPropsLegal(tolps = null) {
2655
2661
  let commentsPlaceholders = TOLPCommentsPlaceholders;
2656
2662
  let finalHeadlines = TOLPFinalHeadlines;
2657
2663
  let finalSubHeadlines = TOLPFinalSubHeadlines;
@@ -2661,12 +2667,13 @@ function defaultMetaProps(tolps = null) {
2661
2667
  finalSubHeadlines = filterMapByKey(TOLPFinalSubHeadlines, tolps);
2662
2668
  }
2663
2669
  return metaProps({
2664
- defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
2670
+ tcpaLanguage: TCPA_LANGUAGE_LEGAL,
2671
+ defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
2665
2672
  commentsPlaceholders: commentsPlaceholders,
2666
- defaultFinalHeadline: DEFAULT_FINAL_HEADLINE,
2673
+ defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_LEGAL,
2667
2674
  finalHeadlines: finalHeadlines,
2668
- defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE,
2669
- finalSubHeadlines: finalSubHeadlines,
2675
+ defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_LEGAL,
2676
+ finalSubHeadlines: finalSubHeadlines
2670
2677
  })
2671
2678
  }
2672
2679
 
@@ -3110,7 +3117,7 @@ const TOLPFinalSubHeadlines = {
3110
3117
  };
3111
3118
 
3112
3119
  const schema = [
3113
- defaultMetaProps(),
3120
+ defaultMetaPropsLegal(),
3114
3121
  formAnchor(),
3115
3122
  {
3116
3123
  $cmp: 'FormKit',