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C1B,KAAKiD,SAAS+B,wBAAyB,EACvChF,KAAK2C,iBACL3C,KAAKG,QAAQqB,KAAKT,MAK1ByE,cAAcC,GACZzF,KAAK0F,gBAAkBD,EAEzB9C,iBACE,GAAI3C,KAAK2F,wBACP,OAEF3F,KAAKgL,6BAA6BxH,YAAc,GAChD,MAAMzC,EAAQf,KAAKN,YAAYsB,KAAO,kBACtChB,KAAKG,QAAQc,MAAMF,EAAOf,KAAKF,UAAUO,QAAQ,uCACjDL,KAAKsC,gBAAgBsD,iBAAiBzE,UAAU,CAC9CC,KAAOC,IACLrB,KAAK0D,aAAerC,EAAI0D,KACxB/E,KAAK2F,yBAA0B,EAC/B3F,KAAKG,QAAQqB,KAAKT,IAEpBU,MAAQC,IACN1B,KAAK2F,yBAA0B,EAC/B3F,KAAKG,QAAQqB,KAAKT,MAKxBiI,kBAAkBC,GAChBjJ,KAAK0I,YAAcO,gDAjKV4C,GAAwBrM,kGAAxBqM,EAAwBjK,o8GD7BrCpC,kCACAA,iBAEEA,2BAoEAA,2BA6EAA,kCAwBFA,QACAA,kDA7KsBA,2BAGbA,4CAoEAA,kDA6EQA,wbCvHJqM,GAAb,ICRM,CACEjB,KAAM,UACNC,UAAW3B,IAEb,CACE0B,KAAM,SACNC,UAAWzI,IAEb,CACEwI,KAAM,kBACNC,UAAW7C,IAEb,CAAC4C,KAAM,GAAIkB,WAAY,SAAUC,UAAW,WAQ3C,IAAMC,GAAb,MAAM,sDAAOA,4DAHF,CAACC,cAAsBtB,KACtBsB,QAECD,GAAb,kBCFO,IAAME,GAAb,MAAM,sDAAOA,6DANA,CACTC,MACAC,MACAC,OACDC,SAZQ,CACPC,KACAC,eACAR,GACAS,KACAC,KACAC,SAQST,GAAb","names":["i0","AuthComponent","constructor","configService","publicHelper","cmsToastrService","translate","cdr","this","ProgressSpinnerModel","Date","loading","message","instant","ngOnInit","innerWidth","window","console","log","setTimeout","showSplashModel","markForCheck","GetServiceVer","pName","name","Start","ServiceIp","subscribe","next","ret","appServerVersion","appVersion","Stop","error","er","typeErrorGetOne","selectors","SingupRuleComponent","coreConfigurationService","ErrorExceptionResult","ServiceUserMembershipRule","isSuccess","dataModelResult","errorMessage","AuthSingUpComponent","router","coreAuthService","dialog","FormInfoModel","CaptchaModel","AuthUserSignUpModel","onCaptchaOrder","ngOnDestroy","onActionSubmit","dataModel","email","length","formInfo","formError","formErrorStatus","typeErrorRegistery","family","password","RePasswordModel","captchaText","captchaKey","captchaModel","key","siteId","localStorage","getItem","ResellerSiteId","resellerSiteId","ResellerUserId","resellerUserId","ServiceSignupUser","typeSuccessRegistery","loginAuto","navigate","dataLoginModel","AuthUserSignInModel","mobile","pName2","ServiceSigninUser","res","typeSuccessLogin","h","item","buttonSubmittedEnabled","typeErrorLogin","typeError","onRoulaccespt","open","afterClosed","result","Roulaccespt","passwordValid","event","passwordIsValid","onCaptchaOrderInProcess","ServiceCaptcha","expireDate","expire","split","startDate","seconds","endDate","getTime","aoutoCaptchaOrder","typeErrorGetCpatcha","ActionPasswordGenerator","chars","i","passwordLength","randomNumber","Math","floor","random","substring","PasswordView","ctx","ctx_r18","oxw","ctx_r21","ctx_r22","ctx_r24","ctx_r37","ctx_r40","ctx_r41","ctx_r43","ctx_r67","ctx_r71","ctx_r73","ctx_r74","ctx_r76","ErrorStates","AuthForgotPasswordComponent","NotSubmitted","AuthUserForgetPasswordModel","AuthUserForgetPasswordEntryPinCodeModel","onActionSubmitOrderCodeBySms","errorState","dataModelforgetPasswordBySms","dataModelforgetPasswordEntryPinCode","ServiceForgetPassword","typeSuccessMessage","forgetState","typeErrorMessage","onActionSubmitOrderCodeByEmail","dataModelforgetPasswordByEmail","onActionSubmitEntryPinCode","ServiceForgetPasswordEntryPinCode","changeforgetState","model","AuthSingoutComponent","authService","ServiceLogout","typeSuccessLogout","ctx_r19","AuthSingInComponent","route","translationService","environment","firstRun","returnUrl","snapshot","queryParams","toString","hasError","lang","getSelectedLanguage","r","onloginTypeChange","loginType","ctx_r16","ctx_r20","ctx_r35","ctx_r38","ctx_r39","routes","path","component","children","AuthUserSignInBySmsDtoModel","dataModelAuthUserSignInBySms","ServiceSigninUserBySMS","prorocess","processModel","progressBarValue","progressBarMaxValue","buttonnResendSmsDisable","timeleft","downloadTimer","setInterval","clearInterval","detectChanges","l","AuthSingInBySmsComponent","redirectTo","pathMatch","AuthRoutingModule","RouterModule","AuthModule","CoreModuleService","CoreConfigurationService","CoreAuthService","imports","CommonModule","SharedModule","FormsModule","ReactiveFormsModule","HttpClientModule"],"sourceRoot":"webpack:///","sources":["./src/app/cms-modules/auth/auth.component.html","./src/app/cms-modules/auth/auth.component.ts","./src/app/cms-modules/auth/singupRule/singupRule.Component.ts","./src/app/cms-modules/auth/singupRule/singupRule.Component.html","./src/app/cms-modules/auth/singup/singup.component.html","./src/app/cms-modules/auth/singup/singup.component.ts","./src/app/cms-modules/auth/forgot-password/forgot-password.component.html","./src/app/cms-modules/auth/forgot-password/forgot-password.component.ts","./src/app/cms-modules/auth/singout/singout.component.ts","./src/app/cms-modules/auth/singout/singout.component.html","./src/app/cms-modules/auth/singin/singin.component.html","./src/app/cms-modules/auth/singin/singin.component.ts","./src/app/cms-modules/auth/singin-bysms/singin-bysms.component.html","./src/app/cms-modules/auth/singin-bysms/singin-bysms.component.ts","./src/app/cms-modules/auth/auth.routing.ts","./src/app/cms-modules/auth/auth.module.ts"],"sourcesContent":["
\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 ver: {{this.publicHelper.appClientVersion}} /{{this.publicHelper.appServerVersion}}\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\nimport { ChangeDetectorRef, Component, OnInit } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { CoreConfigurationService } from 'projects/ntk-hospital-api/src/public-api';\r\nimport { PublicHelper } from 'src/app/core/helpers/publicHelper';\r\nimport { ProgressSpinnerModel } from 'src/app/core/models/progressSpinnerModel';\r\nimport { CmsToastrService } from 'src/app/core/services/cmsToastr.service';\r\n@Component({\r\n selector: 'app-auth',\r\n templateUrl: './auth.component.html',\r\n styleUrls: ['./auth.component.scss']\r\n})\r\nexport class AuthComponent implements OnInit {\r\n constructor(\r\n private configService: CoreConfigurationService,\r\n public publicHelper: PublicHelper,\r\n private cmsToastrService: CmsToastrService,\r\n public translate: TranslateService,\r\n private cdr: ChangeDetectorRef) {\r\n this.loading.cdr = this.cdr;\r\n this.loading.message = this.translate.instant('MESSAGE.Receiving_information');\r\n }\r\n loading = new ProgressSpinnerModel();\r\n today: Date = new Date();\r\n public innerWidth = 0;\r\n showSplashModel = true;\r\n ngOnInit(): void {\r\n this.innerWidth = + window.innerWidth;\r\n console.log('resoulation',this.innerWidth);\r\n if (this.innerWidth < 1000) {\r\n setTimeout(() => {\r\n this.showSplashModel = false;\r\n this.cdr.markForCheck();\r\n }, 1000);\r\n }\r\n this.GetServiceVer();\r\n }\r\n GetServiceVer(): void {\r\n const pName = this.constructor.name + 'ServiceIp';\r\n this.loading.Start(pName, this.translate.instant('MESSAGE.Receiving_Information_From_The_Server'));\r\n this.configService.ServiceIp().subscribe({\r\n next: (ret) => {\r\n this.publicHelper.appServerVersion = ret.appVersion\r\n this.loading.Stop(pName);\r\n },\r\n error:(er) => {\r\n this.cmsToastrService.typeErrorGetOne(er);\r\n this.loading.Stop(pName);\r\n }\r\n }\r\n );\r\n }\r\n}","\r\nimport { ChangeDetectorRef, Component, OnInit } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { CoreConfigurationService, ErrorExceptionResult } from 'projects/ntk-hospital-api/src/public-api';\r\nimport { ProgressSpinnerModel } from 'src/app/core/models/progressSpinnerModel';\r\nimport { CmsToastrService } from 'src/app/core/services/cmsToastr.service';\r\n@Component({\r\n selector: 'app-auth-singup-rule',\r\n templateUrl: './singupRule.Component.html',\r\n})\r\nexport class SingupRuleComponent implements OnInit {\r\n constructor(\r\n private coreConfigurationService: CoreConfigurationService,\r\n private cmsToastrService: CmsToastrService,\r\n private cdr: ChangeDetectorRef,\r\n public translate: TranslateService,\r\n ) {\r\n this.loading.cdr = this.cdr;\r\n this.loading.message = this.translate.instant('MESSAGE.Receiving_information');\r\n }\r\n loading = new ProgressSpinnerModel();\r\n dataModelResult: ErrorExceptionResult = new ErrorExceptionResult();\r\n ngOnInit(): void {\r\n const pName = this.constructor.name + 'ServiceUserMembershipRule';\r\n this.loading.Start(pName, this.translate.instant('MESSAGE.get_the_module_default_access'));\r\n this.coreConfigurationService\r\n .ServiceUserMembershipRule()\r\n .subscribe({\r\n next: (ret) => {\r\n if (ret.isSuccess) {\r\n this.dataModelResult = ret;\r\n } else {\r\n this.cmsToastrService.typeErrorGetOne(ret.errorMessage);\r\n }\r\n this.loading.Stop(pName);\r\n },\r\n error: (er) => {\r\n this.cmsToastrService.typeErrorGetOne(er);\r\n this.loading.Stop(pName);\r\n }\r\n }\r\n );\r\n }\r\n}","

{{'TITLE.Rules' | translate}}

\r\n\r\n
\r\n
\r\n\r\n \r\n s\r\n"," \r\n

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

\r\n \r\n {{'AUTH.REGISTER.SIGNUP' | translate}}\r\n

\r\n
\r\n {{'AUTH.REGISTER.DESC' | translate}}\r\n
\r\n
\r\n \r\n {{'AUTH.INPUT.FIRSTNAME' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ Name.value.length }} / 50\r\n \r\n Name is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n {{'AUTH.INPUT.LASTNAME' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ Family.value.length }} / 50\r\n \r\n Family is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n {{'AUTH.INPUT.EMAIL' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ Email.value.length }} / 100\r\n \r\n Email is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n {{'AUTH.INPUT.MOBILE' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ Mobile.value.length }} / 15\r\n \r\n Mobile is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n {{'AUTH.INPUT.PASSWORD' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ Password.value.length }} / 50\r\n \r\n Password is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n mode_edit\r\n \r\n \r\n \r\n {{'AUTH.INPUT.CONFIRM_PASSWORD' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ RePassword.value.length }} / 50\r\n \r\n RePassword is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n {{'MESSAGE.Password_and_password_confirmation_are_different' | translate}}\r\n \r\n \r\n \r\n \"\"\r\n refresh\r\n \r\n {{'AUTH.INPUT.CAPTCHACODE' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n \r\n captchaText is {{'MESSAGE.required' | 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 \r\n
\r\n
\r\n
\r\n
\r\n\r\n","\r\nimport { Component, OnInit, OnDestroy, ViewChild, ChangeDetectorRef } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\nimport { Observable } from 'rxjs';\r\nimport { Router } from '@angular/router';\r\nimport { AuthUserSignInModel, AuthUserSignUpModel, CaptchaModel, CoreAuthService, FormInfoModel } from 'projects/ntk-hospital-api/src/public-api';\r\nimport { CmsToastrService } from 'src/app/core/services/cmsToastr.service';\r\nimport { ProgressSpinnerModel } from 'src/app/core/models/progressSpinnerModel';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { SingupRuleComponent } from '../singupRule/singupRule.Component';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n@Component({\r\n selector: 'app-auth-singup',\r\n templateUrl: './singup.component.html',\r\n styleUrls: ['./singup.component.scss'],\r\n})\r\nexport class AuthSingUpComponent implements OnInit, OnDestroy {\r\n constructor(\r\n private cmsToastrService: CmsToastrService,\r\n private router: Router,\r\n private coreAuthService: CoreAuthService,\r\n public dialog: MatDialog,\r\n private cdr: ChangeDetectorRef,\r\n public translate: TranslateService,\r\n ) {\r\n this.loading.cdr = this.cdr;\r\n this.loading.message = this.translate.instant('MESSAGE.Receiving_information');\r\n }\r\n @ViewChild('vform', { static: false }) formGroup: FormGroup;\r\n loading = new ProgressSpinnerModel();\r\n formInfo: FormInfoModel = new FormInfoModel();\r\n Roulaccespt = false;\r\n isLoading$: Observable;\r\n captchaModel: CaptchaModel = new CaptchaModel();\r\n expireDate: string;\r\n aoutoCaptchaOrder = 1;\r\n passwordIsValid = false;\r\n dataModel: AuthUserSignUpModel = new AuthUserSignUpModel();\r\n onCaptchaOrderInProcess = false;\r\n RePasswordModel = '';\r\n PasswordView = false;\r\n loginAuto = false;\r\n ngOnInit(): void {\r\n this.onCaptchaOrder();\r\n }\r\n ngOnDestroy(): void {\r\n }\r\n onActionSubmit(): void {\r\n if (!this.dataModel.email || this.dataModel.email.length === 0) {\r\n this.formInfo.formError = 'آدرس ایمیل خود را وارد کنید';\r\n this.formInfo.formErrorStatus = true;\r\n this.cmsToastrService.typeErrorRegistery(this.formInfo.formError);\r\n return;\r\n }\r\n if (!this.dataModel.name || this.dataModel.name.length === 0) {\r\n this.formInfo.formError = 'نام خود را وارد کنید';\r\n this.formInfo.formErrorStatus = true;\r\n this.cmsToastrService.typeErrorRegistery(this.formInfo.formError);\r\n return;\r\n }\r\n if (!this.dataModel.family || this.dataModel.family.length === 0) {\r\n this.formInfo.formError = 'نام خانوادگی خود را وارد کنید';\r\n this.formInfo.formErrorStatus = true;\r\n this.cmsToastrService.typeErrorRegistery(this.formInfo.formError);\r\n return;\r\n }\r\n if (!this.dataModel.password || this.dataModel.password.length === 0) {\r\n this.formInfo.formError = 'کلمه عبور را وارد کنید';\r\n this.formInfo.formErrorStatus = true;\r\n this.cmsToastrService.typeErrorRegistery(this.formInfo.formError);\r\n return;\r\n }\r\n if (!this.RePasswordModel || this.RePasswordModel.length === 0) {\r\n this.formInfo.formError = 'تکرار کلمه عبور را وارد کنید';\r\n this.formInfo.formErrorStatus = true;\r\n this.cmsToastrService.typeErrorRegistery(this.formInfo.formError);\r\n return;\r\n }\r\n if (!this.dataModel.captchaText || this.dataModel.captchaText.length === 0) {\r\n this.formInfo.formError = this.translate.instant('MESSAGE.Receiving_information');\r\n this.formInfo.formErrorStatus = true;\r\n this.cmsToastrService.typeErrorRegistery(this.formInfo.formError);\r\n return;\r\n }\r\n if (this.dataModel.password !== this.RePasswordModel) {\r\n this.formInfo.formError = 'محتوای کلمه عبور و تکرار کلمه عبور متفاوت است';\r\n this.dataModel.password = '';\r\n this.RePasswordModel = '';\r\n this.formInfo.formErrorStatus = true;\r\n this.cmsToastrService.typeErrorRegistery(this.formInfo.formError);\r\n return;\r\n }\r\n this.formInfo.formErrorStatus = false;\r\n this.dataModel.captchaKey = this.captchaModel.key;\r\n const pName = this.constructor.name + '.ServiceSignupUser';\r\n this.loading.Start(pName, 'در حال ساخت حساب کاربری جدید');\r\n /** read storage */\r\n const siteId = + localStorage.getItem('siteId');\r\n if (siteId > 0) {\r\n this.dataModel.siteId = siteId;\r\n }\r\n const ResellerSiteId = + localStorage.getItem('ResellerSiteId');\r\n if (ResellerSiteId > 0) {\r\n this.dataModel.resellerSiteId = ResellerSiteId;\r\n }\r\n const ResellerUserId = + localStorage.getItem('ResellerUserId');\r\n if (ResellerUserId > 0) {\r\n this.dataModel.resellerUserId = ResellerUserId;\r\n }\r\n /** read storage */\r\n this.coreAuthService.ServiceSignupUser(this.dataModel).subscribe((next) => {\r\n if (next.isSuccess) {\r\n this.cmsToastrService.typeSuccessRegistery();\r\n this.formInfo.formErrorStatus = false;\r\n if (!this.loginAuto) {\r\n setTimeout(() => this.router.navigate(['/']), 1000);\r\n }\r\n /** Login */\r\n if (this.loginAuto) {\r\n const dataLoginModel = new AuthUserSignInModel();\r\n dataLoginModel.captchaKey = this.dataModel.captchaKey;\r\n dataLoginModel.captchaText = this.dataModel.captchaText;\r\n dataLoginModel.email = this.dataModel.email;\r\n dataLoginModel.password = this.dataModel.password;\r\n dataLoginModel.siteId = this.dataModel.siteId;\r\n dataLoginModel.mobile = this.dataModel.mobile;\r\n const pName2 = this.constructor.name + 'ServiceSigninUser';\r\n this.loading.Start(pName2, 'ورود به حساب کاربری');\r\n this.coreAuthService.ServiceSigninUser(dataLoginModel).subscribe(\r\n (res) => {\r\n if (res.isSuccess) {\r\n this.cmsToastrService.typeSuccessLogin();\r\n if (res.item.siteId > 0) {\r\n setTimeout(() => this.router.navigate(['/dashboard']), 1000);\r\n }\r\n else {\r\n setTimeout(() => this.router.navigate(['/core/site/selection']), 1000);\r\n }\r\n } else {\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.cmsToastrService.typeErrorLogin(res.errorMessage);\r\n setTimeout(() => this.router.navigate(['/']), 1000);\r\n }\r\n this.loading.Stop(pName2);\r\n },\r\n (error) => {\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.cmsToastrService.typeError(error);\r\n this.loading.Stop(pName2);\r\n }\r\n );\r\n }\r\n /** Login */\r\n } else {\r\n this.cmsToastrService.typeErrorRegistery(next.errorMessage);\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.formInfo.formErrorStatus = true;\r\n this.onCaptchaOrder();\r\n }\r\n this.loading.Stop(pName);\r\n }, (error) => {\r\n this.cmsToastrService.typeError(error);\r\n this.formInfo.formErrorStatus = true;\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.onCaptchaOrder();\r\n this.loading.Stop(pName);\r\n });\r\n }\r\n onRoulaccespt(): void {\r\n const dialogRef = this.dialog.open(SingupRuleComponent);\r\n dialogRef.afterClosed().subscribe(result => {\r\n // console.log(`Dialog result: ${result}`);\r\n this.Roulaccespt = result;\r\n });\r\n }\r\n passwordValid(event): void {\r\n this.passwordIsValid = event;\r\n }\r\n onCaptchaOrder(): void {\r\n if (this.onCaptchaOrderInProcess) {\r\n return;\r\n }\r\n this.dataModel.captchaText = '';\r\n const pName = this.constructor.name + '.ServiceCaptcha';\r\n this.loading.Start(pName, this.translate.instant('MESSAGE.get_security_photo_content'));\r\n this.coreAuthService.ServiceCaptcha().subscribe(\r\n (next) => {\r\n if (next.isSuccess) {\r\n this.captchaModel = next.item;\r\n this.expireDate = next.item.expire.split('+')[1];\r\n const startDate = new Date();\r\n const endDate = new Date(next.item.expire);\r\n const seconds = (endDate.getTime() - startDate.getTime());\r\n if (this.aoutoCaptchaOrder < 10) {\r\n this.aoutoCaptchaOrder = this.aoutoCaptchaOrder + 1;\r\n setTimeout(() => { this.onCaptchaOrder(); }, seconds);\r\n }\r\n } else {\r\n this.cmsToastrService.typeErrorGetCpatcha(next.errorMessage);\r\n }\r\n this.onCaptchaOrderInProcess = false;\r\n this.loading.Stop(pName);\r\n }\r\n , (error) => {\r\n this.onCaptchaOrderInProcess = false;\r\n this.loading.Stop(pName);\r\n }\r\n );\r\n }\r\n ActionPasswordGenerator(): void {\r\n // const chars = '0123456789abcdefghijklmnopqrstuvwxyz!@#$%^&*()ABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n const chars = '0123456789abcdefghijklmnopqrstuvwxyz';\r\n const passwordLength = 10;\r\n let password = '';\r\n for (let i = 0; i <= passwordLength; i++) {\r\n const randomNumber = Math.floor(Math.random() * chars.length);\r\n password += chars.substring(randomNumber, randomNumber + 1);\r\n }\r\n this.dataModel.password = password;\r\n this.RePasswordModel = password;\r\n this.PasswordView = true;\r\n }\r\n}","
\r\n \r\n
\r\n \r\n
\r\n

\r\n {{'AUTH.FORGOT.TITLE' | translate}}\r\n

\r\n

\r\n {{'AUTH.FORGOT.DESCSMS' | translate}}\r\n

\r\n
\r\n \r\n \r\n \r\n {{'AUTH.FORGOT.MOBILE' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ Mobile.value.length }} / 100\r\n \r\n Mobile is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n \"\"\r\n refresh\r\n \r\n {{'AUTH.INPUT.CAPTCHACODE' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n \r\n captchaText is {{'MESSAGE.required' | 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

{{'MESSAGE.Reminders.by.email' | translate}}

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

\r\n {{'AUTH.FORGOT.TITLE' | translate}}\r\n

\r\n

\r\n {{'AUTH.FORGOT.DESCSMS' | translate}}\r\n

\r\n
\r\n \r\n \r\n {{'AUTH.FORGOT.EMAIL' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ Email.value.length }} / 100\r\n \r\n Email is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n \"\"\r\n refresh\r\n \r\n {{'AUTH.INPUT.CAPTCHACODE' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n \r\n captchaText is {{'MESSAGE.required' | 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

{{'MESSAGE.Reminder.by.SMS' | translate}}

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

\r\n {{'AUTH.FORGOT.TITLE' | translate}}\r\n

\r\n

\r\n {{'AUTH.FORGOT.DESCSMS' | translate}}\r\n

\r\n
\r\n \r\n {{'AUTH.FORGOT.PIN_CODE' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ ActivateCode.value.length }} / 100\r\n \r\n PIN Code is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n {{'AUTH.FORGOT.PASSWORD' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ newPassword.value.length }} / 50\r\n \r\n Password is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n \r\n {{'AUTH.FORGOT.CONFIRM_PASSWORD' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ RePassword.value.length }} / 50\r\n \r\n RePassword is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n {{'MESSAGE.Password_and_password_confirmation_are_different' | translate}}\r\n \r\n \r\n \r\n \"\"\r\n refresh\r\n \r\n {{'AUTH.INPUT.CAPTCHACODE' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n \r\n captchaText is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n
\r\n \r\n \r\n {{'AUTH.REGISTER.RETURN_TO_LOGIN' | translate}}\r\n \r\n \r\n \r\n \r\n
\r\n \r\n

{{'MESSAGE.Resend_the_recovery_code' | translate}}

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

{{'AUTH.FORGOT.EMAIL_IS_CORRECT' | translate}}

\r\n

\r\n Message with 'recovery' instruction
\r\n has been sent
\r\n

\r\n \r\n Ok, got it!\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n {{ message }}\r\n
\r\n
\r\n
\r\n
","\r\nimport { ChangeDetectorRef, Component, OnInit } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport {\r\n CaptchaModel,\r\n CoreAuthService,\r\n AuthUserForgetPasswordModel,\r\n AuthUserForgetPasswordEntryPinCodeModel,\r\n FormInfoModel\r\n} from 'projects/ntk-hospital-api/src/public-api';\r\nimport { Router } from '@angular/router';\r\nimport { CmsToastrService } from 'src/app/core/services/cmsToastr.service';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { ProgressSpinnerModel } from 'src/app/core/models/progressSpinnerModel';\r\nenum ErrorStates {\r\n NotSubmitted,\r\n HasError,\r\n NoError,\r\n}\r\n@Component({\r\n selector: 'app-auth-forgot-password',\r\n templateUrl: './forgot-password.component.html',\r\n styleUrls: ['./forgot-password.component.scss'],\r\n})\r\nexport class AuthForgotPasswordComponent implements OnInit {\r\n constructor(\r\n private coreAuthService: CoreAuthService,\r\n private cmsToastrService: CmsToastrService,\r\n public translate: TranslateService,\r\n private router: Router,\r\n private cdr: ChangeDetectorRef,\r\n ) {\r\n this.loading.cdr = this.cdr;\r\n this.loading.message = this.translate.instant('MESSAGE.Receiving_information');\r\n this.RePasswordModel = '';\r\n }\r\n errorState: ErrorStates = ErrorStates.NotSubmitted;\r\n errorStates = ErrorStates;\r\n isLoading$: Observable;\r\n dataModelforgetPasswordBySms: AuthUserForgetPasswordModel = new AuthUserForgetPasswordModel();\r\n dataModelforgetPasswordByEmail: AuthUserForgetPasswordModel = new AuthUserForgetPasswordModel();\r\n dataModelforgetPasswordEntryPinCode: AuthUserForgetPasswordEntryPinCodeModel = new AuthUserForgetPasswordEntryPinCodeModel();\r\n captchaModel: CaptchaModel = new CaptchaModel();\r\n // private fields\r\n forgetState = 'sms';\r\n loading = new ProgressSpinnerModel();\r\n formInfo: FormInfoModel = new FormInfoModel();\r\n passwordIsValid = false;\r\n RePasswordModel = '';\r\n onCaptchaOrderInProcess = false;\r\n ngOnInit(): void {\r\n this.onCaptchaOrder();\r\n }\r\n onActionSubmitOrderCodeBySms(): void {\r\n this.formInfo.buttonSubmittedEnabled = false;\r\n this.errorState = ErrorStates.NotSubmitted;\r\n this.dataModelforgetPasswordBySms.captchaKey = this.captchaModel.key;\r\n this.dataModelforgetPasswordEntryPinCode.email = '';\r\n this.dataModelforgetPasswordEntryPinCode.mobile = this.dataModelforgetPasswordBySms.mobile;\r\n const pName = this.constructor.name + '.ServiceForgetPassword';\r\n this.loading.Start(pName, this.translate.instant('AUTH.FORGOT.REQUEST_PASSWORD_REMINDER'));\r\n this.coreAuthService\r\n .ServiceForgetPassword(this.dataModelforgetPasswordBySms)\r\n .subscribe({\r\n next: (res) => {\r\n if (res.isSuccess) {\r\n this.cmsToastrService.typeSuccessMessage(this.translate.instant('MESSAGE.The_activation_code_was_texted_with_you'));\r\n this.forgetState = 'entrycode';\r\n }\r\n else {\r\n this.cmsToastrService.typeErrorMessage(res.errorMessage);\r\n }\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.onCaptchaOrder();\r\n this.loading.Stop(pName);\r\n },\r\n error: (er) => {\r\n this.cmsToastrService.typeError(er);\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.onCaptchaOrder();\r\n this.loading.Stop(pName);\r\n }\r\n });\r\n }\r\n onActionSubmitOrderCodeByEmail(): void {\r\n this.formInfo.buttonSubmittedEnabled = false;\r\n this.errorState = ErrorStates.NotSubmitted;\r\n this.dataModelforgetPasswordByEmail.captchaKey = this.captchaModel.key;\r\n this.dataModelforgetPasswordEntryPinCode.mobile = '';\r\n this.dataModelforgetPasswordEntryPinCode.email = this.dataModelforgetPasswordByEmail.email;\r\n const pName = this.constructor.name + '.ServiceForgetPassword';\r\n this.loading.Start(pName, 'در خواست یاد آوری کلمه عبور ');\r\n this.coreAuthService\r\n .ServiceForgetPassword(this.dataModelforgetPasswordByEmail)\r\n .subscribe({\r\n next: (res) => {\r\n if (res.isSuccess) {\r\n this.cmsToastrService.typeSuccessMessage(this.translate.instant('MESSAGE.The_activation_code_was_emailed_to_you'));\r\n this.forgetState = 'entrycode';\r\n }\r\n else {\r\n this.cmsToastrService.typeErrorMessage(res.errorMessage);\r\n }\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.onCaptchaOrder();\r\n this.loading.Stop(pName);\r\n },\r\n error: (er) => {\r\n this.cmsToastrService.typeError(er);\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.onCaptchaOrder();\r\n this.loading.Stop(pName);\r\n }\r\n });\r\n }\r\n onActionSubmitEntryPinCode(): void {\r\n this.formInfo.buttonSubmittedEnabled = false;\r\n this.errorState = ErrorStates.NotSubmitted;\r\n this.dataModelforgetPasswordEntryPinCode.captchaKey = this.captchaModel.key;\r\n const pName = this.constructor.name + '.ServiceForgetPasswordEntryPinCode';\r\n this.loading.Start(pName, 'بررسی کد در سرور');\r\n this.coreAuthService\r\n .ServiceForgetPasswordEntryPinCode(this.dataModelforgetPasswordEntryPinCode)\r\n .subscribe({\r\n next: (res) => {\r\n if (res.isSuccess) {\r\n this.cmsToastrService.typeSuccessMessage(this.translate.instant('MESSAGE.Your_password_was_changed_successfully'));\r\n setTimeout(() => this.router.navigate(['/']), 1000);\r\n }\r\n else {\r\n this.cmsToastrService.typeErrorMessage(res.errorMessage);\r\n }\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.onCaptchaOrder();\r\n this.loading.Stop(pName);\r\n },\r\n error: (er) => {\r\n this.cmsToastrService.typeError(er);\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.onCaptchaOrder();\r\n this.loading.Stop(pName);\r\n }\r\n }\r\n );\r\n }\r\n passwordValid(event): void {\r\n this.passwordIsValid = event;\r\n }\r\n onCaptchaOrder(): void {\r\n if (this.onCaptchaOrderInProcess) {\r\n return;\r\n }\r\n this.dataModelforgetPasswordBySms.captchaText = '';\r\n const pName = this.constructor.name + '.ServiceCaptcha';\r\n this.loading.Start(pName, this.translate.instant('MESSAGE.get_security_photo_content'));\r\n this.coreAuthService.ServiceCaptcha().subscribe({\r\n next: (ret) => {\r\n this.captchaModel = ret.item;\r\n this.onCaptchaOrderInProcess = false;\r\n this.loading.Stop(pName);\r\n },\r\n error: (er) => {\r\n this.onCaptchaOrderInProcess = false;\r\n this.loading.Stop(pName);\r\n }\r\n }\r\n );\r\n }\r\n changeforgetState(model: string): void {\r\n this.forgetState = model;\r\n }\r\n}","\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { CoreAuthService } from 'projects/ntk-hospital-api/src/public-api';\r\nimport { CmsToastrService } from 'src/app/core/services/cmsToastr.service';\r\n@Component({\r\n selector: 'app-auth-singout',\r\n templateUrl: './singout.component.html',\r\n})\r\nexport class AuthSingoutComponent implements OnInit {\r\n constructor(private authService: CoreAuthService,\r\n private cmsToastrService: CmsToastrService,\r\n ) {\r\n this.authService.ServiceLogout().subscribe({\r\n next: (ret) => {\r\n if (ret.isSuccess) {\r\n this.cmsToastrService.typeSuccessLogout();\r\n } else {\r\n this.cmsToastrService.typeErrorMessage(ret.errorMessage);\r\n }\r\n }\r\n });\r\n }\r\n ngOnInit(): void { }\r\n}","

logout works!

","\r\n
\r\n \r\n
\r\n \r\n
\r\n

\r\n {{'TRANSLATOR.WELCOME' | translate}}\r\n

\r\n
\r\n \r\n \r\n \r\n \r\n {{'AUTH.INPUT.MOBILE' | translate}} / {{'AUTH.INPUT.EMAIL' | translate}}/ {{'AUTH.INPUT.USERNAME' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ Email.value.length }} / 100\r\n \r\n Email is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n \r\n {{'AUTH.INPUT.PASSWORD' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ Password.value.length }} / 50\r\n \r\n Password is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n \r\n \"\"\r\n refresh\r\n \r\n {{'AUTH.INPUT.CAPTCHACODE' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n \r\n captchaText is {{'MESSAGE.required' | 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
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n","\r\nimport { ChangeDetectorRef, Component, OnInit } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { AuthUserSignInModel, CaptchaModel, CoreAuthService, FormInfoModel } from 'projects/ntk-hospital-api/src/public-api';\r\nimport { CmsToastrService } from 'src/app/core/services/cmsToastr.service';\r\nimport { TranslationService } from 'src/app/core/i18n/translation.service';\r\nimport { ProgressSpinnerModel } from 'src/app/core/models/progressSpinnerModel';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { environment } from 'src/environments/environment';\r\n@Component({\r\n selector: 'app-auth-singin',\r\n templateUrl: './singin.component.html',\r\n styleUrls: ['./singin.component.scss'],\r\n})\r\nexport class AuthSingInComponent implements OnInit {\r\n constructor(\r\n private cmsToastrService: CmsToastrService,\r\n private route: ActivatedRoute,\r\n private router: Router,\r\n private coreAuthService: CoreAuthService,\r\n private translationService: TranslationService,\r\n public translate: TranslateService,\r\n private cdr: ChangeDetectorRef,\r\n ) {\r\n this.loading.cdr = this.cdr;\r\n this.loading.message = this.translate.instant('MESSAGE.Receiving_information');\r\n this.firstRun = true;\r\n }\r\n userRegistry = environment.cmsServerConfig.userRegistry;\r\n firstRun = true;\r\n loading = new ProgressSpinnerModel();\r\n formInfo: FormInfoModel = new FormInfoModel();\r\n dataModel: AuthUserSignInModel = new AuthUserSignInModel();\r\n captchaModel: CaptchaModel = new CaptchaModel();\r\n expireDate: string;\r\n aoutoCaptchaOrder = 1;\r\n // KeenThemes mock, change it to:\r\n hasError: boolean;\r\n returnUrl: string;\r\n loginType = 'email';\r\n onCaptchaOrderInProcess = false;\r\n ngOnInit(): void {\r\n this.onCaptchaOrder();\r\n // get return url from route parameters or default to '/'\r\n this.returnUrl =\r\n this.route.snapshot.queryParams['returnUrl'.toString()] || '/';\r\n if (this.firstRun) {\r\n this.dataModel.captchaText = '0000';\r\n }\r\n }\r\n onActionSubmit(): void {\r\n this.formInfo.buttonSubmittedEnabled = false;\r\n this.hasError = false;\r\n this.dataModel.captchaKey = this.captchaModel.key;\r\n this.dataModel.lang = this.translationService.getSelectedLanguage();\r\n const pName = this.constructor.name + '.ServiceSigninUser';\r\n this.loading.Start(pName, this.translate.instant('MESSAGE.login_to_user_account'));\r\n const siteId = + localStorage.getItem('siteId');\r\n if (siteId > 0) {\r\n this.dataModel.siteId = siteId;\r\n }\r\n this.coreAuthService.ServiceSigninUser(this.dataModel).subscribe({\r\n next: (res) => {\r\n if (res.isSuccess) {\r\n this.cmsToastrService.typeSuccessLogin();\r\n if (res.item.siteId > 0) {\r\n setTimeout(() => this.router.navigate(['/dashboard']), 1000);\r\n }\r\n else {\r\n setTimeout(() => this.router.navigate(['/core/site/selection']), 1000);\r\n }\r\n } else {\r\n this.firstRun = false;\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.cmsToastrService.typeErrorLogin(res.errorMessage);\r\n this.onCaptchaOrder();\r\n }\r\n this.loading.Stop(pName);\r\n },\r\n error: (er) => {\r\n this.firstRun = false;\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.cmsToastrService.typeError(er);\r\n this.onCaptchaOrder();\r\n this.loading.Stop(pName);\r\n }\r\n }\r\n );\r\n }\r\n onloginTypeChange(model: string): void {\r\n this.loginType = model;\r\n }\r\n onCaptchaOrder(): void {\r\n if (this.onCaptchaOrderInProcess) {\r\n return;\r\n }\r\n this.dataModel.captchaText = '';\r\n const pName = this.constructor.name + '.ServiceCaptcha';\r\n this.loading.Start(pName, this.translate.instant('MESSAGE.get_security_photo_content'));\r\n this.coreAuthService.ServiceCaptcha().subscribe({\r\n next: (ret) => {\r\n if (ret.isSuccess) {\r\n this.captchaModel = ret.item;\r\n this.expireDate = ret.item.expire.split('+')[1];\r\n const startDate = new Date();\r\n const endDate = new Date(ret.item.expire);\r\n const seconds = (endDate.getTime() - startDate.getTime());\r\n if (this.aoutoCaptchaOrder < 10) {\r\n this.aoutoCaptchaOrder = this.aoutoCaptchaOrder + 1;\r\n setTimeout(() => {\r\n if (!this.firstRun)\r\n this.onCaptchaOrder();\r\n }, seconds);\r\n }\r\n }\r\n else {\r\n this.cmsToastrService.typeErrorGetCpatcha(ret.errorMessage);\r\n }\r\n this.onCaptchaOrderInProcess = false;\r\n this.loading.Stop(pName);\r\n },\r\n error: (er) => {\r\n this.onCaptchaOrderInProcess = false;\r\n this.loading.Stop(pName);\r\n }\r\n }\r\n );\r\n }\r\n}"," \r\n
\r\n \r\n
\r\n \r\n
\r\n

\r\n {{'AUTH.SINGINBYSMS.TITLE' | translate}}\r\n

\r\n

\r\n {{'AUTH.SINGINBYSMS.DESCSMS' | translate}}\r\n

\r\n
\r\n \r\n \r\n \r\n {{'AUTH.SINGINBYSMS.MOBILE' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ Mobile.value.length }} / 100\r\n \r\n Mobile is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n \"\"\r\n refresh\r\n \r\n {{'AUTH.INPUT.CAPTCHACODE' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n \r\n captchaText is {{'MESSAGE.required' | 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 \r\n
\r\n

\r\n {{'AUTH.SINGINBYSMS.TITLE' | translate}}\r\n

\r\n

\r\n {{'AUTH.SINGINBYSMS.DESCSMS' | translate}}\r\n

\r\n
\r\n \r\n {{'AUTH.SINGINBYSMS.PIN_CODE' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n {{ Code.value.length }} / 100\r\n \r\n PIN Code is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n \"\"\r\n refresh\r\n \r\n {{'AUTH.INPUT.CAPTCHACODE' | translate}}\r\n \r\n \r\n close\r\n mode_edit\r\n \r\n captchaText is {{'MESSAGE.required' | translate}}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n 0 && buttonnResendSmsDisable\" [value]=\"prorocess.progressBarValue\"\r\n max=\"{{prorocess.progressBarMaxValue}}\" style=\"width: inherit;\">\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

Email is correct!

\r\n

\r\n Message with 'recovery' instruction
\r\n has been sent
\r\n

\r\n \r\n Ok, got it!\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n {{ message }}\r\n
\r\n
\r\n
\r\n
","\r\nimport { ChangeDetectorRef, Component, OnInit } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport {\r\n CaptchaModel,\r\n CoreAuthService,\r\n FormInfoModel,\r\n AuthUserSignInBySmsDtoModel,\r\n} from 'projects/ntk-hospital-api/src/public-api';\r\nimport { Router } from '@angular/router';\r\nimport { CmsToastrService } from 'src/app/core/services/cmsToastr.service';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { TranslationService } from 'src/app/core/i18n/translation.service';\r\nimport { ProgressSpinnerModel } from 'src/app/core/models/progressSpinnerModel';\r\nenum ErrorStates {\r\n NotSubmitted,\r\n HasError,\r\n NoError,\r\n}\r\nexport class processModel {\r\n progressBarValue: number;\r\n progressBarMaxValue: number;\r\n message: string;\r\n}\r\n@Component({\r\n selector: 'app-auth-singin-bysms',\r\n templateUrl: './singin-bysms.component.html',\r\n styleUrls: ['./singin-bysms.component.scss'],\r\n})\r\nexport class AuthSingInBySmsComponent implements OnInit {\r\n constructor(\r\n private coreAuthService: CoreAuthService,\r\n private cmsToastrService: CmsToastrService,\r\n public translate: TranslateService,\r\n private router: Router,\r\n private translationService: TranslationService,\r\n private cdr: ChangeDetectorRef,\r\n ) {\r\n this.loading.cdr = this.cdr;\r\n this.loading.message = this.translate.instant('MESSAGE.Receiving_information');\r\n this.RePasswordModel = '';\r\n }\r\n errorState: ErrorStates = ErrorStates.NotSubmitted;\r\n errorStates = ErrorStates;\r\n isLoading$: Observable;\r\n dataModelAuthUserSignInBySms: AuthUserSignInBySmsDtoModel = new AuthUserSignInBySmsDtoModel();\r\n captchaModel: CaptchaModel = new CaptchaModel();\r\n // private fields\r\n forgetState = 'sms';\r\n loading = new ProgressSpinnerModel();\r\n formInfo: FormInfoModel = new FormInfoModel();\r\n passwordIsValid = false;\r\n RePasswordModel = '';\r\n onCaptchaOrderInProcess = false;\r\n ngOnInit(): void {\r\n this.onCaptchaOrder();\r\n }\r\n prorocess: processModel;\r\n buttonnResendSmsDisable = true;\r\n onActionSubmitOrderCodeBySms(): void {\r\n if (this.forgetState == 'entrycode') {\r\n if (!this.dataModelAuthUserSignInBySms.captchaText || this.dataModelAuthUserSignInBySms.captchaText.length == 0) {\r\n this.cmsToastrService.typeErrorMessage(this.translate.instant('MESSAGE.Receiving_information'));\r\n return;\r\n }\r\n }\r\n this.formInfo.buttonSubmittedEnabled = false;\r\n this.errorState = ErrorStates.NotSubmitted;\r\n this.dataModelAuthUserSignInBySms.captchaKey = this.captchaModel.key;\r\n this.dataModelAuthUserSignInBySms.lang = this.translationService.getSelectedLanguage();\r\n const pName = this.constructor.name + '.ServiceSigninUserBySMS';\r\n this.loading.Start(pName, 'ارسال درخواست ورود با یک بار رمز');\r\n this.coreAuthService\r\n .ServiceSigninUserBySMS(this.dataModelAuthUserSignInBySms)\r\n .subscribe({\r\n next: (res) => {\r\n if (res.isSuccess) {\r\n this.cmsToastrService.typeSuccessMessage(this.translate.instant('MESSAGE.The_login_code_was_texted_with_you'));\r\n this.forgetState = 'entrycode';\r\n //TimeDown \r\n this.prorocess = new processModel();\r\n this.prorocess.progressBarValue = 0;\r\n this.prorocess.progressBarMaxValue = 60;\r\n this.prorocess.message = '';\r\n this.buttonnResendSmsDisable = true;\r\n var timeleft = this.prorocess.progressBarMaxValue;\r\n let downloadTimer = setInterval(() => {\r\n this.prorocess.progressBarValue = this.prorocess.progressBarMaxValue - timeleft;\r\n this.prorocess.message = '(' + timeleft + ' ' + 'ثانیه' + ')';\r\n timeleft -= 1;\r\n if (timeleft <= 0) {\r\n this.buttonnResendSmsDisable = false;\r\n this.prorocess.message = '';\r\n clearInterval(downloadTimer);\r\n }\r\n this.cdr.detectChanges();\r\n\r\n }, 1000)\r\n //TimeDown \r\n }\r\n else {\r\n this.cmsToastrService.typeErrorMessage(res.errorMessage);\r\n }\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.onCaptchaOrder();\r\n this.loading.Stop(pName);\r\n },\r\n error: (er) => {\r\n this.cmsToastrService.typeError(er);\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.onCaptchaOrder();\r\n this.loading.Stop(pName);\r\n }\r\n });\r\n }\r\n onActionSubmitEntryPinCode(): void {\r\n this.formInfo.buttonSubmittedEnabled = false;\r\n this.errorState = ErrorStates.NotSubmitted;\r\n this.dataModelAuthUserSignInBySms.captchaKey = this.captchaModel.key;\r\n this.dataModelAuthUserSignInBySms.lang = this.translationService.getSelectedLanguage();\r\n const pName = this.constructor.name + '.ServiceSigninUserBySMS';\r\n this.loading.Start(pName, 'ارسال درخواست ورود با یک بار رمز');\r\n /** read storage */\r\n const siteId = + localStorage.getItem('siteId');\r\n if (siteId > 0) {\r\n this.dataModelAuthUserSignInBySms.siteId = siteId;\r\n }\r\n const ResellerSiteId = + localStorage.getItem('ResellerSiteId');\r\n if (ResellerSiteId > 0) {\r\n this.dataModelAuthUserSignInBySms.resellerSiteId = ResellerSiteId;\r\n }\r\n const ResellerUserId = + localStorage.getItem('ResellerUserId');\r\n if (ResellerUserId > 0) {\r\n this.dataModelAuthUserSignInBySms.resellerUserId = ResellerUserId;\r\n }\r\n /** read storage */\r\n this.coreAuthService\r\n .ServiceSigninUserBySMS(this.dataModelAuthUserSignInBySms)\r\n .subscribe({\r\n next: (res) => {\r\n if (res.isSuccess) {\r\n this.cmsToastrService.typeSuccessLogin();\r\n this.formInfo.buttonSubmittedEnabled = false;\r\n if (res.item.siteId > 0) {\r\n setTimeout(() => this.router.navigate(['/dashboard']), 1000);\r\n }\r\n else {\r\n setTimeout(() => this.router.navigate(['/core/site/selection']), 1000);\r\n }\r\n }\r\n else {\r\n this.onCaptchaOrder();\r\n this.cmsToastrService.typeErrorMessage(res.errorMessage);\r\n }\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.loading.Stop(pName);\r\n },\r\n error: (er) => {\r\n this.cmsToastrService.typeError(er);\r\n this.formInfo.buttonSubmittedEnabled = true;\r\n this.onCaptchaOrder();\r\n this.loading.Stop(pName);\r\n }\r\n }\r\n );\r\n }\r\n passwordValid(event): void {\r\n this.passwordIsValid = event;\r\n }\r\n onCaptchaOrder(): void {\r\n if (this.onCaptchaOrderInProcess) {\r\n return;\r\n }\r\n this.dataModelAuthUserSignInBySms.captchaText = '';\r\n const pName = this.constructor.name + '.ServiceCaptcha';\r\n this.loading.Start(pName, this.translate.instant('MESSAGE.get_security_photo_content'));\r\n this.coreAuthService.ServiceCaptcha().subscribe({\r\n next: (ret) => {\r\n this.captchaModel = ret.item;\r\n this.onCaptchaOrderInProcess = false;\r\n this.loading.Stop(pName);\r\n },\r\n error: (er) => {\r\n this.onCaptchaOrderInProcess = false;\r\n this.loading.Stop(pName);\r\n }\r\n }\r\n );\r\n }\r\n changeforgetState(model: string): void {\r\n this.forgetState = model;\r\n }\r\n}","import {NgModule} from '@angular/core';\r\nimport {Routes, RouterModule} from '@angular/router';\r\nimport {AuthComponent} from './auth.component';\r\nimport {AuthSingUpComponent} from './singup/singup.component';\r\nimport {AuthForgotPasswordComponent} from './forgot-password/forgot-password.component';\r\nimport { AuthSingoutComponent } from './singout/singout.component';\r\nimport { AuthSingInComponent } from './singin/singin.component';\r\nimport { AuthSingInBySmsComponent } from './singin-bysms/singin-bysms.component';\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n component: AuthComponent,\r\n children: [\r\n {\r\n path: 'singin',\r\n component: AuthSingInComponent,\r\n },\r\n {\r\n path: 'singinbysms',\r\n component: AuthSingInBySmsComponent,\r\n },\r\n {\r\n path: 'singout',\r\n component: AuthSingoutComponent,\r\n },\r\n {\r\n path: 'singup',\r\n component: AuthSingUpComponent\r\n },\r\n {\r\n path: 'forgot-password',\r\n component: AuthForgotPasswordComponent\r\n },\r\n {path: '', redirectTo: 'singin', pathMatch: 'full'},\r\n ]\r\n }\r\n];\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class AuthRoutingModule {\r\n}","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\r\nimport { HttpClientModule } from '@angular/common/http';\r\nimport { AuthRoutingModule } from './auth.routing';\r\nimport { AuthSingInComponent } from './singin/singin.component';\r\nimport { AuthForgotPasswordComponent } from './forgot-password/forgot-password.component';\r\nimport { AuthSingoutComponent } from './singout/singout.component';\r\nimport { AuthComponent } from './auth.component';\r\nimport { SharedModule } from 'src/app/shared.module';\r\nimport { AuthSingUpComponent } from './singup/singup.component';\r\nimport { SingupRuleComponent } from './singupRule/singupRule.Component';\r\nimport { AuthSingInBySmsComponent } from './singin-bysms/singin-bysms.component';\r\nimport { CoreAuthService, CoreConfigurationService, CoreModuleService } from 'projects/ntk-hospital-api/src/public-api';\r\n\r\n@NgModule({\r\n declarations: [\r\n AuthSingInComponent,\r\n AuthSingInBySmsComponent,\r\n AuthSingUpComponent,\r\n AuthForgotPasswordComponent,\r\n AuthSingoutComponent,\r\n AuthComponent,\r\n SingupRuleComponent,\r\n ],\r\n imports: [\r\n CommonModule,\r\n SharedModule.forRoot(),\r\n AuthRoutingModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n HttpClientModule,\r\n ],\r\n providers: [\r\n CoreModuleService,\r\n CoreConfigurationService,\r\n CoreAuthService\r\n ]\r\n})\r\nexport class AuthModule { }"]}