import { UMB_DOCUMENT_WORKSPACE_ALIAS } from '../constants.js';
import { UMB_DOCUMENT_TREE_ALIAS } from '../tree/index.js';
import { UMB_DOCUMENT_MENU_ITEM_ALIAS } from './constants.js';
import { UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS } from '../../../core/recycle-bin/index.js';
import { UMB_WORKSPACE_CONDITION_ALIAS } from '../../../core/workspace/index.js';
export const UMB_CONTENT_MENU_ALIAS = 'Umb.Menu.Content';
export const manifests = [
    {
        type: 'menu',
        alias: UMB_CONTENT_MENU_ALIAS,
        name: 'Content Menu',
    },
    {
        type: 'menuItem',
        kind: 'tree',
        alias: UMB_DOCUMENT_MENU_ITEM_ALIAS,
        name: 'Document Menu Item',
        weight: 200,
        meta: {
            label: 'Documents',
            menus: [UMB_CONTENT_MENU_ALIAS],
            treeAlias: UMB_DOCUMENT_TREE_ALIAS,
            hideTreeRoot: true,
        },
    },
    {
        type: 'workspaceContext',
        kind: 'menuStructure',
        name: 'Document Menu Structure Workspace Context',
        alias: 'Umb.Context.Document.Menu.Structure',
        api: () => import('./document-menu-structure.context.js'),
        meta: {
            menuItemAlias: UMB_DOCUMENT_MENU_ITEM_ALIAS,
        },
        conditions: [
            {
                alias: UMB_WORKSPACE_CONDITION_ALIAS,
                match: UMB_DOCUMENT_WORKSPACE_ALIAS,
            },
            {
                alias: UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS,
            },
        ],
    },
    {
        type: 'workspaceFooterApp',
        kind: 'variantMenuBreadcrumb',
        alias: 'Umb.WorkspaceFooterApp.Document.Breadcrumb',
        name: 'Document Breadcrumb Workspace Footer App',
        conditions: [
            {
                alias: UMB_WORKSPACE_CONDITION_ALIAS,
                match: UMB_DOCUMENT_WORKSPACE_ALIAS,
            },
        ],
    },
];
