1import{F as e}from"./preload-helper.CH2ZcK7n.js";import{N as r}from"./dynamicModal.CNh84nx8.js";import"./config.D6suCyLV.js";class s{constructor(i){this._form=$(i),this._mail=this._form.find('input[name="newsletter_subscribe[email]"]')[0],this._submit=this._form.find('button[type="submit"]'),this._privacy=this._form.find("input#newsletter_subscribe_privacy"),this._newsletterApi=new r,this._mailWrapper=this._form.find(".mail-input-wrapper"),this._emailError=this._form.find(".email-error"),this.initHandler()}initHandler(){this._submit.on("click keypress",()=>{const i=this.checkValid(this._mail);this._mailWrapper.toggleClass("mb-4",!i),this._emailError.toggleClass("d-none",i),i&&this._privacy.prop("checked")&&this._newsletterApi.newsletterSubscriptionTracking(this._mail.value)})}checkValid(i){return(i.validity.valid||i.checkValidity())&&this._newsletterApi.validateEmail(i.value)}}const m=t=>{new e,new s($(t).find("#newsletter-module form"))};export{m as default};
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.