No stats found.
\n ) : (\n \n
\n Manage dashboards\n \n }\n />\n\n \n \n Manage data sources\n \n )\n }\n />\n \n Manage alerts\n \n }\n />\n
\n \n Manage users\n \n )\n }\n />\n \n )}\n >\n );\n};\n\nconst getAnonymousStatsContent = (stats: ServerStat | null, config: GrafanaBootConfig) => {\n if (!config.anonymousEnabled || !config.featureToggles.displayAnonymousStats || !stats?.activeDevices) {\n return [];\n }\n if (!config.anonymousDeviceLimit) {\n return [\n {\n name: 'Active anonymous devices',\n value: `${stats.activeDevices}`,\n tooltip: 'Detected devices that are not logged in, in last 30 days.',\n },\n ];\n } else {\n return [\n {\n name: 'Active anonymous devices',\n value: `${stats.activeDevices} / ${config.anonymousDeviceLimit}`,\n tooltip: 'Detected devices that are not logged in, in last 30 days.',\n highlight: stats.activeDevices > config.anonymousDeviceLimit,\n },\n ];\n }\n};\n\nconst getStyles = (theme: GrafanaTheme2) => {\n return {\n title: css({\n marginBottom: theme.spacing(4),\n }),\n row: css({\n display: 'flex',\n justifyContent: 'space-between',\n width: '100%',\n\n '& > div:not(:last-of-type)': {\n marginRight: theme.spacing(2),\n },\n\n '& > div': {\n width: '33.3%',\n },\n }),\n doubleRow: css({\n display: 'flex',\n flexDirection: 'column',\n\n '& > div:first-of-type': {\n marginBottom: theme.spacing(2),\n },\n }),\n notFound: css({\n fontSize: theme.typography.h6.fontSize,\n textAlign: 'center',\n height: '290px',\n }),\n };\n};\n"],"names":["ServerStatsCard","content","footer","isLoading","styles","getStyles","Card","item","index","Stack","Tooltip","Icon","theme","getServerStats","err","ServerStats","stats","setStats","setIsLoading","hasAccessToDataSources","hasAccessToAdminUsers","getAnonymousStatsContent","config"],"sourceRoot":""}