var/cache/dev/twig/80/8034d92253d3ba0171adc9c0f5d5fcdf4580444d429091a6fbe3a5bbeef3ae67.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* property.html.twig */
  14. class __TwigTemplate_03567e1563397c803ab2dbed3b4ad14b7e236c21c538fd46adc5ae424dd6c9c5 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""property.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""property.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""property.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo "Biens";
  55.         
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.     }
  60.     // line 5
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         echo 
  69.     ";
  70.         // line 7
  71.         $context["headerContent"] = $this->extensions['App\Twig\ContentExtension']->Content("Biens""Header");
  72.         // line 8
  73.         echo "
  74.     ";
  75.         // line 9
  76.         if ((twig_get_attribute($this->env$this->source, ($context["headerContent"] ?? null), "picture", [], "any"truetruefalse9) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["headerContent"]) || array_key_exists("headerContent"$context) ? $context["headerContent"] : (function () { throw new RuntimeError('Variable "headerContent" does not exist.'9$this->source); })()), "picture", [], "any"falsefalsefalse9)))) {
  77.             // line 10
  78.             echo "        ";
  79.             $context["backgroundImage"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["headerContent"]) || array_key_exists("headerContent"$context) ? $context["headerContent"] : (function () { throw new RuntimeError('Variable "headerContent" does not exist.'10$this->source); })()), "picture", [], "any"falsefalsefalse10), 0, [], "array"falsefalsefalse10), "path", [], "any"falsefalsefalse10);
  80.             // line 11
  81.             echo "    ";
  82.         } else {
  83.             // line 12
  84.             echo "        ";
  85.             $context["backgroundImage"] = "empty";
  86.             // line 13
  87.             echo "    ";
  88.         }
  89.         // line 14
  90.         echo "
  91.     ";
  92.         // line 29
  93.         echo "
  94.     <div class=\"container-fluid\">
  95.         ";
  96.         // line 34
  97.         $context["sectionContent1"] = $this->extensions['App\Twig\ContentExtension']->Content("Biens""Section-1");
  98.         // line 35
  99.         echo "
  100.         ";
  101.         // line 60
  102.         echo "
  103.         <section class=\"project\" style=\"margin-bottom: 120px; margin-top: 60px\">
  104.             
  105.             <div id=\"button-property-page\"  class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: flex; align-items: center; padding-left: 7px\">
  106.                 <button data-id=\"all\" class=\"btn btn-primary all border-radius projectButton\"><span class=\"span-all\">TOUS</span></button>
  107.                 <button data-id=\"sale\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">ACHAT</span></button>
  108.                 <button data-id=\"rental\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">LOCATION</span></button>
  109.             </div>
  110.             <div id=\"button-property-page-mobile\" class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: none; align-items: center\">
  111.                 <div id=\"flick3\" class=\"flicking-viewport\">
  112.                     <div class=\"flicking-camera\">
  113.                         <button data-id=\"all\" class=\"btn btn-primary all border-radius projectButton\"><span class=\"span-all\">TOUS</span></button>
  114.                         <button data-id=\"sale\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">ACHAT</span></button>
  115.                         <button data-id=\"rental\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">LOCATION</span></button>
  116.                     </div>
  117.                 </div>
  118.             </div>
  119.             <div class=\"col-lg-8 mx-auto div-svg-header deactive-tablet\" style=\"display: flex; flex-direction: column; justify-content: center\">
  120.                 ";
  121.         // line 104
  122.         echo "
  123.                 <div id=\"loading\">
  124.                     <h1 id=\"showOutput\"></h1>
  125.                 </div>
  126.                 <div id=\"properties\" class=\"col-lg-12 mt-5\" style=\"display: flex; flex-wrap: wrap; flex-direction: row\">
  127.                     ";
  128.         // line 113
  129.         $context['_parent'] = $context;
  130.         $context['_seq'] = twig_ensure_traversable((isset($context["properties"]) || array_key_exists("properties"$context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.'113$this->source); })()));
  131.         $context['_iterated'] = false;
  132.         $context['loop'] = [
  133.           'parent' => $context['_parent'],
  134.           'index0' => 0,
  135.           'index'  => 1,
  136.           'first'  => true,
  137.         ];
  138.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  139.             $length count($context['_seq']);
  140.             $context['loop']['revindex0'] = $length 1;
  141.             $context['loop']['revindex'] = $length;
  142.             $context['loop']['length'] = $length;
  143.             $context['loop']['last'] = === $length;
  144.         }
  145.         foreach ($context['_seq'] as $context["_key"] => $context["property"]) {
  146.             // line 114
  147.             echo "                        <div  class=\"col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2\" style=\"cursor: pointer\">
  148.                             ";
  149.             // line 137
  150.             echo "
  151.                             ";
  152.             // line 140
  153.             echo "                            ";
  154.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["property"], "pictures", [], "any"falsefalsefalse140))) {
  155.                 // line 141
  156.                 echo "                                <div class=\"position-relative properties-slide slick-slide-single-";
  157.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse141), "html"nulltrue);
  158.                 echo "\" style=\"height:300px;\">
  159.                                     ";
  160.                 // line 142
  161.                 $context['_parent'] = $context;
  162.                 $context['_seq'] = twig_ensure_traversable(twig_slice($this->envtwig_get_attribute($this->env$this->source$context["property"], "pictures", [], "any"falsefalsefalse142), 03));
  163.                 foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
  164.                     // line 143
  165.                     echo "                                        ";
  166.                     // line 144
  167.                     echo "                                        <div class=\"img\" style=\"background-image: url('";
  168.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["picture"], "url", [], "any"falsefalsefalse144), "html"nulltrue);
  169.                     echo "')\"  onclick=\"location.href='";
  170.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("property-detail", ["id" => twig_get_attribute($this->env$this->source$context["property"], "id", [], "any"falsefalsefalse144)]), "html"nulltrue);
  171.                     echo "'\">
  172.                                         </div>
  173.                                     ";
  174.                 }
  175.                 $_parent $context['_parent'];
  176.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['picture'], $context['_parent'], $context['loop']);
  177.                 $context array_intersect_key($context$_parent) + $_parent;
  178.                 // line 147
  179.                 echo "                                </div>
  180.                             ";
  181.             } else {
  182.                 // line 150
  183.                 echo "                                <div class=\"img\" style=\"background-image: url('";
  184.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/Hudson_Ontario2.png"), "html"nulltrue);
  185.                 echo "')\"></div>
  186.                             ";
  187.             }
  188.             // line 152
  189.             echo "                            <div class=\"row col-md-12 justify-content-between\">
  190.                                 <ul class=\"col-md-4 items\">
  191.                                     <li class=\"item surface\">
  192.                                        <img src=\"";
  193.             // line 155
  194.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/surface.svg"), "html"nulltrue);
  195.             echo "\" class=\"surface-logo\"> ";
  196.             (((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "area", [], "any"falsefalsefalse155), "value", [], "any"falsefalsefalse155), null))) ? (print ("")) : (print (twig_escape_filter($this->env, (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "area", [], "any"falsefalsefalse155), "value", [], "any"falsefalsefalse155) . $this->extensions['App\Twig\ContentExtension']->areaConversion(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "area", [], "any"falsefalsefalse155), "unit", [], "any"falsefalsefalse155))), "html"nulltrue))));
  197.             echo "
  198.                                     </li>
  199.                                 </ul>
  200.                                 <div class=\"col-md-8 properties-price d-flex justify-content-end\">
  201.                                     ";
  202.             // line 159
  203.             (((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "price", [], "any"falsefalsefalse159), "value", [], "any"falsefalsefalse159), null))) ? (print ("<span style=\"font-size: 14px !important;\">sur demande</span>")) : (print (twig_escape_filter($this->env, (twig_number_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "price", [], "any"falsefalsefalse159), "value", [], "any"falsefalsefalse159), 2","" ") . twig_replace_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "price", [], "any"falsefalsefalse159), "currency", [], "any"falsefalsefalse159), ["EUR" => " â‚¬"])), "html"nulltrue))));
  204.             echo "
  205.                                 </div>
  206.                             </div>
  207.                             <p class=\"city\">";
  208.             // line 162
  209.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "city", [], "any"falsefalsefalse162), "name", [], "any"falsefalsefalse162), "html"nulltrue);
  210.             echo "</p>
  211.                             <p class=\"project-name\">";
  212.             // line 163
  213.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["property"], "reference", [], "any"falsefalsefalse163), "html"nulltrue);
  214.             echo "</p>
  215.                         </div>
  216.                     ";
  217.             $context['_iterated'] = true;
  218.             ++$context['loop']['index0'];
  219.             ++$context['loop']['index'];
  220.             $context['loop']['first'] = false;
  221.             if (isset($context['loop']['length'])) {
  222.                 --$context['loop']['revindex0'];
  223.                 --$context['loop']['revindex'];
  224.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  225.             }
  226.         }
  227.         if (!$context['_iterated']) {
  228.             // line 166
  229.             echo "                        <h4>Aucun bien disponible avec ces critères</h4>
  230.                     ";
  231.         }
  232.         $_parent $context['_parent'];
  233.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['property'], $context['_parent'], $context['loop']);
  234.         $context array_intersect_key($context$_parent) + $_parent;
  235.         // line 168
  236.         echo "                </div>
  237.                 ";
  238.         // line 172
  239.         echo "            </div>
  240.         </section>
  241.         <section class=\"other-properties pt-5 pb-5\" style=\"background:#F7F7F7\">
  242.             <div class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: flex; margin-top: 30px\">
  243.                 <div class=\"col-lg-6\">
  244.                     <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
  245.                         <path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"></path>
  246.                     </svg>
  247.                     <h1 class=\"project-title\">
  248.                         ";
  249.         // line 182
  250.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse182), "attributes", [], "any"falsetruefalse182), "get", [=> "_route_params"], "method"falsetruefalse182), "keyword", [], "array"truetruefalse182)) {
  251.             // line 183
  252.             echo "                            ";
  253.             if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'183$this->source); })()), "request", [], "any"falsefalsefalse183), "attributes", [], "any"falsefalsefalse183), "get", [=> "_route_params"], "method"falsefalsefalse183), "keyword", [], "array"falsefalsefalse183), "location"))) {
  254.                 // line 184
  255.                 echo "                                ";
  256.                 $context["otherDispo"] = "vente";
  257.                 // line 185
  258.                 echo "                            ";
  259.             } else {
  260.                 // line 186
  261.                 echo "                                ";
  262.                 $context["otherDispo"] = "location";
  263.                 // line 187
  264.                 echo "                            ";
  265.             }
  266.             // line 188
  267.             echo "                        ";
  268.         } else {
  269.             // line 189
  270.             echo "                            ";
  271.             $context["otherDispo"] = null;
  272.             // line 190
  273.             echo "                        ";
  274.         }
  275.         // line 191
  276.         echo "                        NOS biens disponibles<br> ";
  277.         if ((isset($context["otherDispo"]) || array_key_exists("otherDispo"$context) ? $context["otherDispo"] : (function () { throw new RuntimeError('Variable "otherDispo" does not exist.'191$this->source); })())) {
  278.             echo "À la <span style=\"color:#F6A400\">";
  279.             echo twig_escape_filter($this->env, (isset($context["otherDispo"]) || array_key_exists("otherDispo"$context) ? $context["otherDispo"] : (function () { throw new RuntimeError('Variable "otherDispo" does not exist.'191$this->source); })()), "html"nulltrue);
  280.             echo "</span>";
  281.         }
  282.         // line 192
  283.         echo "                    </h1>
  284.                 </div>
  285.             </div>
  286.             <div  class=\"col-lg-8 mx-auto\">
  287.                 <div id=\"propertiesOther\" class=\"col-lg-12 mt-5 property-other-list\" style=\"display: flex; flex-wrap: wrap; flex-direction: row\">
  288.                     ";
  289.         // line 198
  290.         $context['_parent'] = $context;
  291.         $context['_seq'] = twig_ensure_traversable((isset($context["otherProperties"]) || array_key_exists("otherProperties"$context) ? $context["otherProperties"] : (function () { throw new RuntimeError('Variable "otherProperties" does not exist.'198$this->source); })()));
  292.         $context['loop'] = [
  293.           'parent' => $context['_parent'],
  294.           'index0' => 0,
  295.           'index'  => 1,
  296.           'first'  => true,
  297.         ];
  298.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  299.             $length count($context['_seq']);
  300.             $context['loop']['revindex0'] = $length 1;
  301.             $context['loop']['revindex'] = $length;
  302.             $context['loop']['length'] = $length;
  303.             $context['loop']['last'] = === $length;
  304.         }
  305.         foreach ($context['_seq'] as $context["_key"] => $context["property"]) {
  306.             // line 199
  307.             echo "                        <div  class=\"col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2\" style=\"cursor: pointer\">
  308.                             ";
  309.             // line 222
  310.             echo "
  311.                             ";
  312.             // line 225
  313.             echo "                            ";
  314.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["property"], "pictures", [], "any"falsefalsefalse225))) {
  315.                 // line 226
  316.                 echo "                                <div class=\"position-relative properties-slide slick-slide-single-";
  317.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse226), "html"nulltrue);
  318.                 echo "\">
  319.                                     ";
  320.                 // line 227
  321.                 $context['_parent'] = $context;
  322.                 $context['_seq'] = twig_ensure_traversable(twig_slice($this->envtwig_get_attribute($this->env$this->source$context["property"], "pictures", [], "any"falsefalsefalse227), 03));
  323.                 foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
  324.                     // line 228
  325.                     echo "                                        ";
  326.                     // line 229
  327.                     echo "                                        <div class=\"img\" style=\"background-image: url('";
  328.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["picture"], "url", [], "any"falsefalsefalse229), "html"nulltrue);
  329.                     echo "')\"  onclick=\"location.href='";
  330.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("property-detail", ["id" => twig_get_attribute($this->env$this->source$context["property"], "id", [], "any"falsefalsefalse229)]), "html"nulltrue);
  331.                     echo "'\">
  332.                                         </div>
  333.                                     ";
  334.                 }
  335.                 $_parent $context['_parent'];
  336.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['picture'], $context['_parent'], $context['loop']);
  337.                 $context array_intersect_key($context$_parent) + $_parent;
  338.                 // line 232
  339.                 echo "                                </div>
  340.                             ";
  341.             } else {
  342.                 // line 235
  343.                 echo "                                <div class=\"img\" style=\"background-image: url('";
  344.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/Hudson_Ontario2.png"), "html"nulltrue);
  345.                 echo "')\"></div>
  346.                             ";
  347.             }
  348.             // line 237
  349.             echo "                            <div class=\"row col-md-12 justify-content-between infos-list\">
  350.                                 <ul class=\"col-md-4 items\">
  351.                                     <li class=\"item surface\">
  352.                                         <img src=\"";
  353.             // line 240
  354.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/surface.svg"), "html"nulltrue);
  355.             echo "\" class=\"surface-logo\"> ";
  356.             (((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "area", [], "any"falsefalsefalse240), "value", [], "any"falsefalsefalse240), null))) ? (print ("")) : (print (twig_escape_filter($this->env, (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "area", [], "any"falsefalsefalse240), "value", [], "any"falsefalsefalse240) . $this->extensions['App\Twig\ContentExtension']->areaConversion(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "area", [], "any"falsefalsefalse240), "unit", [], "any"falsefalsefalse240))), "html"nulltrue))));
  357.             echo "
  358.                                     </li>
  359.                                 </ul>
  360.                                 <div class=\"col-md-8 properties-price d-flex justify-content-end\">
  361.                                     ";
  362.             // line 244
  363.             (((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "price", [], "any"falsefalsefalse244), "value", [], "any"falsefalsefalse244), null))) ? (print ("<span style=\"font-size: 14px !important;\">sur demande</span>")) : (print (twig_escape_filter($this->env, (twig_number_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "price", [], "any"falsefalsefalse244), "value", [], "any"falsefalsefalse244), 2","" ") . twig_replace_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "price", [], "any"falsefalsefalse244), "currency", [], "any"falsefalsefalse244), ["EUR" => " â‚¬"])), "html"nulltrue))));
  364.             echo "
  365.                                 </div>
  366.                             </div>
  367.                             <p class=\"city\">";
  368.             // line 247
  369.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["property"], "city", [], "any"falsefalsefalse247), "name", [], "any"falsefalsefalse247), "html"nulltrue);
  370.             echo "</p>
  371.                             <p class=\"project-name\">";
  372.             // line 248
  373.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["property"], "reference", [], "any"falsefalsefalse248), "html"nulltrue);
  374.             echo "</p>
  375.                         </div>
  376.                     ";
  377.             ++$context['loop']['index0'];
  378.             ++$context['loop']['index'];
  379.             $context['loop']['first'] = false;
  380.             if (isset($context['loop']['length'])) {
  381.                 --$context['loop']['revindex0'];
  382.                 --$context['loop']['revindex'];
  383.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  384.             }
  385.         }
  386.         $_parent $context['_parent'];
  387.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['property'], $context['_parent'], $context['loop']);
  388.         $context array_intersect_key($context$_parent) + $_parent;
  389.         // line 251
  390.         echo "                </div>
  391.                 ";
  392.         // line 253
  393.         $context["paramUrl"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'253$this->source); })()), "request", [], "any"falsefalsefalse253), "get", [=> "keyword"], "method"falsefalsefalse253);
  394.         // line 254
  395.         echo "                ";
  396.         if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'254$this->source); })()), "request", [], "any"falsefalsefalse254), "get", [=> "keyword"], "method"falsefalsefalse254), "location"))) {
  397.             // line 255
  398.             echo "                    ";
  399.             $context["paramUrl"] = "vente";
  400.             // line 256
  401.             echo "                ";
  402.         } elseif ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'256$this->source); })()), "request", [], "any"falsefalsefalse256), "get", [=> "keyword"], "method"falsefalsefalse256), "vente"))) {
  403.             // line 257
  404.             echo "                    ";
  405.             $context["paramUrl"] = "location";
  406.             // line 258
  407.             echo "                ";
  408.         }
  409.         // line 259
  410.         echo "                <div id=\"link-none\" class=\"col-lg-12 mx-auto other-property-link div-svg-header d-flex justify-content-end\">
  411.                     <div>
  412.                         <a id=\"link-none-a d-flex\" class=\"property-span-arrow\" href=\"";
  413.         // line 261
  414.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("properties", ["keyword" => (isset($context["paramUrl"]) || array_key_exists("paramUrl"$context) ? $context["paramUrl"] : (function () { throw new RuntimeError('Variable "paramUrl" does not exist.'261$this->source); })())]), "html"nulltrue);
  415.         echo "\">Découvrir plus
  416.                             <svg class=\"svg-inline--fa fa-arrow-right fa-w-14 property-arrow\" aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"arrow-right\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\" data-fa-i2svg=\"\"><path fill=\"currentColor\" d=\"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z\"></path></svg><!-- <i class=\"fas fa-arrow-right property-arrow\"></i> Font Awesome fontawesome.com -->
  417.                         </a>
  418.                     </div>
  419.                 </div>
  420.             </div>
  421.         </section>
  422.         ";
  423.         // line 310
  424.         echo "
  425.     </div>
  426.     <div id=\"img-property-section\" class=\"container-fluid\" style=\"display: none\">
  427.         <div id=\"link-ok\" class=\"col-lg-3\" style=\"display: flex; align-content: center\">
  428.             <a class=\"property-span-arrow\" href=\"";
  429.         // line 314
  430.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("habiter");
  431.         echo "\">Découvrir les avantages
  432.                 <i class=\"fas fa-arrow-right property-arrow\"></i>
  433.             </a>
  434.         </div>
  435.         <div class=\"col-lg-6 habiter-img\">
  436.             ";
  437.         // line 320
  438.         if (twig_get_attribute($this->env$this->source, ($context["sectionContent1"] ?? null), "picture", [], "any"truetruefalse320)) {
  439.             // line 321
  440.             echo "                <img style=\"padding: 0px;\"  class=\"img-100\" src=\"/uploads/images/";
  441.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sectionContent1"]) || array_key_exists("sectionContent1"$context) ? $context["sectionContent1"] : (function () { throw new RuntimeError('Variable "sectionContent1" does not exist.'321$this->source); })()), "picture", [], "any"falsefalsefalse321), 0, [], "array"falsefalsefalse321), "path", [], "any"falsefalsefalse321), "html"nulltrue);
  442.             echo "\">
  443.             ";
  444.         } else {
  445.             // line 323
  446.             echo "                <img style=\"padding: 0px;\"  class=\"img-100\" src=\"https://tracol.lu/uploads/images/millebierg-6194cb6331d44212004123.png\">
  447.             ";
  448.         }
  449.         // line 325
  450.         echo "        </div>
  451.     </div>
  452.     <script>
  453.         ";
  454.         // line 329
  455.         echo "        ";
  456.         // line 330
  457.         echo "        ";
  458.         // line 331
  459.         echo "        ";
  460.         // line 332
  461.         echo "        ";
  462.         // line 333
  463.         echo "        ";
  464.         // line 334
  465.         echo "        ";
  466.         // line 335
  467.         echo "        ";
  468.         // line 336
  469.         echo "        ";
  470.         // line 337
  471.         echo "
  472.         ";
  473.         // line 340
  474.         echo "        ";
  475.         // line 341
  476.         echo "        ";
  477.         // line 342
  478.         echo "
  479.         ";
  480.         // line 344
  481.         echo "        ";
  482.         // line 345
  483.         echo "        ";
  484.         // line 346
  485.         echo "        ";
  486.         // line 347
  487.         echo "        ";
  488.         // line 348
  489.         echo "        ";
  490.         // line 349
  491.         echo "        ";
  492.         // line 350
  493.         echo "        ";
  494.         // line 351
  495.         echo "        ";
  496.         // line 352
  497.         echo "        ";
  498.         // line 353
  499.         echo "        ";
  500.         // line 354
  501.         echo "        ";
  502.         // line 355
  503.         echo "        ";
  504.         // line 356
  505.         echo "        ";
  506.         // line 357
  507.         echo "        ";
  508.         // line 358
  509.         echo "        ";
  510.         // line 359
  511.         echo "        ";
  512.         // line 360
  513.         echo "        ";
  514.         // line 361
  515.         echo "        ";
  516.         // line 362
  517.         echo "        ";
  518.         // line 363
  519.         echo "        ";
  520.         // line 364
  521.         echo "        ";
  522.         // line 365
  523.         echo "        ";
  524.         // line 366
  525.         echo "        ";
  526.         // line 367
  527.         echo "        ";
  528.         // line 368
  529.         echo "        ";
  530.         // line 369
  531.         echo "        ";
  532.         // line 370
  533.         echo "        ";
  534.         // line 371
  535.         echo "        ";
  536.         // line 372
  537.         echo "        ";
  538.         // line 373
  539.         echo "        ";
  540.         // line 374
  541.         echo "        ";
  542.         // line 375
  543.         echo "
  544.         ";
  545.         // line 377
  546.         echo "        ";
  547.         // line 378
  548.         echo "        ";
  549.         // line 379
  550.         echo "        ";
  551.         // line 380
  552.         echo "        ";
  553.         // line 381
  554.         echo "        ";
  555.         // line 382
  556.         echo "        ";
  557.         // line 383
  558.         echo "        ";
  559.         // line 384
  560.         echo "
  561.         ";
  562.         // line 386
  563.         echo "        ";
  564.         // line 387
  565.         echo "        ";
  566.         // line 388
  567.         echo "        ";
  568.         // line 389
  569.         echo "        ";
  570.         // line 390
  571.         echo "        ";
  572.         // line 391
  573.         echo "        ";
  574.         // line 392
  575.         echo "
  576.         ";
  577.         // line 395
  578.         echo "        ";
  579.         // line 396
  580.         echo "        ";
  581.         // line 397
  582.         echo "        ";
  583.         // line 398
  584.         echo "        ";
  585.         // line 399
  586.         echo "        ";
  587.         // line 400
  588.         echo "        ";
  589.         // line 401
  590.         echo "        ";
  591.         // line 402
  592.         echo "        ";
  593.         // line 403
  594.         echo "        ";
  595.         // line 404
  596.         echo "        ";
  597.         // line 405
  598.         echo "        ";
  599.         // line 406
  600.         echo "        ";
  601.         // line 407
  602.         echo "        ";
  603.         // line 408
  604.         echo "        ";
  605.         // line 409
  606.         echo "        ";
  607.         // line 410
  608.         echo "
  609.         ";
  610.         // line 413
  611.         echo "        ";
  612.         // line 414
  613.         echo "
  614.         const futurProjects = document.getElementById('properties')
  615.         let buttons = document.getElementsByClassName('projectButton')
  616.         for (const eElement of buttons) {
  617.             eElement.addEventListener('click', function (e) {
  618.                 e.preventDefault()
  619.                 for (let button of buttons) {
  620.                     if (button.classList.contains('all')){
  621.                         button.classList.remove('all')
  622.                         button.classList.add('come')
  623.                         button.querySelector('span').classList.replace('span-all', 'span-projects')
  624.                     }
  625.                 }
  626.                 eElement.classList.remove('come')
  627.                 eElement.classList.add('all')
  628.                 eElement.querySelector('span').classList.replace('span-projects', 'span-all')
  629.                 fetch('properties/display/'+this.dataset.id, {
  630.                     method: 'GET',
  631.                 })
  632.                     .then(response => response.json())
  633.                     .then(data => {
  634.                         futurProjects.innerHTML = ''
  635.                         futurProjects.innerHTML = data.data
  636.                         _ww = \$(window).width();
  637.                         var lightbox = \$('.lightbox'),
  638.                             item = 0;
  639.                         \$('.lightbox-on').click(function(e){
  640.                             e.stopPropagation();
  641.                             item = 0;
  642.                             console.log('click btn');
  643.                             var id = \$(this).attr('data-id'),
  644.                                 max = 0;
  645.                             \$('#'+id).toggle();
  646.                             \$('#'+id).animate({opacity: 1}, 300);
  647.                             \$('#'+id).find('img').each(function( i ) {
  648.                                 //console.log('h : '+\$(this).height());
  649.                                 //console.log('w : '+\$(this).width());
  650.                                 max = i;
  651.                                 item = 1;
  652.                                 counter(item, max+1);
  653.                                 itemWidth(\$(this));
  654.                             });
  655.                         });
  656.                         lightbox.click(function(e) {
  657.                             e.stopPropagation();
  658.                             \$(this).animate({opacity: 0}, 300, function(){
  659.                                 \$(this).toggle();
  660.                             });
  661.                         });
  662.                         \$('.closer').on('click', function (e) {
  663.                             e.stopPropagation();
  664.                             \$(this).parent().animate(
  665.                                 {opacity: 0},
  666.                                 300,
  667.                                 function(){
  668.                                     \$(this).toggle();
  669.                                 }
  670.                             );
  671.                         });
  672.                         function itemWidth(img){
  673.                             img.closest('.items').width(img.width());
  674.                         }
  675.                         function counter(item, max){
  676.                             \$('.counter').text(item + ' / ' + max);
  677.                         }
  678.                         \$('.item', lightbox).on('click, swipeleft', function (e) {
  679.                             var wd = \$(this).width(),
  680.                                 last = \$(this).parent().find('.item').last(),
  681.                                 img = \$(this).find('.img');
  682.                             itemWidth(img);
  683.                             \$(this).animate(
  684.                                 {marginLeft: -wd, opacity: 0},
  685.                                 500,
  686.                                 'swing',
  687.                                 function(){
  688.                                     \$(this).insertAfter(last);
  689.                                     \$(this).css({marginLeft: 0, opacity: 1});
  690.                                 }
  691.                             );
  692.                         });
  693.                         \$('.item', lightbox).on('swiperight', function (e) {
  694.                             var wd = \$(this).width(),
  695.                                 first = \$(this).parent().find('.item').first(),
  696.                                 last = \$(this).parent().find('.item').last(),
  697.                                 img = \$(this).find('.img');
  698.                             itemWidth(img);
  699.                             \$(last).insertBefore(\$(this));
  700.                             \$(last).css({marginLeft: -wd, opacity: 0});
  701.                             \$(this).parent().find('.item').eq(0).animate(
  702.                                 {marginLeft: 0, opacity: 1},
  703.                                 500,
  704.                                 'swing'
  705.                             );
  706.                         });
  707.                         \$('.arrows', lightbox).on('click', function (e) {
  708.                             e.stopPropagation();
  709.                             var wd = \$(this).siblings('.items').find('.item').eq(0).width(),
  710.                                 max = \$(this)
  711.                                     .siblings('.items').find('.item').length,
  712.                                 first = \$(this).siblings('.items').find('.item').first(),
  713.                                 last = \$(this).siblings('.items').find('.item').last(),
  714.                                 isRight = \$(this).hasClass('right'),
  715.                                 marginL = isRight ? -wd : 0,
  716.                                 marginL0 = isRight ? 0: -wd,
  717.                                 opacOn = isRight ? 1 : 0,
  718.                                 opacOff = isRight ? 0 : 1;
  719.                             if (!isRight){
  720.                                 \$(last).insertBefore(first);
  721.                                 \$(last).css({marginLeft: -wd, opacity: 0});
  722.                                 item++;
  723.                                 if (item == max+1) {item = 1};
  724.                             } else {
  725.                                 item--;
  726.                                 if (item == 0) {item = max};
  727.                             };
  728.                             counter(item, max);
  729.                             var img = \$(this).siblings('.items').find('.item').eq(0).find('.img');
  730.                             itemWidth(img);
  731.                             \$(this).siblings('.items').find('.item').eq(1).animate(
  732.                                 {opacity: opacOn},
  733.                                 500,
  734.                                 'swing');
  735.                             \$(this).siblings('.items').find('.item').eq(0).animate(
  736.                                 {marginLeft: marginL, opacity: 1},
  737.                                 500,
  738.                                 'swing',
  739.                                 function(){
  740.                                     if (isRight){
  741.                                         \$(this).insertAfter(last);
  742.                                         \$(this).css({ marginLeft: 0, opacity: 1});
  743.                                     }
  744.                                 }
  745.                             );
  746.                         });
  747.                         if (_ww > 768){
  748.                             \$('.div-img-hover-2').hover(function (e) {
  749.                                 \$(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  750.                                 var htext = \$(this).find('.project-content').height();
  751.                                 if (htext == undefined){htext = 0};
  752.                                 \$(this).find('.div-hover-2').animate({height : htext+180}, 150);
  753.                                 \$(this).find('.project-content').css({'visibility': 'visible'});
  754.                                 \$(this).find('.project-content').animate({opacity: 1}, 150);
  755.                             }, function() {
  756.                                 console.log('down');
  757.                                 \$(this).find('.div-hover-2').animate({height : 85}, 150);
  758.                                 \$(this).find('.project-arrow-2').animate({opacity: 0}, 150);
  759.                                 \$(this).find('.project-content').animate({opacity: 0}, 150, function(){
  760.                                     \$(this).find('.project-content').css({'visibility': 'hidden'});
  761.                                 });
  762.                             });
  763.                         } else {
  764.                             \$('.div-img-hover-2').on( \"tap\", function( event ) {
  765.                                 console.log('tap tap');
  766.                                 var opened = \$(this).find('.div-hover-2').hasClass('open'),
  767.                                     ht = opened ? 85 : '100%',
  768.                                     vis = opened ? 0 : 1;
  769.                                 \$(this).find('.div-hover-2').toggleClass('open');
  770.                                 \$(this).find('.div-hover-2').animate({height : ht}, 150);
  771.                                 \$(this).find('.project-arrow-2').animate({opacity: vis}, 150);
  772.                             });
  773.                         }
  774.                     })
  775.                     .catch((error) => {
  776.                         console.error('Error:', error);
  777.                     });
  778.             })
  779.         }
  780.         if (window.matchMedia(\"(max-width: 768px)\").matches) {
  781.             new Flicking(\"#flick3\", {
  782.                 moveType: \"freeScroll\",
  783.                 bound: true
  784.             });
  785.         }
  786.         if (window.matchMedia(\"(max-width: 768px)\").matches) {
  787.             const test = document.getElementsByClassName('select-filter')
  788.             for (const testElement of test) {
  789.                 testElement.addEventListener('click', function (e) {
  790.                     e.preventDefault()
  791.                     testElement.classList.toggle('select-projet-active')
  792.                     const infos = document.querySelector('.projectButton.all')
  793.                     const dataId = []
  794.                     const tests = document.querySelectorAll('.select-filter.select-projet-active')
  795.                     for (const test1 of tests) {
  796.                         dataId.push(parseFloat(test1.dataset.id))
  797.                     }
  798.                     fetch('properties/display/'+infos.dataset.id+'/params/' + JSON.stringify(dataId), {
  799.                         method: 'GET',
  800.                     })
  801.                         .then(response => response.json())
  802.                         .then(data => {
  803.                             futurProjects.innerHTML = data.data
  804.                         })
  805.                         .catch((error) => {
  806.                             console.error('Error:', error);
  807.                         });
  808.                 })
  809.             }
  810.         } else {
  811.             const test = document.getElementsByClassName('select-projet')
  812.             const textOutput = document.querySelector(\"#showOutput\");
  813.             for (const testElement of test) {
  814.                 testElement.addEventListener('click', function (e) {
  815.                     displayLoading()
  816.                     e.preventDefault()
  817.                     testElement.classList.toggle('select-projet-active')
  818.                     const infos = document.querySelector('.projectButton.all')
  819.                     const dataId = []
  820.                     const tests = document.querySelectorAll('.select-projet.select-projet-active')
  821.                     for (const test1 of tests) {
  822.                         dataId.push(parseFloat(test1.dataset.id))
  823.                     }
  824.                     fetch('properties/display/'+infos.dataset.id+'/params/' + JSON.stringify(dataId), {
  825.                         method: 'GET'
  826.                     })
  827.                         .then(response => response.json())
  828.                         .then(data => {
  829.                             hideLoading()
  830.                             futurProjects.innerHTML = data.data
  831.                             _ww = \$(window).width();
  832.                             var lightbox = \$('.lightbox'),
  833.                                 item = 0;
  834.                             \$('.lightbox-on').click(function(e){
  835.                                 e.stopPropagation();
  836.                                 item = 0;
  837.                                 console.log('click btn');
  838.                                 var id = \$(this).attr('data-id'),
  839.                                     max = 0;
  840.                                 \$('#'+id).toggle();
  841.                                 \$('#'+id).animate({opacity: 1}, 300);
  842.                                 \$('#'+id).find('img').each(function( i ) {
  843.                                     //console.log('h : '+\$(this).height());
  844.                                     //console.log('w : '+\$(this).width());
  845.                                     max = i;
  846.                                     item = 1;
  847.                                     counter(item, max+1);
  848.                                     itemWidth(\$(this));
  849.                                 });
  850.                             });
  851.                             lightbox.click(function(e) {
  852.                                 e.stopPropagation();
  853.                                 \$(this).animate({opacity: 0}, 300, function(){
  854.                                     \$(this).toggle();
  855.                                 });
  856.                             });
  857.                             \$('.closer').on('click', function (e) {
  858.                                 e.stopPropagation();
  859.                                 \$(this).parent().animate(
  860.                                     {opacity: 0},
  861.                                     300,
  862.                                     function(){
  863.                                         \$(this).toggle();
  864.                                     }
  865.                                 );
  866.                             });
  867.                             function itemWidth(img){
  868.                                 img.closest('.items').width(img.width());
  869.                             }
  870.                             function counter(item, max){
  871.                                 \$('.counter').text(item + ' / ' + max);
  872.                             }
  873.                             \$('.item', lightbox).on('click, swipeleft', function (e) {
  874.                                 var wd = \$(this).width(),
  875.                                     last = \$(this).parent().find('.item').last(),
  876.                                     img = \$(this).find('.img');
  877.                                 itemWidth(img);
  878.                                 \$(this).animate(
  879.                                     {marginLeft: -wd, opacity: 0},
  880.                                     500,
  881.                                     'swing',
  882.                                     function(){
  883.                                         \$(this).insertAfter(last);
  884.                                         \$(this).css({marginLeft: 0, opacity: 1});
  885.                                     }
  886.                                 );
  887.                             });
  888.                             \$('.item', lightbox).on('swiperight', function (e) {
  889.                                 var wd = \$(this).width(),
  890.                                     first = \$(this).parent().find('.item').first(),
  891.                                     last = \$(this).parent().find('.item').last(),
  892.                                     img = \$(this).find('.img');
  893.                                 itemWidth(img);
  894.                                 \$(last).insertBefore(\$(this));
  895.                                 \$(last).css({marginLeft: -wd, opacity: 0});
  896.                                 \$(this).parent().find('.item').eq(0).animate(
  897.                                     {marginLeft: 0, opacity: 1},
  898.                                     500,
  899.                                     'swing'
  900.                                 );
  901.                             });
  902.                             \$('.arrows', lightbox).on('click', function (e) {
  903.                                 e.stopPropagation();
  904.                                 var wd = \$(this).siblings('.items').find('.item').eq(0).width(),
  905.                                     max = \$(this)
  906.                                         .siblings('.items').find('.item').length,
  907.                                     first = \$(this).siblings('.items').find('.item').first(),
  908.                                     last = \$(this).siblings('.items').find('.item').last(),
  909.                                     isRight = \$(this).hasClass('right'),
  910.                                     marginL = isRight ? -wd : 0,
  911.                                     marginL0 = isRight ? 0: -wd,
  912.                                     opacOn = isRight ? 1 : 0,
  913.                                     opacOff = isRight ? 0 : 1;
  914.                                 if (!isRight){
  915.                                     \$(last).insertBefore(first);
  916.                                     \$(last).css({marginLeft: -wd, opacity: 0});
  917.                                     item++;
  918.                                     if (item == max+1) {item = 1};
  919.                                 } else {
  920.                                     item--;
  921.                                     if (item == 0) {item = max};
  922.                                 };
  923.                                 counter(item, max);
  924.                                 var img = \$(this).siblings('.items').find('.item').eq(0).find('.img');
  925.                                 itemWidth(img);
  926.                                 \$(this).siblings('.items').find('.item').eq(1).animate(
  927.                                     {opacity: opacOn},
  928.                                     500,
  929.                                     'swing');
  930.                                 \$(this).siblings('.items').find('.item').eq(0).animate(
  931.                                     {marginLeft: marginL, opacity: 1},
  932.                                     500,
  933.                                     'swing',
  934.                                     function(){
  935.                                         if (isRight){
  936.                                             \$(this).insertAfter(last);
  937.                                             \$(this).css({ marginLeft: 0, opacity: 1});
  938.                                         }
  939.                                     }
  940.                                 );
  941.                             });
  942.                             if (_ww > 768){
  943.                                 \$('.div-img-hover-2').hover(function (e) {
  944.                                     \$(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  945.                                     var htext = \$(this).find('.project-content').height();
  946.                                     if (htext == undefined){htext = 0};
  947.                                     \$(this).find('.div-hover-2').animate({height : htext+180}, 150);
  948.                                     \$(this).find('.project-content').css({'visibility': 'visible'});
  949.                                     \$(this).find('.project-content').animate({opacity: 1}, 150);
  950.                                 }, function() {
  951.                                     console.log('down');
  952.                                     \$(this).find('.div-hover-2').animate({height : 85}, 150);
  953.                                     \$(this).find('.project-arrow-2').animate({opacity: 0}, 150);
  954.                                     \$(this).find('.project-content').animate({opacity: 0}, 150, function(){
  955.                                         \$(this).find('.project-content').css({'visibility': 'hidden'});
  956.                                     });
  957.                                 });
  958.                             } else {
  959.                                 \$('.div-img-hover-2').on( \"tap\", function( event ) {
  960.                                     console.log('tap tap');
  961.                                     var opened = \$(this).find('.div-hover-2').hasClass('open'),
  962.                                         ht = opened ? 85 : '100%',
  963.                                         vis = opened ? 0 : 1;
  964.                                     \$(this).find('.div-hover-2').toggleClass('open');
  965.                                     \$(this).find('.div-hover-2').animate({height : ht}, 150);
  966.                                     \$(this).find('.project-arrow-2').animate({opacity: vis}, 150);
  967.                                 });
  968.                             }
  969.                             \$('.div-hover').hover(function (e) {
  970.                                 \$(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  971.                             }, function() {
  972.                                 \$(this).find('.project-arrow-2').animate({opacity: 0}, 50);
  973.                             });
  974.                         })
  975.                         .catch((error) => {
  976.                         });
  977.                 })
  978.             }
  979.         }
  980.         const filter = document.getElementById('filters')
  981.         const filterElement = document.getElementById('form-search-filter-ajax')
  982.         filter.addEventListener('click', function (e) {
  983.             e.preventDefault()
  984.             filterElement.classList.toggle('show')
  985.         })
  986.         const loader = document.querySelector(\"#loading\");
  987.         function displayLoading() {
  988.             loader.classList.add(\"display\");
  989.             // to stop loading after some time
  990.             setTimeout(() => {
  991.                 loader.classList.remove(\"display\");
  992.             }, 5000);
  993.         }
  994.         // hiding loading
  995.         function hideLoading() {
  996.             loader.classList.remove(\"display\");
  997.         }
  998.     </script>
  999.     <script>
  1000.         const arrowPrev = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
  1001.                                 <path id=\"np_arrow-up_888648_000000\" d=\"M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z\" transform=\"translate(7.985) rotate(90)\" fill=\"#fff\"/>
  1002.                             </svg>`;
  1003.         const arrowNext= `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
  1004.                             <path id=\"np_arrow-up_888648_000000\" d=\"M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z\" transform=\"translate(7.985) rotate(90)\" fill=\"#fff\"/>
  1005.                         </svg>`;
  1006.         var countProperties = '";
  1007.         // line 867
  1008.         echo twig_escape_filter($this->envtwig_length_filter($this->env, (isset($context["properties"]) || array_key_exists("properties"$context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.'867$this->source); })())), "html"nulltrue);
  1009.         echo "';
  1010.         var loopProp = 1;
  1011.         while (loopProp <= countProperties) {
  1012.             if (window.innerWidth > 768) {
  1013.                 \$('.slick-slide-single-'+loopProp).slick({
  1014.                     'slidesToShow': 1,
  1015.                     'prevArrow': `<div class=\"arrow-left square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowPrev}</div>`,
  1016.                     'nextArrow': `<div class=\"arrow-right square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowNext}</div>`
  1017.                 });
  1018.             }
  1019.             loopProp++;
  1020.         }
  1021.     </script>
  1022. ";
  1023.         
  1024.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1025.         
  1026.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1027.     }
  1028.     public function getTemplateName()
  1029.     {
  1030.         return "property.html.twig";
  1031.     }
  1032.     public function isTraitable()
  1033.     {
  1034.         return false;
  1035.     }
  1036.     public function getDebugInfo()
  1037.     {
  1038.         return array (  1112 => 867,  657 => 414,  655 => 413,  651 => 410,  649 => 409,  647 => 408,  645 => 407,  643 => 406,  641 => 405,  639 => 404,  637 => 403,  635 => 402,  633 => 401,  631 => 400,  629 => 399,  627 => 398,  625 => 397,  623 => 396,  621 => 395,  617 => 392,  615 => 391,  613 => 390,  611 => 389,  609 => 388,  607 => 387,  605 => 386,  602 => 384,  600 => 383,  598 => 382,  596 => 381,  594 => 380,  592 => 379,  590 => 378,  588 => 377,  585 => 375,  583 => 374,  581 => 373,  579 => 372,  577 => 371,  575 => 370,  573 => 369,  571 => 368,  569 => 367,  567 => 366,  565 => 365,  563 => 364,  561 => 363,  559 => 362,  557 => 361,  555 => 360,  553 => 359,  551 => 358,  549 => 357,  547 => 356,  545 => 355,  543 => 354,  541 => 353,  539 => 352,  537 => 351,  535 => 350,  533 => 349,  531 => 348,  529 => 347,  527 => 346,  525 => 345,  523 => 344,  520 => 342,  518 => 341,  516 => 340,  512 => 337,  510 => 336,  508 => 335,  506 => 334,  504 => 333,  502 => 332,  500 => 331,  498 => 330,  496 => 329,  491 => 325,  487 => 323,  481 => 321,  479 => 320,  470 => 314,  464 => 310,  452 => 261,  448 => 259,  445 => 258,  442 => 257,  439 => 256,  436 => 255,  433 => 254,  431 => 253,  427 => 251,  410 => 248,  406 => 247,  400 => 244,  391 => 240,  386 => 237,  380 => 235,  375 => 232,  363 => 229,  361 => 228,  357 => 227,  352 => 226,  349 => 225,  345 => 222,  342 => 199,  325 => 198,  317 => 192,  310 => 191,  307 => 190,  304 => 189,  301 => 188,  298 => 187,  295 => 186,  292 => 185,  289 => 184,  286 => 183,  284 => 182,  272 => 172,  269 => 168,  262 => 166,  246 => 163,  242 => 162,  236 => 159,  227 => 155,  222 => 152,  216 => 150,  211 => 147,  199 => 144,  197 => 143,  193 => 142,  188 => 141,  185 => 140,  181 => 137,  178 => 114,  160 => 113,  149 => 104,  125 => 60,  122 => 35,  120 => 34,  113 => 29,  110 => 14,  107 => 13,  104 => 12,  101 => 11,  98 => 10,  96 => 9,  93 => 8,  91 => 7,  78 => 5,  59 => 3,  36 => 1,);
  1039.     }
  1040.     public function getSourceContext()
  1041.     {
  1042.         return new Source("{% extends 'base.html.twig' %}
  1043. {% block title %}Biens{% endblock %}
  1044. {% block body %} 
  1045.     {% set headerContent = content('Biens', 'Header') %}
  1046.     {% if headerContent.picture is defined and headerContent.picture is not empty %}
  1047.         {% set backgroundImage = headerContent.picture[0].path %}
  1048.     {% else %}
  1049.         {% set backgroundImage = 'empty' %}
  1050.     {% endif %}
  1051.     {#
  1052.     <header class=\"header-tracol slider-home slider-not-home who-is bottom-right-border position-relative overflow-hidden to-right\" id=\"sliderHeader\"  style=\"background: url({% if backgroundImage == 'empty' %}'https://tracol.lu/uploads/images/residences-61c0b1dd3141b610699350.jpeg'{% else %}'/uploads/images/{{ backgroundImage }}'{% endif %}) center center no-repeat;background-size:cover;\">
  1053.         <div class=\"container-fluid\">
  1054.             <div id=\"header-habiter\" class=\"col-lg-8 mx-auto div-svg-header\">
  1055.                 <div class=\"header-habiter-div2\">
  1056.                     {% if headerContent.name is defined %}
  1057.                         <svg id=\"svg-habiter\" width=\"10\" height=\"16\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:avocode=\"https://avocode.com/\" viewBox=\"0 0 10 16\"><defs></defs><desc>Generated with Avocode.</desc><g><g><title>Tracé 76</title><path d=\"M9.08929,0.51465v0h-9.08929v0v14.77002v0l9.08929,-1.93109v0z\" fill=\"#f6a400\" fill-opacity=\"1\"></path></g></g></svg>
  1058.                         <h2 class=\"header-habiter-title col-lg-8\">{{ headerContent.name }}</h2>
  1059.                     {% endif %}
  1060.                 </div>
  1061.             </div>
  1062.         </div>
  1063.     </header>
  1064.     #}
  1065.     <div class=\"container-fluid\">
  1066.         {% set sectionContent1 = content('Biens', 'Section-1') %}
  1067.         {#
  1068.         <div class=\"col-lg-8 mx-auto div-svg-header pre-section\">
  1069.             <div class=\"col-lg-5 property-title\" style=\"font-size: 2.3em;display: flex;flex-direction: column;margin-left: 10px;\">
  1070.                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
  1071.                     <path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"/>
  1072.                 </svg>
  1073.                 {% if properties|length == 0 %}
  1074.                     <h1 class=\"lowercase-title\">Nous n'avons aucun bien correspondant Ã  votre recherche.</h1>
  1075.                 {% elseif properties|length == 1 %}
  1076.                     <h1 class=\"project-title\">{{ properties|length }} bien disponible</h1>
  1077.                 {% else %}
  1078.                     <h1 class=\"project-title\">{{properties|length }} biens disponibles</h1>
  1079.                 {% endif %}
  1080.             </div>
  1081.             <div class=\"separator\"></div>
  1082.             <div class=\"col-lg-6 pre-section-content\">
  1083.                 {% if sectionContent1.content is defined %}
  1084.                     {{ sectionContent1.content|raw }}
  1085.                 {% else %}
  1086.                     Que vous soyez un particulier ou un professionnel, que vous recherchiez un appartement, une maison, un bureau ou un commerce, nos Ã©quipes d’experts vous accompagnent tout au long de votre projet immobilier.
  1087.                 {% endif %}
  1088.             </div>
  1089.         </div>
  1090.         #}
  1091.         <section class=\"project\" style=\"margin-bottom: 120px; margin-top: 60px\">
  1092.             
  1093.             <div id=\"button-property-page\"  class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: flex; align-items: center; padding-left: 7px\">
  1094.                 <button data-id=\"all\" class=\"btn btn-primary all border-radius projectButton\"><span class=\"span-all\">TOUS</span></button>
  1095.                 <button data-id=\"sale\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">ACHAT</span></button>
  1096.                 <button data-id=\"rental\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">LOCATION</span></button>
  1097.             </div>
  1098.             <div id=\"button-property-page-mobile\" class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: none; align-items: center\">
  1099.                 <div id=\"flick3\" class=\"flicking-viewport\">
  1100.                     <div class=\"flicking-camera\">
  1101.                         <button data-id=\"all\" class=\"btn btn-primary all border-radius projectButton\"><span class=\"span-all\">TOUS</span></button>
  1102.                         <button data-id=\"sale\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">ACHAT</span></button>
  1103.                         <button data-id=\"rental\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">LOCATION</span></button>
  1104.                     </div>
  1105.                 </div>
  1106.             </div>
  1107.             <div class=\"col-lg-8 mx-auto div-svg-header deactive-tablet\" style=\"display: flex; flex-direction: column; justify-content: center\">
  1108.                 {#
  1109.                 <div style=\"display: flex; flex-direction: row; padding-left: 7px; align-items: center; margin-top: 15px;\">
  1110.                     <div id=\"filter-desktop\" class=\"filters-biens\">
  1111.                         {% for key, subType in getTypeProperties() %}
  1112.                             <button data-id=\"{{ key }}\" class=\"select-projet\">{{ subType }} <i class=\"fas fa-times\"></i></button>
  1113.                         {% endfor %}
  1114.                     </div>
  1115.                     <div id=\"filter-mobile\" class=\"col-lg-3 div-form selectSubFilter property\" style=\"display: none\">
  1116.                         <div class=\"input-group dropdown show\">
  1117.                             <label class=\"label-search-filter\" for=\"location\">Filtrer par Type</label>
  1118.                             <input style=\"height: 75px; width: 60px;\" type=\"text\" autocomplete=\"off\" name=\"filters\" id=\"filters\"
  1119.                                    class=\"form-control\" aria-expanded=\"false\">
  1120.                             <ul id=\"form-search-filter-ajax\" class=\"dropdown-menu form-search-filter-ajax\" aria-labelledby=\"\">
  1121.                                 {% for key, subType in getTypeProperties() %}
  1122.                                     <li value=\"{{ key }}\" data-id=\"{{ key }}\" class=\"select-filter\"><i class=\"fas fa-times\"></i>{{ subType }}</li>
  1123.                                 {% endfor %}
  1124.                             </ul>
  1125.                         </div>
  1126.                     </div>
  1127.                 </div>
  1128.                 #}
  1129.                 <div id=\"loading\">
  1130.                     <h1 id=\"showOutput\"></h1>
  1131.                 </div>
  1132.                 <div id=\"properties\" class=\"col-lg-12 mt-5\" style=\"display: flex; flex-wrap: wrap; flex-direction: row\">
  1133.                     {% for property in properties %}
  1134.                         <div  class=\"col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2\" style=\"cursor: pointer\">
  1135.                             {#
  1136.                             <div class=\"div-hover-2\" id=\"div-hover-2\" aria-haspopup=\"true\" style=\"position: absolute; bottom: 8px; left: 9px; background-color: #242424; color: white; width: 291px; height: 70px\">
  1137.                                                             {% if property.comments[0].comment is not empty %}
  1138.                                                                 <p class=\"project-content\">
  1139.                                                                     {{ property.comments[0].comment|slice(0, 350) }}</p>
  1140.                                                                 <a href=\"{{ path('property-detail', {'id': property.id}) }}\" class=\"project-arrow-2\">
  1141.                                                                     <span class=\"galerry-ref\"></span><i class=\"fas fa-arrow-right project-svg-arrow-2\"></i>
  1142.                                                                 </a>
  1143.                                                             {% else %}
  1144.                                                                 <a style=\"margin-top: 180px\" href=\"{{ path('property-detail', {'id': property.id}) }}\" class=\"project-arrow-2\">
  1145.                                                                     <span class=\"galerry-ref\"></span><i class=\"fas fa-arrow-right project-svg-arrow-2\"></i>
  1146.                                                                 </a>
  1147.                                                             {% endif %}
  1148.                                                         </div>
  1149.                                                         <div class=\"col-lg-3 properties-price-absolute\" style=\"background-color: #c48300; height: 56px;\">
  1150.                                                             <p style=\"font-size: 20px;\" class=\"properties-price\">
  1151.                                                                 {{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value ~  property.price.currency|replace({\"EUR\": \" â‚¬\"})  }}
  1152.                                                             </p>
  1153.                                                         </div>
  1154.                             #}
  1155.                             {# <div class=\"tag-ref-projet-2\"><span class=\"text-tag-ref\">{{ specialPropertyCategory(property.category) }}</span></div> #}
  1156.                             {% if property.pictures is not empty %}
  1157.                                 <div class=\"position-relative properties-slide slick-slide-single-{{ loop.index }}\" style=\"height:300px;\">
  1158.                                     {% for picture in property.pictures|slice(0,3) %}
  1159.                                         {#                                    <img class=\"img-100\" src=\"{{ picture.url }}\">#}
  1160.                                         <div class=\"img\" style=\"background-image: url('{{ picture.url }}')\"  onclick=\"location.href='{{ path('property-detail', {'id': property.id}) }}'\">
  1161.                                         </div>
  1162.                                     {% endfor %}
  1163.                                 </div>
  1164.                             {% else %}
  1165.                                 <div class=\"img\" style=\"background-image: url('{{ asset('build/Hudson_Ontario2.png') }}')\"></div>
  1166.                             {% endif %}
  1167.                             <div class=\"row col-md-12 justify-content-between\">
  1168.                                 <ul class=\"col-md-4 items\">
  1169.                                     <li class=\"item surface\">
  1170.                                        <img src=\"{{ asset('img/surface.svg') }}\" class=\"surface-logo\"> {{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }}
  1171.                                     </li>
  1172.                                 </ul>
  1173.                                 <div class=\"col-md-8 properties-price d-flex justify-content-end\">
  1174.                                     {{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value|number_format(2, ',', ' ') ~  property.price.currency|replace({\"EUR\": \" â‚¬\"})  }}
  1175.                                 </div>
  1176.                             </div>
  1177.                             <p class=\"city\">{{ property.city.name }}</p>
  1178.                             <p class=\"project-name\">{{ property.reference }}</p>
  1179.                         </div>
  1180.                     {% else %}
  1181.                         <h4>Aucun bien disponible avec ces critères</h4>
  1182.                     {% endfor %}
  1183.                 </div>
  1184.                 {#<div class=\"text-center text-capitalize more-projects\">
  1185.                     <p>AFFICHER PLUS DE BIENS</p>
  1186.                 </div>#}
  1187.             </div>
  1188.         </section>
  1189.         <section class=\"other-properties pt-5 pb-5\" style=\"background:#F7F7F7\">
  1190.             <div class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: flex; margin-top: 30px\">
  1191.                 <div class=\"col-lg-6\">
  1192.                     <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
  1193.                         <path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"></path>
  1194.                     </svg>
  1195.                     <h1 class=\"project-title\">
  1196.                         {% if app.request.attributes.get('_route_params')['keyword'] is defined %}
  1197.                             {% if app.request.attributes.get('_route_params')['keyword'] == 'location' %}
  1198.                                 {% set otherDispo = 'vente' %}
  1199.                             {% else %}
  1200.                                 {% set otherDispo = 'location' %}
  1201.                             {% endif %}
  1202.                         {% else %}
  1203.                             {% set otherDispo = null %}
  1204.                         {% endif %}
  1205.                         NOS biens disponibles<br> {% if otherDispo %}À la <span style=\"color:#F6A400\">{{ otherDispo }}</span>{% endif %}
  1206.                     </h1>
  1207.                 </div>
  1208.             </div>
  1209.             <div  class=\"col-lg-8 mx-auto\">
  1210.                 <div id=\"propertiesOther\" class=\"col-lg-12 mt-5 property-other-list\" style=\"display: flex; flex-wrap: wrap; flex-direction: row\">
  1211.                     {% for property in otherProperties %}
  1212.                         <div  class=\"col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2\" style=\"cursor: pointer\">
  1213.                             {#
  1214.                             <div class=\"div-hover-2\" id=\"div-hover-2\" aria-haspopup=\"true\" style=\"position: absolute; bottom: 8px; left: 9px; background-color: #242424; color: white; width: 291px; height: 70px\">
  1215.                                                             {% if property.comments[0].comment is not empty %}
  1216.                                                                 <p class=\"project-content\">
  1217.                                                                     {{ property.comments[0].comment|slice(0, 350) }}</p>
  1218.                                                                 <a href=\"{{ path('property-detail', {'id': property.id}) }}\" class=\"project-arrow-2\">
  1219.                                                                     <span class=\"galerry-ref\"></span><i class=\"fas fa-arrow-right project-svg-arrow-2\"></i>
  1220.                                                                 </a>
  1221.                                                             {% else %}
  1222.                                                                 <a style=\"margin-top: 180px\" href=\"{{ path('property-detail', {'id': property.id}) }}\" class=\"project-arrow-2\">
  1223.                                                                     <span class=\"galerry-ref\"></span><i class=\"fas fa-arrow-right project-svg-arrow-2\"></i>
  1224.                                                                 </a>
  1225.                                                             {% endif %}
  1226.                                                         </div>
  1227.                                                         <div class=\"col-lg-3 properties-price-absolute\" style=\"background-color: #c48300; height: 56px;\">
  1228.                                                             <p style=\"font-size: 20px;\" class=\"properties-price\">
  1229.                                                                 {{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value ~  property.price.currency|replace({\"EUR\": \" â‚¬\"})  }}
  1230.                                                             </p>
  1231.                                                         </div>
  1232.                             #}
  1233.                             {# <div class=\"tag-ref-projet-2\"><span class=\"text-tag-ref\">{{ specialPropertyCategory(property.category) }}</span></div> #}
  1234.                             {% if property.pictures is not empty %}
  1235.                                 <div class=\"position-relative properties-slide slick-slide-single-{{ loop.index }}\">
  1236.                                     {% for picture in property.pictures|slice(0,3) %}
  1237.                                         {#                                    <img class=\"img-100\" src=\"{{ picture.url }}\">#}
  1238.                                         <div class=\"img\" style=\"background-image: url('{{ picture.url }}')\"  onclick=\"location.href='{{ path('property-detail', {'id': property.id}) }}'\">
  1239.                                         </div>
  1240.                                     {% endfor %}
  1241.                                 </div>
  1242.                             {% else %}
  1243.                                 <div class=\"img\" style=\"background-image: url('{{ asset('build/Hudson_Ontario2.png') }}')\"></div>
  1244.                             {% endif %}
  1245.                             <div class=\"row col-md-12 justify-content-between infos-list\">
  1246.                                 <ul class=\"col-md-4 items\">
  1247.                                     <li class=\"item surface\">
  1248.                                         <img src=\"{{ asset('img/surface.svg') }}\" class=\"surface-logo\"> {{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }}
  1249.                                     </li>
  1250.                                 </ul>
  1251.                                 <div class=\"col-md-8 properties-price d-flex justify-content-end\">
  1252.                                     {{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value|number_format(2, ',', ' ') ~  property.price.currency|replace({\"EUR\": \" â‚¬\"})  }}
  1253.                                 </div>
  1254.                             </div>
  1255.                             <p class=\"city\">{{ property.city.name }}</p>
  1256.                             <p class=\"project-name\">{{ property.reference }}</p>
  1257.                         </div>
  1258.                     {% endfor %}
  1259.                 </div>
  1260.                 {% set paramUrl = app.request.get('keyword') %}
  1261.                 {% if app.request.get('keyword') == 'location' %}
  1262.                     {% set paramUrl = 'vente' %}
  1263.                 {% elseif app.request.get('keyword') == 'vente' %}
  1264.                     {% set paramUrl = 'location' %}
  1265.                 {% endif %}
  1266.                 <div id=\"link-none\" class=\"col-lg-12 mx-auto other-property-link div-svg-header d-flex justify-content-end\">
  1267.                     <div>
  1268.                         <a id=\"link-none-a d-flex\" class=\"property-span-arrow\" href=\"{{ path('properties', {'keyword': paramUrl}) }}\">Découvrir plus
  1269.                             <svg class=\"svg-inline--fa fa-arrow-right fa-w-14 property-arrow\" aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"arrow-right\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\" data-fa-i2svg=\"\"><path fill=\"currentColor\" d=\"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z\"></path></svg><!-- <i class=\"fas fa-arrow-right property-arrow\"></i> Font Awesome fontawesome.com -->
  1270.                         </a>
  1271.                     </div>
  1272.                 </div>
  1273.             </div>
  1274.         </section>
  1275.         {#
  1276.         <section style=\"margin-bottom: 80px; margin-top: 150px;\">
  1277.             <div class=\"col-lg-8 mx-auto div-svg-header\">
  1278.                 {% set sectionContent1 = content('Biens', 'Section-2') %}
  1279.                 <div id=\"habiter-content-id\" class=\"col-lg-6 habiter-content\">
  1280.                     <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
  1281.                         <path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"/>
  1282.                     </svg>
  1283.                     <div class=\"col-lg-7\">
  1284.                         <h1 class=\"habiter-title mb-5\">
  1285.                             {% if sectionContent1.name is defined %}
  1286.                                 {{ sectionContent1.name }}
  1287.                             {% else %}
  1288.                                 HABITER AU LUXEMBOURG
  1289.                             {% endif %}
  1290.                         </h1>
  1291.                         {% if sectionContent1.content is defined %}
  1292.                             {{ sectionContent1.content|raw }}
  1293.                         {% else %}
  1294.                             Vous avez découvert l’appartement ou la maison de vos rêves ? Parfait ! En achetant au Luxembourg vous pouvez bénéficier de plusieurs avantages fiscaux.
  1295.                         {% endif %}
  1296.                     </div>
  1297.                 </div>
  1298.                 <div id=\"display-none-mobile\" class=\"col-lg-6 habiter-img\">
  1299.                     {% if sectionContent1.picture is defined %}
  1300.                         <img id=\"img-property-section\" class=\"img-100\" src=\"/uploads/images/{{ sectionContent1.picture[0].path }}\">
  1301.                     {% else %}
  1302.                         <img id=\"img-property-section\" class=\"img-100\" src=\"https://tracol.lu/uploads/images/millebierg-6194cb6331d44212004123.png\">
  1303.                     {% endif %}
  1304.                 </div>
  1305.             </div>
  1306.             <div id=\"link-none\" class=\"col-lg-8 mx-auto div-svg-header\">
  1307.                 <div style=\"display: flex; align-content: center\">
  1308.                     <a id=\"link-none-a\" class=\"property-span-arrow\" href=\"{{ path('habiter') }}\">Découvrir les avantages
  1309.                         <i class=\"fas fa-arrow-right property-arrow\"></i>
  1310.                     </a>
  1311.                 </div>
  1312.             </div>
  1313.         </section>
  1314.         #}
  1315.     </div>
  1316.     <div id=\"img-property-section\" class=\"container-fluid\" style=\"display: none\">
  1317.         <div id=\"link-ok\" class=\"col-lg-3\" style=\"display: flex; align-content: center\">
  1318.             <a class=\"property-span-arrow\" href=\"{{ path('habiter') }}\">Découvrir les avantages
  1319.                 <i class=\"fas fa-arrow-right property-arrow\"></i>
  1320.             </a>
  1321.         </div>
  1322.         <div class=\"col-lg-6 habiter-img\">
  1323.             {% if sectionContent1.picture is defined %}
  1324.                 <img style=\"padding: 0px;\"  class=\"img-100\" src=\"/uploads/images/{{ sectionContent1.picture[0].path }}\">
  1325.             {% else %}
  1326.                 <img style=\"padding: 0px;\"  class=\"img-100\" src=\"https://tracol.lu/uploads/images/millebierg-6194cb6331d44212004123.png\">
  1327.             {% endif %}
  1328.         </div>
  1329.     </div>
  1330.     <script>
  1331.         {#const slideNextHeader = document.getElementById('slideNextHeader');#}
  1332.         {#const slidePreviousHeader = document.getElementById('slidePreviousHeader');#}
  1333.         {#const propertiesCity = document.getElementsByClassName('properties-city')#}
  1334.         {#const propertiesArea = document.getElementsByClassName('properties-area')#}
  1335.         {#const propertiesReference = document.getElementsByClassName('properties-reference')#}
  1336.         {#const propertiesPrice = document.getElementsByClassName('properties-price')#}
  1337.         {#const propertiesLink = document.getElementsByClassName('properties-link')#}
  1338.         {#const currentFigure = document.getElementsByClassName('current-figure')#}
  1339.         {#const lastFigure = document.getElementsByClassName('last-figure')#}
  1340.         {#let slideHeader = document.getElementById('sliderHeader');#}
  1341.         {#let positionHeader = 0;#}
  1342.         {#let positionThumbHeader = 1;#}
  1343.         {#arraySlidesHeader = [#}
  1344.         {#    {#}
  1345.         {#        'position': 1,#}
  1346.         {#        'img': '{{ saleProperties[0].pictures[0].url }}',#}
  1347.         {#        'city': '{{ saleProperties[0].city.name }}',#}
  1348.         {#        'area': '{{ saleProperties[0].area.value == null ? '' : saleProperties[0].area.value ~ areaConversion(saleProperties[0].area.unit) }}',#}
  1349.         {#        'reference': '{{ saleProperties[0].reference }}',#}
  1350.         {#        'price':  '{{ saleProperties[0].price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : saleProperties[0].price.value ~  saleProperties[0].price.currency|replace({\"EUR\": \" â‚¬\"})  }}',#}
  1351.         {#        'link': '{{ path('property-detail', {'id': saleProperties[0].id}) }}',#}
  1352.         {#        'dot': 'dot1'#}
  1353.         {#    },#}
  1354.         {#    {#}
  1355.         {#        'position': 2,#}
  1356.         {#        'img': '{{ saleProperties[1].pictures[0].url }}',#}
  1357.         {#        'city': '{{ saleProperties[1].city.name }}',#}
  1358.         {#        'area': '{{ saleProperties[1].area.value == null ? '' : saleProperties[1].area.value ~ areaConversion(saleProperties[1].area.unit) }}',#}
  1359.         {#        'reference': '{{ saleProperties[1].reference }}',#}
  1360.         {#        'price':  '{{ saleProperties[1].price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : saleProperties[1].price.value ~  saleProperties[1].price.currency|replace({\"EUR\": \" â‚¬\"})  }}',#}
  1361.         {#        'link': '{{ path('property-detail', {'id': saleProperties[1].id}) }}',#}
  1362.         {#        'dot': 'dot2'#}
  1363.         {#    },#}
  1364.         {#    {#}
  1365.         {#        'position': 3,#}
  1366.         {#        'img': '{{ saleProperties[2].pictures[0].url }}',#}
  1367.         {#        'city': '{{ saleProperties[2].city.name }}',#}
  1368.         {#        'area': '{{ saleProperties[2].area.value == null ? '' : saleProperties[2].area.value ~ areaConversion(saleProperties[2].area.unit) }}',#}
  1369.         {#        'reference': '{{ saleProperties[2].reference }}',#}
  1370.         {#        'price':  '{{ saleProperties[2].price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : saleProperties[2].price.value ~  saleProperties[2].price.currency|replace({\"EUR\": \" â‚¬\"})  }}',#}
  1371.         {#        'link': '{{ path('property-detail', {'id': saleProperties[2].id}) }}',#}
  1372.         {#        'dot': 'dot3'#}
  1373.         {#    },#}
  1374.         {#];#}
  1375.         {#slidePreviousHeader.addEventListener('click', () => {#}
  1376.         {#    if (arraySlidesHeader.length < (positionThumbHeader  + 1)) {#}
  1377.         {#        positionHeader = 0;#}
  1378.         {#        positionThumbHeader = 1;#}
  1379.         {#    } else {#}
  1380.         {#        positionHeader++;#}
  1381.         {#        positionThumbHeader++;#}
  1382.         {#    }#}
  1383.         {#    slideHeader.style.background =  `url(\${arraySlidesHeader[positionHeader].img})no-repeat center`;#}
  1384.         {#    propertiesCity[0].innerHTML = arraySlidesHeader[positionHeader].city#}
  1385.         {#    propertiesArea[0].innerHTML = arraySlidesHeader[positionHeader].area#}
  1386.         {#    propertiesReference[0].innerHTML = arraySlidesHeader[positionHeader].reference#}
  1387.         {#    propertiesPrice[0].innerHTML = arraySlidesHeader[positionHeader].price#}
  1388.         {#    propertiesLink[0].setAttribute('href', arraySlidesHeader[positionHeader].link)#}
  1389.         {#    currentFigure[0].innerHTML = '0'+positionThumbHeader#}
  1390.         {#    slideHeader.style.backgroundSize = `cover`;#}
  1391.         {#});#}
  1392.         {#slideNextHeader.addEventListener('click', () => {#}
  1393.         {#    if (positionThumbHeader === 1) {#}
  1394.         {#        positionHeader = (arraySlidesHeader.length - 1);#}
  1395.         {#        positionThumbHeader = arraySlidesHeader.length;#}
  1396.         {#    } else {#}
  1397.         {#        positionHeader = positionHeader - 1;#}
  1398.         {#        positionThumbHeader = positionThumbHeader - 1;#}
  1399.         {#    }#}
  1400.         {#    slideHeader.style.background =  `url(\${arraySlidesHeader[positionHeader].img})no-repeat center`;#}
  1401.         {#    propertiesCity[0].innerHTML = arraySlidesHeader[positionHeader].city#}
  1402.         {#    propertiesArea[0].innerHTML = arraySlidesHeader[positionHeader].area#}
  1403.         {#    propertiesReference[0].innerHTML = arraySlidesHeader[positionHeader].reference#}
  1404.         {#    propertiesPrice[0].innerHTML = arraySlidesHeader[positionHeader].price#}
  1405.         {#    currentFigure[0].innerHTML = '0'+positionThumbHeader#}
  1406.         {#    slideHeader.style.backgroundSize = `cover`;#}
  1407.         {#});#}
  1408.         const futurProjects = document.getElementById('properties')
  1409.         let buttons = document.getElementsByClassName('projectButton')
  1410.         for (const eElement of buttons) {
  1411.             eElement.addEventListener('click', function (e) {
  1412.                 e.preventDefault()
  1413.                 for (let button of buttons) {
  1414.                     if (button.classList.contains('all')){
  1415.                         button.classList.remove('all')
  1416.                         button.classList.add('come')
  1417.                         button.querySelector('span').classList.replace('span-all', 'span-projects')
  1418.                     }
  1419.                 }
  1420.                 eElement.classList.remove('come')
  1421.                 eElement.classList.add('all')
  1422.                 eElement.querySelector('span').classList.replace('span-projects', 'span-all')
  1423.                 fetch('properties/display/'+this.dataset.id, {
  1424.                     method: 'GET',
  1425.                 })
  1426.                     .then(response => response.json())
  1427.                     .then(data => {
  1428.                         futurProjects.innerHTML = ''
  1429.                         futurProjects.innerHTML = data.data
  1430.                         _ww = \$(window).width();
  1431.                         var lightbox = \$('.lightbox'),
  1432.                             item = 0;
  1433.                         \$('.lightbox-on').click(function(e){
  1434.                             e.stopPropagation();
  1435.                             item = 0;
  1436.                             console.log('click btn');
  1437.                             var id = \$(this).attr('data-id'),
  1438.                                 max = 0;
  1439.                             \$('#'+id).toggle();
  1440.                             \$('#'+id).animate({opacity: 1}, 300);
  1441.                             \$('#'+id).find('img').each(function( i ) {
  1442.                                 //console.log('h : '+\$(this).height());
  1443.                                 //console.log('w : '+\$(this).width());
  1444.                                 max = i;
  1445.                                 item = 1;
  1446.                                 counter(item, max+1);
  1447.                                 itemWidth(\$(this));
  1448.                             });
  1449.                         });
  1450.                         lightbox.click(function(e) {
  1451.                             e.stopPropagation();
  1452.                             \$(this).animate({opacity: 0}, 300, function(){
  1453.                                 \$(this).toggle();
  1454.                             });
  1455.                         });
  1456.                         \$('.closer').on('click', function (e) {
  1457.                             e.stopPropagation();
  1458.                             \$(this).parent().animate(
  1459.                                 {opacity: 0},
  1460.                                 300,
  1461.                                 function(){
  1462.                                     \$(this).toggle();
  1463.                                 }
  1464.                             );
  1465.                         });
  1466.                         function itemWidth(img){
  1467.                             img.closest('.items').width(img.width());
  1468.                         }
  1469.                         function counter(item, max){
  1470.                             \$('.counter').text(item + ' / ' + max);
  1471.                         }
  1472.                         \$('.item', lightbox).on('click, swipeleft', function (e) {
  1473.                             var wd = \$(this).width(),
  1474.                                 last = \$(this).parent().find('.item').last(),
  1475.                                 img = \$(this).find('.img');
  1476.                             itemWidth(img);
  1477.                             \$(this).animate(
  1478.                                 {marginLeft: -wd, opacity: 0},
  1479.                                 500,
  1480.                                 'swing',
  1481.                                 function(){
  1482.                                     \$(this).insertAfter(last);
  1483.                                     \$(this).css({marginLeft: 0, opacity: 1});
  1484.                                 }
  1485.                             );
  1486.                         });
  1487.                         \$('.item', lightbox).on('swiperight', function (e) {
  1488.                             var wd = \$(this).width(),
  1489.                                 first = \$(this).parent().find('.item').first(),
  1490.                                 last = \$(this).parent().find('.item').last(),
  1491.                                 img = \$(this).find('.img');
  1492.                             itemWidth(img);
  1493.                             \$(last).insertBefore(\$(this));
  1494.                             \$(last).css({marginLeft: -wd, opacity: 0});
  1495.                             \$(this).parent().find('.item').eq(0).animate(
  1496.                                 {marginLeft: 0, opacity: 1},
  1497.                                 500,
  1498.                                 'swing'
  1499.                             );
  1500.                         });
  1501.                         \$('.arrows', lightbox).on('click', function (e) {
  1502.                             e.stopPropagation();
  1503.                             var wd = \$(this).siblings('.items').find('.item').eq(0).width(),
  1504.                                 max = \$(this)
  1505.                                     .siblings('.items').find('.item').length,
  1506.                                 first = \$(this).siblings('.items').find('.item').first(),
  1507.                                 last = \$(this).siblings('.items').find('.item').last(),
  1508.                                 isRight = \$(this).hasClass('right'),
  1509.                                 marginL = isRight ? -wd : 0,
  1510.                                 marginL0 = isRight ? 0: -wd,
  1511.                                 opacOn = isRight ? 1 : 0,
  1512.                                 opacOff = isRight ? 0 : 1;
  1513.                             if (!isRight){
  1514.                                 \$(last).insertBefore(first);
  1515.                                 \$(last).css({marginLeft: -wd, opacity: 0});
  1516.                                 item++;
  1517.                                 if (item == max+1) {item = 1};
  1518.                             } else {
  1519.                                 item--;
  1520.                                 if (item == 0) {item = max};
  1521.                             };
  1522.                             counter(item, max);
  1523.                             var img = \$(this).siblings('.items').find('.item').eq(0).find('.img');
  1524.                             itemWidth(img);
  1525.                             \$(this).siblings('.items').find('.item').eq(1).animate(
  1526.                                 {opacity: opacOn},
  1527.                                 500,
  1528.                                 'swing');
  1529.                             \$(this).siblings('.items').find('.item').eq(0).animate(
  1530.                                 {marginLeft: marginL, opacity: 1},
  1531.                                 500,
  1532.                                 'swing',
  1533.                                 function(){
  1534.                                     if (isRight){
  1535.                                         \$(this).insertAfter(last);
  1536.                                         \$(this).css({ marginLeft: 0, opacity: 1});
  1537.                                     }
  1538.                                 }
  1539.                             );
  1540.                         });
  1541.                         if (_ww > 768){
  1542.                             \$('.div-img-hover-2').hover(function (e) {
  1543.                                 \$(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  1544.                                 var htext = \$(this).find('.project-content').height();
  1545.                                 if (htext == undefined){htext = 0};
  1546.                                 \$(this).find('.div-hover-2').animate({height : htext+180}, 150);
  1547.                                 \$(this).find('.project-content').css({'visibility': 'visible'});
  1548.                                 \$(this).find('.project-content').animate({opacity: 1}, 150);
  1549.                             }, function() {
  1550.                                 console.log('down');
  1551.                                 \$(this).find('.div-hover-2').animate({height : 85}, 150);
  1552.                                 \$(this).find('.project-arrow-2').animate({opacity: 0}, 150);
  1553.                                 \$(this).find('.project-content').animate({opacity: 0}, 150, function(){
  1554.                                     \$(this).find('.project-content').css({'visibility': 'hidden'});
  1555.                                 });
  1556.                             });
  1557.                         } else {
  1558.                             \$('.div-img-hover-2').on( \"tap\", function( event ) {
  1559.                                 console.log('tap tap');
  1560.                                 var opened = \$(this).find('.div-hover-2').hasClass('open'),
  1561.                                     ht = opened ? 85 : '100%',
  1562.                                     vis = opened ? 0 : 1;
  1563.                                 \$(this).find('.div-hover-2').toggleClass('open');
  1564.                                 \$(this).find('.div-hover-2').animate({height : ht}, 150);
  1565.                                 \$(this).find('.project-arrow-2').animate({opacity: vis}, 150);
  1566.                             });
  1567.                         }
  1568.                     })
  1569.                     .catch((error) => {
  1570.                         console.error('Error:', error);
  1571.                     });
  1572.             })
  1573.         }
  1574.         if (window.matchMedia(\"(max-width: 768px)\").matches) {
  1575.             new Flicking(\"#flick3\", {
  1576.                 moveType: \"freeScroll\",
  1577.                 bound: true
  1578.             });
  1579.         }
  1580.         if (window.matchMedia(\"(max-width: 768px)\").matches) {
  1581.             const test = document.getElementsByClassName('select-filter')
  1582.             for (const testElement of test) {
  1583.                 testElement.addEventListener('click', function (e) {
  1584.                     e.preventDefault()
  1585.                     testElement.classList.toggle('select-projet-active')
  1586.                     const infos = document.querySelector('.projectButton.all')
  1587.                     const dataId = []
  1588.                     const tests = document.querySelectorAll('.select-filter.select-projet-active')
  1589.                     for (const test1 of tests) {
  1590.                         dataId.push(parseFloat(test1.dataset.id))
  1591.                     }
  1592.                     fetch('properties/display/'+infos.dataset.id+'/params/' + JSON.stringify(dataId), {
  1593.                         method: 'GET',
  1594.                     })
  1595.                         .then(response => response.json())
  1596.                         .then(data => {
  1597.                             futurProjects.innerHTML = data.data
  1598.                         })
  1599.                         .catch((error) => {
  1600.                             console.error('Error:', error);
  1601.                         });
  1602.                 })
  1603.             }
  1604.         } else {
  1605.             const test = document.getElementsByClassName('select-projet')
  1606.             const textOutput = document.querySelector(\"#showOutput\");
  1607.             for (const testElement of test) {
  1608.                 testElement.addEventListener('click', function (e) {
  1609.                     displayLoading()
  1610.                     e.preventDefault()
  1611.                     testElement.classList.toggle('select-projet-active')
  1612.                     const infos = document.querySelector('.projectButton.all')
  1613.                     const dataId = []
  1614.                     const tests = document.querySelectorAll('.select-projet.select-projet-active')
  1615.                     for (const test1 of tests) {
  1616.                         dataId.push(parseFloat(test1.dataset.id))
  1617.                     }
  1618.                     fetch('properties/display/'+infos.dataset.id+'/params/' + JSON.stringify(dataId), {
  1619.                         method: 'GET'
  1620.                     })
  1621.                         .then(response => response.json())
  1622.                         .then(data => {
  1623.                             hideLoading()
  1624.                             futurProjects.innerHTML = data.data
  1625.                             _ww = \$(window).width();
  1626.                             var lightbox = \$('.lightbox'),
  1627.                                 item = 0;
  1628.                             \$('.lightbox-on').click(function(e){
  1629.                                 e.stopPropagation();
  1630.                                 item = 0;
  1631.                                 console.log('click btn');
  1632.                                 var id = \$(this).attr('data-id'),
  1633.                                     max = 0;
  1634.                                 \$('#'+id).toggle();
  1635.                                 \$('#'+id).animate({opacity: 1}, 300);
  1636.                                 \$('#'+id).find('img').each(function( i ) {
  1637.                                     //console.log('h : '+\$(this).height());
  1638.                                     //console.log('w : '+\$(this).width());
  1639.                                     max = i;
  1640.                                     item = 1;
  1641.                                     counter(item, max+1);
  1642.                                     itemWidth(\$(this));
  1643.                                 });
  1644.                             });
  1645.                             lightbox.click(function(e) {
  1646.                                 e.stopPropagation();
  1647.                                 \$(this).animate({opacity: 0}, 300, function(){
  1648.                                     \$(this).toggle();
  1649.                                 });
  1650.                             });
  1651.                             \$('.closer').on('click', function (e) {
  1652.                                 e.stopPropagation();
  1653.                                 \$(this).parent().animate(
  1654.                                     {opacity: 0},
  1655.                                     300,
  1656.                                     function(){
  1657.                                         \$(this).toggle();
  1658.                                     }
  1659.                                 );
  1660.                             });
  1661.                             function itemWidth(img){
  1662.                                 img.closest('.items').width(img.width());
  1663.                             }
  1664.                             function counter(item, max){
  1665.                                 \$('.counter').text(item + ' / ' + max);
  1666.                             }
  1667.                             \$('.item', lightbox).on('click, swipeleft', function (e) {
  1668.                                 var wd = \$(this).width(),
  1669.                                     last = \$(this).parent().find('.item').last(),
  1670.                                     img = \$(this).find('.img');
  1671.                                 itemWidth(img);
  1672.                                 \$(this).animate(
  1673.                                     {marginLeft: -wd, opacity: 0},
  1674.                                     500,
  1675.                                     'swing',
  1676.                                     function(){
  1677.                                         \$(this).insertAfter(last);
  1678.                                         \$(this).css({marginLeft: 0, opacity: 1});
  1679.                                     }
  1680.                                 );
  1681.                             });
  1682.                             \$('.item', lightbox).on('swiperight', function (e) {
  1683.                                 var wd = \$(this).width(),
  1684.                                     first = \$(this).parent().find('.item').first(),
  1685.                                     last = \$(this).parent().find('.item').last(),
  1686.                                     img = \$(this).find('.img');
  1687.                                 itemWidth(img);
  1688.                                 \$(last).insertBefore(\$(this));
  1689.                                 \$(last).css({marginLeft: -wd, opacity: 0});
  1690.                                 \$(this).parent().find('.item').eq(0).animate(
  1691.                                     {marginLeft: 0, opacity: 1},
  1692.                                     500,
  1693.                                     'swing'
  1694.                                 );
  1695.                             });
  1696.                             \$('.arrows', lightbox).on('click', function (e) {
  1697.                                 e.stopPropagation();
  1698.                                 var wd = \$(this).siblings('.items').find('.item').eq(0).width(),
  1699.                                     max = \$(this)
  1700.                                         .siblings('.items').find('.item').length,
  1701.                                     first = \$(this).siblings('.items').find('.item').first(),
  1702.                                     last = \$(this).siblings('.items').find('.item').last(),
  1703.                                     isRight = \$(this).hasClass('right'),
  1704.                                     marginL = isRight ? -wd : 0,
  1705.                                     marginL0 = isRight ? 0: -wd,
  1706.                                     opacOn = isRight ? 1 : 0,
  1707.                                     opacOff = isRight ? 0 : 1;
  1708.                                 if (!isRight){
  1709.                                     \$(last).insertBefore(first);
  1710.                                     \$(last).css({marginLeft: -wd, opacity: 0});
  1711.                                     item++;
  1712.                                     if (item == max+1) {item = 1};
  1713.                                 } else {
  1714.                                     item--;
  1715.                                     if (item == 0) {item = max};
  1716.                                 };
  1717.                                 counter(item, max);
  1718.                                 var img = \$(this).siblings('.items').find('.item').eq(0).find('.img');
  1719.                                 itemWidth(img);
  1720.                                 \$(this).siblings('.items').find('.item').eq(1).animate(
  1721.                                     {opacity: opacOn},
  1722.                                     500,
  1723.                                     'swing');
  1724.                                 \$(this).siblings('.items').find('.item').eq(0).animate(
  1725.                                     {marginLeft: marginL, opacity: 1},
  1726.                                     500,
  1727.                                     'swing',
  1728.                                     function(){
  1729.                                         if (isRight){
  1730.                                             \$(this).insertAfter(last);
  1731.                                             \$(this).css({ marginLeft: 0, opacity: 1});
  1732.                                         }
  1733.                                     }
  1734.                                 );
  1735.                             });
  1736.                             if (_ww > 768){
  1737.                                 \$('.div-img-hover-2').hover(function (e) {
  1738.                                     \$(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  1739.                                     var htext = \$(this).find('.project-content').height();
  1740.                                     if (htext == undefined){htext = 0};
  1741.                                     \$(this).find('.div-hover-2').animate({height : htext+180}, 150);
  1742.                                     \$(this).find('.project-content').css({'visibility': 'visible'});
  1743.                                     \$(this).find('.project-content').animate({opacity: 1}, 150);
  1744.                                 }, function() {
  1745.                                     console.log('down');
  1746.                                     \$(this).find('.div-hover-2').animate({height : 85}, 150);
  1747.                                     \$(this).find('.project-arrow-2').animate({opacity: 0}, 150);
  1748.                                     \$(this).find('.project-content').animate({opacity: 0}, 150, function(){
  1749.                                         \$(this).find('.project-content').css({'visibility': 'hidden'});
  1750.                                     });
  1751.                                 });
  1752.                             } else {
  1753.                                 \$('.div-img-hover-2').on( \"tap\", function( event ) {
  1754.                                     console.log('tap tap');
  1755.                                     var opened = \$(this).find('.div-hover-2').hasClass('open'),
  1756.                                         ht = opened ? 85 : '100%',
  1757.                                         vis = opened ? 0 : 1;
  1758.                                     \$(this).find('.div-hover-2').toggleClass('open');
  1759.                                     \$(this).find('.div-hover-2').animate({height : ht}, 150);
  1760.                                     \$(this).find('.project-arrow-2').animate({opacity: vis}, 150);
  1761.                                 });
  1762.                             }
  1763.                             \$('.div-hover').hover(function (e) {
  1764.                                 \$(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  1765.                             }, function() {
  1766.                                 \$(this).find('.project-arrow-2').animate({opacity: 0}, 50);
  1767.                             });
  1768.                         })
  1769.                         .catch((error) => {
  1770.                         });
  1771.                 })
  1772.             }
  1773.         }
  1774.         const filter = document.getElementById('filters')
  1775.         const filterElement = document.getElementById('form-search-filter-ajax')
  1776.         filter.addEventListener('click', function (e) {
  1777.             e.preventDefault()
  1778.             filterElement.classList.toggle('show')
  1779.         })
  1780.         const loader = document.querySelector(\"#loading\");
  1781.         function displayLoading() {
  1782.             loader.classList.add(\"display\");
  1783.             // to stop loading after some time
  1784.             setTimeout(() => {
  1785.                 loader.classList.remove(\"display\");
  1786.             }, 5000);
  1787.         }
  1788.         // hiding loading
  1789.         function hideLoading() {
  1790.             loader.classList.remove(\"display\");
  1791.         }
  1792.     </script>
  1793.     <script>
  1794.         const arrowPrev = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
  1795.                                 <path id=\"np_arrow-up_888648_000000\" d=\"M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z\" transform=\"translate(7.985) rotate(90)\" fill=\"#fff\"/>
  1796.                             </svg>`;
  1797.         const arrowNext= `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
  1798.                             <path id=\"np_arrow-up_888648_000000\" d=\"M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z\" transform=\"translate(7.985) rotate(90)\" fill=\"#fff\"/>
  1799.                         </svg>`;
  1800.         var countProperties = '{{ properties|length }}';
  1801.         var loopProp = 1;
  1802.         while (loopProp <= countProperties) {
  1803.             if (window.innerWidth > 768) {
  1804.                 \$('.slick-slide-single-'+loopProp).slick({
  1805.                     'slidesToShow': 1,
  1806.                     'prevArrow': `<div class=\"arrow-left square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowPrev}</div>`,
  1807.                     'nextArrow': `<div class=\"arrow-right square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowNext}</div>`
  1808.                 });
  1809.             }
  1810.             loopProp++;
  1811.         }
  1812.     </script>
  1813. {% endblock %}
  1814. ""property.html.twig""/home/juca-stage/sites/sym/tracol/templates/property.html.twig");
  1815.     }
  1816. }