PageSourceSearch

https://www.lightspeedhq.nl/wp-content/themes/ls/dist/js/forms-emailOnlyFormCtl.chunk.fa3be08f2649a57f2343.js

js lightspeedhq.nl collected 2026-09-24 19:16:00 UTC 1,591 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunklightspeed_marketing=globalThis.webpackChunklightspeed_marketing||[]).push([[2786],{59598(t,e,i){i.r(e),i.d(e,{default:()=>r});var l=i(7955),n=i(81785),a=i(99243),o=i(8166);function s(t,e){this.emailOnlyForm=t,this.event=e,this.emailOnlyFormEmailInput=this.emailOnlyForm.querySelector("input[type=email]")}function r(t){const e=t;e.length>0&&e.forEach(t=>{if(t&&t.dataset.formName.includes("email_only")){t.setAttribute("action",""),new s(t,l.A).init();const e=new a.GU(t);n.d.sendEvent(e.getFormGTMObject("form_in_page"))}})}s.prototype={focusFirstField(t){const e=t.querySelector("[data-form=ls-form] > [data-formfield=ls-form-field] input");e&&e.setAttribute("autofocus","")},populateEmailInput(){if(this.emailOnlyFormEmailInput.value){const t=document.querySelector(".js-lightbox-wrapper");if(t){const e=t.querySelector("input[type=email]");e.setAttribute("value",this.emailOnlyFormEmailInput.value),e.parentElement.classList.add("js-field-valid"),this.focusFirstField(t)}}document.removeEventListener("loadLightbox",this.populateEmailInput.bind(this))},loadLightboxEventHandler(){this.event.addListener("lightboxOpened",this.populateEmailInput.bind(this))},openLightbox(t){const e=this.emailOnlyForm.querySelector("button[type=submit]"),i=decodeURI(e.dataset.ctaUrl);i&&((0,o.default)(t,i),this.loadLightboxEventHandler())},submitHandler(t){t.preventDefault(),this.openLightbox(t)},init(){this.emailOnlyForm.addEventListener("submit",this.submitHandler.bind(this))}}}}]);
2//# sourceMappingURL=forms-emailOnlyFormCtl.chunk.fa3be08f2649a57f2343.js.map

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.