import { UMB_DATA_TYPE_FOLDER_ENTITY_TYPE } from '../../../entity.js';
import { UMB_DATA_TYPE_FOLDER_REPOSITORY_ALIAS } from '../repository/index.js';
import { UMB_DATA_TYPE_FOLDER_WORKSPACE_ALIAS } from './constants.js';
import { UmbDataTypeFolderWorkspaceEditorElement } from './data-type-folder-editor.element.js';
import { UmbEntityNamedDetailWorkspaceContextBase, } from '../../../../core/workspace/index.js';
export class UmbDataTypeFolderWorkspaceContext extends UmbEntityNamedDetailWorkspaceContextBase {
    constructor(host) {
        super(host, {
            workspaceAlias: UMB_DATA_TYPE_FOLDER_WORKSPACE_ALIAS,
            entityType: UMB_DATA_TYPE_FOLDER_ENTITY_TYPE,
            detailRepositoryAlias: UMB_DATA_TYPE_FOLDER_REPOSITORY_ALIAS,
        });
        this.routes.setRoutes([
            {
                path: 'edit/:unique',
                component: UmbDataTypeFolderWorkspaceEditorElement,
                setup: (component, info) => {
                    const unique = info.match.params.unique;
                    this.load(unique);
                },
            },
        ]);
    }
}
export { UmbDataTypeFolderWorkspaceContext as api };
