1const passwordChecker={isValid(pwd){return pwd.length>6&&/[!@#$%^&*(),.?":{}|<>]/.test(pwd)&&/[A-Z]/.test(pwd)},getErrorMessage(){return"Password must be more than 6 characters, include at least one capital letter and one special character."}};class TemplatePasswordJS{constructor(form,input){this.form=form,this.passwordInput=input,this.mount()}mount(){!this.form||!this.passwordInput||(this.errorEl=document.createElement("div"),this.errorEl.className="text-danger mt-1",this.errorEl.hidden=!0,this.passwordInput.insertAdjacentElement("afterend",this.errorEl),this.form.addEventListener("submit",e=>{const pwd=this.passwordInput.value;if(passwordChecker.isValid(pwd)){this.errorEl.hidden=!0,this.passwordInput.classList.remove("is-invalid");return}e.preventDefault(),e.stopImmediatePropagation(),this.errorEl.textContent=passwordChecker.getErrorMessage(),this.errorEl.hidden=!1,this.passwordInput.classList.add("is-invalid")}))}}document.addEventListener("DOMContentLoaded",()=>{new TemplatePasswordJS(document.querySelector("#create_customer"),document.querySelector("#registerCustomerPassword"))}); 2//# sourceMappingURL=/cdn/shop/t/704/assets/template-password.js.map?v=29892562119532359451749217688
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.