import Layout from '@/layout'

export default {
  path: '/site-management',
  component: Layout,
  redirect: 'noRedirect',
  meta: {
    title: 'Site Management',
    icon: 'site-management',
  },
  alwaysShow: true,
  children: [
    {
      path: '/site-management/site-configuration',
      component: () => import('@/views/site/SiteManagement'),
      name: 'site-configuration',
      meta: {
        breadcrumb: true,
        title: 'Site Configuration',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
      }
    },
    {
      path: '/site-management-v2/site-configuration',
      component: () => import('@/views/site2/index'),
      name: 'site-configuration-v2',
      meta: {
        breadcrumb: true,
        title: 'Site Configuration',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active'
      }
    },
    {
      path: '/site-management/label-management',
      component: () => import('@/views/site-label/index'),
      name: 'site-label-management',
      meta: {
        breadcrumb: true,
        title: 'Site Label Management',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
      }
    },
    {
      path: '/site-management/dynamic-rate-configuration',
      component: () => import('@/views/rate-dynamic/index'),
      hidden: true,
      name: 'dynamic-rate-configuration',
      meta: {
        breadcrumb: true,
        title: 'Dynamic Rate Configuration',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
      }
    },
    {
      path: '/site-management/rate-configuration',
      component: () => import('@/views/rate-base/index'),
      hidden: true,
      name: 'base-rate-configuration',
      meta: {
        breadcrumb: true,
        title: 'Rate Configuration',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
      }
    },
    {
      path: '/site-management/edit/:id',
      component: () => import('@/views/site/detail'),
      name: "update-site-v1",
      hidden: true,
      meta: {
        title: 'Edit Site',
        activeMenu: '/site-management/site-configuration',
        parent: {
          title: "Site Configuration",
          path: "/site-management/site-configuration"
        }
      }
    },
    {
      path: '/site-management-v2/edit/:id',
      component: () => import('@/views/site2/detail'),
      name: "update-site-v2",
      hidden: true,
      meta: {
        title: 'Edit Site',
        activeMenu: '/site-management-v2/site-configuration',
        parent: {
          title: "Site Configuration",
          path: "/site-management-v2/site-configuration"
        }
      },
    },
    {
      path: '/site-management/add',
      component: () => import('@/views/site/detail'),
      name: "add-site-v1",
      hidden: true,
      meta: {
        title: 'Add Site',
        activeMenu: '/site-management/site-configuration',
        parent: {
          title: "Site Configuration",
          path: "/site-management/site-configuration"
        }
      }
    },
    {
      path: '/site-management-v2/add',
      component: () => import('@/views/site2/detail'),
      name: "add-site-v2",
      hidden: true,
      meta: {
        title: 'Add Site',
        activeMenu: '/site-management-v2/site-configuration',
        parent: {
          title: "Site Configuration",
          path: "/site-management-v2/site-configuration"
        }
      }
    },
    {
      path: '/site-management/stations/:id',
      component: () => import('@/views/charge/RegisteredChargeStations'),
      name: "manage-chargers",
      hidden: true,
      meta: {
        title: 'Manage Chargers',
        activeMenu: '/site-management-v2/site-configuration',
      }
    },
    {
      path: '/site-management/connectors/:id',
      component: () => import('@/views/charge/Connectors'),
      name: "manage-connectors",
      hidden: true,
      meta: {
        title: 'Manage Connectors',
        activeMenu: '/site-management-v2/site-configuration',
      }
    },
    {
      path: '/site-management/dynamic-rate-add',
      component: () => import('@/views/rate-dynamic/detail'),
      hidden: true,
      name: 'dynamic-rate-add',
      meta: {
        breadcrumb: true,
        title: 'Create',
        parent: {
          title: 'Dynamic Rate',
          path: "/site-management/dynamic-rate-configuration"
        },
        activeMenu: '/site-management/dynamic-rate-configuration'
      }
    },
    {
      path: '/site-management/dynamic-rate-update/:id',
      component: () => import('@/views/rate-dynamic/detail'),
      hidden: true,
      name: 'dynamic-rate-update',
      meta: {
        breadcrumb: true,
        title: 'Edit',
        parent: {
          title: 'Dynamic Rate',
          path: "/site-management/dynamic-rate-configuration"
        },
        activeMenu: '/site-management/dynamic-rate-configuration'
      }
    },
    {
      path: '/site-management/rate-add',
      component: () => import('@/views/rate-base/detail'),
      hidden: true,
      name: 'base-rate-add',
      meta: {
        breadcrumb: true,
        title: 'Create',
        parent: {
          title: 'Rate Configuration',
          path: "/site-management/rate-configuration"
        },
        activeMenu: '/site-management/rate-configuration'
      }
    },
    {
      path: '/site-management/rate-update/:id',
      component: () => import('@/views/rate-base/detail'),
      hidden: true,
      name: 'base-rate-update',
      meta: {
        breadcrumb: true,
        title: 'Edit',
        parent: {
          title: 'Rate Configuration',
          path: "/site-management/rate-configuration"
        },
        activeMenu: '/site-management/rate-configuration'
      }
    }
  ]
}