import { NEW_ROOM_PAGE, ROOMS_PAGE, ADD_ROOM_ENTRY_PAGE, ROOM_PAGE, UPDATE_ROOM_ENTRY_PAGE } from '@/router/room.names';

const rooms = () => import(/* webpackChunkName: "rooms" */ '@/pages/rooms/rooms');
const newRoom = () => import(/* webpackChunkName: "rooms" */ '@/pages/rooms/newRoom');
const editRoom = () => import(/* webpackChunkName: "rooms" */ '@/pages/rooms/editRoom');
const room = () => import(/* webpackChunkName: "rooms" */ '@/pages/rooms/room');
const newRoomEntry = () => import(/* webpackChunkName: "rooms" */ '@/pages/rooms/newRoomEntry');
const editRoomEntry = () => import(/* webpackChunkName: "rooms" */ '@/pages/rooms/editRoomEntry');
const moduleRoom = () => import(/* webpackChunkName: "rooms" */ '@/pages/module/moduleRoom');

export default [
  { path: '/rooms', name: ROOMS_PAGE, component: rooms, meta: { filter: true, hideFooter: true } },
  { path: '/new-room/', name: NEW_ROOM_PAGE, component: newRoom },
  { path: '/edit-room/:id', name: 'edit-room', component: editRoom, props: true },
  { path: '/room/:slug', name: ROOM_PAGE, component: room, props: true },
  { path: '/room/:slug/add', name: ADD_ROOM_ENTRY_PAGE, component: newRoomEntry, props: true },
  { path: '/room/:slug/edit/:entrySlug', name: UPDATE_ROOM_ENTRY_PAGE, component: editRoomEntry, props: true },
  {
    path: '/module-room/:slug',
    name: 'moduleRoom',
    component: moduleRoom,
    props: true,
    meta: { layout: 'fullScreen' },
  },
];
