1import{a as c}from"./chunk-SG6YYYAR.js";import{a as i}from"./chunk-CCV6OVMJ.js";import{p}from"./chunk-KLYOBZOA.js";import{Sb as n,va as o}from"./chunk-3XAJQCT5.js";var g=(()=>{let t=class t{constructor(){this.store=o(p),this.CountryCodes=i,this.EnviromentsTypes=c,this.store.select("user").subscribe(e=>this.user=e)}transform(e,...s){let r;switch(this.user.countryId){case i.CHILE:r=this.parseWithoutDecimals(e,"$");break;case i.ARGENTINA:r=this.parseRegular(e,"$");break;case i.PARAGUAY:r=this.parseWithoutDecimals(e,"\u20B2");break;case i.BRASIL:r=this.parseRegular(e,"R$");break;default:r=this.parseRegular(e,"$")}return`${r}`}parseRegular(e,s){let r=parseFloat(e)?.toFixed(2).toString().replace(".",",").replace(/\B(?=(\d{3})+(?!\d))/g,".");return`${s}${r}`}parseWithoutDecimals(e,s){let r=parseFloat(e)?.toFixed(0).toString().replace(".",",").replace(/\B(?=(\d{3})+(?!\d))/g,".");return`${s}${r}`}parseWithRound(e){return Math.round(e).toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")}};t.\u0275fac=function(s){return new(s||t)},t.\u0275pipe=n({name:"kaCurrency",type:t,pure:!0});let a=t;return a})();export{g as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.