export const SUPERADMIN_ROUTES = [
  {
    path: '/gamas',
    meta: { ca: [999] },
    component: () => import('src/pages/gamas/GamasPage.vue'),
    children: [
      {
        path: '',
        component: () => import('src/pages/gamas/GamasTable.vue'),
      },
      {
        path: ':ID_GAMA',
        component: () => import('src/pages/gamas/GamaDetalle.vue'),
      },
    ],
  },
  {
    path: '/landings',
    meta: { ca: [999] },
    component: () => import('pages/landings/LandingsPage.vue'),
    children: [
      { path: '', component: () => import('pages/landings/LandingsTable.vue') },
      {
        path: ':landingId',
        component: () => import('pages/landings/LandingDetalle.vue'),
        children: [
          { path: '', redirect: (to) => ({ path: `${to.path}/datos` }) },
          { path: 'datos', component: () => import('pages/landings/LandingInfo.vue') },
          {
            path: 'cuestionarios',
            children: [
              {
                path: '',
                component: () => import('pages/landings/cuestionarios/CuestionarioList.vue'),
              },
              {
                path: ':cuestionarioId',
                component: () => import('pages/landings/cuestionarios/CuestionarioDetalle.vue'),
                children: [
                  { path: '', redirect: (to) => ({ path: `${to.path}/general` }) },
                  { path: 'general', component: () => import('pages/landings/cuestionarios/CuestionarioInfo.vue') },
                  { path: 'preguntas', component: () => import('pages/landings/cuestionarios/CuestionarioPreguntaList.vue') },
                ],
              },
            ],
          },
          {
            path: 'paginas',
            children: [
              { path: '', component: () => import('pages/landings/paginas/LandingPagesList.vue') },
              { path: ':paginaId', component: () => import('pages/landings/paginas/LandingPageDetalle.vue') },
            ],
          },
          {
            path: 'mails',
            children: [
              { path: '', component: () => import('pages/landings/mails/LandingMailList.vue') },
              { path: ':mailId', component: () => import('pages/landings/mails/LandingMailDetalle.vue') },
            ],
          },
          { path: 'estilos', component: () => import('pages/landings/estilos/LandingStyleList.vue') },
        ],
      },
    ],
  },
  {
    path: '/entidades_bancarias',
    meta: { ca: [999] },
    component: () => import('pages/entidades_bancarias/EntidadesBancarias.vue'),
    children: [
      { path: '', component: () => import('pages/entidades_bancarias/EntidadesBancariasTable.vue') },
      {
        path: ':id',
        component: () => import('pages/entidades_bancarias/EntidadBancariaDetalle.vue'),
        children: [
          { path: '', redirect: (to) => ({ path: `${to.path}/datos` }) },
          { path: 'datos', component: () => import('pages/entidades_bancarias/EntidadBancariaInfo.vue') },
        ],
      },
    ],
  },
  {
    path: '/tipos_documentos',
    meta: { ca: [999] },
    component: () => import('pages/tipos_documentos/TiposDocumentos.vue'),
    children: [{ path: '', component: () => import('pages/tipos_documentos/TiposDocumentosTable.vue') }],
  },

  {
    path: '/plantillas_documentos',
    meta: { ca: [999] },
    component: () => import('pages/plantillas_documentos/PlantillasDocumentosPage.vue'),
    children: [
      { path: '', redirect: (to) => ({ path: `${to.path}/plantillas` }) },
      {
        path: 'plantillas',
        component: () => import('pages/plantillas_documentos/plantillas/DocumentsLayoutsTable.vue'),
      },
      { path: 'estilos', component: () => import('pages/plantillas_documentos/estilos/EstilosTable.vue') },
      { path: 'datos_asincronos', component: () => import('pages/plantillas_documentos/datos_asincronos/DatosAsincronosTable.vue') },
    ],
  },
  {
    path: 'colecciones',
    meta: { ca: [999] },
    component: () => import('pages/collections/List.vue'),
    children: [],
  },
  {
    path: 'colecciones/:ID_COLLECTION',
    meta: { ca: [999] },
    component: () => import('pages/collections/Detail.vue'),
  },
  {
    path: '/layout',
    meta: { ca: [999] },
    component: () => import('pages/layout/LayoutPage.vue'),
    children: [
      {
        path: '',
        redirect: '/layout/login',
      },
      {
        path: 'login',
        component: () => import('pages/layout/LoginConfig.vue'),
      },
      {
        path: 'menu',
        component: () => import('pages/layout/MenuConfig.vue'),
      },
      {
        path: 'home',
        component: () => import('pages/layout/HomeConfig.vue'),
      },
      {
        path: 'styles',
        component: () => import('pages/layout/StylesConfig.vue'),
      },
    ],
  },
  { path: '/sistemas', meta: { ca: [999] }, component: () => import('src/pages/superadmin/Superadmin.vue') },
  { path: '/ai_contexts', meta: { ca: [999] }, component: () => import('src/pages/ai_contexts/AIContextsPage.vue') },
];
