import{Da as m,bc as l,ea as s,pc as p}from"./chunk-X3RCWQ3R.js";import{i as a}from"./chunk-SR6RTMQI.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:3d16453f213eb5db982e7e7dd90631843ac5d3f860726a614777c3e9e3f9b57e*/
//# sourceMappingURL=chunk-7LXX5K33.js.map
