import{_ as d}from"./chunk-IOUPS7SC.js";import{Db as l,Ia as r,oc as o,rb as a}from"./chunk-2BMUMDG3.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};
