import { Routes } from '@angular/router'; export const routes: Routes = [ { path: '', loadComponent: () => { // Branch: ?id= means legacy SBP merchant flow. const hasLegacyId = typeof window !== 'undefined' && new URLSearchParams(window.location.search).has('id'); return hasLegacyId ? import('./pages/legacy-pay-page/legacy-pay-page').then((m) => m.LegacyPayPage) : import('./pages/fastcheck-page/fastcheck-page').then((m) => m.FastcheckPage); } }, { path: 'about', loadComponent: () => import('./pages/about-page/about-page').then((m) => m.AboutPage) }, { path: 'contacts', loadComponent: () => import('./pages/contacts-page/contacts-page').then((m) => m.ContactsPage) }, { path: 'partners', loadComponent: () => import('./pages/partners-page/partners-page').then((m) => m.PartnersPage) }, { path: '**', redirectTo: '' } ];