{ "version": 3, "sources": ["src/app/material.module.ts", "src/@fuse/components/sidebar/sidebar.service.ts", "src/app/app.component.ts", "src/app/app.component.html", "src/main.ts"], "sourcesContent": ["import { NgModule } from '@angular/core';\nimport { MatButtonToggleModule } from '@angular/material/button-toggle';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatDividerModule } from '@angular/material/divider';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatListModule } from '@angular/material/list';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatNativeDateModule } from '@angular/material/core';\nimport { MatPaginatorModule } from '@angular/material/paginator';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatRadioModule } from '@angular/material/radio';\nimport { MatRippleModule } from '@angular/material/core';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatSidenavModule } from '@angular/material/sidenav';\nimport { MatSliderModule } from '@angular/material/slider';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { MatSortModule } from '@angular/material/sort';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatAutocompleteModule } from '@angular/material/autocomplete';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatOptionModule } from '@angular/material/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\n@NgModule({\n imports: [\n MatAutocompleteModule,\n MatButtonModule,\n MatButtonToggleModule,\n MatCardModule,\n MatCheckboxModule,\n MatChipsModule,\n MatDatepickerModule,\n MatDialogModule,\n MatDividerModule,\n MatExpansionModule,\n MatGridListModule,\n MatIconModule,\n MatInputModule,\n MatListModule,\n MatMenuModule,\n MatNativeDateModule,\n MatPaginatorModule,\n MatProgressBarModule,\n MatProgressSpinnerModule,\n MatRadioModule,\n MatRippleModule,\n MatSelectModule,\n MatSidenavModule,\n MatSliderModule,\n MatSlideToggleModule,\n MatSnackBarModule,\n MatSortModule,\n MatStepperModule,\n MatTableModule,\n MatTabsModule,\n MatToolbarModule,\n MatTooltipModule,\n MatFormFieldModule,\n MatOptionModule,\n CommonModule,\n RouterModule\n ],\n exports: [\n MatAutocompleteModule,\n MatButtonModule,\n MatButtonToggleModule,\n MatCardModule,\n MatCheckboxModule,\n MatChipsModule,\n MatDatepickerModule,\n MatDialogModule,\n MatDividerModule,\n MatExpansionModule,\n MatGridListModule,\n MatIconModule,\n MatInputModule,\n MatListModule,\n MatMenuModule,\n MatNativeDateModule,\n MatPaginatorModule,\n MatProgressBarModule,\n MatProgressSpinnerModule,\n MatRadioModule,\n MatRippleModule,\n MatSelectModule,\n MatSidenavModule,\n MatSliderModule,\n MatSlideToggleModule,\n MatSnackBarModule,\n MatSortModule,\n MatStepperModule,\n MatTableModule,\n MatTabsModule,\n MatToolbarModule,\n MatTooltipModule,\n MatFormFieldModule,\n MatOptionModule\n ]\n})\nexport class MaterialModule { }", "import { Injectable } from '@angular/core';\n\nimport { FuseSidebarComponent } from './sidebar.component';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class FuseSidebarService\n{\n // Private\n private _registry: { [key: string]: FuseSidebarComponent } = {};\n\n /**\n * Constructor\n */\n constructor()\n {\n\n }\n\n /**\n * Add the sidebar to the registry\n *\n * @param key\n * @param sidebar\n */\n register(key, sidebar): void\n {\n // Check if the key already being used\n if ( this._registry[key] )\n {\n //console.error(`The sidebar with the key '${key}' already exists. Either unregister it first or use a unique key.`);\n\n return;\n }\n\n // Add to the registry\n this._registry[key] = sidebar;\n }\n\n /**\n * Remove the sidebar from the registry\n *\n * @param key\n */\n unregister(key): void\n {\n // Check if the sidebar exists\n if ( !this._registry[key] )\n {\n //console.warn(`The sidebar with the key '${key}' doesn't exist in the registry.`);\n }\n\n // Unregister the sidebar\n delete this._registry[key];\n }\n\n /**\n * Return the sidebar with the given key\n *\n * @param key\n * @returns {FuseSidebarComponent}\n */\n getSidebar(key): FuseSidebarComponent\n {\n // Check if the sidebar exists\n if ( !this._registry[key] )\n {\n //console.warn(`The sidebar with the key '${key}' doesn't exist in the registry.`);\n\n return;\n }\n\n // Return the sidebar\n return this._registry[key];\n }\n}\n", "import { Component, Inject, OnDestroy, OnInit } from '@angular/core';\nimport { DOCUMENT, NgIf } from '@angular/common';\nimport { Platform } from '@angular/cdk/platform';\nimport { Subject } from 'rxjs';\nimport { RouterModule, RouterOutlet, Router, RoutesRecognized } from '@angular/router';\nimport { FuseConfigService } from '../@fuse/services/config';\nimport { FuseNavigationService } from '../@fuse/components/navigation/navigation.service';\nimport { FuseSidebarService } from '../@fuse/components/sidebar/sidebar.service';\nimport { FuseSplashScreenService } from '../@fuse/services/splash-screen/splash-screen.service';\nimport {AppConfig} from \"./app.config\"\nimport { GlobalCompanyService } from './shared/component/global-company/global-company.service';\nimport { HasPermissionService } from \"./shared/services/haspermission.service\";\nimport { takeUntil } from 'rxjs/operators';\nimport { MaterialModule } from 'app/material.module';\nimport { NgxDatatableModule } from '@swimlane/ngx-datatable'; \nimport { GlobalSelectCompanyComponent } from './shared/component/global-company/global-company.component';\nimport { FuseAlertService } from '@fuse/components/alert';\nimport { NgxSpinnerModule } from \"ngx-spinner\";\n//import {SelectCompanyComponent} from \"./shared/component/select-company/select-company.component\"\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.scss'],\n standalone: true,\n imports: [RouterOutlet, RouterModule, MaterialModule, NgxDatatableModule,NgxSpinnerModule],\n providers: [GlobalCompanyService, HasPermissionService, GlobalSelectCompanyComponent]\n})\nexport class AppComponent {\n isPermissionApiCompleted: boolean = false; // Initialize as false\n isPPermission: boolean = true;\n fuseConfig: any;\n navigation: any;\n\n dialogRef: any;\n // Private\n private unsubscribeAll: Subject;\n\n /**\n * Constructor\n *\n * @param {DOCUMENT} document\n * @param {FuseConfigService} _fuseConfigService\n * @param {FuseNavigationService} _fuseNavigationService\n * @param {FuseSidebarService} _fuseSidebarService\n * @param {FuseSplashScreenService} _fuseSplashScreenService\n * @param {FuseTranslationLoaderService} _fuseTranslationLoaderService\n * @param {Platform} _platform\n * @param {TranslateService} _translateService\n */\n constructor(\n @Inject(DOCUMENT) private document: any,\n private readonly fuseConfigService: FuseConfigService,\n private readonly fuseNavigationService: FuseNavigationService,\n private readonly fuseSidebarService: FuseSidebarService,\n private readonly fuseSplashScreenService: FuseSplashScreenService,\n private readonly platform: Platform,\n private router: Router,\n private readonly appConfig: AppConfig,\n private readonly hasPermissionService: HasPermissionService,\n private readonly globalCompanyService: GlobalCompanyService,\n public fuseAlertService: FuseAlertService\n\n ) {\n \n // Get default navigation\n //this.navigation = navigation;\n\n // Register the navigation to the service\n //this.fuseNavigationService.register('main', this.navigation);\n\n // Set the main navigation as our current navigation\n //this.fuseNavigationService.setCurrentNavigation('main');\n\n\n // Add is-mobile class to the body if the platform is mobile\n if (this.platform.ANDROID || this.platform.IOS) {\n this.document.body.classList.add('is-mobile');\n }\n\n // Set the private defaults\n this.unsubscribeAll = new Subject();\n this.globalCompanyService.expireSubscription = true;\n\n }\n \n // -----------------------------------------------------------------------------------------------------\n // @ Lifecycle hooks\n // -----------------------------------------------------------------------------------------------------\n\n /**\n * On init\n */\n ngOnInit(): void {\n this.router.events.subscribe((event) => {\n if (event instanceof RoutesRecognized) {\n if (event.url.startsWith(\"/auth\") || event.url.startsWith(\"/main/company/sign-up\")) {\n this.fuseSplashScreenService.hide();\n this.isPermissionApiCompleted = true;\n }\n }\n });\n \n // Subscribe to config changes\n if(this.fuseConfigService.config){\n this.fuseConfigService.config\n .pipe(takeUntil(this.unsubscribeAll))\n .subscribe((config) => {\n this.fuseConfig = config;\n\n if (this.fuseConfig.layout.width === 'boxed') {\n this.document.body.classList.add('boxed');\n }\n else {\n this.document.body.classList.remove('boxed');\n }\n });\n }\n\n this.globalCompanyService.expireSubscription.subscribe(res => {\n if (res === true) {\n this.globalCompanyService.startSubscriptionExpirationTimer();\n } \n else {\n this.globalCompanyService.closeNotificaction();\n }\n });\n if (this.appConfig.isAuthenticated()) {\n this.checkUserPermissions();\n }\n \n }\n\n checkUserPermissions() {\n this.hasPermissionService.getUserPermission().subscribe(res => {\n if (res.status === 1) {\n this.hasPermissionService.setCurrUserPermissions(res.data);\n this.isPermissionApiCompleted = true;\n //this.fuseAlertService.show(res.message, res.status);\n\n this.hasPermissionService.isApiCallCompleted = true;\n this.fuseSplashScreenService.hide();\n }\n });\n }\n \n\n /**\n * On destroy\n */\n ngOnDestroy(): void {\n // Unsubscribe from all subscriptions\n this.unsubscribeAll.next(null);;\n this.unsubscribeAll.complete();\n }\n\n // -----------------------------------------------------------------------------------------------------\n // @ Public methods\n // -----------------------------------------------------------------------------------------------------\n\n /**\n * Toggle sidebar open\n *\n * @param key\n */\n toggleSidebarOpen(key): void {\n this.fuseSidebarService.getSidebar(key).toggleOpen();\n }\n}\n", "\n\n\n", "// import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n \n// import { AppModule } from './app/app.module';\n \n// platformBrowserDynamic().bootstrapModule(AppModule)\n// .catch(err => console.error(err));\n\nimport { bootstrapApplication } from '@angular/platform-browser';\nimport { AppComponent } from 'app/app.component';\nimport { appConfig } from 'app/app.config';\n\nbootstrapApplication(AppComponent, appConfig).catch((err) =>\n console.error(err)\n);\n"], "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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