<?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\ElasticsuiteCatalog
 * @author    Aurelien FOUCRET <aurelien.foucret@smile.fr>
 * @copyright 2020 Smile
 * @license   Open Software License ("OSL") v. 3.0
 */

/**
 * Template for filter items block
 *
 * @var $block \Smile\ElasticsuiteCatalog\Block\Navigation\Renderer\Slider
 */
?>
<div class="smile-es-range-slider" data-role="<?php /* @noEscape */ echo $block->getDataRole(); ?>">
    <div data-role="from-label"></div>
    <div data-role="to-label"></div>
    <div data-role="slider-bar"></div>
    <div class="actions-toolbar">
        <div data-role="message-box"></div>
        <div class="actions-primary">
            <a class="action primary small" data-role="apply-range">
                <span><?php /* @noEscape */ echo __('OK'); ?></span>
            </a>
        </div>
    </div>
</div>

<script type="text/x-magento-init">
    { "[data-role=<?php /* @noEscape */ echo $block->getDataRole(); ?>]" : { "rangeSlider" : <?php echo  /* @noEscape */ $block->getJsonConfig(); ?> } }
</script>
