{ "version": 3, "sources": ["src/app/shared/models/SystemConfiguration.ts", "src/app/shared/Services/app-config-service.service.ts", "src/app/shared/models/AuthStorageKeys.ts", "src/app/shared/Services/auth.service.ts", "src/app/shared/Services/localstorage.service.ts", "src/app/shared/components/earth.component.ts", "src/app/layout/admin/admin-header/admin-header.component.ts", "src/app/layout/admin/admin-header/admin-header.component.html"], "sourcesContent": ["export class SystemConfiguration {\r\n apiBaseUrl: string = '';\r\n recaptchaSiteKey: string = '';\r\n}\r\n", "import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { BehaviorSubject, catchError, EMPTY } from 'rxjs';\r\nimport { SystemConfiguration } from '../models/SystemConfiguration';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AppConfigService {\r\n private envUrl = 'assets/appSettings.json';\r\n private config: SystemConfiguration;\r\n\r\n loaded$ = new BehaviorSubject(false);\r\n\r\n constructor(private httpClient: HttpClient) {\r\n this.config = new SystemConfiguration();\r\n }\r\n loadConfig(): Promise {\r\n \r\n return new Promise((resolve, reject) => {\r\n this.httpClient\r\n .get(this.envUrl)\r\n .pipe(\r\n catchError((err) => {\r\n return EMPTY;\r\n })\r\n )\r\n .subscribe(\r\n (response: any) => {\r\n this.config = response;\r\n this.loaded$.next(true);\r\n resolve(true);\r\n },\r\n (err) => {}\r\n );\r\n });\r\n }\r\n\r\n getConfig(): SystemConfiguration {\r\n return this.config;\r\n }\r\n\r\n get Config(): SystemConfiguration {\r\n return this.config;\r\n }\r\n}\r\n", "export const AuthStorageKeys = {\r\n ACCESS_TOKEN: 'accessToken',\r\n REFRESH_TOKEN: 'refreshToken',\r\n EXPIRATION_TIME: 'expirationTime',\r\n TOKEN_TYPE: 'tokenType',\r\n ROLE: 'role',\r\n REMEMBER_ME: 'rememeberMe',\r\n};\r\n", "import { HttpClient, HttpErrorResponse } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport {\r\n EMPTY,\r\n Observable,\r\n catchError,\r\n map,\r\n switchMap,\r\n tap,\r\n} from 'rxjs';\r\nimport { LocalStorageService } from './localstorage.service';\r\nimport {\r\n LoginRequest,\r\n RefreshRequest,\r\n} from '../../core/services/GEnviroCLient';\r\nimport { AuthStorageKeys } from '../models/AuthStorageKeys';\r\nimport { LoginResponse } from '../models/login-response';\r\nimport Swal from 'sweetalert2';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { AppConfigService } from './app-config-service.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AuthService {\r\n private apiBaseUrl: string = '';\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n private localStorageService: LocalStorageService,\r\n private translate: TranslateService,\r\n private configService: AppConfigService\r\n ) {\r\n this.configService.loaded$.asObservable().subscribe({\r\n next:(isLoaded) => {\r\n if(isLoaded)\r\n this.apiBaseUrl = this.configService.getConfig().apiBaseUrl;\r\n }\r\n });\r\n }\r\n\r\n //Logs in the user and saves tokens to localStorage\r\n login(\r\n credential: LoginRequest,\r\n rememberMe: boolean\r\n ): Observable {\r\n return this.httpClient\r\n .post(`${this.apiBaseUrl}/login`, credential)\r\n .pipe(\r\n map((response) => {\r\n if (rememberMe) {\r\n this.storeAuthData(response);\r\n } else {\r\n this.storeUserDataInSessionStorage(response);\r\n }\r\n return response;\r\n }),\r\n catchError((err) => {\r\n let error = err as HttpErrorResponse;\r\n let errorStatusCode = error.error.status;\r\n let isOkay = error.ok;\r\n\r\n if (errorStatusCode == 401 && isOkay == false) {\r\n Swal.fire({\r\n title: this.translate.instant(\r\n 'ADMIN.Login.invalidCredentialsTitle'\r\n ),\r\n text: this.translate.instant(\r\n 'ADMIN.Login.invalidCredentialsMessage'\r\n ),\r\n icon: 'error',\r\n });\r\n }\r\n return EMPTY;\r\n })\r\n );\r\n }\r\n\r\n // Refreshes the access token using the refresh token\r\n refreshToken(): Observable {\r\n const refreshToken = this.getRefreshToken();\r\n const refreshRequest = new RefreshRequest();\r\n refreshRequest.refreshToken = refreshToken as string;\r\n const isRememberMe =\r\n this.localStorageService.getItem(AuthStorageKeys.REMEMBER_ME) ===\r\n 'true';\r\n\r\n return this.httpClient\r\n .post(`${this.apiBaseUrl}/refresh`, refreshRequest)\r\n .pipe(\r\n tap((response) => {\r\n if (isRememberMe) {\r\n this.storeAuthData(response);\r\n } else {\r\n this.storeUserDataInSessionStorage(response);\r\n }\r\n })\r\n );\r\n }\r\n\r\n // Checks if the access token has expired\r\n isAccessTokenExpired(): boolean {\r\n var expirationTime =\r\n this.localStorageService.getItem(AuthStorageKeys.EXPIRATION_TIME) ??\r\n sessionStorage.getItem(AuthStorageKeys.EXPIRATION_TIME);\r\n\r\n if (!expirationTime) return true;\r\n\r\n const now = new Date().getTime();\r\n return now > parseInt(expirationTime, 10);\r\n }\r\n\r\n // Logs out the user by clearing localStorage\r\n logout(): void {\r\n this.localStorageService.clearAuthData();\r\n this.clearUserDataFromSessionStorage();\r\n }\r\n\r\n // Checks if the user is logged in\r\n isLoggedIn(): boolean {\r\n const accessToken = this.getAccessToken();\r\n const refreshToken = this.getRefreshToken();\r\n return !!accessToken && !!refreshToken;\r\n }\r\n\r\n // Retrieves the access token\r\n getAccessToken(): string | null {\r\n var sessionToken = sessionStorage.getItem(AuthStorageKeys.ACCESS_TOKEN);\r\n var localToken = this.localStorageService.getItem(\r\n AuthStorageKeys.ACCESS_TOKEN\r\n );\r\n return sessionToken || localToken;\r\n }\r\n\r\n // Retrieves the user role\r\n getUserRole(): string | null {\r\n return this.localStorageService.getItem(AuthStorageKeys.ROLE);\r\n }\r\n\r\n // Retrieves the refresh token\r\n getRefreshToken(): string | null {\r\n let token =\r\n sessionStorage.getItem(AuthStorageKeys.REFRESH_TOKEN) ??\r\n this.localStorageService.getItem(AuthStorageKeys.REFRESH_TOKEN);\r\n return token;\r\n }\r\n\r\n // Stores tokens and expiration time in localStorage\r\n private storeAuthData(response: LoginResponse): void {\r\n this.localStorageService.setItem(AuthStorageKeys.REMEMBER_ME, 'true');\r\n this.localStorageService.setItem(\r\n AuthStorageKeys.ACCESS_TOKEN,\r\n response.accessToken\r\n );\r\n this.localStorageService.setItem(\r\n AuthStorageKeys.REFRESH_TOKEN,\r\n response.refreshToken\r\n );\r\n\r\n const expirationTime = new Date().getTime() + response.expiresIn * 1000;\r\n this.localStorageService.setItem(\r\n AuthStorageKeys.EXPIRATION_TIME,\r\n expirationTime.toString()\r\n );\r\n }\r\n private storeUserDataInSessionStorage(response: LoginResponse): void {\r\n this.localStorageService.setItem(AuthStorageKeys.REMEMBER_ME, 'false');\r\n sessionStorage.setItem(AuthStorageKeys.ACCESS_TOKEN, response.accessToken);\r\n sessionStorage.setItem(\r\n AuthStorageKeys.REFRESH_TOKEN,\r\n response.refreshToken\r\n );\r\n const expirationTime = new Date().getTime() + response.expiresIn * 1000;\r\n\r\n sessionStorage.setItem(\r\n AuthStorageKeys.EXPIRATION_TIME,\r\n expirationTime.toString()\r\n );\r\n }\r\n\r\n private clearUserDataFromSessionStorage(): void {\r\n sessionStorage.removeItem(AuthStorageKeys.ACCESS_TOKEN);\r\n sessionStorage.removeItem(AuthStorageKeys.REFRESH_TOKEN);\r\n sessionStorage.removeItem(AuthStorageKeys.EXPIRATION_TIME);\r\n }\r\n}\r\n", "import { Injectable } from '@angular/core';\r\nimport { AuthStorageKeys } from '../models/AuthStorageKeys';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class LocalStorageService {\r\n setItem(key: string, value: string): void {\r\n localStorage.setItem(key, value);\r\n }\r\n\r\n getItem(key: string): string | null {\r\n return localStorage.getItem(key);\r\n }\r\n\r\n removeItem(key: string): void {\r\n localStorage.removeItem(key);\r\n }\r\n\r\n clearAuthData(): void {\r\n this.removeItem(AuthStorageKeys.ACCESS_TOKEN);\r\n this.removeItem(AuthStorageKeys.REFRESH_TOKEN);\r\n this.removeItem(AuthStorageKeys.EXPIRATION_TIME);\r\n }\r\n}\r\n", "import { CommonModule } from '@angular/common';\r\nimport { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-earth-icon',\r\n standalone: true,\r\n imports: [CommonModule],\r\n template: `\r\n \r\n \r\n \r\n \r\n \r\n `,\r\n})\r\nexport class EarthIconComponent {}\r\n", "import { Component, OnInit, Renderer2, Output, EventEmitter } from '@angular/core';\r\nimport { LanguageService } from '../../../core/services/language.service';\r\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\r\nimport { Router, RouterModule } from '@angular/router';\r\nimport { CommonModule, Location } from '@angular/common';\r\nimport { EarthIconComponent } from '../../../shared/components/earth.component';\r\nimport { AppConfigService } from '../../../shared/Services/app-config-service.service';\r\nimport { AuthService } from '../../../shared/Services/auth.service';\r\n\r\n@Component({\r\n selector: 'app-admin-header',\r\n imports: [CommonModule, TranslateModule, RouterModule, EarthIconComponent],\r\n providers: [AppConfigService],\r\n templateUrl: './admin-header.component.html',\r\n styleUrl: './admin-header.component.css',\r\n})\r\nexport class AdminHeaderComponent implements OnInit {\r\n activeLanguage: string = 'en';\r\n isScrolled: boolean = false;\r\n direction: string = 'ltr';\r\n isMenuOpen: boolean = false;\r\n activePath: string = '/admin';\r\n isLogging: boolean = false;\r\n appearSideBarNav: boolean = false;\r\n @Output() dataEmitter: EventEmitter = new EventEmitter();\r\n constructor(\r\n private renderer: Renderer2,\r\n private languageService: LanguageService,\r\n private translateService: TranslateService,\r\n private router: Router,\r\n private location: Location,\r\n private _authService: AuthService\r\n ) {}\r\n\r\n ngOnInit() {\r\n this.isMenuOpen = false;\r\n this.activePath = this.location.path();\r\n const savedDirection = (this.direction =\r\n this.languageService.getLanguage() === 'ar' ? 'rtl' : 'ltr');\r\n this.setDirection(savedDirection);\r\n this.router.events.subscribe(() => {\r\n this.activePath = this.location.path();\r\n });\r\n\r\n this.isLogging = this._authService.isLoggedIn();\r\n }\r\n isActive(path: string): boolean {\r\n return this.activePath === path;\r\n }\r\n\r\n setDirection(direction: string) {\r\n const rootElement = document.documentElement;\r\n this.renderer.setAttribute(rootElement, 'dir', direction);\r\n const language = direction === 'rtl' ? 'ar' : 'en';\r\n this.translateService.use(language);\r\n this.languageService.setLanguage(language);\r\n this.activeLanguage = language;\r\n }\r\n\r\n ChangeLanguage(direction: string) {\r\n this.setDirection(direction);\r\n location.reload();\r\n }\r\n\r\n AppearSideBar() {\r\n this.appearSideBarNav = true;\r\n this.dataEmitter.emit(this.appearSideBarNav);\r\n }\r\n \r\n isActiveLanguage(language: string): boolean {\r\n return this.activeLanguage === language;\r\n }\r\n\r\n getLanguageDirection(): string {\r\n return this.activeLanguage === 'ar' ? 'rtl' : 'ltr';\r\n }\r\n\r\n logOut() {\r\n this._authService.logout();\r\n window.location.href = '/go-admin/login';\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 EN\r\n \r\n \r\n
    \r\n
    \r\n \"\"\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n"], "mappings": "yfAAM,IAAOA,EAAP,KAA0B,CAAhCC,aAAA,CACE,KAAAC,WAAqB,GACrB,KAAAC,iBAA2B,EAC7B,GCKA,IAAaC,GAAgB,IAAA,CAAvB,MAAOA,CAAgB,CAM3BC,YAAoBC,EAAsB,CAAtB,KAAAA,WAAAA,EALZ,KAAAC,OAAS,0BAGjB,KAAAC,QAAU,IAAIC,EAAyB,EAAK,EAG1C,KAAKC,OAAS,IAAIC,CACpB,CACAC,YAAU,CAER,OAAO,IAAIC,QAAQ,CAACC,EAASC,IAAU,CACrC,KAAKT,WACFU,IAAI,KAAKT,MAAM,EACfU,KACCC,EAAYC,GACHC,CACR,CAAC,EAEHC,UACEC,GAAiB,CAChB,KAAKZ,OAASY,EACd,KAAKd,QAAQe,KAAK,EAAI,EACtBT,EAAQ,EAAI,CACd,EACCK,GAAO,CAAE,CAAC,CAEjB,CAAC,CACH,CAEAK,WAAS,CACP,OAAO,KAAKd,MACd,CAEA,IAAIe,QAAM,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ExC,EAAA,EAAAoE,EAAA,iBAAAP,EAAAtB,iBAAA,IAAA,EAAA,OAAA,MAAA,EAFA0B,EAAA,UAAAC,EAAA,GAAAG,GAAAR,EAAAtB,iBAAA,IAAA,CAAA,CAAA,EAWAvC,EAAA,CAAA,EAAAoE,EAAA,iBAAAP,EAAAtB,iBAAA,IAAA,EAAA,OAAA,MAAA,EAFA0B,EAAA,UAAAC,EAAA,GAAAG,GAAAR,EAAAtB,iBAAA,IAAA,CAAA,CAAA,EAQ4CvC,EAAA,CAAA,EAAAiE,EAAA,OAAAJ,EAAA7C,SAAA,kBDvB1CsD,EAAYC,EAAAC,EAAEC,EAAeC,EAAEC,EAAcC,EAAkB,EAAAC,OAAA,CAAA;gEAAA,CAAA,CAAA,CAAA,SAK9D1E,CAAoB,GAAA", "names": ["SystemConfiguration", "constructor", "apiBaseUrl", "recaptchaSiteKey", "AppConfigService", "constructor", "httpClient", "envUrl", "loaded$", "BehaviorSubject", "config", "SystemConfiguration", "loadConfig", "Promise", "resolve", "reject", "get", "pipe", "catchError", "err", "EMPTY", "subscribe", "response", "next", "getConfig", "Config", "\u0275\u0275inject", "HttpClient", "factory", "\u0275fac", "providedIn", "AuthStorageKeys", "ACCESS_TOKEN", "REFRESH_TOKEN", "EXPIRATION_TIME", "TOKEN_TYPE", "ROLE", "REMEMBER_ME", "import_sweetalert2", "LocalStorageService", "setItem", "key", "value", "localStorage", "getItem", "removeItem", "clearAuthData", "AuthStorageKeys", "ACCESS_TOKEN", "REFRESH_TOKEN", "EXPIRATION_TIME", "factory", "\u0275fac", "providedIn", "AuthService", "constructor", "httpClient", "localStorageService", "translate", "configService", "apiBaseUrl", "loaded$", "asObservable", "subscribe", "next", "isLoaded", "getConfig", "login", "credential", "rememberMe", "post", "pipe", "map", "response", "storeAuthData", "storeUserDataInSessionStorage", "catchError", "err", "error", "errorStatusCode", "status", "isOkay", "ok", "Swal", "fire", "title", "instant", "text", "icon", "EMPTY", "refreshToken", "getRefreshToken", "refreshRequest", "RefreshRequest", "isRememberMe", "getItem", "AuthStorageKeys", "REMEMBER_ME", "tap", "isAccessTokenExpired", "expirationTime", "EXPIRATION_TIME", "sessionStorage", "Date", "getTime", "parseInt", "logout", "clearAuthData", "clearUserDataFromSessionStorage", "isLoggedIn", "accessToken", "getAccessToken", "sessionToken", "ACCESS_TOKEN", "localToken", "getUserRole", "ROLE", "REFRESH_TOKEN", "setItem", "expiresIn", "toString", "removeItem", "\u0275\u0275inject", "HttpClient", "LocalStorageService", "TranslateService", "AppConfigService", "factory", "\u0275fac", "providedIn", "EarthIconComponent", "selectors", "decls", "vars", "consts", "template", "rf", "ctx", "\u0275\u0275elementStart", "\u0275\u0275element", "\u0275\u0275elementEnd", "CommonModule", "encapsulation", "\u0275\u0275elementStart", "\u0275\u0275listener", "\u0275\u0275restoreView", "_r1", "ctx_r1", "\u0275\u0275nextContext", "\u0275\u0275resetView", "AppearSideBar", "\u0275\u0275element", "\u0275\u0275elementEnd", "_r3", "logOut", "\u0275\u0275text", "\u0275\u0275advance", "\u0275\u0275textInterpolate1", "\u0275\u0275pipeBind1", "AdminHeaderComponent", "constructor", "renderer", "languageService", "translateService", "router", "location", "_authService", "activeLanguage", "isScrolled", "direction", "isMenuOpen", "activePath", "isLogging", "appearSideBarNav", "dataEmitter", "EventEmitter", "ngOnInit", "path", "savedDirection", "getLanguage", "setDirection", "events", "subscribe", "isLoggedIn", "isActive", "rootElement", "document", "documentElement", "setAttribute", "language", "use", "setLanguage", "ChangeLanguage", "reload", "emit", "isActiveLanguage", "getLanguageDirection", "logout", "window", "href", "\u0275\u0275directiveInject", "Renderer2", "LanguageService", "TranslateService", "Router", "Location", "AuthService", "selectors", "outputs", "features", "\u0275\u0275ProvidersFeature", "AppConfigService", "decls", "vars", "consts", "template", "rf", "ctx", "\u0275\u0275template", "AdminHeaderComponent_div_1_Template", "AdminHeaderComponent_div_11_Template", "\u0275\u0275property", "\u0275\u0275pureFunction1", "_c0", "\u0275\u0275styleProp", "_c1", "CommonModule", "NgClass", "NgIf", "TranslateModule", "TranslatePipe", "RouterModule", "EarthIconComponent", "styles"] }