import { hookNavigator, NavigatorNode, hookRoute, ViewContext } from '@c8y/ngx-components';
import { EVENTS_PATH } from '@c8y/ngx-components/events';
import { gettext } from '@c8y/ngx-components/gettext';

const eventDetailsChildren = [
    {
        path: ':id',
        loadComponent: () => import('@c8y/ngx-components/events').then(m => m.EventDetailsComponent)
    }
];
const eventsDeviceManagementProviders = [
    hookNavigator(new NavigatorNode({
        label: gettext('Overviews'),
        icon: 'c8y-overviews',
        priority: 2500
    })),
    hookNavigator(new NavigatorNode({
        label: gettext('Events'),
        icon: 'online1',
        priority: 1300,
        path: `/${EVENTS_PATH}`,
        featureId: 'events',
        parent: gettext('Overviews'),
        routerLinkExact: false
    })),
    hookRoute({
        path: EVENTS_PATH,
        loadComponent: () => import('@c8y/ngx-components/events').then(m => m.EventsComponent),
        data: { title: true },
        children: eventDetailsChildren
    }),
    hookRoute({
        context: ViewContext.Group,
        path: EVENTS_PATH,
        priority: 700,
        icon: 'online1',
        label: gettext('Events'),
        loadComponent: () => import('@c8y/ngx-components/events').then(m => m.EventsComponent),
        featureId: 'events',
        children: eventDetailsChildren
    }),
    hookRoute({
        context: ViewContext.Device,
        path: EVENTS_PATH,
        priority: 700,
        icon: 'online1',
        label: gettext('Events'),
        loadComponent: () => import('@c8y/ngx-components/events').then(m => m.EventsComponent),
        featureId: 'events',
        children: eventDetailsChildren
    }),
    hookRoute({
        context: ViewContext.Service,
        path: EVENTS_PATH,
        priority: 700,
        icon: 'online1',
        label: gettext('Events'),
        loadComponent: () => import('@c8y/ngx-components/events').then(m => m.EventsComponent),
        featureId: 'events',
        children: eventDetailsChildren
    }),
    hookRoute({
        context: ViewContext.Simulators,
        path: EVENTS_PATH,
        priority: -2,
        icon: 'online1',
        label: gettext('Events'),
        loadComponent: () => import('@c8y/ngx-components/events').then(m => m.EventsComponent),
        featureId: 'events',
        children: eventDetailsChildren
    })
];

/**
 * Generated bundle index. Do not edit.
 */

export { eventsDeviceManagementProviders };
//# sourceMappingURL=c8y-ngx-components-events-devicemanagement.mjs.map
