import { Injectable } from '@angular/core';

import { Menu } from '@models/menu.model';

const MENUAUTH: Menu[] = [
    { state: 'home', type: 'link', name: 'Accueil', icon: 'home', icontype: 'mat', desc: '' },
    { state: 'login', type: 'link', name: 'Se connecter', icon: 'fingerprint', icontype: 'mat', desc: '' },
    { state: 'register', type: 'link', name: 'Créer un compte', icon: 'person_add_alt', icontype: 'mat', desc: '' }
];

const MENUITEMSADMIN: Menu[] = [
    { state: 'home', type: 'link', name: 'Accueil', icon: 'home', icontype: 'mat', desc: '' },
    { state: 'products', type: 'menu', name: 'Produits', icon: 'barcode', desc: '' },
    { parent: 'products', state: 'fleurs-cbd', type: 'link', name: 'Fleurs CBD', icon: 'marijuana', desc: '' },
    { parent: 'products', state: 'fleurs-cbg', type: 'link', name: 'Fleurs CBG', icon: 'marijuana', desc: '' },
    { parent: 'products', state: 'fleurs-cbn', type: 'link', name: 'Fleurs CBN', icon: 'marijuana', desc: '' },
    { parent: 'products', state: 'fleurs-10oh', type: 'link', name: 'Fleurs 10OH+', icon: 'molecule', desc: '' },
    { parent: 'products', state: 'resines-cbd', type: 'link', name: 'Résines CBD', icon: 'butter', desc: '' },
    { parent: 'products', state: 'resines-cbg', type: 'link', name: 'Résines CBG', icon: 'butter', desc: '' },
    { parent: 'products', state: 'resines-cbn', type: 'link', name: 'Résines CBN', icon: 'butter', desc: '' },
    { parent: 'products', state: 'resines-10oh', type: 'link', name: 'Résines 10OH+', icon: 'molecule', desc: '' },
    { parent: 'products', state: 'molecules', type: 'link', name: 'Molécules', icon: 'molecule', desc: '' },
    { state: 'page', type: 'menu', name: 'Documentation', icon: 'books', desc: '' },
    { parent: 'page', state: 'les-fleurs', type: 'link', name: 'Fleurs', icon: 'marijuana', desc: '' },
    { parent: 'page', state: 'les-resines', type: 'link', name: 'Résines', icon: 'butter', desc: '' },
    { parent: 'page', state: 'les-molecules', type: 'link', name: 'Molécules', icon: 'molecule', desc: '' },
    { state: 'skydive', type: 'menu', name: 'Skydive', icon: 'dashboard', icontype: 'mat', desc: '' },
    { parent: 'skydive', state: 'dashboard', type: 'link', name: 'Dashboard', icon: 'dashboard', icontype: 'mat', desc: '' },
    { parent: 'skydive', state: 'logbook', type: 'link', name: 'Carnet de saut', icon: 'assignment_turned_in', icontype: 'mat', desc: '' },
    { parent: 'skydive', state: 'aeronefs', type: 'link', name: 'Aéronefs', icon: 'flight', icontype: 'mat', desc: '' },
    { parent: 'skydive', state: 'dropzones', type: 'link', name: 'Drop Zones', icon: 'flight_takeoff', icontype: 'mat', desc: '' },
    { parent: 'skydive', state: 'canopies', type: 'link', name: 'Voiles', icon: 'paragliding', icontype: 'mat', desc: '' },
    { parent: 'skydive', state: 'jumps', type: 'link', name: 'Sauts', icon: 'filter_drama', icontype: 'mat', desc: '' },
    { parent: 'skydive', state: 'calculator', type: 'link', name: 'Taille de voile', icon: 'calculate', icontype: 'mat', desc: '' },
    { parent: 'skydive', state: 'qcm', type: 'menu', name: 'QCM Brevets', icon: 'rule_folder', icontype: 'mat', desc: '' },
    { parent: 'qcm', state: 'bpa', type: 'link', name: 'BPA', icon: 'rule', icontype: 'mat' },
    { parent: 'qcm', state: 'c', type: 'link', name: 'Brevet C', icon: 'rule', icontype: 'mat' },
    { parent: 'qcm', state: 'd', type: 'link', name: 'Brevet D', icon: 'rule', icontype: 'mat' },
    { state: 'herowars', type: 'menu', name: 'Hero Wars', icon: 'military_tech', icontype: 'mat', desc: '' },
    { parent: 'herowars', state: 'guildwar', type: 'link', name: 'Guild War', icon: 'military_tech', icontype: 'mat', desc: '' },
    { parent: 'herowars', state: 'guildraid', type: 'link', name: 'Guild Raid', icon: 'military_tech', icontype: 'mat', desc: '' }
];

const MENUITEMS: Menu[] = [
    { state: 'home', type: 'link', name: 'Accueil', icon: 'home', icontype: 'mat', desc: '' },
    { state: 'products', type: 'menu', name: 'Produits', icon: 'barcode', desc: '' },
    { parent: 'products', state: 'fleurs-cbd', type: 'link', name: 'Fleurs CBD', icon: 'marijuana', desc: '' },
    { parent: 'products', state: 'fleurs-cbg', type: 'link', name: 'Fleurs CBG', icon: 'marijuana', desc: '' },
    { parent: 'products', state: 'fleurs-cbn', type: 'link', name: 'Fleurs CBN', icon: 'marijuana', desc: '' },
    { parent: 'products', state: 'fleurs-10oh', type: 'link', name: 'Fleurs 10OH+', icon: 'molecule', desc: '' },
    { parent: 'products', state: 'resines-cbd', type: 'link', name: 'Résines CBD', icon: 'butter', desc: '' },
    { parent: 'products', state: 'resines-cbg', type: 'link', name: 'Résines CBG', icon: 'butter', desc: '' },
    { parent: 'products', state: 'resines-cbn', type: 'link', name: 'Résines CBN', icon: 'butter', desc: '' },
    { parent: 'products', state: 'resines-10oh', type: 'link', name: 'Résines 10OH+', icon: 'molecule', desc: '' },
    { parent: 'products', state: 'molecules', type: 'link', name: 'Molécules', icon: 'molecule', desc: '' },
    { state: 'page', type: 'menu', name: 'Documentation', icon: 'books', desc: '' },
    { parent: 'page', state: 'les-fleurs', type: 'link', name: 'Fleurs', icon: 'marijuana', desc: '' },
    { parent: 'page', state: 'les-resines', type: 'link', name: 'Résines', icon: 'butter', desc: '' },
    { parent: 'page', state: 'les-molecules', type: 'link', name: 'Molécules', icon: 'molecule', desc: '' },
    { state: 'herowars', type: 'menu', name: 'Hero Wars', icon: 'military_tech', icontype: 'mat', desc: '' },
    { parent: 'herowars', state: 'guildwar', type: 'link', name: 'Guild War', icon: 'military_tech', icontype: 'mat', desc: '' },
    { parent: 'herowars', state: 'guildraid', type: 'link', name: 'Guild Raid', icon: 'military_tech', icontype: 'mat', desc: '' }
];

const MENUPJUMP: Menu[] = [
    { state: '#', type: 'link', name: 'Modifier', icon: 'edit', icontype: 'mat', desc: '', color: 'primary' },
    { state: '#', type: 'link', name: 'Supprimer', icon: 'delete', icontype: 'mat', desc: '', color: 'raspberry' }
];

const MENUPANEL: Menu[] = [
    { state: '#', type: 'link', name: 'Retirer du dashboard', icon: 'add_notes', icontype: 'mat', desc: '' },
    { state: '#', type: 'link', name: 'Paramètres d\'affichage', icon: 'display_settings', icontype: 'mat', desc: '' }
];

const MENUCALCULATOR: Menu[] = [
    { state: '#', type: 'link', name: 'Recherche avancée', icon: 'search', icontype: 'mat', desc: '' },
    { state: '#', type: 'link', name: 'Paramètres d\'affichage', icon: 'display_settings', icontype: 'mat', desc: '' },
    { state: '#', type: 'link', name: 'Partager', icon: 'share', icontype: 'mat', desc: '' }
];

const MENULOGBOOK: Menu[] = [
    { state: '#', type: 'link', name: 'Recherche avancée', icon: 'search', icontype: 'mat', desc: '' },
    { state: '#', type: 'link', name: 'Recherche par participant', icon: 'person_search', icontype: 'mat', desc: '' },
    { state: '#', type: 'link', name: 'Paramètres d\'affichage', icon: 'display_settings', icontype: 'mat', desc: '' },
    { state: '#', type: 'link', name: 'Import CSV', icon: 'upload_file', icontype: 'mat', desc: '' }
];

@Injectable()
export class MenuItems {
    getMenuAuth(): Menu[] {
        return MENUAUTH;
    }
    getMenuCalculator(): Menu[] {
        return MENUCALCULATOR;
    }
    getMenuItems(): Menu[] {
        return MENUITEMS;
    }
    getMenuItemsAdmin(): Menu[] {
        return MENUITEMSADMIN;
    }
    getMenuLogbook(): Menu[] {
        return MENULOGBOOK;
    }
    getMenuPanel(): Menu[] {
        return MENUPANEL;
    }
    getMenuJump(): Menu[] {
        return MENUPJUMP;
    }
}
