export interface ContextMenuItem {
    id?: string
    color?: string
    style?: string
    label: string
    tooltip?: string
    translate?: boolean
    items?: string[]
    icon?: string
    iconColor?: string
    shortcuts?: string[]
    enabled?: boolean
    disabled?: boolean
    external?: boolean

    type?: string // remove layers
}

export const contextMenuItems: { [key: string]: ContextMenuItem } = {
    // MENU
    save: { label: "actions.save", icon: "save", iconColor: "#b7ffac", shortcuts: ["Ctrl+S"] },
    import_more: { label: "actions.import", icon: "import", shortcuts: ["Ctrl+I"] },
    export_more: { label: "actions.export", icon: "export", shortcuts: ["Ctrl+E"] },
    undo: { label: "actions.undo", icon: "undo", shortcuts: ["Ctrl+Z"] },
    redo: { label: "actions.redo", icon: "redo", shortcuts: ["Ctrl+Y"] },
    history: { label: "popup.history", icon: "history", iconColor: "var(--secondary)", shortcuts: ["Ctrl+H"] },
    cut: { label: "actions.cut", icon: "cut", iconColor: "#97c7ff", shortcuts: ["Ctrl+X"] },
    copy: { label: "actions.copy", icon: "copy", iconColor: "#97c7ff", shortcuts: ["Ctrl+C"] },
    copy_id: { label: "actions.copy_id", icon: "copy", iconColor: "#97c7ff" },
    paste: { label: "actions.paste", icon: "paste", iconColor: "#97c7ff", shortcuts: ["Ctrl+V"] },
    docs: { label: "main.docs", icon: "document", external: true },
    quick_search: { label: "main.quick_search", icon: "search", shortcuts: ["Ctrl+G"] },
    quick_start_guide: { label: "guide.start", icon: "guide" },
    focus_mode: { label: "actions.focus_mode", icon: "focus_mode", shortcuts: ["Ctrl+Shift+F"] },
    fullscreen: { label: "actions.fullscreen", icon: "fullscreen", shortcuts: ["F11"] },
    resetZoom: { label: "actions.resetZoom", icon: "reset", iconColor: "#ff6b54" },
    zoomIn: { label: "actions.zoomIn", icon: "zoomIn" },
    zoomOut: { label: "actions.zoomOut", icon: "zoomOut" },
    // MAIN
    quit: { label: "main.quit", icon: "close", iconColor: "#ff5454" },
    settings: { label: "menu.settings", icon: "settings", iconColor: "var(--secondary)" },
    about: { label: "main.about", icon: "info" },
    shortcuts: { label: "popup.shortcuts", icon: "shortcut", shortcuts: ["Ctrl+?"] },
    rename: { label: "actions.rename", icon: "rename", iconColor: "#6effbe", shortcuts: ["F2"] },
    delete: { label: "actions.delete", icon: "delete", iconColor: "#ff5454", shortcuts: ["Del"] },
    delete_remove: { label: "actions.remove", icon: "delete", iconColor: "#ff6b54", shortcuts: ["Del"] },
    delete_all: { label: "actions.delete_all", icon: "delete", iconColor: "#ff5454" },
    delete_row: { label: "actions.delete_row", icon: "delete", iconColor: "#ff5454" },
    delete_col: { label: "actions.delete_col", icon: "delete", iconColor: "#ff5454" },
    import: { label: "actions.import", icon: "import" },
    export: { label: "actions.export", icon: "export" },
    custom_text: { label: "popup.custom_text", icon: "rename", iconColor: "#6effbe" },
    // DRAWER
    enabledTabs: { label: "context.enabledTabs", items: ["LOAD_enabled_drawer_tabs"] },
    manage_show_tags: { label: "popup.manage_tags", icon: "edit", iconColor: "#97c7ff" },
    display_tags: { label: "context.display_tags", icon: "tag", iconColor: "#979aff" },
    tag_set: { label: "context.setTag", icon: "tag", iconColor: "#979aff", items: ["LOAD_tag_set"] },
    tag_filter: { label: "context.filterByTags", icon: "tag", iconColor: "#979aff", items: ["LOAD_tag_filter"] },
    manage_media_tags: { label: "popup.manage_tags", icon: "edit", iconColor: "#97c7ff" },
    media_tag_set: { label: "context.setTag", icon: "tag", iconColor: "#979aff", items: ["LOAD_media_tag_set"] },
    media_tag_filter: { label: "context.filterByTags", icon: "tag", iconColor: "#979aff", items: ["LOAD_media_tag_filter"] },
    manage_player_tags: { label: "popup.manage_tags", icon: "edit", iconColor: "#97c7ff" },
    player_tag_set: { label: "context.setTag", icon: "tag", iconColor: "#979aff", items: ["LOAD_player_tag_set"] },
    player_tag_filter: { label: "context.filterByTags", icon: "tag", iconColor: "#979aff", items: ["LOAD_player_tag_filter"] },
    manage_action_tags: { label: "popup.manage_tags", icon: "edit", iconColor: "#97c7ff" },
    action_tag_set: { label: "context.setTag", icon: "tag", iconColor: "#979aff", items: ["LOAD_action_tag_set"] },
    action_tag_filter: { label: "context.filterByTags", icon: "tag", iconColor: "#979aff", items: ["LOAD_action_tag_filter"] },
    manage_variable_tags: { label: "popup.manage_tags", icon: "edit", iconColor: "#97c7ff" },
    variable_tag_set: { label: "context.setTag", icon: "tag", iconColor: "#979aff", items: ["LOAD_variable_tag_set"] },
    variable_tag_filter: { label: "context.filterByTags", icon: "tag", iconColor: "#979aff", items: ["LOAD_variable_tag_filter"] },
    manage_timer_tags: { label: "popup.manage_tags", icon: "edit", iconColor: "#97c7ff" },
    timer_tag_set: { label: "context.setTag", icon: "tag", iconColor: "#979aff", items: ["LOAD_timer_tag_set"] },
    timer_tag_filter: { label: "context.filterByTags", icon: "tag", iconColor: "#979aff", items: ["LOAD_timer_tag_filter"] },
    reset_defaults: { label: "actions.reset_defaults", icon: "reset", iconColor: "#ff6b54" },
    action_history: { label: "popup.action_history", icon: "history", iconColor: "var(--secondary)" },
    newCategory: { label: "context.newCategory", icon: "add", iconColor: "var(--secondary)" },
    newScripture: { label: "new.scripture", icon: "add", iconColor: "var(--secondary)" },
    createCollection: { label: "new.collection", icon: "collection" },
    changeIcon: { label: "context.changeIcon", icon: "star", iconColor: "#6effbe" },
    category_action: { label: "popup.category_action", icon: "actions", iconColor: "#d497ff" },
    category_template: { label: "popup.category_template", icon: "templates", iconColor: "#d497ff" },
    metadata_display: { label: "popup.metadata_display", icon: "info" },
    use_as_archive: { label: "context.use_as_archive", icon: "archive" },
    archive: { label: "actions.move_to_archive", icon: "archive" },
    toggle_clock: { label: "context.toggle_clock", icon: "clock" },
    // OUTPUTS
    force_output: { label: "context.force_outputs", icon: "outputs" },
    align_with_screen: { label: "context.align_with_screen", icon: "resize" },
    choose_screen: { label: "popup.choose_screen", icon: "screen" },
    toggle_output: { label: "context.toggle_output", icon: "outputs" },
    move_to_front: { label: "context.move_to_front", icon: "toFront" },
    hide_from_preview: { label: "context.hide_from_preview", icon: "hide" },
    test_pattern: { label: "preview.test_pattern", icon: "test" },
    live_prepare: { label: "preview.live_prepare", icon: "hide" },
    // PROJECT
    close: { label: "actions.close", icon: "close", iconColor: "#ff5454" },
    newProject: { label: "new.project", icon: "add", iconColor: "var(--secondary)" },
    newFolder: { label: "new.folder", icon: "folder", iconColor: "var(--secondary)" },
    newShowPopup: { label: "new.show", icon: "add", iconColor: "var(--secondary)" },
    newShow: { label: "new.empty_show", icon: "add", iconColor: "var(--secondary)" },
    create_show: { label: "new.show_convert", icon: "slide", iconColor: "var(--secondary)" },
    // newPrivateShow: { label: "new.private", icon: "private" },
    private: { label: "actions.toggle_private", icon: "private", iconColor: "#ff5454" },
    unlink_pco: { label: "actions.unlink_pco", icon: "bind", iconColor: "#ff5454" },
    duplicate: { label: "actions.duplicate", icon: "duplicate", iconColor: "#97c7ff", shortcuts: ["Ctrl+D"] },
    make_unique: { label: "actions.make_unique", icon: "make_unique", iconColor: "#97c7ff" },
    mark_played: { label: "actions.mark_played", icon: "check", iconColor: "var(--text)" },
    section: { label: "new.section", icon: "section", iconColor: "var(--secondary)" },
    copy_to_template: { label: "actions.convert_to_template", icon: "templates", iconColor: "#97c7ff" },
    // SORT
    sort_shows_by: { label: "sort.sort_by", icon: "sort", iconColor: "#979aff", items: ["LOAD_sort_shows"] },
    sort_projects_by: { label: "sort.sort_by", icon: "sort", iconColor: "#979aff", items: ["LOAD_sort_projects"] },
    sort_media_by: { label: "sort.sort_by", icon: "sort", iconColor: "#979aff", items: ["LOAD_sort_media"] },
    media_view: { label: "titlebar.view", icon: "media", items: ["LOAD_media_view"] },
    // SHOWS
    lock_group: { label: "context.lockForChanges", icon: "lock", iconColor: "#ff5454" },
    remove: { label: "actions.remove", icon: "delete", iconColor: "#ff6b54" },
    remove_group: { label: "actions.remove_group_short", tooltip: "actions.remove_group", icon: "delete", iconColor: "#ff9b54", shortcuts: ["Del"] },
    delete_slide: { label: "actions.delete_slide_short", tooltip: "actions.delete_slide", icon: "delete", iconColor: "#ff5454" },
    delete_group: { label: "actions.delete_group", icon: "delete", iconColor: "#ff5454", shortcuts: ["Del"] },
    manage_groups: { label: "popup.manage_groups", icon: "edit", iconColor: "#97c7ff" },
    manage_metadata: { label: "popup.manage_metadata", icon: "edit", iconColor: "#97c7ff" },
    slideGroups: { label: "context.changeGroup", icon: "groups", iconColor: "#ff97d9", items: ["rename", "recolor", "SEPARATOR", "LOAD_slide_groups"] },
    editSlideText: { label: "menu.edit", icon: "edit", iconColor: "#97c7ff" }, // actions.edit_slide_text
    selectAll: { label: "context.selectAll", icon: "select", shortcuts: ["Ctrl+A"] },
    text_copy: { label: "actions.copy", icon: "copy", iconColor: "#97c7ff", shortcuts: ["Ctrl+C"] },
    text_cut: { label: "actions.cut", icon: "cut", iconColor: "#97c7ff", shortcuts: ["Ctrl+X"] },
    text_paste: { label: "actions.paste", icon: "paste", iconColor: "#97c7ff", shortcuts: ["Ctrl+V"] },
    text_select_all: { label: "context.selectAll", icon: "select", shortcuts: ["Ctrl+A"] },
    newSlide: { label: "new.slide", icon: "add", iconColor: "var(--secondary)" },
    // newGroup: { label: "context.createNew", icon: "add", iconColor: "var(--secondary)" },
    remove_template: { label: "actions.remove_template_from_show", icon: "remove_circle", iconColor: "#ff6b54" },
    // SLIDE VIEWS
    view_grid: { label: "show.grid", icon: "grid" },
    view_simple: { label: "show.simple", icon: "simple" },
    view_groups: { label: "show.groups", icon: "groups" },
    view_list: { label: "show.list", icon: "list" },
    view_lyrics: { label: "show.lyrics", icon: "lyrics" },
    // SLIDE
    slide_transition: { label: "popup.transition", icon: "transition", iconColor: "#ffd5bb" },
    disable: { label: "actions.disable", icon: "disable", iconColor: "#ff5454" },
    edit: { label: "menu.edit", icon: "edit", iconColor: "#97c7ff" },
    change_style: { label: "edit.style", icon: "styles", iconColor: "#97c7ff" },
    edit_style: { label: "menu.edit", icon: "edit", iconColor: "#97c7ff" },
    recolor: { label: "actions.recolor", icon: "color", iconColor: "#6effbe" },
    actions: { label: "actions.slide_actions", icon: "actions", iconColor: "#d497ff", items: ["LOAD_actions"] },
    bind_to: { label: "actions.bind_to", icon: "bind", iconColor: "#d497ff", items: ["LOAD_bind_slide"] },
    remove_layers: { label: "actions.remove_layers", icon: "remove_layers", iconColor: "#ff5454", items: ["LOAD_remove_layers"] },
    set_key: { label: "actions.set_key", icon: "chords", items: ["LOAD_keys"] },
    chord_list: { label: "edit.chords", icon: "chords", items: ["LOAD_chord_list"] },
    custom_key: { label: "actions.custom_key", icon: "edit", iconColor: "#97c7ff" },
    // ITEM
    item_actions: { label: "actions.item_actions", icon: "actions", iconColor: "#d497ff", items: ["LOAD_item_actions"] },
    transition: { label: "popup.transition", icon: "transition", iconColor: "#ffd5bb" },
    dynamic_values: { label: "actions.dynamic_values", icon: "dynamic", iconColor: "#ff91fd" },
    conditions: { label: "actions.conditions", icon: "light", iconColor: "#ff91fd" },
    item_bind_to: { label: "actions.bind_to", icon: "bind", iconColor: "#d497ff", items: ["LOAD_bind_item"] },
    format: { label: "actions.format", icon: "format", iconColor: "#93f190", items: ["find_replace", "SEPARATOR", "cut_in_half", "merge", "SEPARATOR", "uppercase", "lowercase", "capitalize", "trim"] },
    rearrange: { label: "actions.rearrange", icon: "rearrange", iconColor: "#93f190", items: ["to_front", "forward", "backward", "to_back"] },
    rearrange_stage: { label: "actions.rearrange", icon: "rearrange", iconColor: "#93f190", items: ["to_front_stage", "forward_stage", "backward_stage", "to_back_stage"] },
    // stage
    stage: { label: "menu.stage", id: "stage" },
    // formatting
    find_replace: { label: "actions.find_replace", icon: "find_replace", iconColor: "#90f1cc" },
    insert_virtual_break: { label: "edit.insert_virtual_break", icon: "add", iconColor: "#90f1cc" },
    cut_in_half: { label: "actions.cut_in_half", tooltip: "tooltip.context_cut_in_half [Alt+Enter]", icon: "cut_in_half", iconColor: "#90f1b5" },
    merge: { label: "actions.merge", tooltip: "tooltip.context_merge", icon: "merge", iconColor: "#90f1b5" },
    uppercase: { label: "actions.uppercase", icon: "increase_text", iconColor: "#93f190" },
    lowercase: { label: "actions.lowercase", icon: "decrease_text", iconColor: "#93f190" },
    capitalize: { label: "actions.capitalize", tooltip: "tooltip.context_capitalize", icon: "capitalize", iconColor: "#93f190" },
    trim: { label: "actions.trim", tooltip: "tooltip.context_trim", icon: "cut", iconColor: "#93f190" },
    // rearrange
    to_front: { label: "actions.to_front", icon: "to_front", iconColor: "#93f190" },
    forward: { label: "actions.forward", icon: "up", iconColor: "#93f190" },
    backward: { label: "actions.backward", icon: "down", iconColor: "#93f190" },
    to_back: { label: "actions.to_back", icon: "to_back", iconColor: "#93f190" },
    to_front_stage: { label: "actions.to_front", icon: "to_front", iconColor: "#93f190" },
    forward_stage: { label: "actions.forward", icon: "up", iconColor: "#93f190" },
    backward_stage: { label: "actions.backward", icon: "down", iconColor: "#93f190" },
    to_back_stage: { label: "actions.to_back", icon: "to_back", iconColor: "#93f190" },
    // MEDIA
    preview: { label: "main.open", icon: "eye", iconColor: "#ffc3d3" },
    play: { label: "media.play", icon: "play", iconColor: "#7d81ff" },
    play_no_audio: { label: "media.play_no_audio", icon: "play", iconColor: "#7d81ff" },
    play_no_filters: { label: "media.play_no_filters", icon: "play", iconColor: "#7d81ff" },
    favourite: { label: "media.favourite", icon: "star", iconColor: "#fff1ad" },
    effects_library_add: { label: "media.effects_library_add", icon: "effect", iconColor: "#fff1ad" },
    createSlideshow: { label: "context.create_slideshow", icon: "slide" },
    system_open: { label: "main.system_open", icon: "launch" },
    media_type: { label: "clock.type", icon: "media", items: ["type_default", "type_background", "type_foreground"] },
    type_default: { label: "example.default", icon: "autofill" },
    type_background: { label: "preview.background", icon: "type_background" },
    type_foreground: { label: "preview.foreground", icon: "type_foreground" },
    // LIVE
    startup_activate: { label: "actions.activate_on_startup", icon: "startup" },
    recording: { label: "actions.start_recording", icon: "record", iconColor: "#ff7a7a" },
    // OVERLAYS
    lock_to_output: { label: "context.lock_to_output", icon: "locked", iconColor: "#ff5454" },
    place_under_slide: { label: "context.place_under_slide", icon: "under", iconColor: "#d497ff" },
    display_duration: { label: "popup.display_duration", icon: "clock", iconColor: "#d497ff" },
    overlay_actions: { label: "tabs.actions", icon: "actions", iconColor: "#d497ff" },
    // TEMPLATES
    template_actions: { label: "tabs.actions", icon: "actions", iconColor: "#d497ff" },
    // SCRIPTUES
    route_bible: { label: "main.open: route.bible", icon: "launch" },
    // STAGE
    move_connections: { label: "context.move_connections", icon: "up" },
    // SETTINGS
    reset_theme: { label: "settings.reset_theme", icon: "reset", iconColor: "#ff6b54" },
    reset: { label: "actions.reset", icon: "reset", iconColor: "#ff6b54" }
}

// NOTE: only use at the top (except for slide_remove)
export const contextMenuGroups = {
    open: ["edit", "preview"],
    edit: ["edit"],

    // rename: ["rename", "duplicate", "delete"],
    // duplicate_delete: ["duplicate", "delete"],
    // rename_color: ["rename", "recolor", "duplicate", "delete"],
    rename_icon: ["rename", "changeIcon"],
    rename_recolor: ["rename", "recolor"],
    rename_only: ["rename"],
    recolor: ["recolor"],

    slide_remove: ["remove_group", "delete_slide"],

    dynamic: ["dynamic_values", "conditions"],
    conditions: ["conditions"]
}

export const contextMenuLayouts: { [key: string]: string[] } = {
    // MENU
    file: ["save", "import_more", "export_more", "SEPARATOR", "quit"],
    edit: ["undo", "redo", "history", "SEPARATOR", "cut", "copy", "paste", "delete", "SEPARATOR", "selectAll"], // , "cut"
    view: ["focus_mode", "fullscreen"], // , "resetZoom", "zoomIn", "zoomOut"
    help: ["quick_search", "shortcuts", "docs", "quick_start_guide", "about"],
    // MAIN
    // default: ["save", "settings", "history", "SEPARATOR", "about", "quit"],
    default: ["quick_search"],
    splash: ["custom_text"],
    rename: ["rename"],
    close: ["close"],
    output_window: ["close"],
    input: ["copy", "paste"],

    // TOP
    output: ["force_output", "SEPARATOR", "align_with_screen", "choose_screen"], // , "SEPARATOR", "edit"

    // OUTPUTS
    output_preview: ["GROUP_edit", "change_style", "edit_style", "SEPARATOR", "live_prepare", "SEPARATOR", "test_pattern"],
    output_active_button: ["GROUP_edit", "toggle_output", "move_to_front", "SEPARATOR", "hide_from_preview"],

    // DRAWER
    drawer_top: ["enabledTabs"],
    drawer_info: ["toggle_clock"],
    // NAVIGATION
    category_shows: ["newCategory"],
    category_overlays: ["newCategory"],
    category_templates: ["newCategory"],
    category_media: ["newFolder"],
    category_audio: ["newFolder"],
    category_scripture: ["newScripture", "createCollection"],
    category_shows_button: ["GROUP_rename_icon", "category_action", "category_template", "metadata_display", "SEPARATOR", "delete", "SEPARATOR", "use_as_archive"],
    category_shows_button_readonly: [],
    category_overlays_button: ["GROUP_rename_icon", "delete", "SEPARATOR", "use_as_archive"],
    category_templates_button: ["GROUP_rename_icon", "delete", "SEPARATOR", "use_as_archive"],
    category_media_button: ["GROUP_rename_only", "delete_remove", "SEPARATOR", "media_type", "SEPARATOR", "system_open"],
    category_audio_button: ["GROUP_rename_only", "delete_remove", "SEPARATOR", "system_open"],
    category_scripture_button: ["GROUP_rename_only", "delete", "SEPARATOR", "favourite"],
    playlist: ["GROUP_rename_only", "delete"],
    // CONTENT
    drawer_show: ["newShowPopup", "SEPARATOR", "manage_show_tags", "display_tags", "tag_filter", "sort_shows_by", "SEPARATOR", "selectAll"],
    // , "changeCategory" ? edit with rename & categories...
    // , "convertToOverlay"
    // , "SEPARATOR", "export"
    drawer_show_button: ["GROUP_open", "tag_set", "tag_filter", "SEPARATOR", "rename", "duplicate", "delete"], // "GROUP_rename"
    drawer_show_button_readonly: ["tag_filter"],
    drawer_new_show: ["newShow"],
    // media / audio
    // "play", "play_no_audio", "play_no_filters", "SEPARATOR", "edit",
    media_preview: ["create_show", "SEPARATOR", "system_open", "SEPARATOR", "close"],
    overlay_preview: ["close"],
    // , "delete_all"
    show_media: ["GROUP_open", "play_no_filters", "SEPARATOR", "system_open"], // "play_no_audio"
    show_audio: ["preview", "SEPARATOR", "system_open"],
    slide_recorder_item: ["remove"],
    // , "addToShow"
    // show_in_explorer!!
    media: ["manage_media_tags", "media_tag_filter", "sort_media_by", "media_view"],
    media_card: ["GROUP_open", "createSlideshow", "play_no_audio", "play_no_filters", "SEPARATOR", "favourite", "SEPARATOR", "media_tag_set", "media_tag_filter", "sort_media_by", "SEPARATOR", "system_open"],
    // "addToFirstSlide",
    drawer_overlays: ["reset_defaults"],
    overlay_card: ["GROUP_open", "overlay_actions", "display_duration", "SEPARATOR", "lock_to_output", "place_under_slide", "SEPARATOR", "rename", "recolor", "duplicate", "delete"], // "GROUP_rename_color"
    overlay_card_default: ["GROUP_open", "duplicate", "delete"],
    overlay_card_readonly: ["preview"],
    // "addToShow",
    drawer_templates: ["reset_defaults"],
    template_card: ["GROUP_edit", "template_actions", "export", "SEPARATOR", "rename", "recolor", "duplicate", "delete"], // "GROUP_rename_color"
    template_card_default: ["GROUP_edit", "duplicate", "delete"],
    template_card_readonly: [],
    effect_card: ["GROUP_open", "display_duration", "SEPARATOR", "place_under_slide", "SEPARATOR", "rename", "recolor", "duplicate", "delete"], // "GROUP_rename_color"
    effect_card_default: ["GROUP_open", "duplicate", "delete"],
    player: ["manage_player_tags", "player_tag_filter"],
    player_button: ["GROUP_open", "player_tag_set", "player_tag_filter", "SEPARATOR", "rename", "delete"],
    audio_button: ["GROUP_open", "effects_library_add", "favourite", "SEPARATOR", "system_open"],
    audio_effect_button: ["GROUP_rename_only", "remove", "SEPARATOR", "system_open"],
    audio_button_playlist: ["GROUP_open", "remove"],
    // "addToFirstSlide"
    screen_card: ["recording"],
    camera_card: ["GROUP_edit", "startup_activate", "SEPARATOR", "recording"],
    // actions
    actions: ["manage_action_tags", "action_tag_filter", "SEPARATOR", "action_history"],
    actions_readonly: ["action_tag_filter"],
    action: ["GROUP_edit", "disable", "action_tag_set", "action_tag_filter", "SEPARATOR", "export", "SEPARATOR", "duplicate", "delete"], // GROUP_duplicate_delete
    action_readonly: ["action_tag_filter"],
    scripture_verse: ["create_show", "SEPARATOR", "selectAll", "SEPARATOR", "route_bible"],
    scripture_chapter: ["create_show"],
    interaction: ["GROUP_edit", "rename", "delete"],
    interaction_input: ["GROUP_edit", "duplicate", "delete"],

    // PROJECT
    projects: ["newProject", "newFolder", "SEPARATOR", "sort_projects_by"],
    projectTab: ["close"],
    project: ["newShowPopup", "section"], // "newShow"(empty) , "newPrivateShow"
    project_button: ["GROUP_rename_only", "duplicate", "delete", "SEPARATOR", "copy_to_template", "SEPARATOR", "archive"], // "open", // "GROUP_rename"
    project_button_readonly: [],
    project_template: ["GROUP_edit", "rename", "delete"],
    folder: ["GROUP_rename_only", "delete", "SEPARATOR", "newProject", "newFolder"],
    folder_readonly: ["sort_projects_by"],
    folder_noediting: ["newProject", "newFolder"],
    project_media: ["play", "play_no_audio", "play_no_filters", "SEPARATOR", "remove", "SEPARATOR", "mark_played"],
    project_audio: ["remove", "SEPARATOR", "mark_played"],
    project_player: ["remove"],
    // "delete" removed as too many users thought it just removed the show from the project
    // "duplicate" removed as it was people did not get that it only duplicated the reference in project, and not the entire show (keyboard / menu bar shortcuts can be used)
    project_show: ["GROUP_rename_only", "remove", "SEPARATOR", "mark_played", "private"],
    project_show_placeholder: ["remove"], // "GROUP_rename_only"
    pco_item: ["unlink_pco"],
    project_section: ["GROUP_recolor", "remove"],
    project_overlay: ["remove"],
    project_pdf: ["remove", "SEPARATOR", "mark_played"],
    project_ppt: ["remove", "SEPARATOR", "mark_played"],
    project_screen: ["remove"],
    project_camera: ["remove"],
    project_ndi: ["remove"],
    project_folder: ["remove"], // "rename",
    shows: ["newSlide", "selectAll"],
    // TIMER
    // timer: ["GROUP_edit", "play"], // , "reset"
    timers: ["manage_timer_tags", "timer_tag_filter"],
    timers_readonly: ["timer_tag_filter"],
    global_timer: ["GROUP_edit", "play", "timer_tag_set", "timer_tag_filter", "SEPARATOR", "duplicate", "delete"], // , "reset" // "GROUP_duplicate_delete"
    global_timer_readonly: ["play", "timer_tag_filter"], // , "reset"
    // VARIABLE
    variables: ["manage_variable_tags", "variable_tag_filter"],
    variables_readonly: ["variable_tag_filter"],
    variable: ["GROUP_edit", "variable_tag_set", "variable_tag_filter", "SEPARATOR", "duplicate", "delete"], // "GROUP_duplicate_delete"
    variable_readonly: ["variable_tag_filter"],
    // AUDIO STREAM
    audio_stream: ["GROUP_edit", "delete"],

    // SHOWS
    // , "copy", "paste"
    slide: ["GROUP_edit", "slideGroups", "actions", "bind_to", "format", "remove_layers", "slide_transition", "disable", "SEPARATOR", "duplicate", "make_unique", "GROUP_slide_remove"],
    slideChild: ["GROUP_edit", "slideGroups", "actions", "bind_to", "format", "remove_layers", "slide_transition", "disable", "SEPARATOR", "duplicate", "make_unique", "GROUP_slide_remove"],
    slideFocus: ["editSlideText"],
    group: ["GROUP_rename_recolor", "lock_group", "SEPARATOR", "selectAll", "SEPARATOR", "duplicate", "delete_group"],
    global_group: ["manage_groups"],
    metadata_tools: ["manage_metadata"],
    // global_group: ["rename"],
    layout: ["GROUP_rename_only", "duplicate", "remove"],
    slideViews: ["view_grid", "view_list", "view_lyrics", "SEPARATOR", "view_simple", "view_groups"],
    show_template: ["remove_template"],
    tag: ["GROUP_rename_recolor", "delete"],
    chord: ["set_key", "chord_list", "custom_key", "SEPARATOR", "delete"],
    edit_custom_action: ["edit"],

    // MEDIA
    video_subtitle: ["GROUP_rename_only", "delete"],
    video_subtitle_embedded: ["rename"],
    video_marker: ["GROUP_rename_only", "delete"],

    // SCRIPTURE
    bible_book_local: ["rename"],

    // STAGE
    stage_slide: ["GROUP_rename_only", "move_connections", "disable", "SEPARATOR", "export", "SEPARATOR", "duplicate", "delete"], // "GROUP_duplicate_delete"
    stage_slide_readonly: ["move_connections"],
    stage_item: ["GROUP_conditions", "rearrange_stage", "SEPARATOR", "duplicate", "delete"], // "GROUP_duplicate_delete"
    stage_item_output: ["GROUP_conditions", "rearrange_stage", "SEPARATOR", "delete"],
    stage_text_item: ["GROUP_dynamic", "rearrange_stage", "SEPARATOR", "duplicate", "delete"], // "GROUP_duplicate_delete"
    items_list_item_stage: ["to_front_stage", "forward_stage", "backward_stage", "to_back_stage"],

    // EDIT
    edit_box: ["GROUP_dynamic", "item_actions", "item_bind_to", "format", "rearrange", "transition", "SEPARATOR", "duplicate", "delete"], // "copy", "paste" (shortcut or top menubar) // "GROUP_duplicate_delete"
    editbox_text: ["text_copy", "text_cut", "text_paste", "text_select_all", "SEPARATOR", "insert_virtual_break"],
    items_list_item: ["to_front", "forward", "backward", "to_back"],
    table_context: ["delete_row", "delete_col"],

    // TIMELINE
    timeline_node: ["delete"],

    // CALENDAR
    event: ["GROUP_edit", "duplicate", "delete", "delete_all"],

    // SETTINGS
    theme: ["GROUP_rename_only", "duplicate", "delete", "SEPARATOR", "export", "SEPARATOR", "reset_theme"], // "GROUP_rename"
    style: ["GROUP_rename_only", "duplicate", "delete", "SEPARATOR", "reset"], // "GROUP_rename"
    profile_tab: ["GROUP_rename_recolor", "duplicate", "delete", "SEPARATOR", "reset"], // "GROUP_rename_color"
    profile_tab_admin: [],
    output_screen: ["GROUP_rename_recolor", "duplicate", "delete"], // , "SEPARATOR", "reset" // "GROUP_rename_color"
    output_screen_stage: ["GROUP_rename_recolor", "duplicate", "delete"], // , "SEPARATOR", "reset" // "GROUP_rename_color"
    audio_channel: ["GROUP_rename_recolor", "delete"],
    audio_channel_main: ["GROUP_rename_only"]
}
