bhl-forms 0.0.77 → 0.0.79
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.es.js +24 -16
- package/dist/bhl-forms.iife.js +2 -2
- package/dist/bhl-forms.modern.es.js +24 -16
- package/dist/bhl-forms.modern.iife.js +4 -4
- package/dist/bhl-forms.modern.umd.js +4 -4
- package/dist/bhl-forms.umd.js +2 -2
- package/dist/forms/childAndFamily.es.js +6 -2
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/civilLawsuit.es.js +1 -1
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/criminal.es.js +1 -1
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/generalLegal.es.js +1 -1
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalBankruptcy.es.js +1 -1
- package/dist/forms/generalLegalBankruptcy.iife.js +1 -1
- package/dist/forms/generalLegalBankruptcy.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +1 -1
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/realEstate.es.js +1 -1
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/package.json +1 -1
package/dist/bhl-forms.es.js
CHANGED
|
@@ -11121,22 +11121,30 @@ const flattenObj = (obj) => {
|
|
|
11121
11121
|
return flattened;
|
|
11122
11122
|
};
|
|
11123
11123
|
function prepData(formData) {
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
|
|
11133
|
-
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11138
|
-
|
|
11139
|
-
|
|
11124
|
+
try {
|
|
11125
|
+
const props2 = flattenObj(formData);
|
|
11126
|
+
props2.vid = "";
|
|
11127
|
+
if (typeof window.zar !== "undefined") {
|
|
11128
|
+
props2.vid = window.zar.getVID();
|
|
11129
|
+
}
|
|
11130
|
+
var tf = document.getElementsByName("xxTrustedFormCertUrl");
|
|
11131
|
+
if (tf.length > 0) {
|
|
11132
|
+
props2.Trusted_Form_URL = tf[0].value;
|
|
11133
|
+
dbg("TrustedFormCertUrl", props2.TrustedFormCertUrl);
|
|
11134
|
+
}
|
|
11135
|
+
props2.Domain_Abbrev = window.location.hostname.match(/\b(\w)/g).join("").toUpperCase();
|
|
11136
|
+
const data = {
|
|
11137
|
+
post_source: window.location.hostname,
|
|
11138
|
+
vertical: props2.vertical,
|
|
11139
|
+
properties: props2
|
|
11140
|
+
};
|
|
11141
|
+
return data;
|
|
11142
|
+
} catch (err) {
|
|
11143
|
+
const msg = "failed to prep data: " + err.toString();
|
|
11144
|
+
console.error(msg);
|
|
11145
|
+
rollbar("error", msg);
|
|
11146
|
+
throw err;
|
|
11147
|
+
}
|
|
11140
11148
|
}
|
|
11141
11149
|
function applyOverrides(overrides) {
|
|
11142
11150
|
for (var key of Object.keys(overrides)) {
|