1import{D as s}from"./site-B0IjnxmE.js";class d{constructor(t){this.validationComponent=t}initElement(){const t=document.querySelectorAll("input[data-confirm]");Array.from(t).forEach(e=>{this.initConfirmPassword(e)}),s.onDynamicContent(document.documentElement,"input[data-confirm]",e=>{e.forEach(n=>{this.initConfirmPassword(n)})})}initConfirmPassword(t){const e=document.getElementById(t.getAttribute("data-confirm"));if(!e)console.warn("Make sure your data-confirm element exists.");else{t.addEventListener("invalid",o=>{o.preventDefault(),this.validationComponent.checkValidation(o)});const n=o=>{const a=e.value,i=t.value;a!=i&&i!=""?(t.setCustomValidity(this.validationComponent.lang.equalto),t.reportValidity()):(t.setCustomValidity(""),t.reportValidity())};t.addEventListener("blur",n),e.addEventListener("blur",n)}}}export{d as PasswordConfirmPlugin};
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.