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
|
@@ -17914,22 +17914,30 @@ var flattenObj = (obj) => {
|
|
|
17914
17914
|
return flattened;
|
|
17915
17915
|
};
|
|
17916
17916
|
function prepData(formData) {
|
|
17917
|
-
|
|
17918
|
-
|
|
17919
|
-
|
|
17920
|
-
|
|
17921
|
-
|
|
17922
|
-
|
|
17923
|
-
|
|
17924
|
-
|
|
17925
|
-
|
|
17926
|
-
|
|
17927
|
-
|
|
17928
|
-
|
|
17929
|
-
|
|
17930
|
-
|
|
17931
|
-
|
|
17932
|
-
|
|
17917
|
+
try {
|
|
17918
|
+
var props2 = flattenObj(formData);
|
|
17919
|
+
props2.vid = "";
|
|
17920
|
+
if (typeof window.zar !== "undefined") {
|
|
17921
|
+
props2.vid = window.zar.getVID();
|
|
17922
|
+
}
|
|
17923
|
+
var tf = document.getElementsByName("xxTrustedFormCertUrl");
|
|
17924
|
+
if (tf.length > 0) {
|
|
17925
|
+
props2.Trusted_Form_URL = tf[0].value;
|
|
17926
|
+
dbg("TrustedFormCertUrl", props2.TrustedFormCertUrl);
|
|
17927
|
+
}
|
|
17928
|
+
props2.Domain_Abbrev = window.location.hostname.match(/\b(\w)/g).join("").toUpperCase();
|
|
17929
|
+
var data2 = {
|
|
17930
|
+
post_source: window.location.hostname,
|
|
17931
|
+
vertical: props2.vertical,
|
|
17932
|
+
properties: props2
|
|
17933
|
+
};
|
|
17934
|
+
return data2;
|
|
17935
|
+
} catch (err) {
|
|
17936
|
+
var msg = "failed to prep data: " + err.toString();
|
|
17937
|
+
console.error(msg);
|
|
17938
|
+
rollbar("error", msg);
|
|
17939
|
+
throw err;
|
|
17940
|
+
}
|
|
17933
17941
|
}
|
|
17934
17942
|
function applyOverrides(overrides) {
|
|
17935
17943
|
for (var key of Object.keys(overrides)) {
|