{"version":3,"sources":["./src/app/components/login/forgot-password/forgot-password.component.ts","./src/app/components/login/forgot-password/forgot-password.component.html","./src/app/components/login/layout-login/layout-login.component.ts","./src/app/components/login/layout-login/layout-login.component.html","./src/app/components/login/register/register.component.ts","./src/app/components/login/register/register.component.html","./src/app/components/login/login/login.component.ts","./src/app/components/login/login/login.component.html","./src/app/components/login/code-verification/code-verification.component.ts","./src/app/components/login/code-verification/code-verification.component.html","./src/app/components/login/login.module.ts"],"names":[],"mappings":";;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkD;;;;;;;;;;;AAU3C,MAAM,uBAAuB;IAMlC,YACU,EAAkB,EAClB,qBAA4C,EAC5C,aAA4B,EAC5B,MAAc;QAHd,OAAE,GAAF,EAAE,CAAgB;QAClB,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,kBAAa,GAAb,aAAa,CAAe;QAC5B,WAAM,GAAN,MAAM,CAAQ;QAEtB,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;YAC7B,IAAI,GAAG,CAAC,KAAK,EAAE;gBACb,cAAc,CAAC,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;aAClD;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,QAAQ;IACR,CAAC;IAED,iBAAiB;QACf,MAAM,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC,4BAA4B,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;YAC7G,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,EAAE,uEAAuE,EAAE,EAAE,aAAa,EAAE,yBAAyB,EAAE,CAAC,CAAC;YACtJ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YACjC,cAAc,CAAC,UAAU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,aAGvB,4DAAY;QACZ,mFAAoB;6FAMX,WAAW;cAhBvB,sDAAQ;eAAC;gBACR,YAAY,EAAE;oBACZ,yFAAoB;oBACpB,qEAAc;oBACd,8EAAiB;oBACjB,wGAAyB;oBACzB,kGAAuB;iBACxB;gBACD,OAAO,EAAE;oBACP,4DAAY;oBACZ,mFAAoB;oBACpB,4DAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;iBAG9B;aACF","file":"3-es2015.f9d0a6908a6d4d4c83fb.js","sourcesContent":["import { HttpHeaders } from '@angular/common/http';\nimport { Component, OnInit } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { ToastrService } from 'ngx-toastr';\nimport { UserControllerService } from 'projects/auth-swagger-lib';\n\n@Component({\n selector: 'app-forgot-password',\n templateUrl: './forgot-password.component.html',\n styleUrls: ['./forgot-password.component.css']\n})\nexport class ForgotPasswordComponent implements OnInit {\n public fieldTextType: boolean;\n public fieldTextTypeConfirm: boolean;\n public password: any;\n public confirmPassword: any;\n\n constructor(\n private ac: ActivatedRoute,\n private userControllerService: UserControllerService,\n private toastrService: ToastrService,\n private router: Router\n ) {\n this.ac.params.subscribe(res => {\n if (res.token) {\n sessionStorage.setItem('reset_token', res.token);\n }\n });\n }\n\n ngOnInit(): void {\n }\n\n submitNewPassword() {\n const a = this.userControllerService.submitPasswordResetUsingPOST({ password: this.password }).subscribe(res => {\n this.toastrService.warning('', 'Password reset successfully. You can login with your new password now', { positionClass: 'toast-bottom-full-width' });\n this.router.navigate(['/login']);\n sessionStorage.removeItem('reset_token');\n });\n }\n\n toggleFieldTextType(): void {\n this.fieldTextType = !this.fieldTextType;\n }\n\n toggleFieldTextTypeConfirm(): void {\n this.fieldTextTypeConfirm = !this.fieldTextTypeConfirm;\n }\n}\n","
\n
\n
\n \"logo\"\n
\n
\n
\n

\n {{ 'screen_reset.reset_password' | translate}}\n

\n
\n
\n
\n \n
\n \n \n \n
\n
\n
\n\n
\n
\n \n
\n \n \n \n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-layout-login',\n templateUrl: './layout-login.component.html',\n styleUrls: ['./layout-login.component.css']\n})\nexport class LayoutLoginComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n onActivate(event): void {\n window.scroll(0, 0);\n }\n}\n","","import { Component, OnInit } from '@angular/core';\nimport { AbstractControl, FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { Router } from '@angular/router';\nimport { TranslateService } from '@ngx-translate/core';\nimport { ToastrService } from 'ngx-toastr';\nimport { RegisterControllerService, RegisterRequest, TokenControllerService, TokenResponse, ValidateRequest } from 'projects/auth-swagger-lib';\nimport { AuthService } from 'src/app/services/auth.service';\nimport { FileService } from 'src/app/services/file.service';\n\n@Component({\n selector: 'app-register',\n templateUrl: './register.component.html',\n styleUrls: ['./register.component.css']\n})\nexport class RegisterComponent implements OnInit {\n public prefferedCountry = [];\n public fieldTextType: boolean;\n public fieldTextTypeConfirm: boolean;\n public registerUserForm: FormGroup;\n public registerBusinessForm: FormGroup;\n public optionValue = 'individual';\n public entityCurrentStatusDocumentFile: File;\n public personalIdFile: File;\n\n constructor(\n private router: Router,\n private registerControllerService: RegisterControllerService,\n private fb: FormBuilder,\n private fileService: FileService,\n private toastrService: ToastrService,\n private translate: TranslateService\n ) {\n this.prefferedCountry.push('mk');\n }\n\n ngOnInit(): void {\n this.registerUserForm = this.initregisterUserForm();\n this.registerBusinessForm = this.initRegisterBusinessForm();\n }\n\n register(data) {\n data.phone = data.phone.e164Number;\n this.registerControllerService.validateUsingPOST(data).subscribe((res) => {\n data.type = 'register';\n this.router.navigate(['/code-verification', btoa(JSON.stringify(data))]);\n }, error => {\n if (error.status === 409) {\n this.toastrService.error('', this.translate.instant('api_errors.user_already_registered'), { positionClass: 'toast-bottom-full-width' });\n }\n });\n }\n\n async registerB2B(data): Promise {\n if (this.entityCurrentStatusDocumentFile instanceof File) {\n try {\n data.entityCurrentStatusDocumentId = await this.uploadImage(this.entityCurrentStatusDocumentFile);\n } catch (error) {\n console.error(error);\n }\n }\n\n if (this.personalIdFile instanceof File) {\n try {\n data.personalIdId = await this.uploadImage(this.personalIdFile);\n } catch (error) {\n console.error(error);\n }\n }\n\n data.phone = data.phone.e164Number;\n this.registerControllerService.validateB2BUsingPOST(data).subscribe((res) => {\n data.type = 'register';\n data.userType = 'business';\n this.router.navigate(['/code-verification', btoa(JSON.stringify(data))]);\n }, error => {\n console.log('error: ', error);\n if (error.status === 409) {\n // tslint:disable-next-line: max-line-length\n this.toastrService.error('', error.error.message.charAt(0).toUpperCase() + error.error.message.substr(1).toLowerCase(), { positionClass: 'toast-bottom-full-width' });\n }\n });\n }\n\n toggleFieldTextType(): void {\n this.fieldTextType = !this.fieldTextType;\n }\n\n toggleFieldTextTypeConfirm(): void {\n this.fieldTextTypeConfirm = !this.fieldTextTypeConfirm;\n }\n\n onEntityCurrentStatusDocumentUpload(file): void {\n this.entityCurrentStatusDocumentFile = file.target.files[0];\n }\n\n onPersonalIdUpload(file): void {\n this.personalIdFile = file.target.files[0];\n }\n\n uploadImage(file: File): Promise {\n return this.fileService.uploadFile(file);\n }\n\n private initregisterUserForm(): FormGroup {\n return this.fb.group({\n installationId: [sessionStorage.installationId],\n password: [null, Validators.required],\n confirmPassword: [null, Validators.required],\n phone: [null, Validators.required],\n acceptTermsAndConditions: [null, Validators.requiredTrue]\n });\n }\n\n private initRegisterBusinessForm(): FormGroup {\n return this.fb.group({\n installationId: [sessionStorage.installationId],\n companyName: [null, Validators.required],\n companyAddress: [null, Validators.required],\n companyEmail: [null, Validators.required],\n password: [null, Validators.required],\n confirmPassword: [null, Validators.required],\n phone: [null, Validators.required],\n entityCurrentStatusDocumentId: [null],\n personalIdId: [null],\n acceptTermsAndConditions: [null, Validators.requiredTrue]\n });\n }\n\n get password(): AbstractControl { return this.registerUserForm.get('password'); }\n get confirmPassword(): AbstractControl { return this.registerUserForm.get('confirmPassword'); }\n get passwordBusiness(): AbstractControl { return this.registerBusinessForm.get('password'); }\n get confirmPasswordBusiness(): AbstractControl { return this.registerBusinessForm.get('confirmPassword'); }\n\n}\n","
\n
\n
\n \"logo\"\n
\n
\n
\n

\n {{ 'screen_register.register' | translate}}\n

\n\n
\n
\n \n \n
\n\n
\n
\n \n
\n \n \n \n
\n
\n
\n\n
\n
\n \n
\n \n \n \n
\n
\n
\n\n
\n
\n \n \n
\n
\n \n \n
\n
\n\n
\n
\n \n \n
\n
\n\n
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n\n
\n
\n \n
\n
\n\n
\n
\n
\n \n
\n \n \n
\n
\n
\n\n
\n
\n \n
\n \n \n
\n
\n
\n
\n\n
\n
\n \n
\n
\n\n
\n \n \n
\n\n
\n
\n \n
\n \n \n \n
\n
\n
\n\n
\n
\n \n
\n \n \n \n
\n
\n
\n\n
\n
\n \n \n
\n\n
\n \n \n
\n
\n\n
\n
\n \n \n
\n
\n\n
\n \n {{ 'screen_register.button_register' | translate}}\n \n
\n
\n
\n
\n
\n
\n","import { Component, OnInit } from '@angular/core';\nimport { AbstractControl, FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { Router } from '@angular/router';\nimport { TranslateService } from '@ngx-translate/core';\nimport { ToastrService } from 'ngx-toastr';\nimport { TokenControllerService, TokenResponse, UserControllerService } from 'projects/auth-swagger-lib';\nimport { AuthService } from 'src/app/services/auth.service';\n\n@Component({\n selector: 'app-login',\n templateUrl: './login.component.html',\n styleUrls: ['./login.component.css']\n})\nexport class LoginComponent implements OnInit {\n public prefferedCountry = [];\n public fieldTextType: boolean;\n public loginForm: FormGroup;\n\n constructor(\n private router: Router,\n private tokenControllerService: TokenControllerService,\n private fb: FormBuilder,\n private authService: AuthService,\n private toastrService: ToastrService,\n private userControllerService: UserControllerService,\n private translate: TranslateService\n ) {\n this.prefferedCountry.push('mk');\n }\n\n ngOnInit(): void {\n this.loginForm = this.initLoginForm();\n }\n\n login(data) {\n const dataToSend = data;\n dataToSend.phone = dataToSend.phone.e164Number;\n this.tokenControllerService.getTokenUsingPOST(dataToSend).subscribe((res: TokenResponse) => {\n if (res.twoFactorAuthEnabled) {\n dataToSend.type = 'login';\n this.router.navigate(['/code-verification', btoa(JSON.stringify(dataToSend))]);\n } else {\n this.authService.setSession(res);\n this.router.navigate(['/home']);\n }\n }, error => {\n if (error.status === 401) {\n // tslint:disable-next-line: max-line-length\n this.toastrService.error('', this.translate.instant('api_errors.invalid_credentials'), { positionClass: 'toast-bottom-full-width' });\n }\n });\n }\n\n checkBeforeNavigate() {\n if (this.phone && this.phone.value && this.phone.value.e164Number) {\n // tslint:disable-next-line: max-line-length\n this.toastrService.warning('', this.translate.instant('screen_sign_in.we_sent_you_sms_with_reset_link'), { positionClass: 'toast-bottom-full-width' });\n this.userControllerService.requestPasswordResetUsingPOST({ identifier: this.phone.value.e164Number, type: 'phone' }).subscribe(res => { });\n } else {\n // tslint:disable-next-line: max-line-length\n this.toastrService.warning('', this.translate.instant('screen_sign_in.please_enter_your_phone_number'), { positionClass: 'toast-bottom-full-width' });\n }\n }\n\n toggleFieldTextType(): void {\n this.fieldTextType = !this.fieldTextType;\n }\n\n private initLoginForm(): FormGroup {\n return this.fb.group({\n installationId: [sessionStorage.installationId],\n password: [null, Validators.required],\n phone: [null, Validators.required],\n });\n }\n\n get phone(): AbstractControl { return this.loginForm.get('phone'); }\n}\n","
\n
\n
\n \"logo\"\n
\n
\n
\n

\n {{ 'screen_sign_in.sign_in' | translate}}\n

\n
\n
\n \n \n
\n\n
\n
\n \n
\n \n \n \n
\n
\n
\n\n \n\n
\n \n
\n
\n
\n
\n
\n
\n","import { Component, OnInit } from '@angular/core';\nimport { ActivatedRoute, Router, Routes } from '@angular/router';\nimport { ToastrService } from 'ngx-toastr';\nimport { RegisterControllerService, TokenControllerService, TokenResponse } from 'projects/auth-swagger-lib';\nimport { AuthService } from 'src/app/services/auth.service';\n\n@Component({\n selector: 'app-code-verification',\n templateUrl: './code-verification.component.html',\n styleUrls: ['./code-verification.component.css']\n})\nexport class CodeVerificationComponent implements OnInit {\n public selectedUserData: any;\n public codeForVerification = {\n n1: null,\n n2: null,\n n3: null,\n n4: null,\n n5: null,\n n6: null\n };\n\n constructor(\n private ac: ActivatedRoute,\n private tokenControllerService: TokenControllerService,\n private registerControllerService: RegisterControllerService,\n private authService: AuthService,\n private router: Router,\n private toastrService: ToastrService\n ) {\n this.ac.params.subscribe(res => {\n this.selectedUserData = JSON.parse(atob(res.userInfo));\n });\n }\n\n ngOnInit(): void {\n }\n\n verificateCode() {\n const code = this.codeForVerification.n1\n + this.codeForVerification.n2\n + this.codeForVerification.n3\n + this.codeForVerification.n4\n + this.codeForVerification.n5\n + this.codeForVerification.n6;\n\n if (this.selectedUserData.type === 'login') {\n this.tokenControllerService.getTokenUsingPOST(this.selectedUserData, code).subscribe((res: TokenResponse) => {\n if (res.accessToken) {\n this.authService.setSession(res);\n this.router.navigate(['/home']);\n }\n });\n } else if (this.selectedUserData.type === 'register') {\n this.selectedUserData.code = code;\n\n if (this.selectedUserData.userType === 'business') {\n this.registerControllerService.registerB2BUsingPOST(this.selectedUserData).subscribe((res: TokenResponse) => {\n this.toastrService.warning('', 'Your account was send for approval to our admin team',\n { positionClass: 'toast-bottom-full-width' });\n this.router.navigate(['/login']);\n });\n } else {\n this.registerControllerService.registerUsingPOST(this.selectedUserData).subscribe((res: TokenResponse) => {\n // TODO handle 401 when 2FA code is not correct\n if (res.accessToken) {\n this.authService.setSession(res);\n this.router.navigate(['/home']);\n }\n });\n }\n }\n }\n\n onDigitInput(event): void {\n const charCode = (event.which) ? event.which : event.keyCode;\n if (charCode > 31 && (charCode < 48 || charCode > 57) && (charCode < 96 || charCode > 105)) {\n event.preventDefault();\n return;\n } else {\n let element;\n if (event.code !== 'Backspace') {\n element = event.srcElement.nextElementSibling;\n }\n\n if (event.code === 'Backspace') {\n element = event.srcElement.previousElementSibling;\n }\n\n if (element === null) {\n return;\n } else {\n element.focus();\n }\n }\n }\n\n resendCodeValidation() {\n if (this.selectedUserData.type === 'login') {\n this.tokenControllerService.getTokenUsingPOST(this.selectedUserData).subscribe((res: TokenResponse) => { });\n } else if (this.selectedUserData.type === 'register') {\n if (this.selectedUserData.userType === 'business') {\n this.registerControllerService.validateB2BUsingPOST(this.selectedUserData).subscribe((res: TokenResponse) => { });\n } else {\n this.registerControllerService.validateUsingPOST(this.selectedUserData).subscribe((res: TokenResponse) => { });\n }\n }\n }\n}\n","
\n
\n
\n \"logo\"\n
\n
\n
\n

\n {{ 'screen_otp.phone_number_verification' | translate}}\n

\n
\n \n \n
\n
\n
\n \n \n \n \n \n \n
\n
\n
\n\n
\n {{ 'screen_otp.didnt_receive_the_code' | translate}}\n\n \n {{ 'screen_otp.resend' | translate}}\n \n \n
\n\n
\n {{ 'screen_otp.button_verify' | translate}}\n \n
\n
\n
\n
\n
\n
\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ModuleImporterModule } from 'src/app/module-importer.module';\nimport { LayoutLoginComponent } from './layout-login/layout-login.component';\nimport { LoginComponent } from './login/login.component';\nimport { RouterModule, Routes } from '@angular/router';\nimport { RegisterComponent } from './register/register.component';\nimport { CodeVerificationComponent } from './code-verification/code-verification.component';\nimport { ForgotPasswordComponent } from './forgot-password/forgot-password.component';\n\nconst routes: Routes = [\n {\n path: '', component: LayoutLoginComponent, children: [\n { path: '', redirectTo: 'login', pathMatch: 'full' },\n {\n path: 'login',\n // canActivate: [LoginGuard],\n component: LoginComponent\n },\n {\n path: 'register',\n // canActivate: [LoginGuard],\n component: RegisterComponent\n },\n {\n path: 'password-reset/:token',\n // canActivate: [LoginGuard],\n component: ForgotPasswordComponent\n },\n {\n path: 'code-verification/:userInfo',\n // canActivate: [LoginGuard],\n component: CodeVerificationComponent\n },\n // { path: 'otp', canActivate: [LoginGuard], component: OtpComponent },\n // { path: 'forgot-password', canActivate: [LoginGuard], component: ForgotPasswordComponent },\n ]\n },\n];\n@NgModule({\n declarations: [\n LayoutLoginComponent,\n LoginComponent,\n RegisterComponent,\n CodeVerificationComponent,\n ForgotPasswordComponent,\n ],\n imports: [\n CommonModule,\n ModuleImporterModule,\n RouterModule.forChild(routes),\n\n\n ]\n})\nexport class LoginModule { }\n"],"sourceRoot":"webpack:///"}