local PT = AhUI
if not PT then return end

PT.ProfessionGuides_Epochs = PT.ProfessionGuides_Epochs or {}
local E = PT.ProfessionGuides_Epochs
local L = PT.L

E.professionsOrder = {
    "Alchemy",
    "Blacksmithing",
    "Enchanting",
    "Engineering",
    "Inscription",
    "Jewelcrafting",
    "Leatherworking",
    "Tailoring",
	"Cooking",
}

E.Alchemy = {
    order = {
        2485, -- Classic
        2484, -- Outland
        2483, -- Northrend
        2482, -- Cataclysm
        2481, -- Pandaria
        2480, -- Draenor
        2479, -- Legion
        2478, -- BFA
        2750, -- Shadowlands
        2823, -- Dragon Isles (DF)
        2871, -- Khaz Algar (TWW)
    },

    data = {
        [2485] = { nameKey = "PG_EPOCH_CLASSIC" },
        [2484] = { nameKey = "PG_EPOCH_OUTLAND" },
        [2483] = { nameKey = "PG_EPOCH_NORTHREND" },
        [2482] = { nameKey = "PG_EPOCH_CATACLYSM" },
        [2481] = { nameKey = "PG_EPOCH_PANDARIA" },
        [2480] = { nameKey = "PG_EPOCH_DRAENOR" },
        [2479] = { nameKey = "PG_EPOCH_LEGION" },
        [2478] = { name = "Battle For Azeroth" },
        [2750] = { nameKey = "PG_EPOCH_SHADOWLANDS" },
        [2823] = { nameKey = "PG_EPOCH_DRAGONFLIGHT" },
        [2871] = { nameKey = "PG_EPOCH_TWW" },
    },
}

E.Blacksmithing = {
    order = {
        2477, -- Classic
        2476, -- Outland
        2475, -- Northrend
        2474, -- Cataclysm
        2473, -- Pandaria
        2472, -- Draenor
        2454, -- Legion
        2437, -- Battle for Azeroth (Kul Tiran)
        2751, -- Shadowlands
        2822, -- Dragon Isles (DF)
        2872, -- Khaz Algar (TWW)
    },

    data = {
        [2477] = { nameKey = "PG_EPOCH_CLASSIC" },
        [2476] = { nameKey = "PG_EPOCH_OUTLAND" },
        [2475] = { nameKey = "PG_EPOCH_NORTHREND" },
        [2474] = { nameKey = "PG_EPOCH_CATACLYSM" },
        [2473] = { nameKey = "PG_EPOCH_PANDARIA" },
        [2472] = { nameKey = "PG_EPOCH_DRAENOR" },
        [2454] = { nameKey = "PG_EPOCH_LEGION" },
        [2437] = { name = "Battle For Azeroth" },
        [2751] = { nameKey = "PG_EPOCH_SHADOWLANDS" },
        [2822] = { nameKey = "PG_EPOCH_DRAGONFLIGHT" },
        [2872] = { nameKey = "PG_EPOCH_TWW" },
    },
}

E.Tailoring = {
    order = {
        2540, -- Classic
        2539, -- Outland
        2538, -- Northrend
        2537, -- Cataclysm
        2536, -- Pandaria
        2535, -- Draenor
        2534, -- Legion
        2533, -- Battle for Azeroth (Kul Tiran, shared)
        2759, -- Shadowlands
        2831, -- Dragon Isles (DF)
        2883, -- Khaz Algar (TWW)
        --2918, -- Midnight
    },

    data = {
        [2540] = { nameKey = "PG_EPOCH_CLASSIC" },
        [2539] = { nameKey = "PG_EPOCH_OUTLAND" },
        [2538] = { nameKey = "PG_EPOCH_NORTHREND" },
        [2537] = { nameKey = "PG_EPOCH_CATACLYSM" },
        [2536] = { nameKey = "PG_EPOCH_PANDARIA" },
        [2535] = { nameKey = "PG_EPOCH_DRAENOR" },
        [2534] = { nameKey = "PG_EPOCH_LEGION" },
        [2533] = { name = "Battle For Azeroth" },
        [2759] = { nameKey = "PG_EPOCH_SHADOWLANDS" },
        [2831] = { nameKey = "PG_EPOCH_DRAGONFLIGHT" },
        [2883] = { nameKey = "PG_EPOCH_TWW" },
        --[2918] = { nameKey = "PG_EPOCH_MIDNIGHT" },
    },
}

E.Jewelcrafting = {
    order = {
        2524, -- Classic
        2523, -- Outland
        2522, -- Northrend
        2521, -- Cataclysm
        2520, -- Pandaria
        2519, -- Draenor
        2518, -- Legion
        2517, -- Battle for Azeroth (Kul Tiran, shared)
        2757, -- Shadowlands
        2829, -- Dragon Isles (DF)
        2879, -- Khaz Algar (TWW)
        2914, -- Midnight (MN)
    },

    data = {
        [2524] = { nameKey = "PG_EPOCH_CLASSIC" },
        [2523] = { nameKey = "PG_EPOCH_OUTLAND" },
        [2522] = { nameKey = "PG_EPOCH_NORTHREND" },
        [2521] = { nameKey = "PG_EPOCH_CATACLYSM" },
        [2520] = { nameKey = "PG_EPOCH_PANDARIA" },
        [2519] = { nameKey = "PG_EPOCH_DRAENOR" },
        [2518] = { nameKey = "PG_EPOCH_LEGION" },
        [2517] = { name = "Battle For Azeroth" },
        [2757] = { nameKey = "PG_EPOCH_SHADOWLANDS" },
        [2829] = { nameKey = "PG_EPOCH_DRAGONFLIGHT" },
        [2879] = { nameKey = "PG_EPOCH_TWW" },
        [2914] = { nameKey = "PG_EPOCH_MIDNIGHT" },
    },
}

E.Inscription = {
    order = {
        2514, -- Classic
        2513, -- Outland
        2512, -- Northrend
        2511, -- Cataclysm
        2510, -- Pandaria
        2509, -- Draenor
        2508, -- Legion
        2507, -- Battle for Azeroth (Kul Tiran)
        2756, -- Shadowlands
        2828, -- Dragon Isles (DF)
        2878, -- Khaz Algar (TWW)
        --2913, -- Midnight (future)
    },

    data = {
        [2514] = { nameKey = "PG_EPOCH_CLASSIC" },
        [2513] = { nameKey = "PG_EPOCH_OUTLAND" },
        [2512] = { nameKey = "PG_EPOCH_NORTHREND" },
        [2511] = { nameKey = "PG_EPOCH_CATACLYSM" },
        [2510] = { nameKey = "PG_EPOCH_PANDARIA" },
        [2509] = { nameKey = "PG_EPOCH_DRAENOR" },
        [2508] = { nameKey = "PG_EPOCH_LEGION" },
        [2507] = { name = "Battle For Azeroth" },
        [2756] = { nameKey = "PG_EPOCH_SHADOWLANDS" },
        [2828] = { nameKey = "PG_EPOCH_DRAGONFLIGHT" },
        [2878] = { nameKey = "PG_EPOCH_TWW" },
        --[2913] = { nameKey = "PG_EPOCH_MIDNIGHT" },
    },
}

E.Leatherworking = {
    order = {
        2532, -- Classic
        2531, -- Outland
        2530, -- Northrend
        2529, -- Cataclysm
        2528, -- Pandaria
        2527, -- Draenor
        2526, -- Legion
        2525, -- Battle for Azeroth
        2758, -- Shadowlands
        2830, -- Dragon Isles (DF)
        2880, -- Khaz Algar (TWW)
    },

    data = {
        [2532] = { nameKey = "PG_EPOCH_CLASSIC" },
        [2531] = { nameKey = "PG_EPOCH_OUTLAND" },
        [2530] = { nameKey = "PG_EPOCH_NORTHREND" },
        [2529] = { nameKey = "PG_EPOCH_CATACLYSM" },
        [2528] = { nameKey = "PG_EPOCH_PANDARIA" },
        [2527] = { nameKey = "PG_EPOCH_DRAENOR" },
        [2526] = { nameKey = "PG_EPOCH_LEGION" },
        [2525] = { name = "Battle For Azeroth" },
        [2758] = { nameKey = "PG_EPOCH_SHADOWLANDS" },
        [2830] = { nameKey = "PG_EPOCH_DRAGONFLIGHT" },
        [2880] = { nameKey = "PG_EPOCH_TWW" },
    },
}

E.Cooking = {
    order = {
        -- 2548, -- Classic
        -- 2547, -- The Burning Crusade
        -- 2546, -- Wrath of the Lich King
        -- 2545, -- Cataclysm
        2544, -- Mists of Pandaria
        2543, -- Warlords of Draenor
        --2542, -- Legion
        --2541, -- Battle For Azeroth (Kul Tiran)
        2752, -- Shadowlands
        2824, -- Dragon Isles (DF)
        2873, -- Khaz Algar (TWW)
        --2908, -- Midnight
    },


    data = {
        -- [2548] = { nameKey = "PG_EPOCH_CLASSIC" },
        -- [2547] = { nameKey = "PG_EPOCH_OUTLAND" },
        -- [2546] = { nameKey = "PG_EPOCH_NORTHREND" },
        -- [2545] = { nameKey = "PG_EPOCH_CATACLYSM" },

        [2544] = { nameKey = "PG_EPOCH_PANDARIA" },
        [2543] = { nameKey = "PG_EPOCH_DRAENOR" },
        --[2542] = { nameKey = "PG_EPOCH_LEGION" },
        --[2541] = { name = "Battle For Azeroth" },
        [2752] = { nameKey = "PG_EPOCH_SHADOWLANDS" },
        [2824] = { nameKey = "PG_EPOCH_DRAGONFLIGHT" },
        [2873] = { nameKey = "PG_EPOCH_TWW" },
        -- [2908] = { nameKey = "PG_EPOCH_MIDNIGHT" },
    },
}

E.Engineering = {
    order = {
        2506, -- Classic
        2505, -- Outland
        2504, -- Northrend
        2503, -- Cataclysm
        2502, -- Pandaria
        2501, -- Draenor
        2500, -- Legion
        2499, -- Battle for Azeroth
        2755, -- Shadowlands
        2827, -- Dragon Isles
        2875, -- The War Within
        --2910, -- Midnight
    },

    data = {
        [2506] = { nameKey = "PG_EPOCH_CLASSIC" },
        [2505] = { nameKey = "PG_EPOCH_OUTLAND" },
        [2504] = { nameKey = "PG_EPOCH_NORTHREND" },
        [2503] = { nameKey = "PG_EPOCH_CATACLYSM" },
        [2502] = { nameKey = "PG_EPOCH_PANDARIA" },
        [2501] = { nameKey = "PG_EPOCH_DRAENOR" },
        [2500] = { nameKey = "PG_EPOCH_LEGION" },
        [2499] = { name = "Battle For Azeroth" },
        [2755] = { nameKey = "PG_EPOCH_SHADOWLANDS" },
        [2827] = { nameKey = "PG_EPOCH_DRAGONFLIGHT" },
        [2875] = { nameKey = "PG_EPOCH_TWW" },
        --[2910] = { nameKey = "PG_EPOCH_MIDNIGHT" },
    },
}

E.Enchanting = {
    order = {
        2494, -- Classic
        2493, -- Outland
        2492, -- Northrend
        2491, -- Cataclysm
        2489, -- Pandaria
        2488, -- Draenor
        2487, -- Legion
        2486, -- Battle for Azeroth (Kul Tiran)
        2753, -- Shadowlands
        2825, -- Dragon Isles (DF)
        2874, -- Khaz Algar (TWW)
        --2909, -- Midnight (будущая)
    },

    data = {
        [2494] = { nameKey = "PG_EPOCH_CLASSIC" },
        [2493] = { nameKey = "PG_EPOCH_OUTLAND" },
        [2492] = { nameKey = "PG_EPOCH_NORTHREND" },
        [2491] = { nameKey = "PG_EPOCH_CATACLYSM" },
        [2489] = { nameKey = "PG_EPOCH_PANDARIA" },
        [2488] = { nameKey = "PG_EPOCH_DRAENOR" },
        [2487] = { nameKey = "PG_EPOCH_LEGION" },
        [2486] = { name = "Battle For Azeroth" },
        [2753] = { nameKey = "PG_EPOCH_SHADOWLANDS" },
        [2825] = { nameKey = "PG_EPOCH_DRAGONFLIGHT" },
        [2874] = { nameKey = "PG_EPOCH_TWW" },
        --[2909] = { nameKey = "PG_EPOCH_MIDNIGHT" },
    },
}