import {
  GENERATE_BUNDLE as URL_PREFIX,
  GENERATE_BUNDLE_SELECT_PRODUCTS,
  GENERATE_BUNDLE_BUNDLE_INFO,
} from '@/config/url-prefix'

export default [
  {
    path: URL_PREFIX,
    component: () => import('./templates/MyBundleProcessTemplate'),
    props: true,
    name: 'MyBundleProcessStart',
    redirect: { name: 'MyBundleSelectProduct', params: { page: 1 } },
    meta: {
      screen: 'my-bundle-screen',
    },
    children: [
      {
        path: GENERATE_BUNDLE_SELECT_PRODUCTS + '/:page',
        component: () => import('./stepper/SelectProductStep'),
        name: 'MyBundleSelectProduct',
        props: {
          default: true,
          page: 1,
        },
        meta: {
          showHeaderCart: true,
          showFooter: false,
        },
      },
      {
        path: GENERATE_BUNDLE_BUNDLE_INFO,
        component: () => import('./stepper/BundleInformationStep'),
        name: 'MyBundleBundleInformation',
        props: true,
        meta: {
          showHeaderCart: false,
          showFooter: true,
        },
      },
    ],
  },
]
