import{aa as d}from"./chunk-OGMMZFJL.js";import{Gb as l,La as r,rc as o,ub as a}from"./chunk-QVZULMP5.js";var f=(()=>{class n{constructor(t,i){this.el=t,this.translate=i,this.onInputOrBlur()}onInputOrBlur(){let t=this.el.nativeElement,i=t.validity;i.valueMissing?(t.setCustomValidity(this.translate.instant("REQUIRED_FIELD")),t.title=this.translate.instant("REQUIRED_FIELD")):i.rangeUnderflow?(t.setCustomValidity(this.translate.instant("VALUE_TOO_LOW")),t.title=this.translate.instant("VALUE_TOO_LOW")):i.rangeOverflow?(t.setCustomValidity(this.translate.instant("VALUE_TOO_HIGH")),t.title=this.translate.instant("VALUE_TOO_HIGH")):i.patternMismatch?(t.setCustomValidity(this.translate.instant("INVALID_FORMAT")),t.title=this.translate.instant("INVALID_FORMAT")):(t.setCustomValidity(""),t.title="")}static{this.\u0275fac=function(i){return new(i||n)(a(r),a(d))}}static{this.\u0275dir=l({type:n,selectors:[["","localizedValidate",""]],hostBindings:function(i,e){i&1&&o("input",function(){return e.onInputOrBlur()})("blur",function(){return e.onInputOrBlur()})("invalid",function(){return e.onInputOrBlur()})},inputs:{min:"min",max:"max"}})}}return n})();export{f as a};
