/** * Copyright since 2025 Mifos Initiative * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { Route } from '../core/route/route.service'; import { RbiCircularsComponent } from './rbi-circulars.component'; import { AmlRulesComponent } from './aml-rules/aml-rules.component'; const routes: Routes = [ Route.withShell([ { path: 'rbi-circulars', component: RbiCircularsComponent, data: { title: 'RBI Circulars', breadcrumb: 'RBI Circulars' } }, { path: 'rbi/aml', component: AmlRulesComponent, data: { title: 'AML Rules Master', breadcrumb: 'AML Rules Master' } }, { path: 'rbi/oss1', // Lazy — the ExcelJS workbook builder should not weigh down the eager bundle. loadComponent: () => import('./oss1-ral/oss1-ral.component').then((m) => m.Oss1RalComponent), data: { title: 'OSS 1 — Return on Assets and Liabilities', breadcrumb: 'OSS 1 (RAL)' } }, { path: 'rbi/oss2', loadComponent: () => import('./oss2-roe/oss2-roe.component').then((m) => m.Oss2RoeComponent), data: { title: 'OSS 2 — Return on Earnings', breadcrumb: 'OSS 2 (RoE)' } }, { path: 'rbi/oss3', loadComponent: () => import('./oss3-raq/oss3-raq.component').then((m) => m.Oss3RaqComponent), data: { title: 'OSS 3 — Return on Asset Quality', breadcrumb: 'OSS 3 (RAQ-UCB)' } } ]) ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class RbiCircularsRoutingModule {}