<?php
/**
 * Dashboard data compatibility shim.
 *
 * Business logic now lives in:
 * modules/free/dashboard/includes/class-noesia-swa-dashboard-data.php
 *
 * This legacy include remains only as a backward-compatible bridge until all
 * kernel/bootstrap references stop requiring the old path directly.
 *
 * @package Noesia_Smart_Waiter
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

if ( class_exists( 'Noesia_SWA_Dashboard_Data' ) ) {
    return;
}

$noesia_swa_module_file = apply_filters(
    'noesia_swa_legacy_dashboard_data_file',
    NOESIA_SWA_PLUGIN_DIR . 'modules/free/dashboard/includes/class-noesia-swa-dashboard-data.php'
);

if ( is_string( $noesia_swa_module_file ) && '' !== $noesia_swa_module_file && file_exists( $noesia_swa_module_file ) ) {
    require_once $noesia_swa_module_file;
}
