PageSourceSearch

https://cdn.searchenginejournal.com/wp-content/themes/sej/js/efield.js?ver=1786713541

js searchenginejournal.com collected 2026-10-01 06:42:13 UTC 4,974 bytes, 1 lines download raw bytes

1!function () { let e, t = "", s = ""; const n = ['input[name="email"]', "input#email", 'input[type="email"]', ".input.email", 'input[aria-label="Work Email"]', 'input[data-name="EMAIL"]', "input#new_member_email"].join(", "), i = window.location.search.includes("debugjs=1"), o = (...e) => { i && console.log("%c[EFIELD-DEBUG]", "background: #222; color: #bada55; padding: 2px 5px; border-radius: 3px;", ...e) }; function a(e, t = "unknown") { e && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e) ? "input-debounce" !== t && "blur" !== t && window.s_hs_status ? o(`[${t}] Subscriber status already determined or check in progress (s_hs_status=true), skipping redundant check.`) : s !== e ? (o(`[${t}] Executing dynamic check for email: ${e}`), s = e, "input-debounce" !== t && "blur" !== t && (window.s_hs_status = !0), fetch(`/wp-json/hb-callback/v1/check-9862566696dqin827hbn2635a5ecb006074iyu/?email=${encodeURIComponent(e)}`).then((e => { if (!e.ok) throw new Error(`HTTP error! status: ${e.status}`); return e.json() })).then((e => { if (o(`[${t}] Dynamic check API response:`, e), e) { window.hubspot_response = e; "true" === e.hs_is_contact || 1 === e.success || "Contact exists" === e.message ? (window.subscriber_status = "Already Subscribed/Double Sign up", "true" !== e.hs_email_optout_395669051 && "true" !== e.hs_email_optout || (window.subscriber_status = "Already Subscribed/Unsubscribe Sign Up"), window.subscriber_known_optin_status = !0) : (window.subscriber_status = "New", window.subscriber_known_optin_status = !1), window.s_hs_status = !0, e.source = t, window.dispatchEvent(new CustomEvent("sej_email_check_complete", { detail: e })), "function" == typeof window.striggerEvent ? window.striggerEvent("sej_init_subscriber_status") : window.dispatchEvent(new CustomEvent("sej_init_subscriber_status")), function (e) { const t = "true" === e.hs_is_contact || 1 === e.success || "Contact exists" === e.message, s = e.i_want_to_receive_the_latest_search_news_and_updates_from_sej__send_me_actionable_insights_from_ind, n = document.querySelector('[aria-label="IWANTTORECEIVETHELATESTSE"]'), i = document.querySelectorAll(['[data-name^="I-WANT-TO-RECEIVE-THE"]', '[name="i_want_to_receive_the_latest_search_news_and_updates_from_sej__send_me_actionable_insights_from_ind"]', ".sej-agree-chk input"].join(", ")), a = document.querySelectorAll(['div[class*="i_want_to_receive_the_latest_search_news_and_updates_from_sej"]', ".sej-agree-chk", ".hs_i_want_to_receive_the_latest_search_news_and_updates_from_sej__send_me_actionable_insights_from_ind"].join(", ")); if (t) if (i.forEach((e => { e.checked = !0 })), n && (n.value = "true"), "true" === s) { if (o("Subscriber already opted-in: Hiding."), a.forEach((e => { e.style.display = "none", e.classList.add("dnone") })), n) { const e = n.closest(".custom_fields_checkbox_text"); e && (e.style.display = "none") } i.forEach((e => { const t = e.closest(".form-group, .wsf-field-wrapper, .hs-form-field"); t && (t.style.display = "none") })) } else { if (o("Subscriber NOT opted-in: Showing."), a.forEach((e => { e.style.display = "", e.classList.remove("dnone") })), n) { const e = n.closest(".custom_fields_checkbox_text"); e && (e.style.display = "") } i.forEach((e => { const t = e.closest(".form-group, .wsf-field-wrapper, .hs-form-field"); t && (t.style.display = "") })) } [n, ...i].forEach((e => { e && (e.dispatchEvent(new Event("change", { bubbles: !0 })), e.dispatchEvent(new Event("input", { bubbles: !0 }))) })) }(e) } })).catch((e => { console.error(`[${t}] Error in dynamic email check:`, e), window.dispatchEvent(new CustomEvent("sej_email_check_complete", { detail: { hs_is_contact: "false", source: t } })), window.s_hs_status = !0 })).finally((() => { s === e && (s = "") }))) : o(`[${t}] API check already in progress for ${e}, skipping.`) : o(`[${t}] Email empty or invalid format, skipping API check.`) } void 0 === window.s_hs_status && (window.s_hs_status = !1), document.addEventListener("focusout", (function (s) { if (!s.target.matches(n)) return; const i = s.target.value.trim(); i && i !== t && (o(`Focus out: Immediate check for ${i}`), clearTimeout(e), t = i, a(i, "blur")) })), document.addEventListener("input", (function (s) { if (!s.target.matches(n)) return; if (!s.isTrusted && !window.location.search.includes("debugjs=1")) return; const i = s.target.value.trim(); i !== t && (o(`Input change: ${i}`), t = i, window.subscriber_status = "New", clearTimeout(e), e = setTimeout((() => { a(i, "input-debounce") }), 1500)) })); const c = () => { o("Running initial scan for pre-filled email fields..."); const e = document.querySelector(n); if (e && e.value.trim()) { const s = e.value.trim(); o("Pre-filled email detected:", s), t = s, a(s, "prefill-scan") } else o("No pre-filled email detected on load.") }; "complete" === document.readyState || "interactive" === document.readyState ? setTimeout(c, 100) : document.addEventListener("DOMContentLoaded", (() => setTimeout(c, 500))) }();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.