{ "version": 3, "sources": ["src/app/core/validators/confirm-password-validation.ts"], "sourcesContent": ["import {AbstractControl} from '@angular/forms';\r\nexport class ConfirmPasswordValidation {\r\n static matchPassword(control: AbstractControl) {\r\n const password = control.get('password').value;\r\n const confirmPassword = control.get('confirmPassword').value;\r\n\r\n if (password !== confirmPassword) {\r\n control.get('confirmPassword').setErrors({ConfirmPassword: true});\r\n } else {\r\n return null;\r\n }\r\n }\r\n}\r\n"], "mappings": ";AACM,IAAO,4BAAP,MAAgC;EACpC,OAAO,cAAc,SAAwB;AAC3C,UAAM,WAAW,QAAQ,IAAI,UAAU,EAAE;AACzC,UAAM,kBAAkB,QAAQ,IAAI,iBAAiB,EAAE;AAEvD,QAAI,aAAa,iBAAiB;AAChC,cAAQ,IAAI,iBAAiB,EAAE,UAAU,EAAC,iBAAiB,KAAI,CAAC;IAClE,OAAO;AACL,aAAO;IACT;EACF;;", "names": [] }