import{Na as s,Nc as l,aa as m,sc as p}from"./chunk-AVPM423Z.js";import{i as n}from"./chunk-W5TMGCPH.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:ceac57349051bcddcb40dd2878e0abcb86556d5ceb9d6109d22ac3f1ae3cc7b1*/
//# sourceMappingURL=chunk-6BUG6ZEW.js.map
