{"version":3,"sources":["webpack:///./src/app/shared/mask/unmask-control.ts"],"names":["unmaskPhoneControl","model","newVal","value","replace","control","setValue","emitEvent","emitModelToViewChange","emitViewToModelChange"],"mappings":"oMAEM,SAAAA,EAA6BC,GAC/B,IAAMC,EAASD,EAAME,MAAMC,QAAQ,OAAQ,IAC3CH,EAAMI,QAAQC,SAASJ,GACrBK,WAAW,EACXC,uBAAuB,EACvBC,uBAAuB","file":"common.7d53bfee493afe359265.js","sourcesContent":["import { NgControl } from \"@angular/forms\";\n\nexport function unmaskPhoneControl(model: NgControl) {\n const newVal = model.value.replace(/\\D+/g, '');\n model.control.setValue(newVal, {\n emitEvent: true,\n emitModelToViewChange: true,\n emitViewToModelChange: true\n });\n }"],"sourceRoot":""}