import{a as s}from"./chunk-75MTL6QM.js";import{e as c}from"./chunk-HRRQ6NPM.js";import{c as n,f}from"./chunk-V67SIXYX.js";import{c as a,d as m}from"./chunk-YADAVUVK.js";import{od as l,qa as o,va as e}from"./chunk-HEIW4SFT.js";m();l();f();var y=(()=>{class i{constructor(t,r){this.dialogService=t,this.translate=r}validateRebate(t,r){return r&&r>0&&r<this.toNumber(t)?(this.dialogService.openTyped({id:s.DialogRebateValidationServiceError,type:"error",text:this.translate.instant("MaxRebateError",{0:r}),confirmButtonLabel:"OK",denyButtonLabel:null}),!1):!0}toNumber(t){if(t==null||t==="")return 0;let r=typeof t=="string"?a.strToFloat(t):Number(t);return isNaN(r)?0:r}static{this.\u0275fac=function(r){return new(r||i)(e(c),e(n))}}static{this.\u0275prov=o({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{y as a};
