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