<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* search_properties/popups/_send-a-message.html.twig */
class __TwigTemplate_d355f6a88bfb3c0798edbd917ade93ba5787311ca0796ae4e208d3c13f55f201 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$macros["_self"] = $this->macros["_self"] = $this;
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "search_properties/popups/_send-a-message.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "search_properties/popups/_send-a-message.html.twig"));
// line 1
$macros["macros"] = $this->macros["macros"] = $this->loadTemplate("search_properties/_macros.twig", "search_properties/popups/_send-a-message.html.twig", 1)->unwrap();
// line 2
echo "
";
// line 10
echo "
<transition name='slide-left'>
<div class='align-self-bottom mt-auto w-392' ref='send-a-message' v-if=\"currentPopup === 'send-a-message'\">
";
// line 13
$context["snippet"] = $this->extensions['Sulu\Bundle\SnippetBundle\Twig\SnippetAreaTwigExtension']->loadByArea("offer_area");
// line 14
echo " ";
if (( !(null === ($context["snippet"] ?? null)) && !(null === twig_get_attribute($this->env, $this->source, ($context["snippet"] ?? null), "content", [], "any", false, false, false, 14)))) {
// line 15
echo " <div class='bg-white box-shadow contact-form offers-container py-32 p-r' @click.stop>
<button @click=\"closePopup\" type='button' aria-label='";
// line 16
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("close")), "html", null, true);
echo "' class='button-reset top-right px-16 py-16'>
<svg width=\"12\" height=\"12\">
<use xlink:href='#close-12'/>
</svg>
</button>
<h3 class='t-caption-medium mb-16'>";
// line 21
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["snippet"] ?? null), "content", [], "any", false, false, false, 21), "title", [], "any", false, false, false, 21), "html", null, true);
echo "</h3>
<div class='border-top mb-24'></div>
<async-form action=\"";
// line 24
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("submitForm");
echo "\" method=\"POST\" data-focus-first-invalid v-slot='{ isDisabled }'>
<p class='t-p-medium mb-32'>";
// line 25
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["snippet"] ?? null), "content", [], "any", false, false, false, 25), "descriptionsingle", [], "any", false, false, false, 25), "html", null, true);
echo "</p>
<div>
<div class='mb-16'>
";
// line 29
echo twig_call_macro($macros["macros"], "macro_input", [["label" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["snippet"] ?? null), "content", [], "any", false, false, false, 29), "firstname", [], "any", false, false, false, 29), "name" => "first-name", "required" => true]], 29, $context, $this->getSourceContext());
echo "
</div>
<div class='mb-16'>
";
// line 32
echo twig_call_macro($macros["macros"], "macro_input", [["label" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["snippet"] ?? null), "content", [], "any", false, false, false, 32), "lastname", [], "any", false, false, false, 32), "name" => "last-name", "required" => true]], 32, $context, $this->getSourceContext());
echo "
</div>
<div class='mb-16'>
";
// line 35
echo twig_call_macro($macros["macros"], "macro_input", [["label" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["snippet"] ?? null), "content", [], "any", false, false, false, 35), "email", [], "any", false, false, false, 35), "name" => "email", "required" => true, "type" => "email"]], 35, $context, $this->getSourceContext());
echo "
</div>
<div class='mb-16'>
";
// line 38
echo twig_call_macro($macros["macros"], "macro_input", [["label" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["snippet"] ?? null), "content", [], "any", false, false, false, 38), "phone", [], "any", false, false, false, 38), "name" => "phone", "required" => true, "type" => "tel"]], 38, $context, $this->getSourceContext());
echo "
</div>
<div class='mb-16'>
";
// line 41
echo twig_call_macro($macros["macros"], "macro_input", [["label" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["snippet"] ?? null), "content", [], "any", false, false, false, 41), "message", [], "any", false, false, false, 41), "name" => "message", "textarea" => true]], 41, $context, $this->getSourceContext());
echo "
</div>
</div>
<div class='grid-x'>
<div class='small-8 cell'>
<button class='py-16 w-100 button-reset text-center o-h t-label-regular bg-dark-blue c-white mb-16' :disabled='isDisabled' :class='{\"o-04\": isDisabled}'>
";
// line 48
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Envoyer")), "html", null, true);
echo "
</button>
</div>
</div>
";
// line 53
echo twig_call_macro($macros["_self"], "macro_protectedByCaptcha", [], 53, $context, $this->getSourceContext());
echo "
<input type='hidden' name='reference' :value='detail ? detail.ref : \"\"'/>
";
// line 55
if (twig_get_attribute($this->env, $this->source, ($context["detail"] ?? null), "isForRent", [], "any", false, false, false, 55)) {
// line 56
echo " <input type=\"hidden\" name=\"address\" :value='detail ? detail.rentAddress : \"\"'/>
";
} elseif ( !twig_get_attribute($this->env, $this->source, // line 57
($context["detail"] ?? null), "isForRent", [], "any", false, false, false, 57)) {
// line 58
echo " <input type=\"hidden\" name=\"address\" :value='detail ? detail.buyAddress : \"\"'/>
";
}
// line 60
echo " <input type=\"hidden\" name=\"price\" :value='detail ? detail.price : \"\"'/>
<input type='hidden' name='emailBroker' :value='currentContactPerson.email'/>
<input type='hidden' name='isRent' :value='detail.isForRent'/>
</async-form>
</div>
";
} else {
// line 66
echo " <h4 class=\"alert alert-danger\" style=\"color:red\">
Form offer Snippet is not Defined
</h4>
";
}
// line 70
echo " </div>
</transition>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function macro_protectedByCaptcha(...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "protectedByCaptcha"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "protectedByCaptcha"));
// line 4
echo " <p class='t-small'>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ce site est protégé par reCAPTCHA et par la"), "html", null, true);
echo "
<a href='https://policies.google.com/privacy' class='c-accent-blue' target='_blank' rel='noopener noreferrer'>";
// line 5
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("politique de confidentialité"), "html", null, true);
echo "</a>
";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("et les"), "html", null, true);
echo "
<a href='https://policies.google.com/terms' class='c-accent-blue' target='_blank' rel='noopener noreferrer'>";
// line 7
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("conditions d'utilisation de Google"), "html", null, true);
echo "</a>
</p>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
public function getTemplateName()
{
return "search_properties/popups/_send-a-message.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 202 => 7, 198 => 6, 194 => 5, 189 => 4, 171 => 3, 159 => 70, 153 => 66, 145 => 60, 141 => 58, 139 => 57, 136 => 56, 134 => 55, 129 => 53, 121 => 48, 111 => 41, 105 => 38, 99 => 35, 93 => 32, 87 => 29, 80 => 25, 76 => 24, 70 => 21, 62 => 16, 59 => 15, 56 => 14, 54 => 13, 49 => 10, 46 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("{% import 'search_properties/_macros.twig' as macros %}
{% macro protectedByCaptcha() %}
<p class='t-small'>{{'Ce site est protégé par reCAPTCHA et par la' | trans}}
<a href='https://policies.google.com/privacy' class='c-accent-blue' target='_blank' rel='noopener noreferrer'>{{'politique de confidentialité' | trans}}</a>
{{'et les' | trans}}
<a href='https://policies.google.com/terms' class='c-accent-blue' target='_blank' rel='noopener noreferrer'>{{\"conditions d'utilisation de Google\" | trans}}</a>
</p>
{% endmacro %}
<transition name='slide-left'>
<div class='align-self-bottom mt-auto w-392' ref='send-a-message' v-if=\"currentPopup === 'send-a-message'\">
{% set snippet = sulu_snippet_load_by_area('offer_area') %}
{% if snippet is not null and snippet.content is not null %}
<div class='bg-white box-shadow contact-form offers-container py-32 p-r' @click.stop>
<button @click=\"closePopup\" type='button' aria-label='{{'close'|trans|capitalize}}' class='button-reset top-right px-16 py-16'>
<svg width=\"12\" height=\"12\">
<use xlink:href='#close-12'/>
</svg>
</button>
<h3 class='t-caption-medium mb-16'>{{snippet.content.title}}</h3>
<div class='border-top mb-24'></div>
<async-form action=\"{{path('submitForm')}}\" method=\"POST\" data-focus-first-invalid v-slot='{ isDisabled }'>
<p class='t-p-medium mb-32'>{{snippet.content.descriptionsingle}}</p>
<div>
<div class='mb-16'>
{{macros.input({label: snippet.content.firstname, name: 'first-name', required: true})}}
</div>
<div class='mb-16'>
{{macros.input({label: snippet.content.lastname, name: 'last-name', required: true})}}
</div>
<div class='mb-16'>
{{macros.input({label: snippet.content.email, name: 'email', required: true, type: 'email'})}}
</div>
<div class='mb-16'>
{{macros.input({label: snippet.content.phone, name: 'phone', required: true, type: 'tel'})}}
</div>
<div class='mb-16'>
{{macros.input({label: snippet.content.message, name: 'message', textarea: true })}}
</div>
</div>
<div class='grid-x'>
<div class='small-8 cell'>
<button class='py-16 w-100 button-reset text-center o-h t-label-regular bg-dark-blue c-white mb-16' :disabled='isDisabled' :class='{\"o-04\": isDisabled}'>
{{'Envoyer'|trans|capitalize}}
</button>
</div>
</div>
{{_self.protectedByCaptcha()}}
<input type='hidden' name='reference' :value='detail ? detail.ref : \"\"'/>
{% if detail.isForRent %}
<input type=\"hidden\" name=\"address\" :value='detail ? detail.rentAddress : \"\"'/>
{% elseif not detail.isForRent%}
<input type=\"hidden\" name=\"address\" :value='detail ? detail.buyAddress : \"\"'/>
{% endif %}
<input type=\"hidden\" name=\"price\" :value='detail ? detail.price : \"\"'/>
<input type='hidden' name='emailBroker' :value='currentContactPerson.email'/>
<input type='hidden' name='isRent' :value='detail.isForRent'/>
</async-form>
</div>
{% else %}
<h4 class=\"alert alert-danger\" style=\"color:red\">
Form offer Snippet is not Defined
</h4>
{% endif %}
</div>
</transition>
", "search_properties/popups/_send-a-message.html.twig", "/home/clients/6069f7d890ad1893915d376cf7e5b903/var/www/bn-invest-commercial/templates/search_properties/popups/_send-a-message.html.twig");
}
}