bhl-forms 0.6.5 → 0.6.7
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 +1442 -862
- package/dist/forms/accidentsAndInjuries.iife.js +1 -1
- package/dist/forms/accidentsAndInjuries.json +1 -1
- package/dist/forms/appraisals.es.js +115 -115
- package/dist/forms/appraisals.iife.js +1 -1
- package/dist/forms/childAndFamily.es.js +790 -764
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/childAndFamilySingle.es.js +1136 -757
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -1
- package/dist/forms/civilLawsuit.es.js +2001 -1352
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/coins.es.js +115 -115
- package/dist/forms/coins.iife.js +1 -1
- package/dist/forms/contracts.es.js +1454 -715
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/contracts.json +1 -1
- package/dist/forms/criminal.es.js +1891 -2482
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/employmentAndWorkplace.es.js +2178 -934
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -1
- package/dist/forms/generalLegal.es.js +854 -808
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +854 -807
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderSingle.es.js +4383 -0
- package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -0
- package/dist/forms/generalLegalPopUnderSingle.json +1 -0
- package/dist/forms/generalLegalSingle.es.js +1672 -1629
- package/dist/forms/generalLegalSingle.iife.js +1 -1
- package/dist/forms/generalLegalSingle.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +710 -695
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYou.json +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +1465 -681
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.json +1 -1
- package/dist/forms/malpractice.es.js +1764 -1066
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/malpractice.json +1 -1
- package/dist/forms/mechanics.es.js +115 -115
- package/dist/forms/mechanics.iife.js +1 -1
- package/dist/forms/realEstate.es.js +1557 -1209
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/repossession.es.js +1811 -1085
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/repossession.json +1 -1
- package/dist/forms/ssdi.es.js +672 -672
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -1
- package/dist/forms/testForm.es.js +473 -468
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/forms/testRedirects.es.js +105 -102
- package/dist/forms/testRedirects.iife.js +1 -1
- package/dist/forms/testRedirects.json +1 -1
- package/dist/forms/vets.es.js +115 -115
- package/dist/forms/vets.iife.js +1 -1
- package/dist/forms/willsAndTrusts.es.js +1298 -705
- 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
- package/dist/forms/generalLegalPopUnderTF.es.js +0 -3087
- package/dist/forms/generalLegalPopUnderTF.iife.js +0 -1
- package/dist/forms/generalLegalPopUnderTF.json +0 -1
|
@@ -13,121 +13,6 @@ function RedirectUrlComments(domain, vertical, category) {
|
|
|
13
13
|
const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
|
|
14
14
|
const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
|
|
15
15
|
|
|
16
|
-
const formPropDefaults = {
|
|
17
|
-
type: 'form',
|
|
18
|
-
id: 'form',
|
|
19
|
-
config: { validationVisibility: 'submit' },
|
|
20
|
-
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
|
|
21
|
-
plugins: '$plugins',
|
|
22
|
-
actions: false,
|
|
23
|
-
anchorElement: 'form-anchor',
|
|
24
|
-
useLocalStorage: true,
|
|
25
|
-
prepop: {
|
|
26
|
-
fromURL: true
|
|
27
|
-
},
|
|
28
|
-
errorCodes: {
|
|
29
|
-
403: { message: "An Error Occurred", abort: false },
|
|
30
|
-
409: { abort: false },
|
|
31
|
-
429: "An Error Occurred",
|
|
32
|
-
504: { message: "An Error Occurred", abort: false },
|
|
33
|
-
},
|
|
34
|
-
formClass: '!t-max-w-[40rem]'
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
function formProps(updates) {
|
|
38
|
-
const props = merge(
|
|
39
|
-
formPropDefaults,
|
|
40
|
-
updates
|
|
41
|
-
);
|
|
42
|
-
if (props.formId && !props.name) {
|
|
43
|
-
props.name = props.formId;
|
|
44
|
-
}
|
|
45
|
-
return props
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const formAnchorDefaults = {
|
|
49
|
-
$el: 'div',
|
|
50
|
-
children: [
|
|
51
|
-
{
|
|
52
|
-
$el: 'div',
|
|
53
|
-
attrs: {
|
|
54
|
-
id: 'form-anchor',
|
|
55
|
-
class: 't-absolute',
|
|
56
|
-
style: { top: '-30px', left: 0 }
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
attrs: {
|
|
61
|
-
class: 't-relative'
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
function formAnchor(updates) {
|
|
66
|
-
return merge(
|
|
67
|
-
formAnchorDefaults,
|
|
68
|
-
updates
|
|
69
|
-
)
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function headlineDefaults(updates = {}) {
|
|
73
|
-
return {
|
|
74
|
-
$el: 'h1',
|
|
75
|
-
attrs: {
|
|
76
|
-
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 || '')
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function headline(updates = {}) {
|
|
82
|
-
return merge(
|
|
83
|
-
headlineDefaults(updates),
|
|
84
|
-
updates
|
|
85
|
-
)
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function subHeadlineDefaults(updates = {}) {
|
|
89
|
-
return {
|
|
90
|
-
$el: 'h3',
|
|
91
|
-
attrs: {
|
|
92
|
-
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 || '')
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function subHeadline(updates = {}) {
|
|
98
|
-
return merge(
|
|
99
|
-
subHeadlineDefaults(updates),
|
|
100
|
-
updates
|
|
101
|
-
)
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const hiddenInputsBase = [
|
|
105
|
-
{
|
|
106
|
-
$formkit: 'hidden',
|
|
107
|
-
name: "gclid",
|
|
108
|
-
value: null
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
$formkit: 'hidden',
|
|
112
|
-
name: "campaignid",
|
|
113
|
-
value: null
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
$formkit: 'hidden',
|
|
117
|
-
name: "s",
|
|
118
|
-
value: null
|
|
119
|
-
}
|
|
120
|
-
];
|
|
121
|
-
|
|
122
|
-
const hiddenInputsAppraisals = [
|
|
123
|
-
{
|
|
124
|
-
$formkit: 'hidden',
|
|
125
|
-
name: "vertical",
|
|
126
|
-
value: "Appraisals"
|
|
127
|
-
},
|
|
128
|
-
...hiddenInputsBase
|
|
129
|
-
];
|
|
130
|
-
|
|
131
16
|
const textArea = (updates) => {
|
|
132
17
|
if (updates.name && !updates.id) {
|
|
133
18
|
updates.id = updates.name;
|
|
@@ -303,6 +188,121 @@ const formDetails = () => ({
|
|
|
303
188
|
]
|
|
304
189
|
});
|
|
305
190
|
|
|
191
|
+
const formPropDefaults = {
|
|
192
|
+
type: 'form',
|
|
193
|
+
id: 'form',
|
|
194
|
+
config: { validationVisibility: 'submit' },
|
|
195
|
+
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
|
|
196
|
+
plugins: '$plugins',
|
|
197
|
+
actions: false,
|
|
198
|
+
anchorElement: 'form-anchor',
|
|
199
|
+
useLocalStorage: true,
|
|
200
|
+
prepop: {
|
|
201
|
+
fromURL: true
|
|
202
|
+
},
|
|
203
|
+
errorCodes: {
|
|
204
|
+
403: { message: "An Error Occurred", abort: false },
|
|
205
|
+
409: { abort: false },
|
|
206
|
+
429: "An Error Occurred",
|
|
207
|
+
504: { message: "An Error Occurred", abort: false },
|
|
208
|
+
},
|
|
209
|
+
formClass: '!t-max-w-[40rem]'
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
function formProps(updates) {
|
|
213
|
+
const props = merge(
|
|
214
|
+
formPropDefaults,
|
|
215
|
+
updates
|
|
216
|
+
);
|
|
217
|
+
if (props.formId && !props.name) {
|
|
218
|
+
props.name = props.formId;
|
|
219
|
+
}
|
|
220
|
+
return props
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const formAnchorDefaults = {
|
|
224
|
+
$el: 'div',
|
|
225
|
+
children: [
|
|
226
|
+
{
|
|
227
|
+
$el: 'div',
|
|
228
|
+
attrs: {
|
|
229
|
+
id: 'form-anchor',
|
|
230
|
+
class: 't-absolute',
|
|
231
|
+
style: { top: '-30px', left: 0 }
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
attrs: {
|
|
236
|
+
class: 't-relative'
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
function formAnchor(updates) {
|
|
241
|
+
return merge(
|
|
242
|
+
formAnchorDefaults,
|
|
243
|
+
updates
|
|
244
|
+
)
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
function headlineDefaults(updates = {}) {
|
|
248
|
+
return {
|
|
249
|
+
$el: 'h1',
|
|
250
|
+
attrs: {
|
|
251
|
+
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 || '')
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function headline(updates = {}) {
|
|
257
|
+
return merge(
|
|
258
|
+
headlineDefaults(updates),
|
|
259
|
+
updates
|
|
260
|
+
)
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function subHeadlineDefaults(updates = {}) {
|
|
264
|
+
return {
|
|
265
|
+
$el: 'h3',
|
|
266
|
+
attrs: {
|
|
267
|
+
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 || '')
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
function subHeadline(updates = {}) {
|
|
273
|
+
return merge(
|
|
274
|
+
subHeadlineDefaults(updates),
|
|
275
|
+
updates
|
|
276
|
+
)
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
const hiddenInputsBase = [
|
|
280
|
+
{
|
|
281
|
+
$formkit: 'hidden',
|
|
282
|
+
name: "gclid",
|
|
283
|
+
value: null
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
$formkit: 'hidden',
|
|
287
|
+
name: "campaignid",
|
|
288
|
+
value: null
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
$formkit: 'hidden',
|
|
292
|
+
name: "s",
|
|
293
|
+
value: null
|
|
294
|
+
}
|
|
295
|
+
];
|
|
296
|
+
|
|
297
|
+
const hiddenInputsAppraisals = [
|
|
298
|
+
{
|
|
299
|
+
$formkit: 'hidden',
|
|
300
|
+
name: "vertical",
|
|
301
|
+
value: "Appraisals"
|
|
302
|
+
},
|
|
303
|
+
...hiddenInputsBase
|
|
304
|
+
];
|
|
305
|
+
|
|
306
306
|
const schema = [
|
|
307
307
|
formAnchor(),
|
|
308
308
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var appraisals=function(){"use strict";function e(){return Object.assign({},...arguments)}const t=
|
|
1
|
+
var appraisals=function(){"use strict";function e(){return Object.assign({},...arguments)}const t=(t,r)=>(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"textarea",rows:5,maxlength:500,validation:"required",validationMessages:{required:"Field is required"},innerClass:"t-max-w-xl",labelClass:"required"},t)))(e({name:r?r+":Comments":"Comments",label:"Please briefly describe your situation in a few words:",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},t)),r="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",n="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",i=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,s=e=>{if(i(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(i(r))return r;const n=s(r);if(n)return n}return null},l=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});const a={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,anchorElement:"form-anchor",useLocalStorage:!0,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 o=[{$formkit:"hidden",name:"vertical",value:"Appraisals"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],c=[e({$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}},m),{$cmp:"FormKit",props:function(t){const r=e(a,t);return r.formId&&!r.name&&(r.name=r.formId),r}({formId:"appraisals",redirectMap:{"*":(d="answers-now.com",p="Appraisals",u="Appraisals",function(e,t,r){return"https://listings."+e+"/api/v1/redirect?zone_id=4&sub_id=${properties.vid}&vertical="+encodeURIComponent(t)+"&category="+encodeURIComponent(r)}(d,p,u)+"&Comments=${properties.Comments}")},formClass:"!t-max-w-[36rem]"}),children:[function(t={}){return e(function(e={}){return{$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 "+(e.headlineClass||"")}}}(t),t)}({children:'$urlParam("hl", "Start Here for An Appraisal")',if:"$activeStep === $firstStep()"}),function(t={}){return e(function(e={}){return{$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 "+(e.subheadlineClass||"")}}}(t),t)}({children:'$urlParam("shl", "Get a Valuation Within Minutes!")',if:"$activeStep === $firstStep()"}),...o,{$el:"div",attrs:{class:"form-body"},children:[function(i={}){return function(t,i,a=!0,o=!1,c,d,p){if(void 0===a&&(a=!0),i&&i.length&&(a||o)){const e=s(i[i.length-1]);e&&!0===a&&(e.onKeypress=r),e&&!0===o&&(e.onInput=n)}return e(l(t,c),{children:[{$formkit:"group",id:t,name:t,nextStepMap:d,autoFocus:p,children:i}]})}("comments",[t({label:i.label||"Please briefly describe your legal issue in a few words:",placeholder:i.placeholder||'$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)'})],i.nextOnEnter)}({label:"Please describe your item in a few words:",placeholder:'Example: "I have a vintage painting, old coins, and a fine china set I would like appraised"',nextOnEnter:!1}),function(e={}){return{$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:e.submitLabel||"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"}},{$el:"pre",children:["steps: ","$stepKeys()"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}];var d,p,u,m;return c}();
|