import { UMB_PARTIAL_VIEW_FOLDER_ENTITY_TYPE } from '../../../entity.js';
import { UMB_PARTIAL_VIEW_FOLDER_REPOSITORY_ALIAS } from '../constants.js';
import { UMB_PARTIAL_VIEW_FOLDER_WORKSPACE_ALIAS } from './constants.js';
import { UmbPartialViewFolderWorkspaceEditorElement } from './partial-view-folder-workspace-editor.element.js';
import { UmbEntityNamedDetailWorkspaceContextBase, } from '../../../../../core/workspace/index.js';
export class UmbPartialViewFolderWorkspaceContext extends UmbEntityNamedDetailWorkspaceContextBase {
    constructor(host) {
        super(host, {
            workspaceAlias: UMB_PARTIAL_VIEW_FOLDER_WORKSPACE_ALIAS,
            entityType: UMB_PARTIAL_VIEW_FOLDER_ENTITY_TYPE,
            detailRepositoryAlias: UMB_PARTIAL_VIEW_FOLDER_REPOSITORY_ALIAS,
        });
        this.routes.setRoutes([
            {
                path: 'edit/:unique',
                component: UmbPartialViewFolderWorkspaceEditorElement,
                setup: (component, info) => {
                    const unique = info.match.params.unique;
                    this.load(unique);
                },
            },
        ]);
    }
}
export { UmbPartialViewFolderWorkspaceContext as api };
