import {
  IListRoutes,
  ILang,
  IPreloadImages,
  ISites,
} from '@model'
import { func } from '@store/Modules/fieldsTable'

const firstPage = {
  active: true,
  order: 5,
  path: '/',
  materialIcon: 'home',
  name: 'pages.home',
  component: () => import('@src/root/home/home.vue'),
  reqauth: false,
  inmenu: true,
  infooter: true,
}

function getDynamicPages(site: ISites): IListRoutes[] {

  const baseroutes: IListRoutes[] = [
    {
      active: true,
      order: 5,
      path: '/',
      materialIcon: 'home',
      name: 'pages.home',
      component: () => import('@src/root_spec/home_arcadei/home_arcadei.vue'),
      reqauth: false,
      inmenu: true,
      infooter: true,
    },
    /*{
      active: true,
      order: 120,
      path: '/myprofile',
      materialIcon: 'fas fa-user',
      name: 'pages.profile',
      component: () => import('@/views/user/myprofile/myprofile.vue'),
      meta: { requiresAuth: true },
      inmenu: true,
      infooter: true,
    },*/
    {
      active: true,
      order: 120,
      path: '/editprofile',
      materialIcon: 'fas fa-user',
      name: 'pages.profile3',
      component: () => import('@/views/user/editprofile/editprofile.vue'),
      meta: { requiresAuth: true },
      inmenu: false,
      infooter: false,
    },
    {
      active: true,
      order: 80,
      path: '/calendario-eventi',
      materialIcon: 'event',
      name: 'ris.calendario_eventi_riso',
      component: () => import('@/root/calendarioeventi/calendarioeventi.vue'),
      extraclass: 'isCalendar',
      inmenu: true,
      infooter: true
    },
    {
      active: true,
      order: 55,
      path: '/iscrizione',
      materialIcon: 'how_to_reg',
      name: 'pages.SignUpArcadei',
      component: () => import('@/views/login/iscrizionearcadei/iscrizionearcadei.vue'),
      inmenu: true,
      infooter: true,
      separator: false,
      onlyNotSoci: false,
    },
  ]
  return baseroutes
}

export function firstimagehome() {

  let img = 'statics/images/background.jpg'
  return img
}

const preLoadImages: IPreloadImages[] = []

export const lang_available: ILang[] = []
export const arrLangUsed: string[] = []

export const preloadedimages = []

export const routes: IListRoutes[] = [firstPage]

export const static_data = {
  routes,
  arrLangUsed,
  getDynamicPages,
  lang_available,
  preLoadImages,
  preloadedimages,
}
