import { ESHOP_CHECKOUT as URL_PREFIX, ESHOP_CHECKOUT_SELECT_SIZES, ESHOP_I_TOKEN_REDEEM } from '@/config/url-prefix'
import { ESHOP_TEMPLATE } from '@/config/template'

export default [
  {
    path: URL_PREFIX,
    component: () => import('../_global/components/templates/PreCheckoutTemplate'),
    name: 'Checkout',
    meta: {
      menuItem: false,
      requiresAuth: false,
      template: ESHOP_TEMPLATE,
    },
    props: { cartBtn: false },
    children: [
      {
        path: ESHOP_CHECKOUT_SELECT_SIZES,
        component: () => import('./components/SelectSizes'),
        name: 'CheckoutSelectSizes',
        meta: {
          title: 'Eshop.Checkout.SelectSizes.Title',
        },
      },
      {
        path: ESHOP_I_TOKEN_REDEEM,
        component: () => import('./components/SelectRedemption'),
        name: 'CheckoutITokenRedemption',
        meta: {
          title: 'Itoken.Redemption.Title',
        },
      },
    ],
  },
]
