import { UmbSubmitWorkspaceAction, UMB_WORKSPACE_CONDITION_ALIAS } from '../../../core/workspace/index.js';
import { UMB_IS_SERVER_PRODUCTION_MODE_CONDITION_ALIAS } from '../../../core/server/index.js';
export const UMB_PARTIAL_VIEW_WORKSPACE_ALIAS = 'Umb.Workspace.PartialView';
export const manifests = [
    {
        type: 'workspace',
        kind: 'routable',
        alias: UMB_PARTIAL_VIEW_WORKSPACE_ALIAS,
        name: 'Partial View Workspace',
        api: () => import('./partial-view-workspace.context.js'),
        meta: {
            entityType: 'partial-view',
        },
    },
    {
        type: 'workspaceAction',
        kind: 'default',
        alias: 'Umb.WorkspaceAction.PartialView.Save',
        name: 'Save Partial View',
        api: UmbSubmitWorkspaceAction,
        meta: {
            label: '#buttons_save',
            look: 'primary',
            color: 'positive',
        },
        conditions: [
            {
                alias: UMB_WORKSPACE_CONDITION_ALIAS,
                match: UMB_PARTIAL_VIEW_WORKSPACE_ALIAS,
            },
            {
                alias: UMB_IS_SERVER_PRODUCTION_MODE_CONDITION_ALIAS,
                match: false,
            },
        ],
    },
    {
        type: 'workspaceAction',
        alias: 'Umb.WorkspaceAction.PartialView.ProductionMode',
        name: 'Partial View Production Mode',
        api: () => import('../../local-components/production-mode-workspace-action/production-mode-workspace-action.js'),
        element: () => import('../../local-components/production-mode-workspace-action/production-mode-workspace-action.js'),
        weight: 60,
        conditions: [
            {
                alias: UMB_WORKSPACE_CONDITION_ALIAS,
                match: UMB_PARTIAL_VIEW_WORKSPACE_ALIAS,
            },
            {
                alias: UMB_IS_SERVER_PRODUCTION_MODE_CONDITION_ALIAS,
                match: true,
            },
        ],
    },
];
