import { UMB_DOCUMENT_WORKSPACE_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';
const workspaceAction = {
    type: 'workspaceAction',
    kind: 'default',
    alias: 'Umb.WorkspaceAction.Document.SaveAndPreview',
    name: 'Save And Preview Document Workspace Action',
    weight: 90,
    api: () => import('./save-and-preview.action.js'),
    element: () => import('./save-and-preview-workspace-action.element.js'),
    meta: {
        label: '#buttons_saveAndPreview',
    },
    conditions: [
        {
            alias: UMB_WORKSPACE_CONDITION_ALIAS,
            match: UMB_DOCUMENT_WORKSPACE_ALIAS,
        },
        {
            alias: UMB_ENTITY_IS_NOT_TRASHED_CONDITION_ALIAS,
        },
    ],
};
export const manifests = [workspaceAction];
