Current File : /home/kelaby89/listingslad.com/wp-content/themes/listivo/templates/partials/search/v2/price.php
<?php

use Tangibledesign\Framework\Search\Field\PriceSearchField;

/* @var PriceSearchField $lstSearchField */
global $lstSearchField;

$showLabel = $args['show_label'] ?? false;

if ($lstSearchField->isSelectControl()) :
    if ($lstSearchField->checkDependency()) :?>
        <template>
    <?php endif; ?>
    <lst-price-search-field
        <?php if ($lstSearchField->getCompareType() === PriceSearchField::COMPARE_TYPE_GREATER) : ?>
            field-key="<?php echo esc_attr($lstSearchField->getKey()); ?>_from"
        <?php else : ?>
            field-key="<?php echo esc_attr($lstSearchField->getKey()); ?>_to"
        <?php endif; ?>
            :field="<?php echo htmlspecialchars(json_encode($lstSearchField)); ?>"
            :filters="props.filters"
            :dependencies="props.dependencies"
            compare-type="<?php echo esc_attr($lstSearchField->getCompareType()); ?>"
            :options="<?php echo htmlspecialchars(json_encode($lstSearchField->getSelectOptions())); ?>"
    >
        <div
                class="listivo-field-v2 listivo-search-form-field listivo-search-form-field--<?php echo esc_attr($lstSearchField->getKey()); ?>"
                slot-scope="priceField"
                v-if="priceField.isVisible"
        >
            <?php if ($showLabel) : ?>
                <div class="listivo-search-field-label">
                    <?php echo esc_html($lstSearchField->getName()); ?>
                </div>
            <?php endif; ?>

            <lst-select
                    :options="priceField.options"
                    @input="priceField.setValue"
                    :is-selected="priceField.isSelected"
                    active-text-class="listivo-select-v2__option--highlight-text"
                    highlight-option-class="listivo-select-v2__option--highlight"
                    order-type="custom"
            >
                <div
                        slot-scope="select"
                        @click.stop.prevent="select.onOpen"
                        @focusin="select.focusIn"
                        @focusout="select.focusOut"
                        @keyup.esc="select.onClose"
                        @keyup.up="select.decreaseOptionIndex"
                        @keyup.down="select.increaseOptionIndex"
                        @keyup.enter="select.setOptionByIndex"
                        tabindex="0"
                    <?php if ($lstSearchField->hasIcon()) : ?>
                        class="listivo-select-v2 listivo-select-v2--with-icon"
                    <?php else : ?>
                        class="listivo-select-v2"
                    <?php endif; ?>
                        :class="{
                            'listivo-select-v2--active': priceField.value !== '' || select.open,
                            'listivo-select-v2--open': select.open,
                        }"
                >
                    <?php if ($lstSearchField->hasIcon()) :
                        $lstIcon = $lstSearchField->getIcon();
                        ?>
                        <div class="listivo-select-v2__icon listivo-icon-v2">
                            <?php if (isset($lstIcon['library']) && $lstIcon['library'] === 'svg' && !empty($lstIcon['value']['url'])) : ?>
                                <?php echo tdf_load_icon($lstIcon['value']['url']); ?>
                            <?php else : ?>
                                <i class="<?php echo esc_attr($lstIcon['value']); ?>"></i>
                            <?php endif; ?>
                        </div>
                    <?php endif; ?>

                    <div
                            v-if="priceField.value === ''"
                            class="listivo-select-v2__placeholder"
                    >
                        <?php echo esc_html($lstSearchField->getPlaceholder()); ?>
                    </div>

                    <div class="listivo-select-v2__arrow">
                        <svg xmlns="http://www.w3.org/2000/svg" width="7" height="5"
                             viewBox="0 0 7 5" fill="none">
                            <path d="M3.5 2.56768L5.87477 0.192917C6.13207 -0.0643854 6.54972 -0.0643854 6.80702 0.192917C7.06433 0.45022 7.06433 0.86787 6.80702 1.12517L3.9394 3.99279C3.6964 4.2358 3.30298 4.2358 3.0606 3.99279L0.192977 1.12517C-0.0643257 0.86787 -0.0643257 0.45022 0.192977 0.192917C0.45028 -0.0643854 0.86793 -0.0643854 1.12523 0.192917L3.5 2.56768Z"
                                  fill="#2A3946"/>
                        </svg>
                    </div>

                    <template>
                        <div
                                v-if="priceField.value !== ''"
                                class="listivo-select-v2__placeholder"
                        >
                            <div v-html="priceField.currentValue.name"></div>
                        </div>

                        <div
                                v-if="priceField.value !== ''"
                                class="listivo-select-v2__clear"
                                @click.stop.prevent="priceField.clear(); select.onClose()"
                        >
                            <svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" viewBox="0 0 6 6"
                                 fill="none">
                                <path d="M0.667016 0.000289049C0.534874 0.000452754 0.405782 0.0400233 0.296228 0.113946C0.186675 0.187868 0.101634 0.292787 0.05197 0.415298C0.00230608 0.53781 -0.00972662 0.672352 0.0174091 0.801739C0.0445448 0.931126 0.109617 1.04948 0.204313 1.14169L2.06032 2.99857L0.204313 4.85546C0.140536 4.91672 0.0896183 4.9901 0.0545414 5.07129C0.0194646 5.15249 0.000933792 5.23987 3.43907e-05 5.32832C-0.00086501 5.41677 0.0158851 5.50452 0.0493036 5.58641C0.0827221 5.6683 0.132137 5.7427 0.194655 5.80525C0.257173 5.8678 0.331537 5.91724 0.413391 5.95067C0.495245 5.9841 0.582945 6.00086 0.671354 5.99996C0.759763 5.99906 0.847104 5.98052 0.928262 5.94543C1.00942 5.91034 1.08276 5.85939 1.144 5.79559L3 3.9387L4.856 5.79559C4.91723 5.85939 4.99058 5.91034 5.07173 5.94543C5.15289 5.98053 5.24023 5.99907 5.32864 5.99997C5.41705 6.00087 5.50475 5.98411 5.58661 5.95067C5.66846 5.91724 5.74283 5.8678 5.80535 5.80525C5.86786 5.74271 5.91728 5.66831 5.9507 5.58641C5.98412 5.50452 6.00087 5.41678 5.99997 5.32832C5.99907 5.23987 5.98053 5.15249 5.94546 5.07129C5.91038 4.9901 5.85946 4.91672 5.79568 4.85546L3.93968 2.99857L5.79568 1.14169C5.89171 1.0483 5.9573 0.928073 5.98385 0.796753C6.01041 0.665433 5.99669 0.529151 5.94449 0.405766C5.8923 0.282381 5.80407 0.177648 5.69136 0.105294C5.57865 0.0329402 5.44672 -0.00366036 5.31286 0.000289049C5.14022 0.00543568 4.97636 0.0776237 4.856 0.20156L3 2.05844L1.144 0.20156C1.08199 0.137793 1.00783 0.0871234 0.925898 0.0525512C0.843967 0.017979 0.755935 0.000207391 0.667016 0.000289049Z"
                                      fill="#F09965"/>
                            </svg>
                        </div>

                        <div
                                v-if="select.open"
                                class="listivo-select-v2__dropdown"
                                @click.stop.prevent
                        >
                            <div v-if="!select.options.length" class="listivo-select-v2__no-options">
                                <?php echo esc_html(tdf_string('no_options')); ?>
                            </div>

                            <div
                                    v-for="(option, index) in select.options"
                                    :key="option.id"
                                    @click.stop.prevent="select.setOption(option)"
                                    class="listivo-select-v2__option"
                                    :class="{
                                        'listivo-select-v2__option--active': option.selected,
                                        'listivo-select-v2__option--highlight': index === select.optionIndex,
                                        'listivo-select-v2__option--disabled': option.disabled && !option.selected,
                                    }"
                            >
                                <div class="listivo-select-v2__value" v-html="option.label"></div>
                            </div>
                        </div>
                    </template>
                </div>
            </lst-select>
        </div>
    </lst-price-search-field>
    <?php if ($lstSearchField->checkDependency()) : ?>
    </template>
<?php endif; ?>

<?php elseif ($lstSearchField->isTextInputRangeControl()) : ?>
    <lst-price-search-field
            :field="<?php echo htmlspecialchars(json_encode($lstSearchField)); ?>"
            :filters="props.filters"
            :dependencies="props.dependencies"
    >
        <div
                slot-scope="mainPriceField"
                v-if="mainPriceField.isVisible"
        >
            <?php if ($showLabel) : ?>
                <div class="listivo-search-field-label listivo-search-field-label--margin-bottom">
                    <?php echo esc_html($lstSearchField->getName()); ?>
                </div>
            <?php endif; ?>

            <div class="listivo-range-field">
                <lst-price-search-field
                        class="listivo-search-form-field"
                        :field="<?php echo htmlspecialchars(json_encode($lstSearchField)); ?>"
                        field-key="<?php echo esc_attr($lstSearchField->getKey().'_from'); ?>"
                        :filters="props.filters"
                        :dependencies="props.dependencies"
                        compare-type="<?php echo esc_attr(PriceSearchField::COMPARE_TYPE_GREATER); ?>"
                >
                    <div
                            class="listivo-search-form-field"
                            slot-scope="priceField"
                            @click.prevent="priceField.focusInput"
                    >
                        <div
                            <?php if ($lstSearchField->hasIcon()) : ?>
                                class="listivo-input-v2 listivo-input-v2--with-icon"
                            <?php else : ?>
                                class="listivo-input-v2"
                            <?php endif; ?>
                                :class="{'listivo-input-v2--active': priceField.value !== ''}"
                        >
                            <?php
                            if ($lstSearchField->hasIcon()) :
                                $lstIcon = $lstSearchField->getIcon();
                                ?>
                                <div class="listivo-icon-v2 listivo-input-v2__icon">
                                    <?php if (isset($lstIcon['library']) && $lstIcon['library'] === 'svg' && !empty($lstIcon['value']['url'])) : ?>
                                        <?php echo tdf_load_icon($lstIcon['value']['url']); ?>
                                    <?php else : ?>
                                        <i class="<?php echo esc_attr($lstIcon['value']); ?>"></i>
                                    <?php endif; ?>
                                </div>
                            <?php endif; ?>

                            <input
                                    :value="priceField.value"
                                    @input="priceField.setValue($event.target.value)"
                                    type="text"
                                    placeholder="<?php echo esc_attr($lstSearchField->getPlaceholderFrom()); ?>"
                            >

                            <template>
                                <div
                                        v-if="priceField.value !== ''"
                                        class="listivo-input-v2__clear"
                                        @click.stop.prevent="priceField.clear"
                                >
                                    <svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" viewBox="0 0 6 6"
                                         fill="none">
                                        <path d="M0.667016 0.000289049C0.534874 0.000452754 0.405782 0.0400233 0.296228 0.113946C0.186675 0.187868 0.101634 0.292787 0.05197 0.415298C0.00230608 0.53781 -0.00972662 0.672352 0.0174091 0.801739C0.0445448 0.931126 0.109617 1.04948 0.204313 1.14169L2.06032 2.99857L0.204313 4.85546C0.140536 4.91672 0.0896183 4.9901 0.0545414 5.07129C0.0194646 5.15249 0.000933792 5.23987 3.43907e-05 5.32832C-0.00086501 5.41677 0.0158851 5.50452 0.0493036 5.58641C0.0827221 5.6683 0.132137 5.7427 0.194655 5.80525C0.257173 5.8678 0.331537 5.91724 0.413391 5.95067C0.495245 5.9841 0.582945 6.00086 0.671354 5.99996C0.759763 5.99906 0.847104 5.98052 0.928262 5.94543C1.00942 5.91034 1.08276 5.85939 1.144 5.79559L3 3.9387L4.856 5.79559C4.91723 5.85939 4.99058 5.91034 5.07173 5.94543C5.15289 5.98053 5.24023 5.99907 5.32864 5.99997C5.41705 6.00087 5.50475 5.98411 5.58661 5.95067C5.66846 5.91724 5.74283 5.8678 5.80535 5.80525C5.86786 5.74271 5.91728 5.66831 5.9507 5.58641C5.98412 5.50452 6.00087 5.41678 5.99997 5.32832C5.99907 5.23987 5.98053 5.15249 5.94546 5.07129C5.91038 4.9901 5.85946 4.91672 5.79568 4.85546L3.93968 2.99857L5.79568 1.14169C5.89171 1.0483 5.9573 0.928073 5.98385 0.796753C6.01041 0.665433 5.99669 0.529151 5.94449 0.405766C5.8923 0.282381 5.80407 0.177648 5.69136 0.105294C5.57865 0.0329402 5.44672 -0.00366036 5.31286 0.000289049C5.14022 0.00543568 4.97636 0.0776237 4.856 0.20156L3 2.05844L1.144 0.20156C1.08199 0.137793 1.00783 0.0871234 0.925898 0.0525512C0.843967 0.017979 0.755935 0.000207391 0.667016 0.000289049Z"
                                              fill="#F09965"/>
                                    </svg>
                                </div>
                            </template>
                        </div>
                    </div>
                </lst-price-search-field>

                <div class="listivo-range-field__separator">-</div>

                <lst-price-search-field
                        class="listivo-search-form-field"
                        :field="<?php echo htmlspecialchars(json_encode($lstSearchField)); ?>"
                        field-key="<?php echo esc_attr($lstSearchField->getKey().'_to'); ?>"
                        :filters="props.filters"
                        :dependencies="props.dependencies"
                        compare-type="<?php echo esc_attr(PriceSearchField::COMPARE_TYPE_LESS); ?>"
                >
                    <div
                            class="listivo-search-form-field"
                            slot-scope="priceField"
                            @click.prevent="priceField.focusInput"
                    >
                        <div
                            <?php if ($lstSearchField->hasIcon()) : ?>
                                class="listivo-input-v2 listivo-input-v2--with-icon"
                            <?php else : ?>
                                class="listivo-input-v2"
                            <?php endif; ?>
                                :class="{'listivo-input-v2--active': priceField.value !== ''}"
                        >
                            <?php
                            if ($lstSearchField->hasIcon()) :
                                $lstIcon = $lstSearchField->getIcon();
                                ?>
                                <div class="listivo-icon-v2 listivo-input-v2__icon">
                                    <?php if (isset($lstIcon['library']) && $lstIcon['library'] === 'svg' && !empty($lstIcon['value']['url'])) : ?>
                                        <?php echo tdf_load_icon($lstIcon['value']['url']); ?>
                                    <?php else : ?>
                                        <i class="<?php echo esc_attr($lstIcon['value']); ?>"></i>
                                    <?php endif; ?>
                                </div>
                            <?php endif; ?>

                            <input
                                    :value="priceField.value"
                                    @input="priceField.setValue($event.target.value)"
                                    type="text"
                                    placeholder="<?php echo esc_attr($lstSearchField->getPlaceholderTo()); ?>"
                            >

                            <template>
                                <div
                                        v-if="priceField.value !== ''"
                                        class="listivo-input-v2__clear"
                                        @click.stop.prevent="priceField.clear"
                                >
                                    <svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" viewBox="0 0 6 6"
                                         fill="none">
                                        <path d="M0.667016 0.000289049C0.534874 0.000452754 0.405782 0.0400233 0.296228 0.113946C0.186675 0.187868 0.101634 0.292787 0.05197 0.415298C0.00230608 0.53781 -0.00972662 0.672352 0.0174091 0.801739C0.0445448 0.931126 0.109617 1.04948 0.204313 1.14169L2.06032 2.99857L0.204313 4.85546C0.140536 4.91672 0.0896183 4.9901 0.0545414 5.07129C0.0194646 5.15249 0.000933792 5.23987 3.43907e-05 5.32832C-0.00086501 5.41677 0.0158851 5.50452 0.0493036 5.58641C0.0827221 5.6683 0.132137 5.7427 0.194655 5.80525C0.257173 5.8678 0.331537 5.91724 0.413391 5.95067C0.495245 5.9841 0.582945 6.00086 0.671354 5.99996C0.759763 5.99906 0.847104 5.98052 0.928262 5.94543C1.00942 5.91034 1.08276 5.85939 1.144 5.79559L3 3.9387L4.856 5.79559C4.91723 5.85939 4.99058 5.91034 5.07173 5.94543C5.15289 5.98053 5.24023 5.99907 5.32864 5.99997C5.41705 6.00087 5.50475 5.98411 5.58661 5.95067C5.66846 5.91724 5.74283 5.8678 5.80535 5.80525C5.86786 5.74271 5.91728 5.66831 5.9507 5.58641C5.98412 5.50452 6.00087 5.41678 5.99997 5.32832C5.99907 5.23987 5.98053 5.15249 5.94546 5.07129C5.91038 4.9901 5.85946 4.91672 5.79568 4.85546L3.93968 2.99857L5.79568 1.14169C5.89171 1.0483 5.9573 0.928073 5.98385 0.796753C6.01041 0.665433 5.99669 0.529151 5.94449 0.405766C5.8923 0.282381 5.80407 0.177648 5.69136 0.105294C5.57865 0.0329402 5.44672 -0.00366036 5.31286 0.000289049C5.14022 0.00543568 4.97636 0.0776237 4.856 0.20156L3 2.05844L1.144 0.20156C1.08199 0.137793 1.00783 0.0871234 0.925898 0.0525512C0.843967 0.017979 0.755935 0.000207391 0.667016 0.000289049Z"
                                              fill="#F09965"/>
                                    </svg>
                                </div>
                            </template>
                        </div>
                    </div>
                </lst-price-search-field>
            </div>
        </div>
    </lst-price-search-field>
<?php elseif ($lstSearchField->isSelectRangeControl()) : ?>
    <lst-price-search-field
            :field="<?php echo htmlspecialchars(json_encode($lstSearchField)); ?>"
            :filters="props.filters"
            :dependencies="props.dependencies"
    >
        <div
                slot-scope="mainPriceField"
                v-if="mainPriceField.isVisible"
        >
            <?php if ($showLabel) : ?>
                <div class="listivo-search-field-label listivo-search-field-label--margin-bottom">
                    <?php echo esc_html($lstSearchField->getName()); ?>
                </div>
            <?php endif; ?>

            <div class="listivo-range-field">
                <lst-price-search-field
                        class="listivo-search-form-field listivo-search-form-field--<?php echo esc_attr($lstSearchField->getKey()); ?>-from"
                        field-key="<?php echo esc_attr($lstSearchField->getKey().'_from'); ?>"
                        :field="<?php echo htmlspecialchars(json_encode($lstSearchField)); ?>"
                        :filters="props.filters"
                        :dependencies="props.dependencies"
                        compare-type="<?php echo esc_attr(PriceSearchField::COMPARE_TYPE_GREATER); ?>"
                        :options="<?php echo htmlspecialchars(json_encode($lstSearchField->getSelectFromOptions())); ?>"
                >
                    <div
                            class="listivo-search-form-field"
                            slot-scope="priceField"
                            v-if="priceField.isVisible"
                    >
                        <lst-select
                                :options="priceField.options"
                                @input="priceField.setValue"
                                :is-selected="priceField.isSelected"
                                active-text-class="listivo-select-v2__option--highlight-text"
                                highlight-option-class="listivo-select-v2__option--highlight"
                                order-type="custom"
                        >
                            <div
                                    @click="select.onOpen"
                                    slot-scope="select"
                                    @focusin="select.focusIn"
                                    @focusout="select.focusOut"
                                    @keyup.esc="select.onClose"
                                    @keyup.up="select.decreaseOptionIndex"
                                    @keyup.down="select.increaseOptionIndex"
                                    @keyup.enter="select.setOptionByIndex"
                                    tabindex="0"
                                <?php if ($lstSearchField->hasIcon()) : ?>
                                    class="listivo-select-v2 listivo-select-v2--with-icon"
                                <?php else : ?>
                                    class="listivo-select-v2"
                                <?php endif; ?>
                                    :class="{
                                        'listivo-select-v2--active': priceField.value !== '' || select.open,
                                        'listivo-select-v2--open': select.open,
                                    }"
                            >
                                <?php if ($lstSearchField->hasIcon()) :
                                    $lstIcon = $lstSearchField->getIcon();
                                    ?>
                                    <div class="listivo-select-v2__icon listivo-icon-v2">
                                        <?php if (isset($lstIcon['library']) && $lstIcon['library'] === 'svg' && !empty($lstIcon['value']['url'])) : ?>
                                            <?php echo tdf_load_icon($lstIcon['value']['url']); ?>
                                        <?php else : ?>
                                            <i class="<?php echo esc_attr($lstIcon['value']); ?>"></i>
                                        <?php endif; ?>
                                    </div>
                                <?php endif; ?>

                                <div
                                        v-if="priceField.value === ''"
                                        class="listivo-select-v2__placeholder"
                                >
                                    <div>
                                        <?php echo esc_html($lstSearchField->getPlaceholderFrom()); ?>
                                    </div>
                                </div>

                                <div class="listivo-select-v2__arrow">
                                    <svg xmlns="http://www.w3.org/2000/svg" width="7" height="5"
                                         viewBox="0 0 7 5" fill="none">
                                        <path d="M3.5 2.56768L5.87477 0.192917C6.13207 -0.0643854 6.54972 -0.0643854 6.80702 0.192917C7.06433 0.45022 7.06433 0.86787 6.80702 1.12517L3.9394 3.99279C3.6964 4.2358 3.30298 4.2358 3.0606 3.99279L0.192977 1.12517C-0.0643257 0.86787 -0.0643257 0.45022 0.192977 0.192917C0.45028 -0.0643854 0.86793 -0.0643854 1.12523 0.192917L3.5 2.56768Z"
                                              fill="#2A3946"/>
                                    </svg>
                                </div>

                                <template>
                                    <div
                                            v-if="priceField.value !== ''"
                                            class="listivo-select-v2__placeholder"
                                            v-html="priceField.currentValue.name"
                                    >
                                    </div>

                                    <div
                                            v-if="priceField.value !== ''"
                                            class="listivo-select-v2__clear"
                                            @click.stop.prevent="priceField.clear(); select.onClose()"
                                    >
                                        <svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" viewBox="0 0 6 6"
                                             fill="none">
                                            <path d="M0.667016 0.000289049C0.534874 0.000452754 0.405782 0.0400233 0.296228 0.113946C0.186675 0.187868 0.101634 0.292787 0.05197 0.415298C0.00230608 0.53781 -0.00972662 0.672352 0.0174091 0.801739C0.0445448 0.931126 0.109617 1.04948 0.204313 1.14169L2.06032 2.99857L0.204313 4.85546C0.140536 4.91672 0.0896183 4.9901 0.0545414 5.07129C0.0194646 5.15249 0.000933792 5.23987 3.43907e-05 5.32832C-0.00086501 5.41677 0.0158851 5.50452 0.0493036 5.58641C0.0827221 5.6683 0.132137 5.7427 0.194655 5.80525C0.257173 5.8678 0.331537 5.91724 0.413391 5.95067C0.495245 5.9841 0.582945 6.00086 0.671354 5.99996C0.759763 5.99906 0.847104 5.98052 0.928262 5.94543C1.00942 5.91034 1.08276 5.85939 1.144 5.79559L3 3.9387L4.856 5.79559C4.91723 5.85939 4.99058 5.91034 5.07173 5.94543C5.15289 5.98053 5.24023 5.99907 5.32864 5.99997C5.41705 6.00087 5.50475 5.98411 5.58661 5.95067C5.66846 5.91724 5.74283 5.8678 5.80535 5.80525C5.86786 5.74271 5.91728 5.66831 5.9507 5.58641C5.98412 5.50452 6.00087 5.41678 5.99997 5.32832C5.99907 5.23987 5.98053 5.15249 5.94546 5.07129C5.91038 4.9901 5.85946 4.91672 5.79568 4.85546L3.93968 2.99857L5.79568 1.14169C5.89171 1.0483 5.9573 0.928073 5.98385 0.796753C6.01041 0.665433 5.99669 0.529151 5.94449 0.405766C5.8923 0.282381 5.80407 0.177648 5.69136 0.105294C5.57865 0.0329402 5.44672 -0.00366036 5.31286 0.000289049C5.14022 0.00543568 4.97636 0.0776237 4.856 0.20156L3 2.05844L1.144 0.20156C1.08199 0.137793 1.00783 0.0871234 0.925898 0.0525512C0.843967 0.017979 0.755935 0.000207391 0.667016 0.000289049Z"
                                                  fill="#F09965"/>
                                        </svg>
                                    </div>

                                    <div v-if="select.open" class="listivo-select-v2__dropdown">
                                        <div
                                                v-for="(option, index) in select.options"
                                                :key="option.id"
                                                @click="select.setOption(option)"
                                                class="listivo-select-v2__option"
                                                :class="{
                                                    'listivo-select-v2__option--active': option.selected,
                                                    'listivo-select-v2__option--highlight': index === select.optionIndex,
                                                    'listivo-select-v2__option--disabled': option.disabled && !option.selected,
                                                }"
                                        >
                                            <div class="listivo-select-v2__value" v-html="option.label"></div>
                                        </div>
                                    </div>
                                </template>
                            </div>
                        </lst-select>
                    </div>
                </lst-price-search-field>

                <div class="listivo-range-field__separator">-</div>

                <lst-price-search-field
                        class="listivo-search-form-field"
                        field-key="<?php echo esc_attr($lstSearchField->getKey().'_to'); ?>"
                        :field="<?php echo htmlspecialchars(json_encode($lstSearchField)); ?>"
                        :filters="props.filters"
                        :dependencies="props.dependencies"
                        compare-type="<?php echo esc_attr(PriceSearchField::COMPARE_TYPE_LESS); ?>"
                        :options="<?php echo htmlspecialchars(json_encode($lstSearchField->getSelectToOptions())); ?>"
                >
                    <div
                            class="listivo-search-form-field listivo-search-form-field--<?php echo esc_attr($lstSearchField->getKey()); ?>-to"
                            slot-scope="priceField"
                            v-if="priceField.isVisible"
                    >
                        <lst-select
                                :options="priceField.options"
                                @input="priceField.setValue"
                                :is-selected="priceField.isSelected"
                                active-text-class="listivo-select-v2__option--highlight-text"
                                highlight-option-class="listivo-select-v2__option--highlight"
                                order-type="custom"
                        >
                            <div
                                    slot-scope="select"
                                    @click="select.onOpen"
                                    @focusin="select.focusIn"
                                    @focusout="select.focusOut"
                                    @keyup.esc="select.onClose"
                                    @keyup.up="select.decreaseOptionIndex"
                                    @keyup.down="select.increaseOptionIndex"
                                    @keyup.enter="select.setOptionByIndex"
                                    tabindex="0"
                                <?php if ($lstSearchField->hasIcon()) : ?>
                                    class="listivo-select-v2 listivo-select-v2--with-icon"
                                <?php else : ?>
                                    class="listivo-select-v2"
                                <?php endif; ?>
                                    :class="{
                                        'listivo-select-v2--active': priceField.value !== '' || select.open,
                                        'listivo-select-v2--open': select.open,
                                    }"
                            >
                                <?php if ($lstSearchField->hasIcon()) :
                                    $lstIcon = $lstSearchField->getIcon();
                                    ?>
                                    <div class="listivo-select-v2__icon listivo-icon-v2">
                                        <?php if (isset($lstIcon['library']) && $lstIcon['library'] === 'svg' && !empty($lstIcon['value']['url'])) : ?>
                                            <?php echo tdf_load_icon($lstIcon['value']['url']); ?>
                                        <?php else : ?>
                                            <i class="<?php echo esc_attr($lstIcon['value']); ?>"></i>
                                        <?php endif; ?>
                                    </div>
                                <?php endif; ?>

                                <div
                                        v-if="priceField.value === ''"
                                        class="listivo-select-v2__placeholder"
                                >
                                    <?php echo esc_html($lstSearchField->getPlaceholderTo()); ?>
                                </div>

                                <div class="listivo-select-v2__arrow">
                                    <svg xmlns="http://www.w3.org/2000/svg" width="7" height="5"
                                         viewBox="0 0 7 5" fill="none">
                                        <path d="M3.5 2.56768L5.87477 0.192917C6.13207 -0.0643854 6.54972 -0.0643854 6.80702 0.192917C7.06433 0.45022 7.06433 0.86787 6.80702 1.12517L3.9394 3.99279C3.6964 4.2358 3.30298 4.2358 3.0606 3.99279L0.192977 1.12517C-0.0643257 0.86787 -0.0643257 0.45022 0.192977 0.192917C0.45028 -0.0643854 0.86793 -0.0643854 1.12523 0.192917L3.5 2.56768Z"
                                              fill="#2A3946"/>
                                    </svg>
                                </div>

                                <template>
                                    <div
                                            v-if="priceField.value !== ''"
                                            class="listivo-select-v2__placeholder"
                                    >
                                        <div v-html="priceField.currentValue.name"></div>
                                    </div>

                                    <div
                                            v-if="priceField.value !== ''"
                                            class="listivo-select-v2__clear"
                                            @click.stop.prevent="priceField.clear(); select.onClose()"
                                    >
                                        <svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" viewBox="0 0 6 6"
                                             fill="none">
                                            <path d="M0.667016 0.000289049C0.534874 0.000452754 0.405782 0.0400233 0.296228 0.113946C0.186675 0.187868 0.101634 0.292787 0.05197 0.415298C0.00230608 0.53781 -0.00972662 0.672352 0.0174091 0.801739C0.0445448 0.931126 0.109617 1.04948 0.204313 1.14169L2.06032 2.99857L0.204313 4.85546C0.140536 4.91672 0.0896183 4.9901 0.0545414 5.07129C0.0194646 5.15249 0.000933792 5.23987 3.43907e-05 5.32832C-0.00086501 5.41677 0.0158851 5.50452 0.0493036 5.58641C0.0827221 5.6683 0.132137 5.7427 0.194655 5.80525C0.257173 5.8678 0.331537 5.91724 0.413391 5.95067C0.495245 5.9841 0.582945 6.00086 0.671354 5.99996C0.759763 5.99906 0.847104 5.98052 0.928262 5.94543C1.00942 5.91034 1.08276 5.85939 1.144 5.79559L3 3.9387L4.856 5.79559C4.91723 5.85939 4.99058 5.91034 5.07173 5.94543C5.15289 5.98053 5.24023 5.99907 5.32864 5.99997C5.41705 6.00087 5.50475 5.98411 5.58661 5.95067C5.66846 5.91724 5.74283 5.8678 5.80535 5.80525C5.86786 5.74271 5.91728 5.66831 5.9507 5.58641C5.98412 5.50452 6.00087 5.41678 5.99997 5.32832C5.99907 5.23987 5.98053 5.15249 5.94546 5.07129C5.91038 4.9901 5.85946 4.91672 5.79568 4.85546L3.93968 2.99857L5.79568 1.14169C5.89171 1.0483 5.9573 0.928073 5.98385 0.796753C6.01041 0.665433 5.99669 0.529151 5.94449 0.405766C5.8923 0.282381 5.80407 0.177648 5.69136 0.105294C5.57865 0.0329402 5.44672 -0.00366036 5.31286 0.000289049C5.14022 0.00543568 4.97636 0.0776237 4.856 0.20156L3 2.05844L1.144 0.20156C1.08199 0.137793 1.00783 0.0871234 0.925898 0.0525512C0.843967 0.017979 0.755935 0.000207391 0.667016 0.000289049Z"
                                                  fill="#F09965"/>
                                        </svg>
                                    </div>

                                    <div v-if="select.open" class="listivo-select-v2__dropdown">
                                        <div v-if="!select.options.length" class="listivo-select-v2__no-options">
                                            <?php echo esc_html(tdf_string('no_options')); ?>
                                        </div>

                                        <div
                                                v-for="(option, index) in select.options"
                                                :key="option.id"
                                                @click="select.setOption(option)"
                                                class="listivo-select-v2__option"
                                                :class="{
                                                    'listivo-select-v2__option--active': option.selected,
                                                    'listivo-select-v2__option--highlight': index === select.optionIndex,
                                                    'listivo-select-v2__option--disabled': option.disabled && !option.selected,
                                                }"
                                        >
                                            <div class="listivo-select-v2__value" v-html="option.label"></div>
                                        </div>
                                    </div>
                                </template>
                            </div>
                        </lst-select>
                    </div>
                </lst-price-search-field>
            </div>
        </div>
    </lst-price-search-field>
<?php
endif;
Page not found – Hello World !