import GroupManagement from './components/GroupManagement.vue';
import GroupManagementTree from './components/sidebar/GroupManagementTree.vue';
import GroupManagementTreeItem from './components/sidebar/GroupManagementTreeItem.vue';
import GroupManagementTreeGroupMenu from './components/sidebar/GroupManagementTreeGroupMenu.vue';
import GroupManagementTreeToolbar from './components/sidebar/GroupManagementTreeToolbar.vue';
import GroupManagementFormDrawer from './components/drawer/GroupManagementFormDrawer.vue';
import GroupManagementMembershipFormDrawer from './components/drawer/GroupManagementMembershipFormDrawer.vue';
import GroupManagementToolbar from './components/header/GroupManagementToolbar.vue';
import GroupManagementPlaceholder from './components/GroupManagementPlaceholder.vue';
import GroupMembersManagement from './components/members/GroupMembersManagement.vue';
import GroupMembersList from './components/members/GroupMembersList.vue';
import UsersManagementFilterDrawer from '../idm-users-management/components/UsersManagementFilterDrawer.vue';
import GroupMembersMembershipDrawer from './components/members/GroupMembersMembershipDrawer.vue';
import GroupMembersManagementToolbar from './components/members/GroupMembersManagementToolbar.vue';
import GroupMembersActionMenu from './components/members/GroupMembersActionMenu.vue';

const components = {
  'group-management': GroupManagement,
  'group-management-tree': GroupManagementTree,
  'group-management-tree-item': GroupManagementTreeItem,
  'group-management-tree-group-menu': GroupManagementTreeGroupMenu,
  'group-management-tree-toolbar': GroupManagementTreeToolbar,
  'group-management-form-drawer': GroupManagementFormDrawer,
  'group-management-membership-form-drawer': GroupManagementMembershipFormDrawer,
  'group-management-toolbar': GroupManagementToolbar,
  'group-management-placeholder': GroupManagementPlaceholder,
  'group-members-management-toolbar': GroupMembersManagementToolbar,
  'group-members-management': GroupMembersManagement,
  'group-members-list': GroupMembersList,
  'group-members-filter-drawer': UsersManagementFilterDrawer,
  'group-members-membership-drawer': GroupMembersMembershipDrawer,
  'group-members-action-menu': GroupMembersActionMenu,
};

for (const key in components) {
  Vue.component(key, components[key]);
}
