{"version":3,"sources":["./src/app/authentication/login/login.component.html","./src/app/authentication/authentication.module.ts","./src/app/authentication/edit-password/edit-password/edit-password.component.html","./src/app/authentication/authentication-routing.module.ts","./src/app/authentication/login/login.component.ts","./src/app/authentication/edit-password/edit-password/edit-password.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oGAoB4B,qHAAyE,KAArB,yFAAiB;oGACrE,qHAAyF,KAAxC,qjBAAoC;oGAFzF,2JAGM,KAHiH,sGACnH,6YAAyE,0GACzE,6YAAyF,sGAC7F,mDAFO,yIAAgD,oBAAnD,YAAyE,EAAtE,SAAgD,GAChD,yIAA6C,iBAAhD,YAAyF,EAAtF,SAA6C;oGAgBhD,qHAA+E,KAAxB,4FAAoB;oGAD/E,2JAEM,KAFuH,sGACzH,6YAA+E,sGACnF,mDADO,4IAAmD,oBAAtD,YAA+E,EAA5E,SAAmD;oGArClF,sLAiDM,KAjDyD,8EAC3D,wJA+CM,KA/CqB,kFACvB,oMA2CM,KA3CiE,sFACnE,8KAyCM,KAzC2C,0FAC7C,oJAAqD,KAA7B,gGAAwB,MAAK,0FACrD,uKAA6E,KAAnC,sGAA8B,MAAK,0FAC7E;;;;;wBAqCO;MArCoC;;wBAAgC;MAA3E,m0BAqCO,IArCqE,8FACxE,sJAgBM,KAhBkB,kGACpB,wKAEM,KAFqC,sGACvC,4JAAgF,KAAjD,uVAAyC,KAAQ,kGACpF,MAAM,kGACN,uJAOM,KAPmB,sGACrB;;;;;;;;;;;;85CAAwF,0GACxF,6KAIM,KAJ0C,0GAC5C,0LAEO,KAFsD,8GACzD,6KAAoD,+GACxD,MAAO,sGACX,MAAM,kGACV,MAAM,kGACN,8YAGM,kGACV,MAAM,8FACN,sJAeM,KAfkB,kGACpB,wKAEM,KAFqC,sGACvC,yLAAsG,KAAhD,uVAAwC,KAAQ,kGAC1G,MAAM,kGACN,uJAOM,KAPmB,sGACrB;;;;;;;;;;;;85CAAiG,0GACj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,OAAO,CAAC,QAAQ,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;gBACvC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAAE,EAAE;oBACvD,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,eAAe,EAAE,EAAE,UAAU,CAAC,CAAC;gBAC9E,CAAC,CAAC,CAAC;YACL,CAAC,EACD,CAAC,GAAG,EAAE,EAAE;gBACN,IAAG,GAAG,CAAC,KAAK,IAAE,IAAI,EAAC;oBACjB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAAE,EAAE;wBAC1D,IAAI,CAAC,aAAa,CAAC,YAAY,CAC7B,GAAG,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EACzB,QAAQ,CACT,CAAC;oBACJ,CAAC,CAAC,CAAC;iBACJ;qBAAI;oBACH,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAAE,EAAE;wBAC1D,IAAI,CAAC,aAAa,CAAC,YAAY,CAC7B,GAAG,SAAS,CAAC,cAAc,CAAC,EAAE,EAC9B,QAAQ,CACT,CAAC;oBACJ,CAAC,CAAC,CAAC;iBACJ;YACH,CAAC,CACF,CAAC;SACH;aAAK;YACJ,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;SAC1B;IAIH,CAAC;CACF","file":"authentication-authentication-module-ngfactory-es2015.js","sourcesContent":["
\r\n
\r\n
\r\n
\r\n

!Welcome To Euro Claim

\r\n

!First Online Claiming Service

\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n

email is required

\r\n

{{'SYSTEM.EMAI_REQIRED' |translate}}

\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n

Password is required

\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
","import { SharedModule } from './../shared/shared.module';\r\nimport { NgModule } from \"@angular/core\";\r\nimport { CommonModule } from \"@angular/common\";\r\n\r\n\r\nimport { AuthenticationRoutingModule } from \"./authentication-routing.module\";\r\nimport { LoginComponent } from \"./login/login.component\";\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { NgbModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { EditPasswordComponent } from './edit-password/edit-password/edit-password.component';\r\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [LoginComponent, EditPasswordComponent],\r\n imports: [\r\n CommonModule,\r\n AuthenticationRoutingModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n NgbModule,\r\n TranslateModule,\r\n MatSnackBarModule\r\n // SharedModule\r\n ],\r\n \r\n \r\n})\r\nexport class AuthenticationModule {}\r\n","
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n

{{'SYSTEM.REQUIRED' | translate}}

\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n

{{'SYSTEM.REQUIRED' | translate}}

\r\n
\r\n
\r\n

{{'VALIDATION.PASSWORD_NOT_MATCH' | translate}}

\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n
","import { EditPasswordComponent } from \"./edit-password/edit-password/edit-password.component\";\r\nimport { NgModule } from \"@angular/core\";\r\nimport { Routes, RouterModule } from \"@angular/router\";\r\nimport { LoginComponent } from \"./login/login.component\";\r\n\r\nconst routes: Routes = [\r\n { path: \"\", redirectTo: \"login\", pathMatch: \"full\" },\r\n { path: \"login\", component: LoginComponent },\r\n { path: \"editpassword\", component: EditPasswordComponent },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class AuthenticationRoutingModule {}\r\n","import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef } from \"@angular/core\";\r\nimport { FormGroup, FormBuilder, Validators } from \"@angular/forms\";\r\nimport { Router } from \"@angular/router\";\r\nimport { TranslateService } from \"@ngx-translate/core\";\r\nimport { from } from \"rxjs\";\r\nimport { SharedService } from \"src/app/shared/shared.service\";\r\nimport { AuthService } from \"../service/auth.service\";\r\n\r\ndeclare var CryptoJSAesJson: any;\r\n\r\n@Component({\r\n selector: \"app-login\",\r\n templateUrl: \"./login.component.html\",\r\n styleUrls: [\"./login.component.scss\"],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class LoginComponent implements OnInit {\r\n loginForm: FormGroup;\r\n error = \"\";\r\n submitted = false;\r\n constructor(\r\n private formBuilder: FormBuilder,\r\n private _Router: Router,\r\n private _AuthService: AuthService,\r\n public translate: TranslateService,\r\n private sharedService: SharedService,\r\n private cdr: ChangeDetectorRef\r\n ) {\r\n \r\n }\r\n\r\n ngOnInit(): void {\r\n this.initForm();\r\n }\r\n initForm() {\r\n this.loginForm = this.formBuilder.group({\r\n email: [null, [Validators.required, Validators.email]],\r\n password: [null, [Validators.required]],\r\n });\r\n }\r\n\r\n encryptPassword() {\r\n let valueToEncrypt = this.loginForm.value.password;\r\n let encreptionKey = \"euro-claim-management-crypto-aes-key\";\r\n return CryptoJSAesJson.encrypt(valueToEncrypt, encreptionKey);\r\n }\r\n\r\n onSubmit(loginForm: FormGroup) {\r\n this.submitted = true;\r\n this.error = \"\";\r\n if (this.loginForm.invalid) {\r\n this.error = \"Username and Password not valid !\";\r\n return;\r\n } else {\r\n let formData = {\r\n email: loginForm.value.email,\r\n password: this.encryptPassword(),\r\n };\r\n this._AuthService.login(formData).subscribe(\r\n (response) => {\r\n localStorage.setItem(\"userToken\", response.data.access_token);\r\n this._AuthService.saveCurrentUser(); // to decode token and save in currentUser\r\n this._Router.navigate([\"/assignment\"]);\r\n this.translate.get(\"VALIDATION\").subscribe((translate) => {\r\n this.sharedService.notification(\r\n `${translate.SIGN_IN}`,\r\n \"bg-green\"\r\n );\r\n });\r\n },\r\n (err) => {\r\n this.translate.get(\"BACKEDMESSAGE\").subscribe((translate) => {\r\n this.sharedService.notification(\r\n `${translate[err.error]}`,\r\n \"bg-red\"\r\n );\r\n });\r\n }\r\n );\r\n } \r\n }\r\n}\r\n","import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Router } from '@angular/router';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { ProfileService } from 'src/app/profile/profile.service';\r\nimport { SharedService } from 'src/app/shared/shared.service';\r\nimport { AuthService } from '../../service/auth.service';\r\ndeclare var CryptoJSAesJson: any;\r\n\r\n@Component({\r\n selector: 'app-edit-password',\r\n templateUrl: './edit-password.component.html',\r\n styleUrls: ['./edit-password.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class EditPasswordComponent implements OnInit {\r\n passwordForm: FormGroup;\r\n profileData: any;\r\n passwordFlag: boolean = false;\r\n\r\n constructor(\r\n private formBuilder: FormBuilder,\r\n public translate: TranslateService,\r\n public sharedService: SharedService,\r\n private _Router: Router,\r\n private _AuthService: AuthService,\r\n private cdr: ChangeDetectorRef,\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n this.initForm();\r\n }\r\n initForm() {\r\n this.passwordForm = this.formBuilder.group({\r\n id: [null],\r\n new_password: [null, [Validators.required]],\r\n new_password_confirmation: [null, [Validators.required]],\r\n });\r\n }\r\n encryptPassword() {\r\n let valueToEncrypt = this.passwordForm.value.new_password;\r\n let encreptionKey = \"euro-claim-management-crypto-aes-key\";\r\n return CryptoJSAesJson.encrypt(valueToEncrypt, encreptionKey);\r\n }\r\n onSubmit(passwordForm: FormGroup) {\r\n if(this.passwordForm.value.new_password == this.passwordForm.value.new_password_confirmation ){\r\n let formData = {\r\n id: this.passwordForm.value.id,\r\n new_password: this.encryptPassword(),\r\n new_password_confirmation:this.passwordForm.value.new_password_confirmation\r\n };\r\n formData.new_password_confirmation = formData.new_password,\r\n delete formData.id;\r\n this.passwordFlag = false;\r\n this._AuthService.editPassword(formData).subscribe(\r\n (res) => {\r\n this.cdr.detectChanges();\r\n this._Router.navigate([\"/assignment\"]);\r\n this.translate.get(\"VALIDATION\").subscribe((translate) => {\r\n this.sharedService.notification(`${translate.PASSWORD_CHANGE}`, \"bg-green\");\r\n });\r\n },\r\n (err) => {\r\n if(err.error!=null){\r\n this.translate.get(\"BACKEDMESSAGE\").subscribe((translate) => {\r\n this.sharedService.notification(\r\n `${translate[err.error]}`,\r\n \"bg-red\"\r\n );\r\n });\r\n }else{\r\n this.translate.get(\"BACKEDMESSAGE\").subscribe((translate) => {\r\n this.sharedService.notification(\r\n `${translate[`Server Error`]}`,\r\n \"bg-red\"\r\n );\r\n });\r\n } \r\n }\r\n );\r\n }else {\r\n this.passwordFlag = true;\r\n }\r\n\r\n \r\n \r\n }\r\n}\r\n"],"sourceRoot":"webpack:///"}