<?php
/**
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Smile ElasticSuite to newer
 * versions in the future.
 *
 * @category  Smile
 * @package   Smile\ElasticsuiteTracker
 * @author    Pierre Gauthier <pierre.gauthier@smile.fr>
 * @copyright 2021 Smile
 * @license   Open Software License ("OSL") v. 3.0
 */

/** @var \Magento\Framework\View\Element\Template $block  */
/** @var \Smile\ElasticsuiteTracker\ViewModel\Notification $notification  */
$notification = $block->getData('notification');
?>

<script>
    define('elasticPopupConfig', function () {
        return {
            elasticsuiteVisible: <?= $notification->isTelemetryVisible() ? 1 : 0; ?>
        }
    });
</script>
