import { UMB_DOCUMENT_ENTITY_TYPE } from '../../entity.js';
import { UMB_USER_PERMISSION_DOCUMENT_DUPLICATE } from '../../user-permissions/document/constants.js';
import { manifests as repositoryManifests } from './repository/manifests.js';
import { manifests as modalManifests } from './modal/manifests.js';
import { UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS } from '../../../../core/recycle-bin/index.js';
export const manifests = [
    {
        type: 'entityAction',
        kind: 'duplicateTo',
        alias: 'Umb.EntityAction.Document.DuplicateTo',
        name: 'Duplicate Document To Entity Action',
        forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
        api: () => import('./duplicate-document.action.js'),
        conditions: [
            {
                alias: 'Umb.Condition.UserPermission.Document',
                allOf: [UMB_USER_PERMISSION_DOCUMENT_DUPLICATE],
            },
            {
                alias: UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS,
            },
        ],
    },
    ...repositoryManifests,
    ...modalManifests,
];
