import{Qa as s,Vc as l,ba as m,yc as p}from"./chunk-L6W7X4TF.js";import{i as n}from"./chunk-WH5WJFMZ.js";var h=(()=>{let r=class r{localeId=m(p);static getDecimalForNumber(i,t=1){let e=i.toString().split(".")[1]||"";return e.length>t?+e.substring(0,t):+e}dictionary=[{max:1e3,type:""},{max:1e6,type:"K"},{max:1e9,type:"M"}];transform(i){let t=this.dictionary.find(f=>i<f.max)||this.dictionary[this.dictionary.length-1],o=i/(t.max/1e3),e=Math.floor(o),c=r.getDecimalForNumber(o);return e<10&&c>0?l(parseFloat(`${e}.${c}`),this.localeId)+t.type:`${e}${t.type}`}};n(r,"\u0275fac",function(t){return new(t||r)}),n(r,"\u0275pipe",s({name:"myNumberFormatter",type:r,pure:!0}));let a=r;return a})();export{h as a};
/**i18n:ae7e6707fc51a9e1f6f015929aece8afe43a92a094f09f07f0463afe6c89573f*/
//# sourceMappingURL=chunk-QXM5I4PV.js.map
