{"version":3,"file":"src_app_modules_auth_auth_module_ts.af561dacd779e875.js","mappings":"8MAIA,MAAMA,EAAiB,CACnB,CAAEC,KAAM,GAAIC,UAAW,OAAQC,WAAY,SAC3C,CACIF,KAAM,QACNG,QAAS,CAACC,KACVC,aAAc,IACVC,+EAAuCC,KAAK,EAAGC,iBAAkBA,IAEzE,CACIR,KAAM,WACNG,QAAS,CAACC,KACVC,aAAc,IACVC,6FAA6CC,KACzC,EAAGE,oBAAqBA,IAGpC,CACIT,KAAM,aACNG,QAAS,CAACC,KACVC,aAAc,IACVC,yFAAiDC,KAC7C,EAAGG,qBAAsBA,IAGrC,CACIV,KAAM,UACNG,QAAS,CAACC,KACVC,aAAc,IACVM,gHAA2CJ,KAAK,EAAGK,mBAAoBA,KAQ5E,IAAMC,EAAb,MAAM,MAAOA,kDAAiB,0BAAjBA,gCAHCC,cAAsBf,GACtBe,QAEDD,CAAb,mBC/BO,IAAME,EAAb,MAAM,MAAOA,kDAAU,0BAAVA,iCAFE,CAACC,KAAuBC,SADzBJ,KAGDE,CAAb,sCCTO,MAAMG,EAAuB,CAChCC,eAAgB,CACZC,KAAM,kBACNC,YAAa,+BAEjB,KAAM,CACFD,KAAM,mBACNC,YAAa,wBAEjB,MAAS,CACLD,KAAM,+BACNC,YAAa,gCAEjB,IAAO,CACHD,KAAM,eACNC,YAAa,kDAEjB,MAAS,CACLD,KAAM,YACNC,YACI,+GAER,MAAS,CACLD,KAAM,YACNC,YACI,0FAER,MAAS,CACLD,KAAM,wBACNC,YACI,oIC1BL,IAAML,EAAb,MAAM,MAAOA,EAETM,WAAWC,GAEP,OAAOL,EADWK,EAAcC,cAAcC,OAASF,EAAcG,SAC3BR,gBAC7C,+CALQF,EAAsB,4BAAtBA,EAAsBW,QAAtBX,EAAsB,YAAtBA,CAAb","names":["routes","path","pathMatch","redirectTo","canLoad","UnAuthGuard","loadChildren","__webpack_require__","then","LoginModule","RegisterModule","LoginHelpModule","Promise","SupportModule","AuthRoutingModule","RouterModule","AuthModule","ResponseMessageService","imports","RESPONSE_ERROR_CODES","unhandledError","desc","visibleText","getMessage","responseError","errorContent","error","status","factory"],"sourceRoot":"webpack:///","sources":["./src/app/modules/auth/auth-routing.module.ts","./src/app/modules/auth/auth.module.ts","./src/app/modules/auth/constant/response-error-codes.constant.ts","./src/app/modules/auth/services/response-message.service.ts"],"sourcesContent":["import { NgModule } from \"@angular/core\";\r\nimport { Routes, RouterModule } from \"@angular/router\";\r\nimport { UnAuthGuard } from \"@core/guards/un-auth.guard\";\r\n\r\nconst routes: Routes = [\r\n { path: \"\", pathMatch: \"full\", redirectTo: \"login\" },\r\n {\r\n path: \"login\",\r\n canLoad: [UnAuthGuard],\r\n loadChildren: () =>\r\n import(\"./modules/login/login.module\").then(({ LoginModule }) => LoginModule),\r\n },\r\n {\r\n path: \"register\",\r\n canLoad: [UnAuthGuard],\r\n loadChildren: () =>\r\n import(\"./modules/register/register.module\").then(\r\n ({ RegisterModule }) => RegisterModule\r\n ),\r\n },\r\n {\r\n path: \"login-help\",\r\n canLoad: [UnAuthGuard],\r\n loadChildren: () =>\r\n import(\"./modules/login-help/login-help.module\").then(\r\n ({ LoginHelpModule }) => LoginHelpModule\r\n ),\r\n },\r\n {\r\n path: \"support\",\r\n canLoad: [UnAuthGuard],\r\n loadChildren: () =>\r\n import(\"./modules/support/support.module\").then(({ SupportModule }) => SupportModule),\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 { AuthRoutingModule } from \"./auth-routing.module\";\r\nimport { ResponseMessageService } from \"./services/response-message.service\";\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [AuthRoutingModule],\r\n providers: [ResponseMessageService],\r\n})\r\nexport class AuthModule {}\r\n","export const RESPONSE_ERROR_CODES = {\r\n unhandledError: {\r\n desc: \"Unhandled Error\",\r\n visibleText: \"Unhandled error from server\",\r\n },\r\n \"-1\": {\r\n desc: \"Connection Error\",\r\n visibleText: \"Can't connect to API\",\r\n },\r\n \"400.1\": {\r\n desc: \"Invalid username or password\",\r\n visibleText: \"Invalid username or password\",\r\n },\r\n \"401\": {\r\n desc: \"Unauthorized\",\r\n visibleText: \"Authorization has been denied for this request\",\r\n },\r\n \"403.1\": {\r\n desc: \"Soft Lock\",\r\n visibleText:\r\n \"Your account is temporarily locked out. Please wait 15 minutes and try again or contact your administrator.\",\r\n },\r\n \"403.2\": {\r\n desc: \"Hard Lock\",\r\n visibleText:\r\n \"Account is locked out. Please contact your admin or Databank support to unlock account\",\r\n },\r\n \"403.3\": {\r\n desc: \"Session limit reached\",\r\n visibleText:\r\n \"You have reached the maximum number of sessions allowed. Please end a session in your browser or My Profile page.\",\r\n },\r\n};\r\n","import { Injectable } from \"@angular/core\";\r\nimport { RESPONSE_ERROR_CODES } from \"../constant/response-error-codes.constant\";\r\n\r\n@Injectable()\r\nexport class ResponseMessageService {\r\n // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\r\n getMessage(responseError: any) {\r\n const errorCode = responseError.errorContent?.error || responseError.status;\r\n return RESPONSE_ERROR_CODES[errorCode] || RESPONSE_ERROR_CODES.unhandledError;\r\n }\r\n}\r\n"],"x_google_ignoreList":[]}