import { Routes } from '@angular/router';

import { AppJSResolve, AppExtensionJSResolve, AppVariablesResolve, {{#unless enableSpa}}AuthGuard, RoleGuard, {{/unless}} EmptyPageComponent, PageNotFoundGuard } from '@wm/runtime/base';

import { LazyLoadScriptsResolve } from './lazy-load-scripts.resolve';
import { inject } from "@angular/core"

{{ImportPrefabPreviewComponent wmProjectProperties}};

const appDependenciesResolve = {
    appJS: () => inject(AppJSResolve).resolve(),
    appMetaConfig: () => inject(AppExtensionJSResolve).resolve(),
    appVariables: () => inject(AppVariablesResolve).resolve(),
    lazyLoadScriptsResolv: () => inject(LazyLoadScriptsResolve).resolve()
};

export const routes: Routes = {{DefineAppRoutes wmProjectProperties layoutsConfig pagesConfig securityConfig enableSpa}}
