import{Ga as s,Oa as m,dc as l,rc as p}from"./chunk-4JM6MIZ5.js";import{i as c}from"./chunk-QJQRWPYR.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:68865f44f2a527c44cf5136a17c76a0ff8308c2bae5c7c8d50070a5fb9847c44*/
//# sourceMappingURL=chunk-J5WP7S7I.js.map
