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.
@@ -6668,7 +6668,7 @@ var {
6668
6668
  if (t && t != "null") {
6669
6669
  if (!(t instanceof Function))
6670
6670
  throw "prepData must be a function";
6671
- o = t(o);
6671
+ o = t(o, u);
6672
6672
  }
6673
6673
  var s = !1;
6674
6674
  try {
@@ -11584,23 +11584,25 @@ var Uq = () => {
11584
11584
  typeof a == "object" && a !== null && !Array.isArray(a) ? Object.assign(r, oi(a)) : r[t] = a;
11585
11585
  }), r;
11586
11586
  };
11587
- function Bq(e) {
11587
+ function Bq(e, r) {
11588
11588
  try {
11589
- var r = oi(e);
11590
- r.vid = "", typeof window.zar != "undefined" && (r.vid = window.zar.getVID());
11591
- var t = document.getElementsByName("xxTrustedFormCertUrl");
11592
- t && t.length > 0 && (r.Trusted_Form_URL = t[0].value, We("Trusted_Form_URL", r.Trusted_Form_URL));
11593
- var a = document.getElementsByName("xxTrustedFormPingUrl");
11594
- a && a.length > 0 && (r.Trusted_Form_Ping_URL = a[0].value, We("Trusted_Form_Ping_URL", r.Trusted_Form_Ping_URL)), r.Domain_Abbrev = window.location.hostname.match(/\b(\w)/g).join("").toUpperCase();
11595
- var n = {
11589
+ var t = oi(e);
11590
+ t.vid = "", typeof window.zar != "undefined" && (t.vid = window.zar.getVID());
11591
+ var a = document.getElementsByName("xxTrustedFormCertUrl");
11592
+ a && a.length > 0 && (t.Trusted_Form_URL = a[0].value, We("Trusted_Form_URL", t.Trusted_Form_URL));
11593
+ var n = document.getElementsByName("xxTrustedFormPingUrl");
11594
+ n && n.length > 0 && (t.Trusted_Form_Ping_URL = n[0].value, We("Trusted_Form_Ping_URL", t.Trusted_Form_Ping_URL)), t.Domain_Abbrev = window.location.hostname.match(/\b(\w)/g).join("").toUpperCase();
11595
+ var i = r.props.attrs.formId || window.location.hostname + "-" + r.props.id;
11596
+ t.form_id = i;
11597
+ var o = {
11596
11598
  post_source: window.location.hostname,
11597
- vertical: r.vertical,
11598
- properties: r
11599
+ vertical: t.vertical,
11600
+ properties: t
11599
11601
  };
11600
- return n;
11601
- } catch (o) {
11602
- var i = "failed to prep data: " + o.toString();
11603
- throw console.error(i), Er("error", i), o;
11602
+ return o;
11603
+ } catch (s) {
11604
+ var u = "failed to prep data: " + s.toString();
11605
+ throw console.error(u), Er("error", u), s;
11604
11606
  }
11605
11607
  }
11606
11608
  function Wq(e) {