bhl-forms 0.8.11 → 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.
@@ -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
- e,
8231
- t,
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 n = rn(e);
8285
- n.vid = "", typeof window.zar != "undefined" && (n.vid = window.zar.getVID());
8286
- var t = document.getElementsByName("xxTrustedFormCertUrl");
8287
- t && t.length > 0 && (n.Trusted_Form_URL = t[0].value, Ee("Trusted_Form_URL", n.Trusted_Form_URL));
8288
- var r = document.getElementsByName("xxTrustedFormPingUrl");
8289
- return r && r.length > 0 && (n.Trusted_Form_Ping_URL = r[0].value, Ee("Trusted_Form_Ping_URL", n.Trusted_Form_Ping_URL)), n.Domain_Abbrev = window.location.hostname.match(/\b(\w)/g).join("").toUpperCase(), {
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: n.vertical,
8292
- properties: n
8289
+ vertical: i.vertical,
8290
+ properties: i
8293
8291
  };
8294
- } catch (n) {
8295
- const i = "failed to prep data: " + n.toString();
8296
- throw console.error(i), rt("error", i), n;
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) {