import { gettext } from '@c8y/ngx-components/gettext';
import { hookWidget } from '@c8y/ngx-components';
import { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';

const pieChartWidgetDefinition = {
    id: defaultWidgetIds.PIE_CHART,
    label: gettext('Pie chart'),
    description: gettext(`Displays data in a pie chart format.`),
    previewImage: 'c8y-style-assets/pie-chart-widget-pr.png',
    loadComponent: () => import('@c8y/ngx-components/widgets/implementations/pie-chart').then(m => m.PieChartWidgetViewComponent),
    loadConfigComponent: () => import('@c8y/ngx-components/widgets/implementations/pie-chart').then(m => m.PieChartWidgetConfigComponent),
    data: {
        settings: {
            noNewWidgets: false,
            widgetDefaults: {
                _width: 8,
                _height: 4
            },
            noDeviceTarget: true
        }
    }
};
const pieChartWidgetProviders = [hookWidget(pieChartWidgetDefinition)];

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

export { pieChartWidgetDefinition, pieChartWidgetProviders };
//# sourceMappingURL=c8y-ngx-components-widgets-definitions-pie-chart.mjs.map
