import { UMB_DOCUMENT_ENTITY_TYPE, UMB_DOCUMENT_ROOT_ENTITY_TYPE } from '../../entity.js';
import { UMB_USER_PERMISSION_DOCUMENT_CREATE } from '../../user-permissions/document/constants.js';
import { UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS } from '../../../../core/recycle-bin/index.js';
export const manifests = [
    {
        type: 'entityAction',
        kind: 'default',
        alias: 'Umb.EntityAction.Document.Create',
        name: 'Create Document Entity Action',
        weight: 1200,
        api: () => import('./create.action.js'),
        forEntityTypes: [UMB_DOCUMENT_ROOT_ENTITY_TYPE, UMB_DOCUMENT_ENTITY_TYPE],
        meta: {
            icon: 'icon-add',
            label: '#actions_createFor',
            additionalOptions: true,
        },
        conditions: [
            {
                alias: 'Umb.Condition.UserPermission.Document',
                allOf: [UMB_USER_PERMISSION_DOCUMENT_CREATE],
            },
            {
                alias: UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS,
            },
        ],
    },
    {
        type: 'modal',
        alias: 'Umb.Modal.Document.CreateOptions',
        name: 'Document Create Options Modal',
        element: () => import('./document-create-options-modal.element.js'),
    },
];
