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

import { AuthGuardService } from "../services/auth-guard.service";

export const routes: Routes = [
    {
        path: "",
        loadComponent: () =>
            import("./default/default.component").then(
                (m) => m.DefaultComponent,
            ),
        canActivate: [AuthGuardService],
    },
    {
        path: "summary",
        loadComponent: () =>
            import("./summary/summary.component").then(
                (m) => m.SummaryComponent,
            ),
        canActivate: [AuthGuardService],
    },
    {
        path: "jumps",
        loadComponent: () =>
            import("./list-of-jumps/list-of-jumps.component").then(
                (m) => m.ListOfJumpsComponent,
            ),
        canActivate: [AuthGuardService],
    },
    {
        path: "dzs",
        loadComponent: () =>
            import("./list-of-dzs/list-of-dzs.component").then(
                (m) => m.ListOfDzsComponent,
            ),
        canActivate: [AuthGuardService],
    },
    {
        path: "newjump",
        loadComponent: () =>
            import("./new-jump/new-jump.component").then(
                (m) => m.NewJumpComponent,
            ),
        canActivate: [AuthGuardService],
    },
    {
        path: "aircrafts",
        loadComponent: () =>
            import("./list-of-aircrafts/list-of-aircrafts.component").then(
                (m) => m.ListOfAircraftsComponent,
            ),
        canActivate: [AuthGuardService],
    },
    {
        path: "jumpTypes",
        loadComponent: () =>
            import("./list-of-jump-types/list-of-jump-types.component").then(
                (m) => m.ListOfJumpTypesComponent,
            ),
        canActivate: [AuthGuardService],
    },
    {
        path: "gears",
        loadComponent: () =>
            import("./list-of-gears/list-of-gears.component").then(
                (m) => m.ListOfGearsComponent,
            ),
        canActivate: [AuthGuardService],
    },
    {
        path: "user",
        loadComponent: () =>
            import("./user-profile/user-profile.component").then(
                (m) => m.UserProfileComponent,
            ),
        canActivate: [AuthGuardService],
    },
    {
        path: "newTunnelFlight",
        loadComponent: () =>
            import("./new-tunnel-flight/new-tunnel-flight.component").then(
                (m) => m.NewTunnelFlightComponent,
            ),
        canActivate: [AuthGuardService],
    },
    {
        path: "tunnelFlights",
        loadComponent: () =>
            import("./list-of-tunnel-flights/list-of-tunnel-flights.component").then(
                (m) => m.ListOfTunnelFlightsComponent,
            ),
        canActivate: [AuthGuardService],
    },
    {
        path: "login",
        loadComponent: () =>
            import("./login/login.component").then((m) => m.LoginComponent),
    },
];
