import { Injector, ElementRef, Component, OnInit, ViewChild } from '@angular/core'; import { appModuleAnimation } from '@shared/animations/routerTransition'; import { ThemesLayoutBaseComponent } from '@app/shared/layout/themes/themes-layout-base.component'; import { UrlHelper } from '@shared/helpers/UrlHelper'; import { AppConsts } from '@shared/AppConsts'; import { OffcanvasOptions } from '@metronic/app/core/_base/layout/directives/offcanvas.directive'; @Component({ templateUrl: './theme9-layout.component.html', selector: 'theme9-layout', animations: [appModuleAnimation()] }) export class Theme9LayoutComponent extends ThemesLayoutBaseComponent implements OnInit { @ViewChild('kt_aside', {static: true}) kt_aside: ElementRef; menuCanvasOptions: OffcanvasOptions = { baseClass: 'kt-aside', overlay: true, closeBy: 'kt_aside_close_btn', toggleBy: [{ target: 'kt_aside_mobile_toggler', state: 'kt-header-mobile__toolbar-toggler--active' }, { target: 'kt_aside_toggler', state: 'kt-aside-toggler--active' }] }; remoteServiceBaseUrl: string = AppConsts.remoteServiceBaseUrl; defaultLogo = AppConsts.appBaseUrl + '/assets/common/images/app-logo-on-' + this.currentTheme.baseSettings.menu.asideSkin + '.svg'; constructor( injector: Injector ) { super(injector); } ngOnInit() { this.installationMode = UrlHelper.isInstallUrl(location.href); } }