bhl-forms 0.8.10 → 0.9.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.
- package/dist/bhl-forms.es.js +19 -21
- package/dist/bhl-forms.iife.js +1 -1
- package/dist/bhl-forms.modern.es.js +17 -15
- package/dist/bhl-forms.modern.iife.js +1 -1
- package/dist/bhl-forms.modern.umd.js +1 -1
- package/dist/bhl-forms.umd.js +4 -4
- package/dist/forms/applianceRepairMinimal.es.js +1037 -0
- package/dist/forms/applianceRepairMinimal.iife.js +1 -0
- package/dist/forms/applianceRepairMinimal.json +13 -0
- package/dist/forms/generalContractors.es.js +4 -4
- package/dist/forms/generalContractors.iife.js +1 -1
- package/dist/forms/generalHomeImprovement.es.js +4 -4
- package/dist/forms/generalHomeImprovement.iife.js +1 -1
- package/dist/forms/generalHomeImprovementThankYou.es.js +4 -4
- package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
- package/dist/forms/windows.es.js +3 -3
- package/dist/forms/windows.iife.js +1 -1
- package/package.json +2 -2
package/dist/bhl-forms.es.js
CHANGED
|
@@ -4476,7 +4476,7 @@ const Nm = new URLSearchParams(window.location.search), Tu = {
|
|
|
4476
4476
|
if (t && t != "null") {
|
|
4477
4477
|
if (!(t instanceof Function))
|
|
4478
4478
|
throw "prepData must be a function";
|
|
4479
|
-
i = t(i);
|
|
4479
|
+
i = t(i, a);
|
|
4480
4480
|
}
|
|
4481
4481
|
let s = !1;
|
|
4482
4482
|
try {
|
|
@@ -8226,15 +8226,11 @@ function vb(e) {
|
|
|
8226
8226
|
}
|
|
8227
8227
|
function As(e, t) {
|
|
8228
8228
|
try {
|
|
8229
|
-
return Ee(t), window._analytics.track(
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
{
|
|
8233
|
-
plugins: {
|
|
8234
|
-
"google-tag-manager": !1
|
|
8235
|
-
}
|
|
8229
|
+
return Ee(t), window._analytics.track(e, t, {
|
|
8230
|
+
plugins: {
|
|
8231
|
+
"google-tag-manager": !1
|
|
8236
8232
|
}
|
|
8237
|
-
), !0;
|
|
8233
|
+
}), !0;
|
|
8238
8234
|
} catch (r) {
|
|
8239
8235
|
const n = "failed to fire event: " + r.toString();
|
|
8240
8236
|
console.warn(n), rt("warning", n);
|
|
@@ -8279,21 +8275,23 @@ const yb = () => window.location.host.replace("webflow.io", "com").split(".").sl
|
|
|
8279
8275
|
typeof n == "object" && n !== null && !Array.isArray(n) ? Object.assign(t, rn(n)) : t[r] = n;
|
|
8280
8276
|
}), t;
|
|
8281
8277
|
};
|
|
8282
|
-
function wb(e) {
|
|
8278
|
+
function wb(e, t) {
|
|
8283
8279
|
try {
|
|
8284
|
-
const
|
|
8285
|
-
|
|
8286
|
-
var
|
|
8287
|
-
|
|
8288
|
-
var
|
|
8289
|
-
|
|
8280
|
+
const i = rn(e);
|
|
8281
|
+
i.vid = "", typeof window.zar != "undefined" && (i.vid = window.zar.getVID());
|
|
8282
|
+
var r = document.getElementsByName("xxTrustedFormCertUrl");
|
|
8283
|
+
r && r.length > 0 && (i.Trusted_Form_URL = r[0].value, Ee("Trusted_Form_URL", i.Trusted_Form_URL));
|
|
8284
|
+
var n = document.getElementsByName("xxTrustedFormPingUrl");
|
|
8285
|
+
n && n.length > 0 && (i.Trusted_Form_Ping_URL = n[0].value, Ee("Trusted_Form_Ping_URL", i.Trusted_Form_Ping_URL)), i.Domain_Abbrev = window.location.hostname.match(/\b(\w)/g).join("").toUpperCase();
|
|
8286
|
+
const a = t.props.attrs.formId || window.location.hostname + "-" + t.props.id;
|
|
8287
|
+
return i.form_id = a, {
|
|
8290
8288
|
post_source: window.location.hostname,
|
|
8291
|
-
vertical:
|
|
8292
|
-
properties:
|
|
8289
|
+
vertical: i.vertical,
|
|
8290
|
+
properties: i
|
|
8293
8291
|
};
|
|
8294
|
-
} catch (
|
|
8295
|
-
const
|
|
8296
|
-
throw console.error(
|
|
8292
|
+
} catch (i) {
|
|
8293
|
+
const a = "failed to prep data: " + i.toString();
|
|
8294
|
+
throw console.error(a), rt("error", a), i;
|
|
8297
8295
|
}
|
|
8298
8296
|
}
|
|
8299
8297
|
function _b(e) {
|