<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* module/md_result_listing/index.html */
class __TwigTemplate_c4c99bfcece75f600de44581d84570b3 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['LoftyIDX\includes\extensions\LoftyIDXTwigScriptExtension']->addViteScript($this->env, $context, "src/module/listing/index.js", ["jquery"]), "html", null, true);
        yield "

<div id='";
        // line 3
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["moduleId"] ?? null), "html", null, true);
        yield "' class='lofty-listing-page lofty-reset-style ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["shortcode_class"] ?? null), "html", null, true);
        yield "'>
    <div id=\"lofty-listing-search\"></div>
    <div id=\"lofty_filter_container\"></div>
    ";
        // line 6
        if (($context["hasMap"] ?? null)) {
            // line 7
            yield "        <div class=\"lofty-result-listing has-map\">
            <div id=\"lofty-map-container\"></div>
    ";
        } else {
            // line 10
            yield "        <div class=\"lofty-result-listing\">
    ";
        }
        // line 12
        yield "        <div id=\"lofty-listing-container\">
            <div class=\"lofty-listing\">
                ";
        // line 14
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["list"] ?? null));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["house"]) {
            // line 15
            yield "                    ";
            yield from             $this->loadTemplate("module/md_house_card/index.html", "module/md_result_listing/index.html", 15)->unwrap()->yield(CoreExtension::merge($context, $context["house"]));
            // line 16
            yield "                ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['house'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 17
        yield "                
                ";
        // line 18
        if (Twig\Extension\CoreExtension::testEmpty(($context["list"] ?? null))) {
            // line 19
            yield "                    ";
            yield from             $this->loadTemplate("module/empty-listing.html", "module/md_result_listing/index.html", 19)->unwrap()->yield($context);
            // line 20
            yield "                ";
        }
        // line 21
        yield "            </div>
            <div id=\"lofty_pagination_container\"></div>
        </div>
    </div>
  

";
        // line 27
        yield from         $this->loadTemplate("module/md_disclaimer/index.html", "module/md_result_listing/index.html", 27)->unwrap()->yield($context);
        // line 28
        yield "<input id='lofty-data' value='";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["data"] ?? null), "html", null, true);
        yield "' type='hidden'/>

</div>

";
        // line 32
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['LoftyIDX\includes\extensions\LoftyIDXTwigScriptExtension']->renderScripts(), "html", null, true);
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "module/md_result_listing/index.html";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  129 => 32,  121 => 28,  119 => 27,  111 => 21,  108 => 20,  105 => 19,  103 => 18,  100 => 17,  86 => 16,  83 => 15,  66 => 14,  62 => 12,  58 => 10,  53 => 7,  51 => 6,  43 => 3,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{{ vite_js('src/module/listing/index.js', ['jquery']) }}

<div id='{{ moduleId }}' class='lofty-listing-page lofty-reset-style {{ shortcode_class }}'>
    <div id=\"lofty-listing-search\"></div>
    <div id=\"lofty_filter_container\"></div>
    {% if hasMap %}
        <div class=\"lofty-result-listing has-map\">
            <div id=\"lofty-map-container\"></div>
    {% else %}
        <div class=\"lofty-result-listing\">
    {% endif %}
        <div id=\"lofty-listing-container\">
            <div class=\"lofty-listing\">
                {% for house in list %}
                    {% include 'module/md_house_card/index.html' with house %}
                {% endfor %}
                
                {% if list is empty %}
                    {%include 'module/empty-listing.html' %}
                {% endif %}
            </div>
            <div id=\"lofty_pagination_container\"></div>
        </div>
    </div>
  

{% include 'module/md_disclaimer/index.html' %}
<input id='lofty-data' value='{{ data }}' type='hidden'/>

</div>

{{ render_scripts()}}", "module/md_result_listing/index.html", "/mnt/HC_Volume_104349808/vhosts/thevelez.family/vm-homes.com/httpdocs/wp-content/plugins/lofty-idx-plugin-1773305082397/templates/module/md_result_listing/index.html");
    }
}
