import { UMB_DOCUMENT_ENTITY_TYPE } from '../../../entity.js';
import { UMB_DOCUMENT_COLLECTION_ALIAS } from '../../../collection/constants.js';
import { UMB_USER_PERMISSION_DOCUMENT_PUBLISH } from '../../../user-permissions/document/constants.js';
import { UMB_COLLECTION_ALIAS_CONDITION } from '../../../../../core/collection/index.js';
import { UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS } from '../../../../../core/recycle-bin/index.js';
export const manifests = [
    {
        type: 'entityBulkAction',
        kind: 'default',
        alias: 'Umb.EntityBulkAction.Document.Publish',
        name: 'Publish Document Entity Bulk Action',
        weight: 50,
        api: () => import('./publish.bulk-action.js'),
        meta: {
            icon: 'icon-globe',
            label: '#actions_publish',
        },
        forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
        conditions: [
            {
                alias: UMB_COLLECTION_ALIAS_CONDITION,
                match: UMB_DOCUMENT_COLLECTION_ALIAS,
            },
            {
                alias: 'Umb.Condition.UserPermission.Document',
                allOf: [UMB_USER_PERMISSION_DOCUMENT_PUBLISH],
            },
            {
                alias: UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS,
            },
        ],
    },
];
