1window.nextivaDemoFormSubmittedDataLayerBridge||(window.nextivaDemoFormSubmittedDataLayerBridge=!0,document.addEventListener("nextivaDemoFormSubmitted",(function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"nextivaDemoFormSubmitted"})}))),window.addEventListener("message",(function(e){if("hsFormCallback"===e.data.type&&"onReady"===e.data.eventName){const e=document.querySelectorAll(".hbspt-form form, form.hs-form, form.hs-form-private");if(!e?.length)return;e.forEach((e=>{if("1"===e.dataset.nextivaHubspotFormReady)return;e.dataset.nextivaHubspotFormReady="1";const o=e.classList.contains("legacy-styles");let a=!1;const l=(e.closest(".hbspt-form")||e).querySelectorAll(".get-started-popup input.hs-input");l?.forEach((e=>{e.removeAttribute("placeholder")}));const n=e.querySelectorAll("input.hs-input"),i=e.querySelectorAll("select.hs-input"),r=e.querySelectorAll("input.hs-input, select.hs-input");function c(e){e.closest(".hs-form-field")?.classList.toggle("nextiva-empty-field",!a&&!e.value.length)}function d(e){a||e.value.length||(e.closest(".hs-form-field")?.querySelectorAll(".hs-error-msgs, .demo-error-message, .input.error-ct span.invalid.error.red").forEach((e=>{e.dataset.nextivaEmptyErrorHidden="1",e.style.setProperty("display","none","important")})),e.closest(".hs-form-field")?.classList.remove("hs-error"),e.classList.remove("error","invalid"),e.removeAttribute("aria-invalid"))}function u(e){e.closest(".hs-form-field")?.querySelectorAll('[data-nextiva-empty-error-hidden="1"]').forEach((e=>{e.style.removeProperty("display"),delete e.dataset.nextivaEmptyErrorHidden}))}function m(){a=!0,r.forEach(c),r.forEach(u)}n?.forEach((e=>{if(e?.addEventListener("input",(function(){const t=e.closest(".hs-form-field")?.querySelector("label");c(e),e.value.length||a?u(e):d(e),e.value.length>0?(e.classList.add("valid"),e.closest(".get-started-popup")&&t&&(t.style.display="none")):(e.classList.remove("valid"),e.closest(".get-started-popup")&&t&&(t.style.display=""))})),e?.addEventListener("focus",(function(){const t=e.closest(".hs-form-field")?.querySelector("label");c(e),!t||e.value.length||o?t&&e.value.length&&o?t.classList.add("focus-label"):t&&!e.value.length&&o&&(t.classList.add("active"),t.classList.add("focus-label")):t.classList.add("active")})),e?.addEventListener("blur",(function(){const t=e.closest(".hs-form-field")?.querySelector("label");c(e),d(e),window.setTimeout((()=>{d(e)}),0),t&&0===e.value.length&&!o?(t.classList.remove("active"),t.classList.remove("focus-label")):t&&e.value.length>0&&!o||o&&t&&e.value.length>0?(t.classList.add("active"),t.classList.remove("focus-label")):o&&t&&0===e.value.length&&t.classList.remove("focus-label")})),e.value.length>0){const t=e.closest(".hs-form-field")?.querySelector("label");t&&t.classList.add("active")}c(e)})),i?.forEach((e=>{function s(){e.value||(c(e),a?t(e):d(e),document.removeEventListener("click",s))}c(e),e.value&&e.classList.add("valid"),e.addEventListener("click",(function(){document.removeEventListener("click",s),document.addEventListener("click",s)})),e.addEventListener("change",(function(){const s=e.closest(".hs-form-field"),o=s?.querySelector(".hs-error-msgs");c(e),e.value?(e.classList.add("valid"),o&&setTimeout((()=>{o.remove(),e.classList.add("valid")}),200)):a?t(e):d(e)})),e.addEventListener("focus",(function(){const t=e.closest(".input");t?.classList?.toggle("open")})),e.addEventListener("blur",(function(){const t=e.closest(".input");t?.classList?.toggle("open"),c(e),a||d(e)}))})),e.addEventListener("submit",m);const v=e.querySelector(".actions input[type='submit']");
1v?.addEventListener("click",(function(a){if(m(),i.forEach((e=>{e.value||t(e)})),o){let e=!1;n.forEach((t=>{const s=t.closest(".hs-form-field")?.querySelector("label");s&&!t.value.length&&o&&s.classList.add("active"),window.setTimeout((()=>{!e&&t.classList.contains("invalid")&&(e=!0,t.focus())}),100)}))}const l=e.querySelector("input[name='firstname']"),r=e.querySelector("input[name='email']"),c=e.querySelector("input[name='company']"),d=l?.value.trim(),u=c?.value.trim(),v=r?.value.trim();d&&s("form_name",d,600),u&&s("form_company",u,600),v&&s("form_email",v,600)}))}))}function t(e){const t=e.closest(".hs-form-field");if(!t.querySelector(".hs-error-msgs")){const s=document.createElement("ul");s.className="hs-error-msgs inputs-list",s.setAttribute("role","alert");const o=document.createElement("li"),a=document.createElement("label");a.className="hs-error-msg",a.textContent="Please complete this required field.",o.appendChild(a),s.appendChild(o),t.appendChild(s),e.classList.add("invalid"),e.classList.remove("valid")}}function s(e,t,s){const o=new Date(Date.now()+1e3*s).toUTCString(),a=window.location.hostname;document.cookie=`${e}=${encodeURIComponent(t)}; path=/; domain=${a}; expires=${o}; SameSite=Lax`}}));
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.