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