https://praisehouston.com/wp-content/plugins/ione-modules/build/ne…/view.js?ver=3c5194a73d9860a975f8
1(()=>{"use strict";const e=window.wp.hooks,t=window.wp.i18n,n=window.wp.url;iOneScriptLoader.mediumPriority(()=>{const i=()=>{document.querySelectorAll(".wp-block-ione-newsletter-sign-up").forEach(e=>{var t,n;(e=>{const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)})(e)&&"yes"!==e.dataset.noticed&&(e.dataset.noticed="yes",window.iOneGA?.sendEvent("newsletter-signup","view",(t=e,`${window.location.origin}${window.location.pathname}:${null!==(n=t?.parentNode?.dataset?.sidebarId)&&void 0!==n?n:"gutenberg-block"}`)))})};"complete"===document.readyState||"interactive"===document.readyState?i():document.addEventListener("DOMContentLoaded",i),window.addEventListener("scroll",i);const o=(e,t,n=!1)=>{let i=e.querySelector(".wp-block-ione-newsletter-sign-up__status");i||(i=document.createElement("p"),i.className="wp-block-ione-newsletter-sign-up__status",i.setAttribute("role","status"),i.setAttribute("aria-live","polite"),e.append(i)),i.textContent=t,i.classList.toggle("wp-block-ione-newsletter-sign-up__status--error",n),i.hidden=!1};document.querySelectorAll(".wp-block-ione-newsletter-sign-up__subscription-form").forEach(i=>{i.addEventListener("submit",async s=>{s.preventDefault();const r=i.querySelector('input[name="email_address"]'),a=i.querySelector('input[name="theme"]'),l=i.querySelector('button[type="submit"]');if(!r||!a||!l)return void o(i,(0,t.__)("The newsletter signup form is unavailable.","ione-modules"),!0);const d=r.value.trim();if(!(0,n.isEmail)(d))return r.setCustomValidity((0,t.__)("Enter a valid email address.","ione-modules")),void r.reportValidity();r.setCustomValidity(""),l.disabled=!0,l.textContent=(0,t.__)("Please wait...","ione-modules");try{const n=await fetch(i.action,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({email_address:d,theme:a.value})}),s=await n.json();if(n.ok&&"success"===s.status)return l.textContent=(0,t.__)("Subscribed","ione-modules"),o(i,s.message),i.closest(".wp-block-ione-newsletter-sign-up").querySelector(".wp-block-ione-newsletter-sign-up__privacy")?.remove(),window.iOneGA?.sendEventDirectly("ui_js_click",{ui_element:"newsletter_signup"}),void(0,e.doAction)("ione_newsletter_sign_up_success",d,i);o(i,s.message||(0,t.__)("We could not complete your signup. Please try again.","ione-modules"),!0)}catch(e){o(i,(0,t.__)("We could not connect. Check your connection and try again.","ione-modules"),!0)}l.disabled=!1,l.textContent=l.dataset.defaultText})})})})();
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.