{"version":3,"sources":["./src/app/authentication/authentication-routing.module.ts","./src/app/authentication/authentication.module.ts","./src/app/authentication/change-password/change-password.component.ts","./src/app/authentication/change-password/change-password.component.html","./src/app/authentication/forgot-password/forgot-password.component.html","./src/app/authentication/forgot-password/forgot-password.component.ts","./src/app/authentication/login/login.component.ts","./src/app/authentication/login/login.component.html","./src/app/authentication/otp/otp.component.ts","./src/app/authentication/otp/otp.component.html","./src/app/authentication/process-merchant/process-merchant.component.ts","./src/app/authentication/process-merchant/process-merchant.component.html","./src/app/authentication/process-qb-redirect/process-qb-redirect.component.ts","./src/app/authentication/process-qb-redirect/process-qb-redirect.component.html","./src/app/authentication/process-redirect/process-redirect.component.ts","./src/app/authentication/process-redirect/process-redirect.component.html"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACuD;AAC+D;AAC7D;AACN;AACsC;AACA;;;AAEzF,MAAM,MAAM,GAAW;IACrB,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,kEAAc,EAAE;IAC5C;QACE,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,kEAAc;QACzB,IAAI,EAAE;YACJ,YAAY,EAAE,IAAI;SACnB;KACF;IACD,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,4DAAY,EAAE;IACxC,EAAE,IAAI,EAAE,kBAAkB,EAAE,SAAS,EAAE,kGAAwB,EAAE;IACjE,EAAE,IAAI,EAAE,kBAAkB,EAAE,SAAS,EAAE,kGAAwB,EAAE;IACjE,EAAE,IAAI,EAAE,iBAAiB,EAAE,SAAS,EAAE,gIAA0B,EAAE;CACnE,CAAC;AAMK;UAAM,2BAA2B;;0GAA3B,2BAA2B;4HAA3B,2BAA2B;gIAH7B,CAAC,kEAAqB,CAAC,MAAM,CAAC,CAAC,EAC9B,yDAAY,CAAC,EAAD;;;mIAEX,2BAA2B,oFAF5B,yDAAY,CAAC,EAAD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxBuB;AACmB;AACY;AACrB;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wBAAwB;0HAAxB,wBAAwB;YAAA;gBCXrC,uEAAM;gBACJ,uEAAM;gBACJ,wEAAO;gBAAA,+EAAoB;gBAAA,4DAAQ;gBACrC,4DAAO;gBACP,uEAAM;gBACJ,yEAAkE;gBAChE,oEAAoD;gBACpD,wEAAyG;gBAAA,+EAAoB;gBAAA,4DAAK;gBAClI,oEAAiF;gBACnF,4DAAM;gBACR,4DAAO;gBACT,4DAAO","file":"src_app_authentication_authentication_module_ts.4fc93cdc259f6b457908.js","sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport { ProcessQbRedirectComponent } from 'src/app/authentication/process-qb-redirect/process-qb-redirect.component';\r\nimport { LoginComponent } from './login/login.component';\r\nimport { OtpComponent } from './otp/otp.component';\r\nimport { ProcessMerchantComponent } from './process-merchant/process-merchant.component';\r\nimport { ProcessRedirectComponent } from './process-redirect/process-redirect.component';\r\n\r\nconst routes: Routes = [\r\n { path: 'login', component: LoginComponent },\r\n {\r\n path: 'support/login',\r\n component: LoginComponent,\r\n data: {\r\n isAdminLogin: true,\r\n },\r\n },\r\n { path: 'otp', component: OtpComponent },\r\n { path: 'process-merchant', component: ProcessMerchantComponent },\r\n { path: 'process-redirect', component: ProcessRedirectComponent },\r\n { path: 'qb/authenticate', component: ProcessQbRedirectComponent },\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 { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { AuthenticationRoutingModule } from './authentication-routing.module';\r\nimport { LoginComponent } from './login/login.component';\r\nimport { ChangePasswordComponent } from './change-password/change-password.component';\r\nimport { ForgotPasswordComponent } from './forgot-password/forgot-password.component';\r\nimport { OtpComponent } from './otp/otp.component';\r\nimport { SharedModule } from 'src/app/shared/shared.module';\r\nimport { ProcessMerchantComponent } from './process-merchant/process-merchant.component';\r\nimport { ProcessRedirectComponent } from './process-redirect/process-redirect.component';\r\nimport { ProcessQbRedirectComponent } from './process-qb-redirect/process-qb-redirect.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n LoginComponent,\r\n ChangePasswordComponent,\r\n ForgotPasswordComponent,\r\n OtpComponent,\r\n ProcessMerchantComponent,\r\n ProcessRedirectComponent,\r\n ProcessQbRedirectComponent,\r\n ],\r\n imports: [\r\n CommonModule,\r\n AuthenticationRoutingModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n SharedModule,\r\n ],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\r\n})\r\nexport class AuthenticationModule {}\r\n","import { Component, OnInit, ViewEncapsulation } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { FormGroup, FormControl, Validators } from '@angular/forms';\r\nimport { AuthService } from 'src/app/core/auth.service';\r\nimport { AlertService } from 'src/app/core/alert.service';\r\nimport { AccountService } from '../../shared/services/account.service';\r\n\r\n@Component({\r\n selector: 'app-change-password',\r\n templateUrl: './change-password.component.html',\r\n styleUrls: ['./change-password.component.scss'],\r\n encapsulation: ViewEncapsulation.None\r\n})\r\nexport class ChangePasswordComponent implements OnInit {\r\n _changePassForm: FormGroup;\r\n\r\n clicked: boolean = false;\r\n isAuthenticating: boolean = false;\r\n baseUrl: string = 'account';\r\n userId: number = 0;\r\n email: string = '';\r\n token: any;\r\n tokenExpired: boolean = false;\r\n withResetToken: boolean = false;\r\n loading: boolean;\r\n busy: boolean;\r\n allowedSpecialChars: string[] = ['$', '!', '@'];\r\n\r\n constructor(\r\n private accountSvc: AccountService,\r\n private router: Router,\r\n private authService: AuthService,\r\n private alertService: AlertService,\r\n private route: ActivatedRoute\r\n ) {\r\n this.withResetToken = false;\r\n\r\n this._changePassForm = new FormGroup({\r\n Password: new FormControl(null, [\r\n Validators.required,\r\n Validators.minLength(4),\r\n Validators.maxLength(16),\r\n Validators.pattern('^[A-Za-z0-9$@!]*$'),\r\n ]),\r\n ConfirmPassword: new FormControl(null, [\r\n Validators.required,\r\n Validators.minLength(4),\r\n Validators.maxLength(16),\r\n Validators.pattern('^[A-Za-z0-9$@!]*$'),\r\n ]),\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n this.route.queryParams.subscribe((params) => {\r\n let email = params['email'];\r\n if (email) this.email = email;\r\n //else this.toastr.error('The verification process should have provided your email and we could not find it. Please try to add it on the url.', 'Error');\r\n });\r\n\r\n this.route.params.subscribe((param) => {\r\n let email = param['email'];\r\n if (email) this.email = email;\r\n let t = param['token'];\r\n if (t) {\r\n this.withResetToken = true;\r\n this.token = t;\r\n this.loading = true;\r\n //validate token.\r\n this.accountSvc\r\n .getRequestResetPasswordTicket(this.token)\r\n .subscribe((res: any) => {\r\n if (res.IsExpired || res.TokenUsed) {\r\n this.tokenExpired = true;\r\n }\r\n this.loading = false;\r\n });\r\n }\r\n });\r\n }\r\n\r\n sendPasswordVerification() {\r\n this.busy = true;\r\n this.authService.forgotPasswordRequest(this.email).subscribe(\r\n (res) => {\r\n this.busy = false;\r\n this.alertService.alertSuccess({\r\n title: 'Success',\r\n text: 'An email has been sent!',\r\n });\r\n },\r\n (error) => {\r\n this.alertService.alertError({ title: 'Failed', text: error.error });\r\n this.busy = false;\r\n }\r\n );\r\n }\r\n\r\n changePassword() {\r\n this.clicked = true;\r\n if (!this.form.valid) {\r\n return false;\r\n }\r\n\r\n this.form.disable();\r\n this.isAuthenticating = true;\r\n let payload = Object.assign(\r\n this.form.value,\r\n { Email: this.email },\r\n { Token: this.token }\r\n );\r\n this.accountSvc.changePassword(payload).subscribe(\r\n (res: any) => {\r\n if (!res) {\r\n //this.toastr.error('Something went wrong on your change password request. Please contact administrator', \"Error\");\r\n this.alertService.alertError({\r\n title: 'Failed',\r\n text: 'Something went wrong on your change password request. Please contact administrator',\r\n });\r\n this.form.enable();\r\n this.isAuthenticating = false;\r\n return false;\r\n }\r\n //this.toastr.success('Successfully updated password', 'Success');\r\n this.alertService.alertSuccess({\r\n title: 'Success',\r\n text: 'Password successfully changed!',\r\n });\r\n setTimeout(() => {\r\n this.router.navigateByUrl('auth/login');\r\n }, 3000);\r\n },\r\n (error: any) => {\r\n const validationErrors: string[] = [];\r\n\r\n Object.keys(error.error).map((fieldKey: string) => {\r\n validationErrors.push(error.error[fieldKey].join('. '));\r\n });\r\n\r\n this.alertService.alertError({\r\n title: 'Failed',\r\n text: validationErrors.join(''),\r\n });\r\n\r\n //this.toastr.error(error.error, \"Error\");\r\n this.form.enable();\r\n this.isAuthenticating = false;\r\n return false;\r\n }\r\n );\r\n }\r\n\r\n get form() {\r\n return this._changePassForm;\r\n }\r\n}\r\n","
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n

Welcome to

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

ALSO AVAILABLE IN

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

Change Password

\r\n

\r\n Start managing your team's productivity and efficiency\r\n

\r\n

\r\n Password link has Expired! Please click the button below to resend\r\n new link.\r\n

\r\n \r\n \r\n Send Password Verification\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n Password can only contain numbers, letters or these special\r\n characters ({{ allowedSpecialChars.join(\", \") }}) with a minimum\r\n length of 4 and maximum of 16.\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n Confirm password can only contain numbers, letters or these\r\n special characters ({{ allowedSpecialChars.join(\", \") }}) with a\r\n minimum length of 4 and maximum of 16.\r\n
\r\n
\r\n
\r\n \r\n {{\r\n isAuthenticating ? \"Changing password...\" : \"Change Password\"\r\n }}\r\n\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n

ALSO AVAILABLE IN

\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
\r\n
\r\n \"Login\r\n
\r\n

Welcome to

\r\n
\r\n \"Login\r\n
\r\n
\r\n

ALSO AVAILABLE IN

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

Reset Password

\r\n

Complete the form below to reset your password

\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

ALSO AVAILABLE IN

\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n \"Login\r\n
\r\n","import { Component, OnInit, ViewEncapsulation } from '@angular/core';\r\nimport { AlertService } from 'src/app/core/alert.service';\r\nimport { AuthService } from 'src/app/core/auth.service';\r\n//import { NgxAlertsService } from '@ngx-plus/ngx-alerts';\r\n\r\n@Component({\r\n selector: 'app-forgot-password',\r\n templateUrl: './forgot-password.component.html',\r\n styleUrls: ['./forgot-password.component.scss'],\r\n encapsulation: ViewEncapsulation.None\r\n})\r\nexport class ForgotPasswordComponent implements OnInit {\r\n\r\n public requestEmail: string; \r\n busy: boolean = false;\r\n\r\n constructor(private alertService: AlertService,\r\n private authService: AuthService) { }\r\n\r\n ngOnInit() {\r\n\r\n }\r\n\r\n submit(){\r\n this.busy = true;\r\n this.authService.forgotPasswordRequest(this.requestEmail).subscribe(res => {\r\n this.alertService.alertSuccess({title: \"Success\", text:\"An email has been sent.\"});\r\n this.busy = false;\r\n }, (error)=> {\r\n this.alertService.alertError({title: \"Failed\", text: error.error});\r\n this.busy = false;\r\n });\r\n }\r\n\r\n}\r\n","import {\r\n ViewEncapsulation,\r\n Component,\r\n Inject,\r\n OnDestroy,\r\n OnInit,\r\n} from '@angular/core';\r\nimport { FormGroup, FormControl, Validators } from '@angular/forms';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { ApiService } from 'src/app/shared/services/api.service';\r\nimport { environment } from 'src/environments/environment';\r\nimport { UserLocation } from 'src/app/shared/models/userlocation.model';\r\nimport { AuthService } from 'src/app/core/auth.service';\r\nimport { AlertService } from 'src/app/core/alert.service';\r\nimport {\r\n MsalBroadcastService,\r\n MsalGuardConfiguration,\r\n MsalService,\r\n MSAL_GUARD_CONFIG,\r\n} from '@azure/msal-angular';\r\nimport { filter, takeUntil } from 'rxjs/operators';\r\nimport {\r\n InteractionStatus,\r\n PopupRequest,\r\n RedirectRequest,\r\n} from '@azure/msal-browser';\r\nimport { Subject } from 'rxjs';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { AccountService } from 'src/app/shared/services/account.service';\r\nimport { b2cPolicies, cashJarScopes } from 'src/azureConfigs/auth-config';\r\nimport { UserBase } from '../../core/user-base';\r\nimport { CookieService } from 'ngx-cookie-service';\r\n\r\ndeclare var window: any;\r\n@Component({\r\n selector: 'app-login',\r\n templateUrl: './login.component.html',\r\n styleUrls: ['./login.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class LoginComponent implements OnInit, OnDestroy {\r\n public user: UserBase;\r\n _loginForm: FormGroup;\r\n\r\n baseUrl: string = '';\r\n clicked: boolean = false;\r\n busy: boolean = false;\r\n showImpersonationField: boolean = false;\r\n loggedInUser: any[] = [];\r\n userName: any;\r\n isUserProcessing: boolean = false;\r\n isAdminLogin: boolean = false;\r\n adminClicks: number = 0;\r\n adminModeClicksRequired: number = 7;\r\n\r\n private readonly _destroy = new Subject();\r\n\r\n constructor(\r\n public authService: AuthService,\r\n private router: Router,\r\n private route: ActivatedRoute,\r\n private alert: AlertService,\r\n @Inject(MSAL_GUARD_CONFIG) private msalGuardConfig: MsalGuardConfiguration,\r\n private msalBroadCastService: MsalBroadcastService,\r\n private authMsalService: MsalService,\r\n private accountService: AccountService,\r\n private cookieService: CookieService\r\n ) {\r\n this.user = new UserBase();\r\n this._loginForm = new FormGroup({\r\n Username: new FormControl(null, [Validators.required]),\r\n Email: new FormControl(null),\r\n Password: new FormControl(null, [Validators.required]),\r\n SignInAsAdmin: new FormControl(false),\r\n ImpersonationEmail: new FormControl(null),\r\n ImpersonationCode: new FormControl(null),\r\n });\r\n this.baseUrl = environment.accountAPIRoot;\r\n }\r\n\r\n get form() {\r\n return this._loginForm;\r\n }\r\n\r\n ngOnInit() {\r\n this.route.queryParams.subscribe((param) => {\r\n if (param.impersonatedUser) {\r\n this.busy = true;\r\n this.accountService\r\n .impersonateUser({\r\n ...param,\r\n isCustomerSupport: true,\r\n })\r\n .subscribe((res: any) => {\r\n this.user.setUserInfo(res.UserInfo);\r\n this.user.setIsAlternativeLogin(true);\r\n this.authService.setToken(res.Token);\r\n this.authService.setAuthStatus(true);\r\n this.getUserLocationDetails(res.UserInfo.LocationId);\r\n this.router.navigateByUrl('/portal/dashboard');\r\n localStorage.setItem('isCustomerSupport', 'true');\r\n this.busy = false;\r\n });\r\n }\r\n });\r\n\r\n this.route.data.subscribe((data) => {\r\n this.isAdminLogin = data.isAdminLogin;\r\n });\r\n\r\n // Save cookie for later use on merchant redirection\r\n const hostPieces: string[] = window.location.host.split('.');\r\n // Merchant URI\r\n this.cookieService.set(\r\n 'merchantUri',\r\n window.location.origin,\r\n 1,\r\n '/',\r\n `.${hostPieces[1]}.${hostPieces[2]}`\r\n );\r\n\r\n // Merchant subdomain\r\n this.cookieService.set(\r\n 'merchantSubdomain',\r\n hostPieces[0],\r\n 1,\r\n '/',\r\n `.${hostPieces[1]}.${hostPieces[2]}`\r\n );\r\n\r\n if (!this.isAdminLogin) {\r\n this.accountService.migrateUsersToApigee().subscribe(() => {});\r\n this.msalBroadCastService.inProgress$\r\n .pipe(\r\n filter(\r\n (interactionStatus: InteractionStatus) =>\r\n interactionStatus == InteractionStatus.None\r\n ),\r\n takeUntil(this._destroy)\r\n )\r\n .subscribe((x) => {\r\n this.loggedInUser = this.authMsalService.instance.getAllAccounts();\r\n if (\r\n this.loggedInUser.length > 0 &&\r\n this.loggedInUser[0].environment === b2cPolicies.authorityDomain\r\n ) {\r\n this.isUserProcessing = true;\r\n this.accountService.getUserProfile().subscribe(\r\n (res: any) => {\r\n localStorage.removeItem('isCustomerSupport');\r\n this.user.setUserInfo(res.UserInfo);\r\n this.user.setIsAlternativeLogin(false);\r\n this.getUserLocationDetails(res.UserInfo.LocationId);\r\n this.router.navigate(['portal/dashboard']);\r\n },\r\n (error) => {\r\n this.isUserProcessing = false;\r\n this.alert\r\n .alertError({\r\n title: 'Error!',\r\n text: error.error,\r\n })\r\n .then(() => {\r\n this.authMsalService.logout();\r\n });\r\n }\r\n );\r\n } else {\r\n // Remove all auth related cache\r\n this.cookieService.deleteAll();\r\n localStorage.removeItem('access_token');\r\n localStorage.removeItem('refresh_token');\r\n localStorage.removeItem('authenticated');\r\n localStorage.removeItem('currentUser');\r\n localStorage.removeItem('currentLocation');\r\n localStorage.removeItem('isAlternativeLogin');\r\n this.router.navigate(['auth/login']);\r\n }\r\n });\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this._destroy.next(undefined);\r\n this._destroy.complete();\r\n }\r\n\r\n debugModeClick(): void {\r\n this.adminClicks++;\r\n\r\n if (this.adminClicks === 7) {\r\n this.adminClicks = 0;\r\n this.router.navigate(['auth/support/login']);\r\n }\r\n }\r\n\r\n login() {\r\n this.clicked = true;\r\n if (!this.form.valid) {\r\n return false;\r\n }\r\n\r\n this.busy = true;\r\n this.form.disable();\r\n //@TODO : Handle this if we will enable the Merchant Login Capability\r\n let isAdmin = this.form.controls['SignInAsAdmin'].value;\r\n if (isAdmin) {\r\n this.form.controls['Email'].setValue(\r\n this.form.controls['Username'].value\r\n );\r\n this.baseUrl = environment.adminAPIRoot;\r\n }\r\n this.authService.login(this.form.value).subscribe(\r\n (res: any) => {\r\n if (res) {\r\n if (res.Token != null && res.Token.AccessToken != null) {\r\n localStorage.removeItem('pending_otp_username');\r\n localStorage.removeItem('pending_otp_password');\r\n localStorage.removeItem('pending_otp_userid');\r\n localStorage.removeItem('pending_otpHasPhoneNumber');\r\n localStorage.removeItem('pending_otpHasMicrosoftAuth');\r\n localStorage.removeItem('isCustomerSupport');\r\n this.user.setUserInfo(res.UserInfo);\r\n this.user.setIsAlternativeLogin(true);\r\n this.authService.setToken(res.Token);\r\n this.authService.setAuthStatus(true);\r\n this.router.navigateByUrl('/portal/dashboard');\r\n\r\n //set location details\r\n this.getUserLocationDetails(res.UserInfo.LocationId);\r\n } else {\r\n localStorage.setItem('pending_otp', JSON.stringify(true));\r\n localStorage.setItem(\r\n 'pending_otp_username',\r\n this.form.value.Username\r\n );\r\n localStorage.setItem(\r\n 'pending_otp_password',\r\n this.form.value.Password\r\n );\r\n localStorage.setItem('pending_otp_userid', res.Id);\r\n localStorage.setItem(\r\n 'pending_otpHasPhoneNumber',\r\n JSON.stringify(res.PhoneNumber != null && res.PhoneNumber != '')\r\n );\r\n localStorage.setItem(\r\n 'pending_otpHasMicrosoftAuth',\r\n JSON.stringify(res.IsMsoftAuthenticatorEnabled)\r\n );\r\n this.router.navigateByUrl('/auth/otp');\r\n }\r\n }\r\n },\r\n (error: any) => {\r\n this.busy = false;\r\n this.alert.alertError({\r\n title: 'Login Failed!',\r\n text:\r\n error.error.error && error.error.error.message\r\n ? error.error.error.message\r\n : error.error,\r\n });\r\n this.form.enable();\r\n },\r\n () => {\r\n this.busy = false;\r\n this.form.enable();\r\n }\r\n );\r\n }\r\n\r\n getUserLocationDetails(locationid: number) {\r\n this.authService.getLocationById(locationid).subscribe(\r\n (res: any) => {\r\n if (res) {\r\n const userlocation = new UserLocation();\r\n userlocation.LocationId = res.locationComplete.Id;\r\n userlocation.Public_API_Key = res.locationComplete.API_Key;\r\n this.user.setUserLocation(userlocation);\r\n }\r\n },\r\n (error: any) => {},\r\n () => {}\r\n );\r\n }\r\n\r\n loginViaAzure() {\r\n if (!this.isUserProcessing) {\r\n const userFlowRequest = {\r\n scopes: cashJarScopes,\r\n state: `merchantUri=${window.location.origin}`,\r\n } as RedirectRequest;\r\n\r\n if (this.msalGuardConfig.authRequest) {\r\n this.authMsalService.loginRedirect({\r\n ...this.msalGuardConfig.authRequest,\r\n ...userFlowRequest,\r\n } as RedirectRequest);\r\n } else {\r\n this.authMsalService.loginRedirect(userFlowRequest);\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

Welcome to

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

ALSO AVAILABLE IN

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

Login

\r\n

Start managing your business with efficiency

\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 \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n {{ busy ? \"Signing in... \" : \"Sign in\" }}\r\n \r\n \r\n
\r\n \r\n
\r\n This login page is for the support users only.\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n \r\n {{\r\n isUserProcessing\r\n ? \"Redirecting...\"\r\n : \"Sign in to Payments Manager+\"\r\n }}\r\n \r\n
\r\n
\r\n
\r\n
\r\n

ALSO AVAILABLE IN

\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 { Component, OnInit, ViewEncapsulation } from '@angular/core';\r\nimport { FormGroup, FormControl, Validators } from '@angular/forms';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { ApiService } from 'src/app/shared/services/api.service';\r\nimport { environment } from 'src/environments/environment';\r\nimport { UserBase } from 'src/app/shared/libraries/user-base';\r\nimport { UserLocation } from 'src/app/shared/models/userlocation.model';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { AuthService } from 'src/app/core/auth.service';\r\nimport { AlertService } from 'src/app/core/alert.service';\r\n\r\ndeclare var window: any;\r\n@Component({\r\n selector: 'app-otp',\r\n templateUrl: './otp.component.html',\r\n styleUrls: ['./otp.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class OtpComponent implements OnInit {\r\n public user: UserBase;\r\n _loginForm: FormGroup;\r\n\r\n baseUrl: string = '';\r\n clicked: boolean = false;\r\n isVerifying: boolean = false;\r\n isSendingOtp: boolean = false;\r\n showImpersonationField: boolean = false;\r\n hasPhoneNumber: boolean = false;\r\n resendingOtp: boolean = false;\r\n hasMicrosoftAuth: boolean = false;\r\n hasOtpOption: boolean = false;\r\n verifyingCode: boolean = false;\r\n otpGenerated: boolean = false;\r\n\r\n constructor(\r\n public authService: AuthService,\r\n private router: Router,\r\n private route: ActivatedRoute,\r\n private alert: AlertService,\r\n private toastr: ToastrService\r\n ) {\r\n this.user = new UserBase();\r\n this._loginForm = new FormGroup({\r\n OTP: new FormControl(null, [Validators.required]),\r\n DestType: new FormControl(null),\r\n });\r\n this.baseUrl = environment.accountAPIRoot;\r\n toastr.toastrConfig.enableHtml = true;\r\n }\r\n\r\n get form() {\r\n return this._loginForm;\r\n }\r\n\r\n ngOnInit() {\r\n this.route.params.subscribe((param) => {\r\n let code = param['code'];\r\n this.showImpersonationField = false;\r\n if (code) {\r\n this.showImpersonationField = true;\r\n let impersonationEmail = this._loginForm.controls.ImpersonationEmail;\r\n impersonationEmail.setValidators([Validators.required]);\r\n impersonationEmail.updateValueAndValidity();\r\n\r\n let impersonationCode = this._loginForm.controls.ImpersonationCode;\r\n impersonationCode.setValue(code);\r\n impersonationCode.updateValueAndValidity();\r\n }\r\n });\r\n\r\n this.hasPhoneNumber =\r\n localStorage.getItem('pending_otpHasPhoneNumber') == 'true';\r\n this.hasMicrosoftAuth =\r\n localStorage.getItem('pending_otpHasMicrosoftAuth') == 'true';\r\n\r\n let pendingOtp = localStorage.getItem('pending_otp') == 'true';\r\n\r\n if (this.hasPhoneNumber || this.hasMicrosoftAuth) {\r\n this.hasOtpOption = true;\r\n }\r\n\r\n if (!this.hasOtpOption && pendingOtp) {\r\n this.generateOtp();\r\n }\r\n //window.Beacon('init', '2bb53041-d190-4cfa-a4c6-bb6f43ccbb8d');\r\n }\r\n\r\n generateOtp() {\r\n this.isSendingOtp = true;\r\n let userId = parseInt(localStorage.getItem('pending_otp_userid'));\r\n let destType =\r\n this.form.value.DestType == null ? 1 : this.form.value.DestType;\r\n this.authService\r\n .generateOtp(userId, destType)\r\n .subscribe((res: any) => {\r\n if (res.IsSuccess) {\r\n this.hasPhoneNumber = false;\r\n localStorage.removeItem('pending_otpHasPhoneNumber');\r\n this.otpGenerated = true;\r\n }\r\n })\r\n .add(() => {\r\n this.isSendingOtp = false;\r\n });\r\n }\r\n\r\n resendOtp() {\r\n if (this.resendingOtp) return;\r\n\r\n this.resendingOtp = true;\r\n let userId = parseInt(localStorage.getItem('pending_otp_userid'));\r\n let destType =\r\n this.form.value.DestType == null ? 1 : this.form.value.DestType;\r\n this.authService.generateOtp(userId, destType).subscribe((res: any) => {\r\n if (res.IsSuccess) {\r\n this.hasPhoneNumber = false;\r\n this.toastr.success(\r\n 'Your One Time Password was sent successfully!',\r\n 'One Time Password'\r\n );\r\n this.resendingOtp = false;\r\n }\r\n });\r\n }\r\n\r\n verifyOtp() {\r\n this.clicked = true;\r\n if (!this.form.valid) {\r\n return false;\r\n }\r\n this.form.disable();\r\n this.isVerifying = true;\r\n let otpVerificationModel = {\r\n userName: localStorage.getItem('pending_otp_username'),\r\n oTP: this.form.value.OTP,\r\n password: localStorage.getItem('pending_otp_password'),\r\n };\r\n\r\n this.authService.verifyOtp(otpVerificationModel).subscribe(\r\n (res: any) => {\r\n if (res) {\r\n this.hasPhoneNumber = false;\r\n localStorage.removeItem('pending_otp_username');\r\n localStorage.removeItem('pending_otp_password');\r\n localStorage.removeItem('pending_otp_userid');\r\n localStorage.removeItem('pending_otpHasPhoneNumber');\r\n localStorage.removeItem('pending_otpHasMicrosoftAuth');\r\n\r\n this.user.setUserInfo(res.UserInfo);\r\n this.authService.setToken(res.Token);\r\n this.authService.setAuthStatus(true);\r\n this.router.navigateByUrl('/portal/dashboard');\r\n\r\n //set location details\r\n this.getUserLocationDetails(res.UserInfo.LocationId);\r\n }\r\n },\r\n (error) => {\r\n if (error.statusText === 'Unknown Error') {\r\n this.toastr.error(\r\n 'Server is currently not available.
Please contact help support.',\r\n 'Error'\r\n );\r\n } else {\r\n this.toastr.error(error.error, 'Error');\r\n }\r\n this.form.enable();\r\n this.isVerifying = false;\r\n this.clicked = false;\r\n }\r\n );\r\n }\r\n\r\n verifyAuthenticatorCode() {\r\n this.clicked = true;\r\n\r\n if (!this.form.valid) {\r\n return false;\r\n }\r\n\r\n this.form.disable();\r\n this.isVerifying = true;\r\n\r\n let verifyAuthenticatorCodeModel = {\r\n Username: localStorage.getItem('pending_otp_username'),\r\n Code: this.form.value.OTP,\r\n Password: localStorage.getItem('pending_otp_password'),\r\n };\r\n\r\n this.authService\r\n .verifyTwoFactorCode(verifyAuthenticatorCodeModel)\r\n .subscribe(\r\n (res: any) => {\r\n this.hasPhoneNumber = false;\r\n this.hasMicrosoftAuth = false;\r\n localStorage.removeItem('pending_otp_username');\r\n localStorage.removeItem('pending_otp_password');\r\n localStorage.removeItem('pending_otp_userid');\r\n localStorage.removeItem('pending_otpHasPhoneNumber');\r\n localStorage.removeItem('pending_otpHasMicrosoftAuth');\r\n\r\n this.user.setUserInfo(res.UserInfo);\r\n this.authService.setToken(res.Token);\r\n this.authService.setAuthStatus(true);\r\n this.router.navigateByUrl('/portal/dashboard');\r\n\r\n //set location details\r\n this.getUserLocationDetails(res.UserInfo.LocationId);\r\n },\r\n (error) => {\r\n if (error.statusText === 'Unknown Error') {\r\n this.toastr.error(\r\n 'Server is currently not available.
Please contact help support.',\r\n 'Error'\r\n );\r\n } else {\r\n this.toastr.error(error.error, 'Error');\r\n }\r\n this.form.enable();\r\n this.isVerifying = false;\r\n },\r\n () => {\r\n this.form.enable();\r\n this.isVerifying = false;\r\n }\r\n );\r\n }\r\n\r\n getUserLocationDetails(locationid: number) {\r\n this.authService.getLocationById(locationid).subscribe(\r\n (res: any) => {\r\n if (res) {\r\n var userlocation = new UserLocation();\r\n userlocation.LocationId = res.locationComplete.Id;\r\n userlocation.Public_API_Key = res.locationComplete.API_Key;\r\n this.user.setUserLocation(userlocation);\r\n }\r\n },\r\n (error: any) => {},\r\n () => {}\r\n );\r\n }\r\n}\r\n","
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n

Welcome to

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

ALSO AVAILABLE IN

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

Choose Destination Type

\r\n

Please choose where to send your One Time Password

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

Enter One Time Password

\r\n

Your One Time Password was sent to your email. Please enter it here

\r\n

Your One Time Password was sent to your sms. Please enter it here

\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 \r\n
\r\n\r\n
\r\n \r\n
\r\n
Code is invalid!
\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

ALSO AVAILABLE IN

\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 { HttpClient } from '@angular/common/http';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { MsalService } from '@azure/msal-angular';\r\nimport { CookieService } from 'ngx-cookie-service';\r\nimport { AlertService } from 'src/app/core/alert.service';\r\nimport { environment } from 'src/environments/environment';\r\nimport { developmentConfig } from 'src/environments/merchant';\r\n\r\n@Component({\r\n selector: 'app-process-merchant',\r\n templateUrl: './process-merchant.component.html',\r\n styleUrls: ['./process-merchant.component.scss'],\r\n})\r\nexport class ProcessMerchantComponent implements OnInit {\r\n uriHash: string = '';\r\n userEmail: string = '';\r\n busy: boolean;\r\n showEmail: boolean = false;\r\n merchantUri: string = '';\r\n\r\n constructor(\r\n private authMsalService: MsalService,\r\n private alert: AlertService,\r\n private httpClient: HttpClient,\r\n private cookieService: CookieService\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n this.uriHash = window.location.hash;\r\n\r\n if (developmentConfig.debug) {\r\n //Set the debug to true if your testing on your local machine\r\n this.authMsalService.instance\r\n .handleRedirectPromise(this.uriHash)\r\n .then((tokenResponse) => {\r\n if (tokenResponse) {\r\n if (tokenResponse.state) {\r\n const redirectUri = `${\r\n tokenResponse.state.split('merchantUri=')[1]\r\n }/auth/login${this.uriHash}`;\r\n\r\n window.location.replace(redirectUri);\r\n } else {\r\n if (developmentConfig.debug) {\r\n let merchantUri = 'http://localhost:4200';\r\n\r\n const redirectUri = `${merchantUri}/portal/dashboard`;\r\n window.location.replace(redirectUri);\r\n }\r\n }\r\n } else {\r\n console.log('No token was found.');\r\n const parts = this.uriHash.split('&');\r\n\r\n const redirectUri = `${\r\n parts[0].split('merchantUri=')[1]\r\n }/auth/login`;\r\n window.location.replace(redirectUri);\r\n }\r\n })\r\n .catch((error) => {\r\n console.log(error);\r\n window.location.replace('/');\r\n });\r\n } else {\r\n const cookieMerchantUri = this.cookieService.get('merchantUri');\r\n this.cookieService.delete('merchantUri'); // Delete after usage\r\n const parts = this.uriHash.split('&');\r\n this.merchantUri = parts[0].split('merchantUri=')[1];\r\n\r\n if (this.merchantUri != undefined) {\r\n if (this.merchantUri.length > 0) {\r\n const redirectUri = `${\r\n parts[0].split('merchantUri=')[1]\r\n }/auth/process-redirect${this.uriHash}`;\r\n\r\n window.location.replace(redirectUri);\r\n } else if (cookieMerchantUri) {\r\n const redirectUri = `${cookieMerchantUri}/auth/process-redirect${this.uriHash}`;\r\n\r\n window.location.replace(redirectUri);\r\n } else {\r\n this.showEmail = true;\r\n }\r\n } else {\r\n if (cookieMerchantUri) {\r\n const redirectUri = `${cookieMerchantUri}/auth/process-redirect${this.uriHash}`;\r\n\r\n window.location.replace(redirectUri);\r\n } else {\r\n this.showEmail = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n submit() {\r\n const apiUrl = `${environment.adminApiUrl}/api/merchantuser/GetMerchantUserByEmail?email=${this.userEmail}`;\r\n\r\n this.busy = true;\r\n\r\n this.httpClient.get(apiUrl).subscribe((merchant: any) => {\r\n if (merchant) {\r\n this.busy = false;\r\n\r\n if (this.uriHash.length > 0) {\r\n window.location.replace(\r\n `https://${merchant.PortalURL}/auth/process-redirect${this.uriHash}`\r\n );\r\n } else {\r\n this.alert\r\n .alertError({\r\n title: 'Error!',\r\n text: 'Failed to retrieve token. Will redirect you to login page.',\r\n })\r\n .then((Ok) => {\r\n if (Ok) {\r\n window.location.replace(\r\n `https://${merchant.PortalURL}/auth/login`\r\n );\r\n }\r\n });\r\n }\r\n } else {\r\n this.busy = false;\r\n this.alert.alertError({\r\n title: 'Error!',\r\n text: 'No merchant found assosiated with your email.',\r\n });\r\n }\r\n });\r\n }\r\n}\r\n","\r\n \r\n Authenticating Merchant\r\n \r\n \r\n
\r\n
\r\n \r\n

Authenticating Merchant

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

Enter you email address to proceed

\r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n Submit  \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { CookieService } from 'ngx-cookie-service';\r\nimport { AlertService } from 'src/app/core/alert.service';\r\nimport { QuickbooksService } from 'src/app/quickbooks/services/quickbooks.service';\r\n\r\n@Component({\r\n selector: 'app-process-qb-redirect',\r\n templateUrl: './process-qb-redirect.component.html',\r\n styleUrls: ['./process-qb-redirect.component.scss'],\r\n})\r\nexport class ProcessQbRedirectComponent implements OnInit {\r\n constructor(\r\n private route: ActivatedRoute,\r\n private quickbooksService: QuickbooksService,\r\n private alertService: AlertService,\r\n private router: Router,\r\n private cookieService: CookieService\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n const cookieMerchantUri = this.cookieService.get('merchantUri');\r\n const redirectUri = `${cookieMerchantUri}/portal/settings/configurations/third-party-configuration`;\r\n\r\n this.route.queryParams.subscribe((params) => {\r\n this.quickbooksService.setAuthToken(params).subscribe(\r\n (res: any) => {\r\n window.location.replace(redirectUri);\r\n },\r\n (error: any) => {\r\n this.alertService\r\n .alertError({\r\n title: 'Authentication error!',\r\n text: 'Please contact your administrator.',\r\n })\r\n .then((m: any) => {\r\n window.location.replace(redirectUri);\r\n });\r\n }\r\n );\r\n });\r\n }\r\n}\r\n","\r\n \r\n Authenticating\r\n \r\n \r\n
\r\n \r\n \r\n Authenticating Quickbooks account for Merchant Portal\r\n \r\n \r\n
\r\n \r\n\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { MsalService } from '@azure/msal-angular';\r\nimport { environment } from 'src/environments/environment';\r\nimport { developmentConfig } from 'src/environments/merchant';\r\n\r\n@Component({\r\n selector: 'app-process-redirect',\r\n templateUrl: './process-redirect.component.html',\r\n styleUrls: ['./process-redirect.component.scss'],\r\n})\r\nexport class ProcessRedirectComponent implements OnInit {\r\n constructor(\r\n private authMsalService: MsalService,\r\n private httpClient: HttpClient\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n const uriHash = window.location.hash;\r\n\r\n if (uriHash) {\r\n this.authMsalService.instance\r\n .handleRedirectPromise(uriHash)\r\n .then((tokenResponse) => {\r\n if (tokenResponse) {\r\n if (tokenResponse.state) {\r\n const redirectUri = `${\r\n tokenResponse.state.split('merchantUri=')[1]\r\n }/auth/login${uriHash}`;\r\n\r\n window.location.replace(redirectUri);\r\n } else {\r\n const loggedInUser =\r\n this.authMsalService.instance.getAllAccounts()[0];\r\n const userEmail = loggedInUser.idTokenClaims.email;\r\n const apiUrl = `${environment.adminApiUrl}/api/merchantuser/GetMerchantUserByEmail?email=${userEmail}`;\r\n this.httpClient.get(apiUrl).subscribe((x: any) => {\r\n window.location.replace(\r\n `https://${x.PortalURL}/auth/login${uriHash}`\r\n );\r\n });\r\n }\r\n } else {\r\n console.log('No token was found.');\r\n const parts = uriHash.split('&');\r\n\r\n const redirectUri = `${\r\n parts[0].split('merchantUri=')[1]\r\n }/auth/login`;\r\n window.location.replace(redirectUri);\r\n }\r\n })\r\n .catch((error) => {\r\n console.log(error);\r\n window.location.replace('/');\r\n });\r\n }\r\n }\r\n}\r\n","\r\n \r\n Redirecting Merchant\r\n \r\n \r\n
\r\n \r\n

Redirecting Merchant

\r\n \r\n
\r\n \r\n"],"sourceRoot":"webpack:///"}