function content_55ccf2ea705e17_82557313($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            $_smarty_tpl->tpl_vars["min"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['range_values']['min'], null, 0);
            $_smarty_tpl->tpl_vars["max"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['range_values']['max'], null, 0);
            $_smarty_tpl->tpl_vars["left"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['range_values']['left']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['min']->value : $tmp, null, 0);
            $_smarty_tpl->tpl_vars["right"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['range_values']['right']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['max']->value : $tmp, null, 0);
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['max']->value - $_smarty_tpl->tpl_vars['min']->value <= $_smarty_tpl->tpl_vars['filter']->value['round_to']) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["disable_slider"] = new Smarty_variable(true, null, 0);
            } elseif ($_smarty_tpl->tpl_vars['max']->value - $_smarty_tpl->tpl_vars['min']->value >= 4 * $_smarty_tpl->tpl_vars['filter']->value['round_to']) {
                ?>
    <?php 
                echo smarty_function_math(array('equation' => "min + round((max - min) * 0.25 / rto) * rto", 'max' => $_smarty_tpl->tpl_vars['max']->value, 'min' => $_smarty_tpl->tpl_vars['min']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "num_25"), $_smarty_tpl);
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "min + round((max - min) * 0.50 / rto) * rto", 'max' => $_smarty_tpl->tpl_vars['max']->value, 'min' => $_smarty_tpl->tpl_vars['min']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "num_50"), $_smarty_tpl);
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "min + round((max - min) * 0.75 / rto) * rto", 'max' => $_smarty_tpl->tpl_vars['max']->value, 'min' => $_smarty_tpl->tpl_vars['min']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "num_75"), $_smarty_tpl);
                ?>

<?php 
            }
            ?>

<?php 
            if (fn_string_not_empty($_smarty_tpl->tpl_vars['filter']->value['range_values']['left']) || fn_string_not_empty($_smarty_tpl->tpl_vars['filter']->value['range_values']['right'])) {
                ?>
    <?php 
                $_smarty_tpl->_capture_stack[0][] = array("has_selected", null, null);
                ob_start();
                ?>
Y<?php 
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['dynamic']->value) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_hash"] = new Smarty_variable(fn_add_range_to_url_hash($_REQUEST['features_hash'], '###-###', $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_url"] = new Smarty_variable(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_slider_hash']->value)), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(fn_compare_dispatch($_smarty_tpl->tpl_vars['filter_slider_url']->value, $_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
            } else {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_hash"] = new Smarty_variable(fn_add_range_to_url_hash('', '###-###', $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_url"] = new Smarty_variable(fn_url("products.search?features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_slider_hash']->value), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(false, null, 0);
            }
            ?>

<div id="content_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="ty-price-slider hidden <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['extra_class']->value, ENT_QUOTES, 'UTF-8');
            ?>
 cm-popup-box ty-dropdown-box__content">
    <input type="text" class="ty-price-slider__input-text" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_left" name="left_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['left']->value, ENT_QUOTES, 'UTF-8');
            ?>
"<?php 
            if ($_smarty_tpl->tpl_vars['disable_slider']->value) {
                ?>
 disabled="disabled"<?php 
            }
            ?>
 />
    &nbsp;–&nbsp;
    <input type="text" class="ty-price-slider__input-text" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_right" name="right_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['right']->value, ENT_QUOTES, 'UTF-8');
            ?>
"<?php 
            if ($_smarty_tpl->tpl_vars['disable_slider']->value) {
                ?>
 disabled="disabled"<?php 
            }
            ?>
 />
    <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') {
                ?>
        &nbsp;<?php 
                echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['symbol'];
                ?>

    <?php 
            }
            ?>

    <div id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="ty-range-slider cm-range-slider">
        <ul class="ty-range-slider__wrapper">
            <li class="ty-range-slider__item" style="left: 0%;"><span class="ty-range-slider__num"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['min']->value, ENT_QUOTES, 'UTF-8');
            ?>
</span></li>
            <?php 
            if ($_smarty_tpl->tpl_vars['num_25']->value) {
                ?>
                <li class="ty-range-slider__item" style="left: 25%;"><span class="ty-range-slider__num"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['num_25']->value, ENT_QUOTES, 'UTF-8');
                ?>
</span></li>
                <li class="ty-range-slider__item" style="left: 50%;"><span class="ty-range-slider__num"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['num_50']->value, ENT_QUOTES, 'UTF-8');
                ?>
</span></li>
                <li class="ty-range-slider__item" style="left: 75%;"><span class="ty-range-slider__num"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['num_75']->value, ENT_QUOTES, 'UTF-8');
                ?>
</span></li>
            <?php 
            }
            ?>
            <li class="ty-range-slider__item" style="left: 100%;"><span class="ty-range-slider__num"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['max']->value, ENT_QUOTES, 'UTF-8');
            ?>
</span></li>
        </ul>
    </div>

    <?php 
            if ($_smarty_tpl->tpl_vars['right']->value == $_smarty_tpl->tpl_vars['left']->value) {
                ?>
        <?php 
                echo smarty_function_math(array('equation' => "left + rto", 'left' => $_smarty_tpl->tpl_vars['left']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "_right"), $_smarty_tpl);
                ?>

    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["_right"] = new Smarty_variable($_smarty_tpl->tpl_vars['right']->value, null, 0);
                ?>
    <?php 
            }
            ?>
    
    <input type="hidden" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_json" value='{
        "disabled": <?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['disable_slider']->value) === null || $tmp === '' ? "false" : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
,
        "min": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['min']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "max": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['max']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "left": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['left']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "right": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['_right']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "step": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['round_to'], ENT_QUOTES, 'UTF-8');
            ?>
,
        "url": "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_slider_url']->value, ENT_QUOTES, 'UTF-8');
            ?>
",
        "type": "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8');
            ?>
",
        "currency": "<?php 
            echo htmlspecialchars(@constant('CART_SECONDARY_CURRENCY'), ENT_QUOTES, 'UTF-8');
            ?>
",
        
        "ajax": false,
        "result_ids": "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8');
            ?>
",
        "scroll": ".cm-pagination-container"
    }' />
    
</div>
<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="blocks/product_filters/components/product_filter_slider.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "blocks/product_filters/components/product_filter_slider.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            $_smarty_tpl->tpl_vars["min"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['range_values']['min'], null, 0);
            $_smarty_tpl->tpl_vars["max"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['range_values']['max'], null, 0);
            $_smarty_tpl->tpl_vars["left"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['range_values']['left']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['min']->value : $tmp, null, 0);
            $_smarty_tpl->tpl_vars["right"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['range_values']['right']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['max']->value : $tmp, null, 0);
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['max']->value - $_smarty_tpl->tpl_vars['min']->value <= $_smarty_tpl->tpl_vars['filter']->value['round_to']) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["disable_slider"] = new Smarty_variable(true, null, 0);
            } elseif ($_smarty_tpl->tpl_vars['max']->value - $_smarty_tpl->tpl_vars['min']->value >= 4 * $_smarty_tpl->tpl_vars['filter']->value['round_to']) {
                ?>
    <?php 
                echo smarty_function_math(array('equation' => "min + round((max - min) * 0.25 / rto) * rto", 'max' => $_smarty_tpl->tpl_vars['max']->value, 'min' => $_smarty_tpl->tpl_vars['min']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "num_25"), $_smarty_tpl);
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "min + round((max - min) * 0.50 / rto) * rto", 'max' => $_smarty_tpl->tpl_vars['max']->value, 'min' => $_smarty_tpl->tpl_vars['min']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "num_50"), $_smarty_tpl);
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "min + round((max - min) * 0.75 / rto) * rto", 'max' => $_smarty_tpl->tpl_vars['max']->value, 'min' => $_smarty_tpl->tpl_vars['min']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "num_75"), $_smarty_tpl);
                ?>

<?php 
            }
            ?>

<?php 
            if (fn_string_not_empty($_smarty_tpl->tpl_vars['filter']->value['range_values']['left']) || fn_string_not_empty($_smarty_tpl->tpl_vars['filter']->value['range_values']['right'])) {
                ?>
    <?php 
                $_smarty_tpl->_capture_stack[0][] = array("has_selected", null, null);
                ob_start();
                ?>
Y<?php 
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['dynamic']->value) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_hash"] = new Smarty_variable(fn_add_range_to_url_hash($_REQUEST['features_hash'], '###-###', $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_url"] = new Smarty_variable(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_slider_hash']->value)), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(fn_compare_dispatch($_smarty_tpl->tpl_vars['filter_slider_url']->value, $_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
            } else {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_hash"] = new Smarty_variable(fn_add_range_to_url_hash('', '###-###', $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["filter_slider_url"] = new Smarty_variable(fn_url("products.search?features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_slider_hash']->value), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(false, null, 0);
            }
            ?>

<div id="content_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="ty-price-slider hidden <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['extra_class']->value, ENT_QUOTES, 'UTF-8');
            ?>
 cm-popup-box ty-dropdown-box__content">
    <input type="text" class="ty-price-slider__input-text" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_left" name="left_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['left']->value, ENT_QUOTES, 'UTF-8');
            ?>
"<?php 
            if ($_smarty_tpl->tpl_vars['disable_slider']->value) {
                ?>
 disabled="disabled"<?php 
            }
            ?>
 />
    &nbsp;–&nbsp;
    <input type="text" class="ty-price-slider__input-text" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_right" name="right_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['right']->value, ENT_QUOTES, 'UTF-8');
            ?>
"<?php 
            if ($_smarty_tpl->tpl_vars['disable_slider']->value) {
                ?>
 disabled="disabled"<?php 
            }
            ?>
 />
    <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') {
                ?>
        &nbsp;<?php 
                echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['symbol'];
                ?>

    <?php 
            }
            ?>

    <div id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="ty-range-slider cm-range-slider">
        <ul class="ty-range-slider__wrapper">
            <li class="ty-range-slider__item" style="left: 0%;"><span class="ty-range-slider__num"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['min']->value, ENT_QUOTES, 'UTF-8');
            ?>
</span></li>
            <?php 
            if ($_smarty_tpl->tpl_vars['num_25']->value) {
                ?>
                <li class="ty-range-slider__item" style="left: 25%;"><span class="ty-range-slider__num"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['num_25']->value, ENT_QUOTES, 'UTF-8');
                ?>
</span></li>
                <li class="ty-range-slider__item" style="left: 50%;"><span class="ty-range-slider__num"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['num_50']->value, ENT_QUOTES, 'UTF-8');
                ?>
</span></li>
                <li class="ty-range-slider__item" style="left: 75%;"><span class="ty-range-slider__num"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['num_75']->value, ENT_QUOTES, 'UTF-8');
                ?>
</span></li>
            <?php 
            }
            ?>
            <li class="ty-range-slider__item" style="left: 100%;"><span class="ty-range-slider__num"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['max']->value, ENT_QUOTES, 'UTF-8');
            ?>
</span></li>
        </ul>
    </div>

    <?php 
            if ($_smarty_tpl->tpl_vars['right']->value == $_smarty_tpl->tpl_vars['left']->value) {
                ?>
        <?php 
                echo smarty_function_math(array('equation' => "left + rto", 'left' => $_smarty_tpl->tpl_vars['left']->value, 'rto' => $_smarty_tpl->tpl_vars['filter']->value['round_to'], 'assign' => "_right"), $_smarty_tpl);
                ?>

    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["_right"] = new Smarty_variable($_smarty_tpl->tpl_vars['right']->value, null, 0);
                ?>
    <?php 
            }
            ?>
    
    <input type="hidden" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_json" value='{
        "disabled": <?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['disable_slider']->value) === null || $tmp === '' ? "false" : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
,
        "min": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['min']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "max": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['max']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "left": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['left']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "right": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['_right']->value, ENT_QUOTES, 'UTF-8');
            ?>
,
        "step": <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['round_to'], ENT_QUOTES, 'UTF-8');
            ?>
,
        "url": "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_slider_url']->value, ENT_QUOTES, 'UTF-8');
            ?>
",
        "type": "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8');
            ?>
",
        "currency": "<?php 
            echo htmlspecialchars(@constant('CART_SECONDARY_CURRENCY'), ENT_QUOTES, 'UTF-8');
            ?>
",
        
        "ajax": false,
        "result_ids": "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8');
            ?>
",
        "scroll": ".cm-pagination-container"
    }' />
    
</div>
<?php 
        }
    }
    function content_55ccf2ea85b705_19170918($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            ?>
<li class="ty-product-filters__group">
    <?php 
            if (!$_smarty_tpl->tpl_vars['range']->value['checked']) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["filter_query_elm"] = new Smarty_variable(fn_add_range_to_url_hash($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["filter_query_elm"] = new Smarty_variable(fn_delete_range_from_url($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            if ($_REQUEST['features_hash']) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["cur_features_hash"] = new Smarty_variable("&features_hash=" . (string) $_REQUEST['features_hash'], null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" && (!$_smarty_tpl->tpl_vars['filter']->value['simple_link'] || $_smarty_tpl->tpl_vars['filter']->value['selected_ranges'] && $_smarty_tpl->tpl_vars['controller']->value == "product_features")) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url("product_features.view?variant_id=" . (string) $_smarty_tpl->tpl_vars['range']->value['range_id'] . (string) $_smarty_tpl->tpl_vars['cur_features_hash']->value), null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_query_elm']->value)), null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(fn_compare_dispatch($_smarty_tpl->tpl_vars['href']->value, $_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
            ?>
    <a <?php 
            if (!$_smarty_tpl->tpl_vars['range']->value['disabled'] || $_smarty_tpl->tpl_vars['range']->value['checked']) {
                ?>
href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8');
                ?>
"<?php 
            }
            ?>
 <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] != "E") {
                ?>
rel="nofollow"<?php 
            }
            ?>
 class="ty-product-filters__item<?php 
            if ($_smarty_tpl->tpl_vars['range']->value['checked']) {
                ?>
 checked<?php 
            }
            if ($_smarty_tpl->tpl_vars['range']->value['disabled']) {
                ?>
 disabled<?php 
            } elseif ($_smarty_tpl->tpl_vars['allow_ajax']->value && $_smarty_tpl->tpl_vars['use_ajax']->value) {
                ?>
 cm-history<?php 
            }
            ?>
" data-ca-scroll=".cm-pagination-container" data-ca-target-id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><span class="ty-filter-icon"><i class="ty-icon-ok ty-filter-icon__check"></i><i class="ty-icon-cancel ty-filter-icon__delete"></i></span><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8');
            echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['range']->value['range_name']), ENT_QUOTES, 'UTF-8');
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8');
            ?>
&nbsp;<?php 
            if (!$_smarty_tpl->tpl_vars['range']->value['disabled']) {
                ?>
<span class="ty-product-filters__count">&nbsp;(<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['products'], ENT_QUOTES, 'UTF-8');
                ?>
)</span><?php 
            }
            ?>
</a>
    
</li>
<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="blocks/product_filters/components/variant_item.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "blocks/product_filters/components/variant_item.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            ?>
<li class="ty-product-filters__group">
    <?php 
            if (!$_smarty_tpl->tpl_vars['range']->value['checked']) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["filter_query_elm"] = new Smarty_variable(fn_add_range_to_url_hash($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["filter_query_elm"] = new Smarty_variable(fn_delete_range_from_url($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            if ($_REQUEST['features_hash']) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["cur_features_hash"] = new Smarty_variable("&features_hash=" . (string) $_REQUEST['features_hash'], null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" && (!$_smarty_tpl->tpl_vars['filter']->value['simple_link'] || $_smarty_tpl->tpl_vars['filter']->value['selected_ranges'] && $_smarty_tpl->tpl_vars['controller']->value == "product_features")) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url("product_features.view?variant_id=" . (string) $_smarty_tpl->tpl_vars['range']->value['range_id'] . (string) $_smarty_tpl->tpl_vars['cur_features_hash']->value), null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_query_elm']->value)), null, 0);
                ?>
    <?php 
            }
            ?>
    <?php 
            $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(fn_compare_dispatch($_smarty_tpl->tpl_vars['href']->value, $_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
            ?>
    <a <?php 
            if (!$_smarty_tpl->tpl_vars['range']->value['disabled'] || $_smarty_tpl->tpl_vars['range']->value['checked']) {
                ?>
href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8');
                ?>
"<?php 
            }
            ?>
 <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] != "E") {
                ?>
rel="nofollow"<?php 
            }
            ?>
 class="ty-product-filters__item<?php 
            if ($_smarty_tpl->tpl_vars['range']->value['checked']) {
                ?>
 checked<?php 
            }
            if ($_smarty_tpl->tpl_vars['range']->value['disabled']) {
                ?>
 disabled<?php 
            } elseif ($_smarty_tpl->tpl_vars['allow_ajax']->value && $_smarty_tpl->tpl_vars['use_ajax']->value) {
                ?>
 cm-history<?php 
            }
            ?>
" data-ca-scroll=".cm-pagination-container" data-ca-target-id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><span class="ty-filter-icon"><i class="ty-icon-ok ty-filter-icon__check"></i><i class="ty-icon-cancel ty-filter-icon__delete"></i></span><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8');
            echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['range']->value['range_name']), ENT_QUOTES, 'UTF-8');
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8');
            ?>
&nbsp;<?php 
            if (!$_smarty_tpl->tpl_vars['range']->value['disabled']) {
                ?>
<span class="ty-product-filters__count">&nbsp;(<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['products'], ENT_QUOTES, 'UTF-8');
                ?>
)</span><?php 
            }
            ?>
</a>
    
</li>
<?php 
        }
    }
    function content_55ccf2ea7e3e06_11166307($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('view_all', 'more', 'less', 'view_all', 'more', 'less'));
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            ?>
<ul class="ty-product-filters <?php 
            if ($_smarty_tpl->tpl_vars['collapse']->value) {
                ?>
hidden<?php 
            }
            ?>
 cm-popup-box ty-dropdown-box__content" id="content_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
            ?>
">

    
    <?php 
            $_smarty_tpl->tpl_vars["selected_range"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["selected_range"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['filter']->value['selected_ranges'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["selected_range"]->key => $_smarty_tpl->tpl_vars["selected_range"]->value) {
                $_smarty_tpl->tpl_vars["selected_range"]->_loop = true;
                ?>

        <?php 
                $_smarty_tpl->_capture_stack[0][] = array("has_selected", null, null);
                ob_start();
                ?>
Y<?php 
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
                ?>

        <li class="ty-product-filters__group"> 
            <?php 
                $_smarty_tpl->tpl_vars["fh"] = new Smarty_variable(fn_delete_range_from_url($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['selected_range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                if ($_smarty_tpl->tpl_vars['fh']->value) {
                    $_smarty_tpl->tpl_vars["attach_query"] = new Smarty_variable("features_hash=" . (string) $_smarty_tpl->tpl_vars['fh']->value, null, 0);
                }
                if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" && $_smarty_tpl->tpl_vars['selected_range']->value['range_id'] == $_REQUEST['variant_id']) {
                    $_smarty_tpl->tpl_vars["reset_lnk"] = new Smarty_variable($_smarty_tpl->tpl_vars['reset_qstring']->value, null, 0);
                } else {
                    $_smarty_tpl->tpl_vars["reset_lnk"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter_qstring']->value, null, 0);
                }
                if ($_smarty_tpl->tpl_vars['fh']->value) {
                    $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['reset_lnk']->value, $_smarty_tpl->tpl_vars['attach_query']->value)), null, 0);
                } else {
                    $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url($_smarty_tpl->tpl_vars['reset_lnk']->value), null, 0);
                }
                $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(fn_compare_dispatch($_smarty_tpl->tpl_vars['href']->value, $_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
                ?>
<a href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8');
                ?>
" class="ty-product-filters__item checked cm-history" data-ca-scroll=".cm-pagination-container" data-ca-target-id="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8');
                ?>
" rel="nofollow"><span class="ty-filter-icon"><i class="ty-icon-ok ty-filter-icon__check"></i><i class="ty-icon-cancel ty-filter-icon__delete"></i></span><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8');
                echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['selected_range']->value['range_name']), ENT_QUOTES, 'UTF-8');
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8');
                ?>
</a>
        </li>
    <?php 
            }
            ?>


    
    <?php 
            if (fn_is_not_empty($_smarty_tpl->tpl_vars['filter']->value['ranges'])) {
                ?>

        <li class="ty-product-filters__item-more">
            <ul id="ranges_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                ?>
">

                <?php 
                $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["range"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['filter']->value['ranges'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) {
                    $_smarty_tpl->tpl_vars["range"]->_loop = true;
                    ?>

                    <?php 
                    echo $_smarty_tpl->getSubTemplate("blocks/product_filters/components/variant_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('range' => $_smarty_tpl->tpl_vars['range']->value, 'filter' => $_smarty_tpl->tpl_vars['filter']->value, 'ajax_div_ids' => $_smarty_tpl->tpl_vars['ajax_div_ids']->value, 'filter_qstring' => $_smarty_tpl->tpl_vars['filter_qstring']->value, 'reset_qstring' => $_smarty_tpl->tpl_vars['reset_qstring']->value, 'allow_ajax' => $_smarty_tpl->tpl_vars['allow_ajax']->value), 0);
                    ?>

                <?php 
                }
                ?>


            </ul>
        </li>
    <?php 
            }
            ?>



    
    <?php 
            $_smarty_tpl->_capture_stack[0][] = array("view_all", null, null);
            ob_start();
            ?>

        <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['more_cut']) {
                ?>

            <?php 
                $_smarty_tpl->_capture_stack[0][] = array("q", null, null);
                ob_start();
                echo $_smarty_tpl->tpl_vars['filter_qstring']->value;
                ?>
&filter_id=<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['filter_id'], ENT_QUOTES, 'UTF-8');
                ?>
&<?php 
                if ($_REQUEST['features_hash']) {
                    ?>
&features_hash=<?php 
                    echo htmlspecialchars($_REQUEST['features_hash'], ENT_QUOTES, 'UTF-8');
                }
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
                ?>

            <li class="ty-product-filters__group" id="view_all_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                ?>
">
                <?php 
                $_smarty_tpl->tpl_vars["capture_q"] = new Smarty_variable(rawurlencode(Smarty::$_smarty_vars['capture']['q']), null, 0);
                ?>

                <a href="<?php 
                echo htmlspecialchars(fn_url("product_features.view_all?q=" . (string) $_smarty_tpl->tpl_vars['capture_q']->value), ENT_QUOTES, 'UTF-8');
                ?>
" rel="nofollow" class="ty-product-filters__extra-link ty-extra-link"><?php 
                echo $_smarty_tpl->__("view_all");
                ?>
</a>
            </li>
        <?php 
            }
            ?>

    <?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>


    
    <?php 
            if (fn_is_not_empty($_smarty_tpl->tpl_vars['filter']->value['more_ranges'])) {
                ?>

        <?php 
                $_smarty_tpl->tpl_vars["cookie_name_show_more"] = new Smarty_variable("more_ranges_" . (string) $_smarty_tpl->tpl_vars['filter_uid']->value, null, 0);
                ?>

        <?php 
                $_smarty_tpl->tpl_vars["more_collapse"] = new Smarty_variable(true, null, 0);
                ?>

        <?php 
                if ($_COOKIE[$_smarty_tpl->tpl_vars['cookie_name_show_more']->value]) {
                    ?>

            <?php 
                    $_smarty_tpl->tpl_vars["more_collapse"] = new Smarty_variable(false, null, 0);
                    ?>

        <?php 
                }
                ?>


        <li>
            <ul id="more_ranges_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['more_collapse']->value) {
                    ?>
class="hidden"<?php 
                }
                ?>
>

                <?php 
                $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["range"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['filter']->value['more_ranges'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) {
                    $_smarty_tpl->tpl_vars["range"]->_loop = true;
                    ?>

                    <?php 
                    echo $_smarty_tpl->getSubTemplate("blocks/product_filters/components/variant_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('range' => $_smarty_tpl->tpl_vars['range']->value, 'filter' => $_smarty_tpl->tpl_vars['filter']->value, 'ajax_div_ids' => $_smarty_tpl->tpl_vars['ajax_div_ids']->value, 'filter_qstring' => $_smarty_tpl->tpl_vars['filter_qstring']->value, 'reset_qstring' => $_smarty_tpl->tpl_vars['reset_qstring']->value, 'allow_ajax' => $_smarty_tpl->tpl_vars['allow_ajax']->value), 0);
                    ?>

                <?php 
                }
                ?>


                <?php 
                echo Smarty::$_smarty_vars['capture']['view_all'];
                ?>


            </ul>
        </li>

        <li class="ty-product-filters__extra-block">
            <a id="on_more_ranges_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                ?>
" class="ty-product-filters__extra-link ty-extra-link cm-save-state cm-combination-more_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                if (!$_smarty_tpl->tpl_vars['more_collapse']->value) {
                    ?>
 hidden<?php 
                }
                ?>
"><?php 
                echo $_smarty_tpl->__("more");
                ?>
</a>
            <a id="off_more_ranges_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                ?>
" class="ty-product-filters__extra-link ty-extra-link cm-save-state cm-combination-more_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                if ($_smarty_tpl->tpl_vars['more_collapse']->value) {
                    ?>
 hidden<?php 
                }
                ?>
"><?php 
                echo $_smarty_tpl->__("less");
                ?>
</a>
        </li>
    <?php 
            } else {
                ?>

        <?php 
                echo Smarty::$_smarty_vars['capture']['view_all'];
                ?>

    <?php 
            }
            ?>

</ul><?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="blocks/product_filters/components/product_filter_variants.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "blocks/product_filters/components/product_filter_variants.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            ?>
<ul class="ty-product-filters <?php 
            if ($_smarty_tpl->tpl_vars['collapse']->value) {
                ?>
hidden<?php 
            }
            ?>
 cm-popup-box ty-dropdown-box__content" id="content_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
            ?>
">

    
    <?php 
            $_smarty_tpl->tpl_vars["selected_range"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["selected_range"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['filter']->value['selected_ranges'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["selected_range"]->key => $_smarty_tpl->tpl_vars["selected_range"]->value) {
                $_smarty_tpl->tpl_vars["selected_range"]->_loop = true;
                ?>

        <?php 
                $_smarty_tpl->_capture_stack[0][] = array("has_selected", null, null);
                ob_start();
                ?>
Y<?php 
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
                ?>

        <li class="ty-product-filters__group"> 
            <?php 
                $_smarty_tpl->tpl_vars["fh"] = new Smarty_variable(fn_delete_range_from_url($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['selected_range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0);
                if ($_smarty_tpl->tpl_vars['fh']->value) {
                    $_smarty_tpl->tpl_vars["attach_query"] = new Smarty_variable("features_hash=" . (string) $_smarty_tpl->tpl_vars['fh']->value, null, 0);
                }
                if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" && $_smarty_tpl->tpl_vars['selected_range']->value['range_id'] == $_REQUEST['variant_id']) {
                    $_smarty_tpl->tpl_vars["reset_lnk"] = new Smarty_variable($_smarty_tpl->tpl_vars['reset_qstring']->value, null, 0);
                } else {
                    $_smarty_tpl->tpl_vars["reset_lnk"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter_qstring']->value, null, 0);
                }
                if ($_smarty_tpl->tpl_vars['fh']->value) {
                    $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['reset_lnk']->value, $_smarty_tpl->tpl_vars['attach_query']->value)), null, 0);
                } else {
                    $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url($_smarty_tpl->tpl_vars['reset_lnk']->value), null, 0);
                }
                $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(fn_compare_dispatch($_smarty_tpl->tpl_vars['href']->value, $_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
                ?>
<a href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8');
                ?>
" class="ty-product-filters__item checked cm-history" data-ca-scroll=".cm-pagination-container" data-ca-target-id="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8');
                ?>
" rel="nofollow"><span class="ty-filter-icon"><i class="ty-icon-ok ty-filter-icon__check"></i><i class="ty-icon-cancel ty-filter-icon__delete"></i></span><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8');
                echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['selected_range']->value['range_name']), ENT_QUOTES, 'UTF-8');
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8');
                ?>
</a>
        </li>
    <?php 
            }
            ?>


    
    <?php 
            if (fn_is_not_empty($_smarty_tpl->tpl_vars['filter']->value['ranges'])) {
                ?>

        <li class="ty-product-filters__item-more">
            <ul id="ranges_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                ?>
">

                <?php 
                $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["range"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['filter']->value['ranges'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) {
                    $_smarty_tpl->tpl_vars["range"]->_loop = true;
                    ?>

                    <?php 
                    echo $_smarty_tpl->getSubTemplate("blocks/product_filters/components/variant_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('range' => $_smarty_tpl->tpl_vars['range']->value, 'filter' => $_smarty_tpl->tpl_vars['filter']->value, 'ajax_div_ids' => $_smarty_tpl->tpl_vars['ajax_div_ids']->value, 'filter_qstring' => $_smarty_tpl->tpl_vars['filter_qstring']->value, 'reset_qstring' => $_smarty_tpl->tpl_vars['reset_qstring']->value, 'allow_ajax' => $_smarty_tpl->tpl_vars['allow_ajax']->value), 0);
                    ?>

                <?php 
                }
                ?>


            </ul>
        </li>
    <?php 
            }
            ?>



    
    <?php 
            $_smarty_tpl->_capture_stack[0][] = array("view_all", null, null);
            ob_start();
            ?>

        <?php 
            if ($_smarty_tpl->tpl_vars['filter']->value['more_cut']) {
                ?>

            <?php 
                $_smarty_tpl->_capture_stack[0][] = array("q", null, null);
                ob_start();
                echo $_smarty_tpl->tpl_vars['filter_qstring']->value;
                ?>
&filter_id=<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['filter_id'], ENT_QUOTES, 'UTF-8');
                ?>
&<?php 
                if ($_REQUEST['features_hash']) {
                    ?>
&features_hash=<?php 
                    echo htmlspecialchars($_REQUEST['features_hash'], ENT_QUOTES, 'UTF-8');
                }
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
                ?>

            <li class="ty-product-filters__group" id="view_all_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                ?>
">
                <?php 
                $_smarty_tpl->tpl_vars["capture_q"] = new Smarty_variable(rawurlencode(Smarty::$_smarty_vars['capture']['q']), null, 0);
                ?>

                <a href="<?php 
                echo htmlspecialchars(fn_url("product_features.view_all?q=" . (string) $_smarty_tpl->tpl_vars['capture_q']->value), ENT_QUOTES, 'UTF-8');
                ?>
" rel="nofollow" class="ty-product-filters__extra-link ty-extra-link"><?php 
                echo $_smarty_tpl->__("view_all");
                ?>
</a>
            </li>
        <?php 
            }
            ?>

    <?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>


    
    <?php 
            if (fn_is_not_empty($_smarty_tpl->tpl_vars['filter']->value['more_ranges'])) {
                ?>

        <?php 
                $_smarty_tpl->tpl_vars["cookie_name_show_more"] = new Smarty_variable("more_ranges_" . (string) $_smarty_tpl->tpl_vars['filter_uid']->value, null, 0);
                ?>

        <?php 
                $_smarty_tpl->tpl_vars["more_collapse"] = new Smarty_variable(true, null, 0);
                ?>

        <?php 
                if ($_COOKIE[$_smarty_tpl->tpl_vars['cookie_name_show_more']->value]) {
                    ?>

            <?php 
                    $_smarty_tpl->tpl_vars["more_collapse"] = new Smarty_variable(false, null, 0);
                    ?>

        <?php 
                }
                ?>


        <li>
            <ul id="more_ranges_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['more_collapse']->value) {
                    ?>
class="hidden"<?php 
                }
                ?>
>

                <?php 
                $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["range"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['filter']->value['more_ranges'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) {
                    $_smarty_tpl->tpl_vars["range"]->_loop = true;
                    ?>

                    <?php 
                    echo $_smarty_tpl->getSubTemplate("blocks/product_filters/components/variant_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('range' => $_smarty_tpl->tpl_vars['range']->value, 'filter' => $_smarty_tpl->tpl_vars['filter']->value, 'ajax_div_ids' => $_smarty_tpl->tpl_vars['ajax_div_ids']->value, 'filter_qstring' => $_smarty_tpl->tpl_vars['filter_qstring']->value, 'reset_qstring' => $_smarty_tpl->tpl_vars['reset_qstring']->value, 'allow_ajax' => $_smarty_tpl->tpl_vars['allow_ajax']->value), 0);
                    ?>

                <?php 
                }
                ?>


                <?php 
                echo Smarty::$_smarty_vars['capture']['view_all'];
                ?>


            </ul>
        </li>

        <li class="ty-product-filters__extra-block">
            <a id="on_more_ranges_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                ?>
" class="ty-product-filters__extra-link ty-extra-link cm-save-state cm-combination-more_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                if (!$_smarty_tpl->tpl_vars['more_collapse']->value) {
                    ?>
 hidden<?php 
                }
                ?>
"><?php 
                echo $_smarty_tpl->__("more");
                ?>
</a>
            <a id="off_more_ranges_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                ?>
" class="ty-product-filters__extra-link ty-extra-link cm-save-state cm-combination-more_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8');
                if ($_smarty_tpl->tpl_vars['more_collapse']->value) {
                    ?>
 hidden<?php 
                }
                ?>
"><?php 
                echo $_smarty_tpl->__("less");
                ?>
</a>
        </li>
    <?php 
            } else {
                ?>

        <?php 
                echo Smarty::$_smarty_vars['capture']['view_all'];
                ?>

    <?php 
            }
            ?>

</ul><?php 
        }
    }