PageSourceSearch

https://www.schouwburgdekern.be/dist/vite/site/js/validate_field_controller.DNJhoBak.js

js schouwburgdekern.be collected 2026-10-01 16:10:06 UTC 1,462 bytes, 3 lines download raw bytes

1import{C as i}from"./site.4FScMMdi.js";import"./password-strength.AqUmoxgQ.js";class a extends i{constructor(){super(...arguments),this.validation_msg=null,this.initialValue=""}connect(){var t;if(this.validation_msg=((t=this.element.parentNode)==null?void 0:t.querySelector(".validationMsg"))??null,this.updateInitialValue(),!this.validation_msg)return;["text","tel"].includes(this.element.getAttribute("type")??"")&&this.element.addEventListener("change",()=>{this.element.value=this.trimText(this.element.value)});let e;this.element.addEventListener("input",()=>{this.setValid(),window.clearTimeout(e),e=window.setTimeout(()=>{this.onEvent()},1e3)}),this.element.addEventListener("change",()=>{window.clearTimeout(e),this.onEvent()})}onEvent(){if(!this.element.required&&this.element.value===""){this.setValid();return}if(!this.element.checkValidity()){this.setInvalid();return}this.initialValue!==this.element.value&&this.validate()}setInvalid(){var e;this.element.classList.add("checked-invalid"),this.element.setCustomValidity(((e=this.validation_msg)==null?void 0:e.innerText)??"")}setValid(){this.element.classList.remove("checked-invalid"),this.element.setCustomValidity("")}updateInitialValue(){this.initialValue=this.element.value}async validate(){}trimText(e){return typeof e!="string"?e:e.replace(/(^\s*)|(\s*$)/gi,"").replace(/[ ]{2,}/gi," ").replace(/\n +/,`
2`)}}export{a as default};
3//# sourceMappingURL=validate_field_controller.DNJhoBak.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.