import{Ea as m,cc as l,ea as s,qc as p}from"./chunk-QXV2GR6R.js";import{i as a}from"./chunk-JJ4RDTEF.js";var x=(()=>{let r=class r{constructor(e){a(this,"localeId");a(this,"dictionary",[{max:1e3,type:""},{max:1e6,type:"K"},{max:1e9,type:"M"}]);this.localeId=e}static getDecimalForNumber(e,t=1){let i=e.toString().split(".")[1]||"";return i.length>t?+i.substring(0,t):+i}transform(e){let t=this.dictionary.find(f=>e<f.max)||this.dictionary[this.dictionary.length-1],n=e/(t.max/1e3),i=Math.floor(n),c=r.getDecimalForNumber(n);return i<10&&c>0?p(parseFloat(`${i}.${c}`),this.localeId)+t.type:`${i}${t.type}`}};a(r,"\u0275fac",function(t){return new(t||r)(m(l,16))}),a(r,"\u0275pipe",s({name:"myNumberFormatter",type:r,pure:!0,standalone:!0}));let o=r;return o})();export{x as a};
/**i18n:224bcada6943fe8b17ea60808c2d370cec9507c3bd670ebe71692d099a3befa1*/
//# sourceMappingURL=chunk-WRFB4CHD.js.map
