import Layout from '@/layout'

export default {
  path: '/smart-energy-management',
  redirect: '/smart-energy-management/charging-profiles',
  component: Layout,
  meta: {
    title: 'Smart Energy Management',
    icon: 'charging-profiles',
    //activeIcon: 'charging-profiles-active',
    affix: true,
  },
  children: [
    {
      path: '/smart-energy-management/charging-profiles',
      component: () => import('@/views/charging/ChargingProfiles'),
      name: 'charging-profiles',
      meta: {
        title: 'Charging Profiles',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        breadcrumb: true
      }
    },
    {
      path: '/smart-energy-management/config-stations',
      component: () => import('@/views/charging/ConfigureStations'),
      name: 'config-stations',
      meta: {
        title: 'Configure Stations',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        breadcrumb: true
      }
    },
    {
      path: '/smart-energy-management/site-load-balancing',
      component: () => import('@/views/charging/ConfigureStations'),
      name: 'site-load-balancing',
      meta: {
        title: 'Site Load Balancing',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        breadcrumb: true
      },
      hidden: true
    },
    {
      path: '/smart-energy-management/charging-profiles/add',
      component: () => import('@/views/charging/AddProfile'),
      name: 'add-charging-profile',
      meta: {
        title: 'Add Charging Profile',
        activeMenu: '/smart-energy-management/charging-profiles'
      },
      hidden: true
    },
    {
      path: '/smart-energy-management/charging-profiles/edit',
      component: () => import('@/views/charging/EditProfile'),
      name: 'edit-charging-profile',
      meta: {
        title: 'Edit Charging Profile',
        activeMenu: '/smart-energy-management/charging-profiles'
      },
      hidden: true
    },
    {
      path: '/smart-energy-management/charging-profiles/view/:id',
      component: () => import('@/views/charging/EditProfile'),
      name: 'view-charging-profile',
      meta: {
        title: 'View Charging Profile',
        activeMenu: '/smart-energy-management/config-stations',
        parent: {
          title: 'Configure Stations',
          path: "/smart-energy-management/config-stations"
        }
      },
      hidden: true
    }
  ]
}