import { Routes } from '@angular/router'; import { Home } from './home'; import { DOMINIOS } from './features/indicadores/indicadores.models'; const loadIndicadores = () => import('./features/indicadores/indicadores-page').then(module => module.IndicadoresPage); export const routes: Routes = [ { path: '', component: Home, title: 'Análisis de información | ISSSTELEON' }, { path: 'conectar', title: 'Conectar datos | ISSSTELEON', // Lazy: the workspace (and the ~15 Material modules it uses) only // downloads when someone actually opens it. loadComponent: () => import('./connect/components/connect-page/connect-page').then((m) => m.ConnectPage), data: { workspace: true, breadcrumb: 'Conectar datos' }, }, { path: 'gobernanza', title: 'Gobernanza de modelos | ISSSTELEON', loadComponent: () => import('./governance/components/governance-page/governance-page').then((m) => m.GovernancePage), data: { workspace: true, breadcrumb: 'Gobernanza de modelos' }, }, { path: 'bitacora', title: 'Bitácora de cargas | ISSSTELEON', loadComponent: () => import('./reportes/reportes-page').then((m) => m.ReportesPage), data: { workspace: true, breadcrumb: 'Bitácora de cargas' }, }, { path: 'indicadores', pathMatch: 'full', redirectTo: 'indicadores/tea' }, ...DOMINIOS.map(dominio => ({ path: `indicadores/${dominio}`, title: 'Indicadores | ISSSTELEON', data: { workspace: true, breadcrumb: 'Indicadores', dominio }, loadComponent: loadIndicadores, })), { path: '**', redirectTo: '' }, ];