"use strict";(self.webpackChunkNew_Front=self.webpackChunkNew_Front||[]).push([[592],{6480:(a,l,u)=>{u.d(l,{h:()=>o});var r=u(4537);let o=(()=>{class t{constructor(e){this.elementRef=e,this.el=this.elementRef.nativeElement}onInput(e){const n=this.el.value.replace(/[^0-9]/g,"");if(!n)return void(this.el.value="");const i=this.formatNumber(n);this.el.value=i,setTimeout(()=>{this.el.setSelectionRange(this.el.value.length,this.el.value.length)})}formatNumber(e){return e.replace(/\B(?=(\d{3})+(?!\d))/g,",")}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq))},t.\u0275dir=r.lG2({type:t,selectors:[["","myCurrencyFormatter",""]],hostBindings:function(e,c){1&e&&r.NdJ("input",function(i){return c.onInput(i)})}}),t})()}}]);