( function ( window, document ) {
	'use strict';

	if ( ! window.ARAnalyticsDashboardData ) {
		return;
	}

	const dashboardRoot = document.querySelector( '.ar-analytics-wrap' );
	if ( ! dashboardRoot ) {
		return;
	}

	if ( Array.isArray( window.ARAnalyticsDashboardData.dailySeries ) && window.ARAnalyticsDashboardData.dailySeries.length ) {
		dashboardRoot.classList.add( 'ar-analytics-has-data' );
	}
}( window, document ) );

