bhl-forms 0.1.3 → 0.1.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.
Files changed (44) hide show
  1. package/dist/bhl-forms.iife.js +1 -1
  2. package/dist/bhl-forms.modern.iife.js +1 -1
  3. package/dist/bhl-forms.modern.umd.js +1 -1
  4. package/dist/bhl-forms.umd.js +1 -1
  5. package/dist/forms/accidentsAndInjuries.es.js +68 -63
  6. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  7. package/dist/forms/accidentsAndInjuries.json +1 -1
  8. package/dist/forms/childAndFamily.es.js +68 -63
  9. package/dist/forms/childAndFamily.iife.js +1 -1
  10. package/dist/forms/childAndFamily.json +1 -1
  11. package/dist/forms/civilLawsuit.es.js +68 -63
  12. package/dist/forms/civilLawsuit.iife.js +1 -1
  13. package/dist/forms/civilLawsuit.json +1 -1
  14. package/dist/forms/criminal.es.js +69 -79
  15. package/dist/forms/criminal.iife.js +1 -1
  16. package/dist/forms/criminal.json +1 -1
  17. package/dist/forms/employmentAndWorkplace.es.js +68 -63
  18. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  19. package/dist/forms/employmentAndWorkplace.json +1 -1
  20. package/dist/forms/generalLegal.es.js +77 -69
  21. package/dist/forms/generalLegal.iife.js +1 -1
  22. package/dist/forms/generalLegal.json +1 -1
  23. package/dist/forms/generalLegalPopUnder.es.js +77 -69
  24. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  25. package/dist/forms/generalLegalPopUnder.json +1 -1
  26. package/dist/forms/generalLegalPopUnderTF.es.js +77 -69
  27. package/dist/forms/generalLegalPopUnderTF.iife.js +1 -1
  28. package/dist/forms/generalLegalPopUnderTF.json +1 -1
  29. package/dist/forms/harassmentAndDiscrimination.es.js +68 -63
  30. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  31. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  32. package/dist/forms/mechanics.es.js +347 -0
  33. package/dist/forms/mechanics.iife.js +1 -0
  34. package/dist/forms/mechanics.json +1 -0
  35. package/dist/forms/realEstate.es.js +69 -79
  36. package/dist/forms/realEstate.iife.js +1 -1
  37. package/dist/forms/realEstate.json +1 -1
  38. package/dist/forms/testForm.es.js +16 -12
  39. package/dist/forms/testForm.iife.js +1 -1
  40. package/dist/forms/willsAndTrusts.es.js +68 -63
  41. package/dist/forms/willsAndTrusts.iife.js +1 -1
  42. package/dist/forms/willsAndTrusts.json +1 -1
  43. package/dist/main.css +1 -1
  44. package/package.json +1 -1
@@ -0,0 +1,347 @@
1
+ function merge() {
2
+ return Object.assign({}, ...arguments)
3
+ }
4
+
5
+ function JAUrl(pageId) {
6
+ return 'https://justanswer.9pctbx.net/c/2880795/' + pageId + '/9320?sharedid=${properties.vid}&subid1=${properties.Domain_Abbrev}'
7
+ }
8
+
9
+ const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
10
+ const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
11
+
12
+ const formPropDefaults = {
13
+ type: 'form',
14
+ id: 'form',
15
+ config: { validationVisibility: 'submit' },
16
+ onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
17
+ plugins: '$plugins',
18
+ actions: false,
19
+ anchorElement: 'form-anchor',
20
+ prepop: {
21
+ fromURL: true
22
+ },
23
+ errorCodes: {
24
+ 403: { message: "An Error Occurred", abort: false },
25
+ 409: { abort: false },
26
+ 429: "An Error Occurred",
27
+ 504: { message: "An Error Occurred", abort: false },
28
+ },
29
+ formClass: '!t-max-w-[40rem]'
30
+ };
31
+
32
+ function formProps(updates) {
33
+ return merge(
34
+ formPropDefaults,
35
+ updates
36
+ )
37
+ }
38
+
39
+ const formAnchorDefaults = {
40
+ $el: 'div',
41
+ children: [
42
+ {
43
+ $el: 'div',
44
+ attrs: {
45
+ id: 'form-anchor',
46
+ class: 't-absolute',
47
+ style: { top: '-30px', left: 0 }
48
+ }
49
+ }
50
+ ],
51
+ attrs: {
52
+ class: 't-relative'
53
+ }
54
+ };
55
+
56
+ function formAnchor(updates) {
57
+ return merge(
58
+ formAnchorDefaults,
59
+ updates
60
+ )
61
+ }
62
+
63
+ const headlineDefaults = {
64
+ $el: 'h1',
65
+ attrs: {
66
+ 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'
67
+ }
68
+ };
69
+
70
+ function headline(updates) {
71
+ return merge(
72
+ headlineDefaults,
73
+ updates
74
+ )
75
+ }
76
+
77
+ const subHeadlineDefaults = {
78
+ $el: 'h3',
79
+ attrs: {
80
+ class: 't-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10'
81
+ }
82
+ };
83
+
84
+ function subHeadline(updates) {
85
+ return merge(
86
+ subHeadlineDefaults,
87
+ updates
88
+ )
89
+ }
90
+
91
+ const hiddenInputsBase = [
92
+ {
93
+ $formkit: 'hidden',
94
+ name: "gclid",
95
+ value: null
96
+ },
97
+ {
98
+ $formkit: 'hidden',
99
+ name: "campaignid",
100
+ value: null
101
+ },
102
+ {
103
+ $formkit: 'hidden',
104
+ name: "s",
105
+ value: null
106
+ }
107
+ ];
108
+
109
+ const hiddenInputsMechanics = [
110
+ {
111
+ $formkit: 'hidden',
112
+ name: "vertical",
113
+ value: "Mechanics"
114
+ },
115
+ ...hiddenInputsBase
116
+ ];
117
+
118
+ const text = (updates) => {
119
+ return merge({
120
+ $formkit: 'text',
121
+ validation: 'required',
122
+ validationMessages: {
123
+ required: 'Field is required'
124
+ },
125
+ labelClass: 'required'
126
+ }, updates)
127
+ };
128
+
129
+ const sbsText = (updates) => {
130
+ updates.wrapperClass = 'side-by-side t-items-center';
131
+ return text(updates)
132
+ };
133
+
134
+ const textArea = (updates) => {
135
+ return merge({
136
+ $formkit: 'textarea',
137
+ rows: 5,
138
+ maxlength: 500,
139
+ validation: 'required',
140
+ validationMessages: {
141
+ required: 'Field is required'
142
+ },
143
+ innerClass: 't-max-w-xl',
144
+ labelClass: 'required'
145
+ }, updates)
146
+ };
147
+
148
+ const comments = (updates) => textArea(
149
+ merge({
150
+ label: 'Please briefly describe your situation in a few words:',
151
+ name: 'Comments',
152
+ placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
153
+ }, updates)
154
+ );
155
+
156
+ const zipcode = () => sbsText({
157
+ label: 'Zip Code:',
158
+ placeholder: '#####',
159
+ name: 'Zip',
160
+ maxlength: 5,
161
+ inputmode: "numeric",
162
+ autocomplete: 'postal-code',
163
+ validation: 'required|matches:/^[0-9]{5}$/',
164
+ validationMessages: {
165
+ required: 'Zip Code is required',
166
+ matches: 'Invalid Zip Code'
167
+ }
168
+ });
169
+
170
+ const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
171
+
172
+ const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
173
+
174
+ const findLastInput = (n) => {
175
+ if (isInput(n)) {
176
+ return n
177
+ }
178
+ for (var i = n.children.length - 1; i >= 0; i--) {
179
+ if (typeof n.children === 'string') {
180
+ continue
181
+ }
182
+ const child = n.children[i];
183
+ if (isInput(child)) {
184
+ return child
185
+ }
186
+ const res = findLastInput(child);
187
+ if (res) {
188
+ return res
189
+ }
190
+ }
191
+ return null
192
+ };
193
+
194
+ const stepDefaults = (step) => ({
195
+ $el: 'section',
196
+ if: '$stepIsEnabled("' + step + '")',
197
+ attrs: {
198
+ style: {
199
+ if: '$activeStep !== "' + step + '"',
200
+ then: 'display: none;'
201
+ }
202
+ }
203
+ });
204
+
205
+ function step(name, inputs, nextOnEnter = true) {
206
+ if (typeof nextOnEnter === 'undefined') {
207
+ nextOnEnter = true;
208
+ }
209
+ if (inputs && inputs.length && nextOnEnter) {
210
+ const lastInput = findLastInput(inputs[inputs.length - 1]);
211
+ lastInput.onKeypress = NEXT_ON_ENTER;
212
+ }
213
+
214
+ return merge(
215
+ stepDefaults(name),
216
+ {
217
+ children: [
218
+ {
219
+ $formkit: 'group',
220
+ id: name,
221
+ name: name,
222
+ children: inputs
223
+ }
224
+ ]
225
+ }
226
+ )
227
+ }
228
+
229
+ function zipAndComments(updates = {}) {
230
+ return step(
231
+ 'zipAndComments',
232
+ [
233
+ zipcode(),
234
+ comments({
235
+ label: updates.label || DEFAULT_COMMENTS_LABEL,
236
+ placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
237
+ inputClass: 't-h-24',
238
+ })
239
+ ],
240
+ updates.nextOnEnter
241
+ )
242
+ }
243
+
244
+ const formNavigationOnlySubmit = () => ({
245
+ $el: 'div',
246
+ attrs: {
247
+ class: 'step-nav'
248
+ },
249
+ children: [
250
+ {
251
+ $formkit: 'button',
252
+ name: 'hidden_button',
253
+ children: 'Hidden',
254
+ style: {
255
+ if: '$activeStep === $firstStep()',
256
+ then: 'visibility: hidden;'
257
+ }
258
+ },
259
+ {
260
+ $formkit: 'submit',
261
+ name: 'submit_button',
262
+ // TODO ability to customize this
263
+ label: 'Chat Now'
264
+ }
265
+ ]
266
+ });
267
+
268
+ const formDetails = () => ({
269
+ $el: 'pre',
270
+ if: '$urlParam("fdbg", "") == 1',
271
+ children: [
272
+ {
273
+ $el: 'pre',
274
+ children: '$stringify( $get(form).value )',
275
+ attrs: {
276
+ class: 't-text-xs',
277
+ style: 'overflow: scroll'
278
+ }
279
+ },
280
+ {
281
+ $el: 'pre',
282
+ children: ['activeStep: ', '$activeStep'],
283
+ attrs: {
284
+ class: 't-text-xs',
285
+ style: 'overflow: scroll'
286
+ }
287
+ },
288
+ {
289
+ $el: 'pre',
290
+ children: ['stepHistory: ', '$stepHistory'],
291
+ attrs: {
292
+ class: 't-text-xs',
293
+ style: 'overflow: scroll'
294
+ }
295
+ },
296
+ {
297
+ $el: 'pre',
298
+ children: ['stepQueue: ', '$stepQueue'],
299
+ attrs: {
300
+ class: 't-text-xs',
301
+ style: 'overflow: scroll'
302
+ }
303
+ }
304
+ ]
305
+ });
306
+
307
+ const schema = [
308
+ formAnchor(),
309
+ {
310
+ $cmp: 'FormKit',
311
+ props: formProps({
312
+ formId: 'mechanics',
313
+ redirectMap: {
314
+ '*': JAUrl('1448742')
315
+ },
316
+ formClass: '!t-max-w-[36rem]'
317
+ }),
318
+ children: [
319
+ headline({
320
+ children: '$urlParam("hl", "Have Questions for a Mechanic?")',
321
+ if: '$activeStep === $firstStep()'
322
+ }),
323
+ subHeadline({
324
+ children: '$urlParam("shl", "Get Answers Within Minutes!")',
325
+ if: '$activeStep === $firstStep()'
326
+ }),
327
+ ...hiddenInputsMechanics,
328
+ {
329
+ $el: 'div',
330
+ attrs: {
331
+ class: 'form-body'
332
+ },
333
+ children: [
334
+ zipAndComments({
335
+ label: 'Please describe your issue in a few words:',
336
+ placeholder: 'Example: "My 2018 Ford F150 needs transmission work"',
337
+ nextOnEnter: false
338
+ }),
339
+ formNavigationOnlySubmit(),
340
+ formDetails()
341
+ ]
342
+ }
343
+ ]
344
+ }
345
+ ];
346
+
347
+ export { schema as default };
@@ -0,0 +1 @@
1
+ var mechanics=function(){"use strict";function e(){return Object.assign({},...arguments)}const t={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,anchorElement:"form-anchor",prepop:{fromURL:!0},errorCodes:{403:{message:"An Error Occurred",abort:!1},409:{abort:!1},429:"An Error Occurred",504:{message:"An Error Occurred",abort:!1}},formClass:"!t-max-w-[40rem]"};const r={$el:"h1",attrs:{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"}};const i={$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10"}};const s=[{$formkit:"hidden",name:"vertical",value:"Mechanics"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],l=t=>(t.wrapperClass="side-by-side t-items-center",(t=>e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t))(t)),n=t=>(t=>e({$formkit:"textarea",rows:5,maxlength:500,validation:"required",validationMessages:{required:"Field is required"},innerClass:"t-max-w-xl",labelClass:"required"},t))(e({label:"Please briefly describe your situation in a few words:",name:"Comments",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},t)),a=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,o=e=>{if(a(e))return e;for(var t=e.children.length-1;t>=0;t--){if("string"==typeof e.children)continue;const r=e.children[t];if(a(r))return r;const i=o(r);if(i)return i}return null};const d=[e({$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}},u),{$cmp:"FormKit",props:function(r){return e(t,r)}({formId:"mechanics",redirectMap:{"*":(c="1448742","https://justanswer.9pctbx.net/c/2880795/"+c+"/9320?sharedid=${properties.vid}&subid1=${properties.Domain_Abbrev}")},formClass:"!t-max-w-[36rem]"}),children:[function(t){return e(r,t)}({children:'$urlParam("hl", "Have Questions for a Mechanic?")',if:"$activeStep === $firstStep()"}),function(t){return e(i,t)}({children:'$urlParam("shl", "Get Answers Within Minutes!")',if:"$activeStep === $firstStep()"}),...s,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,r,i=!0){void 0===i&&(i=!0),r&&r.length&&i&&(o(r[r.length-1]).onKeypress="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))");return e((e=>({$el:"section",if:'$stepIsEnabled("'+e+'")',attrs:{style:{if:'$activeStep !== "'+e+'"',then:"display: none;"}}}))(t),{children:[{$formkit:"group",id:t,name:t,children:r}]})}("zipAndComments",[l({label:"Zip Code:",placeholder:"#####",name:"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"}}),n({label:t.label||"Please briefly describe your legal issue in a few words:",placeholder:t.placeholder||'$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)',inputClass:"t-h-24"})],t.nextOnEnter)}({label:"Please describe your issue in a few words:",placeholder:'Example: "My 2018 Ford F150 needs transmission work"',nextOnEnter:!1}),{$el:"div",attrs:{class:"step-nav"},children:[{$formkit:"button",name:"hidden_button",children:"Hidden",style:{if:"$activeStep === $firstStep()",then:"visibility: hidden;"}},{$formkit:"submit",name:"submit_button",label:"Chat Now"}]},{$el:"pre",if:'$urlParam("fdbg", "") == 1',children:[{$el:"pre",children:"$stringify( $get(form).value )",attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["activeStep: ","$activeStep"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepHistory: ","$stepHistory"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepQueue: ","$stepQueue"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}];var c,u;return d}();
@@ -0,0 +1 @@
1
+ [{"$el":"div","children":[{"$el":"div","attrs":{"id":"form-anchor","class":"t-absolute","style":{"top":"-30px","left":0}}}],"attrs":{"class":"t-relative"}},{"$cmp":"FormKit","props":{"type":"form","id":"form","config":{"validationVisibility":"submit"},"onSubmit":"$submit($submitUrl, $prepData, $handleRedirect, \"text/plain; charset=UTF-8\")","plugins":"$plugins","actions":false,"anchorElement":"form-anchor","prepop":{"fromURL":true},"errorCodes":{"403":{"message":"An Error Occurred","abort":false},"409":{"abort":false},"429":"An Error Occurred","504":{"message":"An Error Occurred","abort":false}},"formClass":"!t-max-w-[36rem]","formId":"mechanics","redirectMap":{"*":"https://justanswer.9pctbx.net/c/2880795/1448742/9320?sharedid=${properties.vid}&subid1=${properties.Domain_Abbrev}"}},"children":[{"$el":"h1","attrs":{"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"},"children":"$urlParam(\"hl\", \"Have Questions for a Mechanic?\")","if":"$activeStep === $firstStep()"},{"$el":"h3","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10"},"children":"$urlParam(\"shl\", \"Get Answers Within Minutes!\")","if":"$activeStep === $firstStep()"},{"$formkit":"hidden","name":"vertical","value":"Mechanics"},{"$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(\"zipAndComments\")","attrs":{"style":{"if":"$activeStep !== \"zipAndComments\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"zipAndComments","name":"zipAndComments","children":[{"$formkit":"text","validation":"required|matches:/^[0-9]{5}$/","validationMessages":{"required":"Zip Code is required","matches":"Invalid Zip Code"},"labelClass":"required","label":"Zip Code:","placeholder":"#####","name":"Zip","maxlength":5,"inputmode":"numeric","autocomplete":"postal-code","wrapperClass":"side-by-side t-items-center"},{"$formkit":"textarea","rows":5,"maxlength":500,"validation":"required","validationMessages":{"required":"Field is required"},"innerClass":"t-max-w-xl","labelClass":"required","label":"Please describe your issue in a few words:","name":"Comments","placeholder":"Example: \"My 2018 Ford F150 needs transmission work\"","inputClass":"t-h-24"}]}]},{"$el":"div","attrs":{"class":"step-nav"},"children":[{"$formkit":"button","name":"hidden_button","children":"Hidden","style":{"if":"$activeStep === $firstStep()","then":"visibility: hidden;"}},{"$formkit":"submit","name":"submit_button","label":"Chat Now"}]},{"$el":"pre","if":"$urlParam(\"fdbg\", \"\") == 1","children":[{"$el":"pre","children":"$stringify( $get(form).value )","attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["activeStep: ","$activeStep"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepHistory: ","$stepHistory"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepQueue: ","$stepQueue"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}}]}]}]}]
@@ -2,7 +2,7 @@ function merge() {
2
2
  return Object.assign({}, ...arguments)
3
3
  }
4
4
 
5
- function JALegalUrl(pageId) {
5
+ function JAUrl(pageId) {
6
6
  return 'https://justanswer.9pctbx.net/c/2880795/' + pageId + '/9320?sharedid=${properties.vid}&subid1=${properties.Domain_Abbrev}'
7
7
  }
8
8
 
@@ -173,17 +173,7 @@ function secureIcon(updates) {
173
173
  )
174
174
  }
175
175
 
176
- const hiddenInputs = [
177
- {
178
- $formkit: 'hidden',
179
- name: "vertical",
180
- value: "Legal"
181
- },
182
- {
183
- $formkit: 'hidden',
184
- name: "TCPA_Language",
185
- value: "$meta.tcpaLanguage"
186
- },
176
+ const hiddenInputsBase = [
187
177
  {
188
178
  $formkit: 'hidden',
189
179
  name: "gclid",
@@ -201,61 +191,75 @@ const hiddenInputs = [
201
191
  }
202
192
  ];
203
193
 
194
+ const hiddenInputsLegal = [
195
+ {
196
+ $formkit: 'hidden',
197
+ name: "vertical",
198
+ value: "Legal"
199
+ },
200
+ {
201
+ $formkit: 'hidden',
202
+ name: "TCPA_Language",
203
+ value: "$meta.tcpaLanguage"
204
+ },
205
+ ...hiddenInputsBase
206
+ ];
207
+
204
208
 
205
209
  const legalRedirectMapDefaults = {
206
210
  "properties.Type_Of_Legal_Problem": {
207
- 'Adoption': JALegalUrl('565949'),
208
- 'Asbestos and Mesothelioma': JALegalUrl('897042'),
209
- 'Auto and Car Accidents': JALegalUrl('1026554'),
211
+ 'Adoption': JAUrl('565949'),
212
+ 'Asbestos and Mesothelioma': JAUrl('897042'),
213
+ 'Auto and Car Accidents': JAUrl('1026554'),
210
214
  'Bankruptcy': 'https://shareasale.com/r.cfm?b=407913&u=3084319&m=43003&urllink=&afftrack=${properties.vid}',
211
- 'Birth Certificate and Name Change': JALegalUrl('1503011'),
212
- 'Business Lawyers': JALegalUrl('1487960'),
213
- 'Child Custody and Support': JALegalUrl('565949'),
214
- 'Child Custody': JALegalUrl('565949'),
215
- 'Child Support': JALegalUrl('565949'),
216
- 'Civil Lawsuit': JALegalUrl('897042'),
217
- 'Civil Rights and Discrimination': JALegalUrl('897038'),
218
- 'Copyrights and Trademarks': JALegalUrl('1503020'),
219
- 'Family Issues': JALegalUrl('565949'),
220
- 'File a Lawsuit': JALegalUrl('897042'),
221
- 'Defend a Lawsuit': JALegalUrl('897042'),
222
- 'Consumer Lawyers': JALegalUrl('897042'),
223
- 'Criminal and Felony': JALegalUrl('897012'),
224
- 'Debt and Collections': JALegalUrl('1147978'),
225
- 'Divorce and Separation': JALegalUrl('966410'),
226
- 'DUI and DWI': JALegalUrl('897012'),
227
- 'Elder Law': JALegalUrl('565949'),
228
- 'Employment and Workplace': JALegalUrl('897014'),
229
- 'Expungement': JALegalUrl('897012'),
230
- 'Foreclosure': JALegalUrl('565923'),
231
- 'Guardianship': JALegalUrl('565949'),
232
- 'Immigration and Visas': JALegalUrl('565916'),
233
- 'Landlord and Tenant': JALegalUrl('1315025'),
234
- 'Lemon Law': JALegalUrl('1347399'),
235
- 'Medical Malpractice': JALegalUrl('1503025'),
236
- 'Non-Workplace Discrimination': JALegalUrl('1498134'),
237
- 'Non-Workplace Harassment': JALegalUrl('1503017'),
238
- 'Patents and Intellectual Property': JALegalUrl('1503020'),
239
- 'Personal Injury': JALegalUrl('1026554'),
240
- 'Power of Attorney': JALegalUrl('1097602'),
241
- 'Probate and Estates': JALegalUrl('1097602'),
242
- 'Product Liability': JALegalUrl('897042'),
243
- 'Property Damage': JALegalUrl('897042'),
244
- 'Real Estate': JALegalUrl('565923'),
245
- 'Sexual Harassment': JALegalUrl('897015'),
246
- 'Social Security Disability and Insurance': JALegalUrl('897033'),
247
- 'Tax and IRS': JALegalUrl('1147978'),
248
- 'Traffic and Tickets': JALegalUrl('808601'),
249
- 'Unemployment': JALegalUrl('897014'),
250
- 'Vaccination Injury': JALegalUrl('1026554'),
251
- 'Victim of a Crime': JALegalUrl('897012'),
252
- 'Wills and Trusts': JALegalUrl('1097602'),
253
- 'Workers Compensation': JALegalUrl('897014'),
254
- 'Workplace Discrimination': JALegalUrl('1498134'),
255
- 'Workplace Harassment': JALegalUrl('897014'),
256
- 'Wrongful Termination': JALegalUrl('897014')
215
+ 'Birth Certificate and Name Change': JAUrl('1503011'),
216
+ 'Business Lawyers': JAUrl('1487960'),
217
+ 'Child Custody and Support': JAUrl('565949'),
218
+ 'Child Custody': JAUrl('565949'),
219
+ 'Child Support': JAUrl('565949'),
220
+ 'Civil Lawsuit': JAUrl('897042'),
221
+ 'Civil Rights and Discrimination': JAUrl('897038'),
222
+ 'Copyrights and Trademarks': JAUrl('1503020'),
223
+ 'Family Issues': JAUrl('565949'),
224
+ 'File a Lawsuit': JAUrl('897042'),
225
+ 'Defend a Lawsuit': JAUrl('897042'),
226
+ 'Consumer Lawyers': JAUrl('897042'),
227
+ 'Criminal and Felony': JAUrl('897012'),
228
+ 'Debt and Collections': 'https://shareasale.com/r.cfm?b=407913&u=3084319&m=43003&urllink=&afftrack=${properties.vid}',
229
+ 'Divorce and Separation': JAUrl('966410'),
230
+ 'DUI and DWI': JAUrl('897012'),
231
+ 'Elder Law': JAUrl('565949'),
232
+ 'Employment and Workplace': JAUrl('897014'),
233
+ 'Expungement': JAUrl('897012'),
234
+ 'Foreclosure': JAUrl('565923'),
235
+ 'Guardianship': JAUrl('565949'),
236
+ 'Immigration and Visas': JAUrl('565916'),
237
+ 'Landlord and Tenant': JAUrl('1315025'),
238
+ 'Lemon Law': JAUrl('1347399'),
239
+ 'Medical Malpractice': JAUrl('1503025'),
240
+ 'Non-Workplace Discrimination': JAUrl('1498134'),
241
+ 'Non-Workplace Harassment': JAUrl('1503017'),
242
+ 'Patents and Intellectual Property': JAUrl('1503020'),
243
+ 'Personal Injury': JAUrl('1026554'),
244
+ 'Power of Attorney': JAUrl('1097602'),
245
+ 'Probate and Estates': JAUrl('1097602'),
246
+ 'Product Liability': JAUrl('897042'),
247
+ 'Property Damage': JAUrl('897042'),
248
+ 'Real Estate': JAUrl('565923'),
249
+ 'Sexual Harassment': JAUrl('897015'),
250
+ 'Social Security Disability and Insurance': JAUrl('897033'),
251
+ 'Tax and IRS': JAUrl('1147978'),
252
+ 'Traffic and Tickets': JAUrl('808601'),
253
+ 'Unemployment': JAUrl('897014'),
254
+ 'Vaccination Injury': JAUrl('1026554'),
255
+ 'Victim of a Crime': JAUrl('897012'),
256
+ 'Wills and Trusts': JAUrl('1097602'),
257
+ 'Workers Compensation': JAUrl('897014'),
258
+ 'Workplace Discrimination': JAUrl('1498134'),
259
+ 'Workplace Harassment': JAUrl('897014'),
260
+ 'Wrongful Termination': JAUrl('897014')
257
261
  },
258
- '*': JALegalUrl('808601')
262
+ '*': JAUrl('808601')
259
263
  };
260
264
 
261
265
 
@@ -1498,21 +1502,6 @@ const landlordTenantParty = () => sbsSelect({
1498
1502
  ]
1499
1503
  });
1500
1504
 
1501
- const landlordTenantIssue = () => sbsSelect({
1502
- label: 'What is the Landlord / Tenant Issue?',
1503
- name: 'Landlord_Tenant_Issue',
1504
- options: [
1505
- "Environmental Hazards",
1506
- "Eviction",
1507
- "Discrimination",
1508
- "Lease and Rental Agreements",
1509
- "Repairs and Maintenance",
1510
- "Right of Entry and Privacy",
1511
- "Screening and Applications",
1512
- "Other Dispute"
1513
- ]
1514
- });
1515
-
1516
1505
  const lawsuitOtherParty = () => sbsSelect({
1517
1506
  label: 'The Other Party is a:',
1518
1507
  name: 'Lawsuit_Other_Party',
@@ -1984,6 +1973,7 @@ const zipcode = () => sbsText({
1984
1973
  }
1985
1974
  });
1986
1975
 
1976
+
1987
1977
  // ------ Question Groups
1988
1978
 
1989
1979
  // NOTE: name must be unique within a form!
@@ -2023,6 +2013,7 @@ const AsbestosAndMesotheliomaQuestions = () => group(
2023
2013
  {
2024
2014
  if: '$get(Type_Of_Legal_Problem).value == "Asbestos and Mesothelioma"',
2025
2015
  children: [
2016
+ haveAttorney(),
2026
2017
  incidentDate(),
2027
2018
  doctorTreatment(),
2028
2019
  degreeOfInterestHelp()
@@ -2439,7 +2430,6 @@ const LandlordAndTenantQuestions = () => group(
2439
2430
  children: [
2440
2431
  haveAttorney(),
2441
2432
  landlordTenantParty(),
2442
- landlordTenantIssue(),
2443
2433
  degreeOfInterestHelp()
2444
2434
  ]
2445
2435
  }
@@ -3103,7 +3093,7 @@ const schema = [
3103
3093
  children: [
3104
3094
  defaultHeadline(),
3105
3095
  defaultSubHeadline(),
3106
- ...hiddenInputs,
3096
+ ...hiddenInputsLegal,
3107
3097
  {
3108
3098
  $el: 'div',
3109
3099
  attrs: {