import { UMB_MEDIA_DETAIL_REPOSITORY_ALIAS, UMB_MEDIA_ITEM_REPOSITORY_ALIAS, UMB_MEDIA_REFERENCE_REPOSITORY_ALIAS, } from '../constants.js';
import { UMB_MEDIA_ENTITY_TYPE } from '../entity.js';
import { manifests as createManifests } from './create/manifests.js';
import { manifests as moveManifests } from './move-to/manifests.js';
import { manifests as sortChildrenOfManifests } from './sort-children-of/manifests.js';
import { UMB_ENTITY_IS_TRASHED_CONDITION_ALIAS } from '../../../core/recycle-bin/index.js';
export const manifests = [
    ...createManifests,
    {
        type: 'entityAction',
        alias: 'Umb.EntityAction.Media.Delete',
        name: 'Delete Media Entity Action',
        kind: 'deleteWithRelation',
        forEntityTypes: [UMB_MEDIA_ENTITY_TYPE],
        meta: {
            icon: 'icon-trash-empty',
            itemRepositoryAlias: UMB_MEDIA_ITEM_REPOSITORY_ALIAS,
            detailRepositoryAlias: UMB_MEDIA_DETAIL_REPOSITORY_ALIAS,
            referenceRepositoryAlias: UMB_MEDIA_REFERENCE_REPOSITORY_ALIAS,
        },
        conditions: [
            {
                alias: UMB_ENTITY_IS_TRASHED_CONDITION_ALIAS,
            },
        ],
    },
    ...moveManifests,
    ...sortChildrenOfManifests,
];
