import{Fc as p,La as s,Va as m,rc as l}from"./chunk-GKQGDBUU.js";import{i as c}from"./chunk-QVFSZZWQ.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:42345378061bf3c93df67acfa161b751a7b03cc91f3ede7c1f1cdf2bba62fe26*/
//# sourceMappingURL=chunk-DQ7X5ENA.js.map
