import{Qa as s,Vc as l,ba as m,yc as p}from"./chunk-NY4TI4KT.js";import{i as n}from"./chunk-IQVXR75E.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:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
//# sourceMappingURL=chunk-PCNKN7TU.js.map
