{"version":3,"sources":["src/app/app.component.ts","src/app/app.component.html","node_modules/@ngx-translate/http-loader/fesm2022/ngx-translate-http-loader.mjs","src/app/shared/components/menuArrow.component.ts","src/app/shared/components/closeIcon.component.ts","src/app/shared/components/headerSearchIcon.component.ts","src/app/layout/Customer/header/header.component.ts","src/app/layout/Customer/header/header.component.html","src/app/shared/components/top-wavy-curve/top-wavy-curve.component.ts","src/app/shared/components/top-wavy-curve/top-wavy-curve.component.html","src/app/layout/Customer/footer/footer.component.ts","src/app/layout/Customer/footer/footer.component.html","src/app/layout/Customer/main-layout/main-layout.component.ts","src/app/layout/Customer/main-layout/main-layout.component.html","src/app/shared/Services/auth-guard.guard.ts","src/app/layout/admin/sidebar/sidebar.component.ts","src/app/layout/admin/sidebar/sidebar.component.html","src/app/pages/Admin/dashboard/dashboard.component.ts","src/app/pages/Admin/dashboard/dashboard.component.html","src/app/shared/Services/unsaved-changes.guard.ts","src/app/app.routes.ts","src/app/shared/interceptors/auth.interceptor.ts","src/devextreme-license.ts","node_modules/@angular/animations/fesm2022/browser.mjs","node_modules/@angular/platform-browser/fesm2022/animations.mjs","src/app/shared/Services/recaptcha.service.ts","src/main.ts"],"sourcesContent":["import { Component } from '@angular/core';\r\nimport { NavigationEnd, Router, RouterOutlet } from '@angular/router';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { LanguageService } from './core/services/language.service';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n standalone: true,\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n RouterOutlet\r\n ],\r\n providers: [LanguageService],\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.css'],\r\n})\r\nexport class AppComponent {\r\n direction: string = 'ltr';\r\n\r\n constructor(\r\n private languageService: LanguageService,\r\n private router: Router\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n this.direction =\r\n this.languageService.getLanguage() === 'ar' ? 'rtl' : 'ltr';\r\n this.router.events.subscribe((event) => {\r\n if (event instanceof NavigationEnd) {\r\n window.scrollTo({ top: 0, behavior: 'smooth' });\r\n }\r\n });\r\n }\r\n}\r\n","