{ "version": 3, "sources": ["src/app/shared/form-switch/form-list.enum.ts", "src/app/shared/validators/e-mail.validator.ts", "src/app/shared/form-switch/form-swich.service.ts"], "sourcesContent": ["export enum UserFormList {\r\n authentication = 'authentication',\r\n registration = 'registration',\r\n passRecovery = 'passRecovery',\r\n languages = 'languages',\r\n levels = 'levels',\r\n interests = 'interests',\r\n goals = 'goals',\r\n}\r\n", "import { AbstractControl } from '@angular/forms';\r\n\r\nexport class eMailValidator {\r\n static email(control: AbstractControl): { [key: string]: unknown } | null {\r\n let emailPattern =\r\n /^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$/;\r\n let value = control.value;\r\n let result = emailPattern.test(value);\r\n if (result) {\r\n return null;\r\n } else {\r\n return { \"emailIncorrect\": { value: 'VALIDATE_MESSAGES.INCORRECT_EMAIL' }};\r\n }\r\n }\r\n}\r\n", "import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\nimport { UserFormList } from './form-list.enum';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FormSwichService {\r\n [x: string]: any;\r\n constructor() {}\r\n\r\n // Switch user registration\r\n private formsUser$ = new BehaviorSubject( UserFormList.authentication);\r\n public userValue$ = this.formsUser$.asObservable();\r\n\r\n setFormUser(forms: UserFormList): void {\r\n this.formsUser$.next(forms);\r\n }\r\n}\r\n"], "mappings": ";;;;;;AAAA,IAAY;CAAZ,SAAYA,eAAY;AACtB,EAAAA,cAAA,gBAAA,IAAA;AACA,EAAAA,cAAA,cAAA,IAAA;AACA,EAAAA,cAAA,cAAA,IAAA;AACA,EAAAA,cAAA,WAAA,IAAA;AACA,EAAAA,cAAA,QAAA,IAAA;AACA,EAAAA,cAAA,WAAA,IAAA;AACA,EAAAA,cAAA,OAAA,IAAA;AACF,GARY,iBAAA,eAAY,CAAA,EAAA;;;ACElB,IAAO,iBAAP,MAAqB;EACzB,OAAO,MAAM,SAAwB;AACnC,QAAI,eACF;AACF,QAAI,QAAQ,QAAQ;AACpB,QAAI,SAAS,aAAa,KAAK,KAAK;AACpC,QAAI,QAAQ;AACV,aAAO;IACT,OAAO;AACL,aAAO,EAAE,kBAAkB,EAAE,OAAO,oCAAmC,EAAE;IAC3E;EACF;;;;ACNI,IAAO,mBAAP,MAAO,kBAAgB;EAE3B,cAAA;AAGQ,SAAA,aAAa,IAAI,gBAA+B,aAAa,cAAc;AAC5E,SAAA,aAAa,KAAK,WAAW,aAAY;EAJjC;EAMf,YAAY,OAAmB;AAC7B,SAAK,WAAW,KAAK,KAAK;EAC5B;;;uBAVW,mBAAgB;IAAA;EAAA;;4EAAhB,mBAAgB,SAAhB,kBAAgB,WAAA,YAFf,OAAM,CAAA;EAAA;;", "names": ["UserFormList"] }