<?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;
/* Map/page.html.twig */
class __TwigTemplate_a28a045d3be3f3299f645cdfe29370c8 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'metaDescription' => [$this, 'block_metaDescription'],
'stylesheet' => [$this, 'block_stylesheet'],
'preconnect' => [$this, 'block_preconnect'],
'name_page' => [$this, 'block_name_page'],
'mainContainer' => [$this, 'block_mainContainer'],
'javascripts' => [$this, 'block_javascripts'],
'modal' => [$this, 'block_modal'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "grid.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Map/page.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Map/page.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Map/page.html.twig"));
$this->parent = $this->loadTemplate("grid.html.twig", "Map/page.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 4
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaTitle(), "html", null, true);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 7
public function block_metaDescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
// line 8
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaDescription(), "html", null, true);
echo "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 11
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 12
echo " ";
$this->displayParentBlock("stylesheet", $context, $blocks);
echo "
";
// line 14
echo "
<style>
.ymaps-2-1-79-balloon__close+.ymaps-2-1-79-balloon__content {
margin-right: 0!important;
padding: 0!important;
}
.map-wrap {
width: 100%;
height: 700px;
border-radius: 20px;
overflow: hidden;
}
.map-model__info .info-title {
color: #fff;
font-size: 16px;
line-height: 19px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.map-model__info .info-phone {
padding-top: 5px;
}
[class\$=\"-balloon-pane\"] ymaps {
box-shadow: none !important;
border: none !important;
background: #000;
border-radius: 12px;
}
.map-model__info .info-phone .phone {
color: #ed0c34;
font-size: 14px;
font-weight: 700;
line-height: 16px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.map-model__info .info-phone span {
color: #ffb800;
font-size: 14px;
line-height: 16px;
}
.map-model-widget .map-model__info .info-phone span em,
.map-model__info .info-phone span em {
color: grey;
font-size: 12px;
font-style: normal;
line-height: 14px;
}
[class\$=\"-balloon-pane\"] .ymaps-2-1-79-balloon__close-button {
border-radius: 20px;
}
[class\$=\"-balloon-pane\"] .ymaps-2-1-79-balloon__tail {
border-radius: 0;
}
[class\$=\"-balloon-pane\"] .map-model__images img {
border-radius: 12px;
}
[class\$=-balloon__close] {
position: absolute !important;
right: 0;
}
[class\$=-balloon__close] [class\$=-balloon__close-button] {
height: 25px;
position: relative;
width: 25px;
}
[class\$=-balloon__close] [class\$=-balloon__close-button]:before {
background: #000;
bottom: 0;
content: \"\";
filter: invert(1);
height: 2px;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
transform: rotate(45deg);
width: 70%;
}
[class\$=-balloon__close] [class\$=-balloon__close-button]:after {
background: #000;
bottom: 0;
content: \"\";
filter: invert(1);
height: 2px;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
transform: rotate(-45deg);
width: 70%;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 118
public function block_preconnect($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preconnect"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preconnect"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preconnect"));
// line 119
echo "\t";
$this->displayParentBlock("preconnect", $context, $blocks);
echo "
\t<link rel=\"preconnect\" href=\"https://yastatic.net\">
\t<link rel=\"preconnect\" href=\"https://api-maps.yandex.ru\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 124
public function block_name_page($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "name_page"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "name_page"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "name_page"));
echo "map";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 126
public function block_mainContainer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
// line 127
echo " ";
if ((array_key_exists("city", $context) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 127, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 127), "latitude", [], "any", false, false, false, 127))) {
// line 128
echo " ";
$context["lat"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 128, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 128), "latitude", [], "any", false, false, false, 128);
// line 129
echo " ";
$context["lon"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 129, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 129), "longitude", [], "any", false, false, false, 129);
// line 130
echo " ";
} else {
// line 131
echo " ";
$context["lat"] = "55.753215";
// line 132
echo " ";
$context["lon"] = "37.622504";
// line 133
echo " ";
}
// line 134
echo " <h1 class=\"border-line\">Интим карта</h1>
<p class=\"mb-lg-4\">
На карте обозначено местоположение зарегистрированных анкет.
Кликнув на маркер Вы узнаете краткую информацию о девушке.
</p>
<div class=\"map p-2 p-md-3 p-lg-4 mb-3 mb-md-4\">
<div class=\"d-flex justify-content-center justify-content-md-between mb-2 mb-md-3 mb-lg-4\">
<button class=\"btn btn-secondary btn-collapse-filter\" type=\"button\" id=\"filter-expand\">
<svg class=\"icon mr-1\">
<use xlink:href=\"";
// line 143
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets_domain/images/icons/svg-library.svg", "nodomainConfig"), "html", null, true);
echo "#icon-dropdown\"></use>
</svg>
Расширенный поиск
</button>
<div class=\"d-flex align-items-center collapse-reset ml-2\">
<span class=\"d-none d-md-block\" id=\"count-parameters\">Выбрано <em data-count-parameters>0</em> параметров</span>
<button class=\"btn btn-secondary btn-collapse-reset ml-md-2\" id=\"reset-form-2\" data-reset>
<svg class=\"icon mr-1\">
<use xlink:href=\"";
// line 151
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets_domain/images/icons/svg-library.svg", "nodomainConfig"), "html", null, true);
echo "#icon-reset\"></use>
</svg>
Сброс
</button>
</div>
</div>
<div id=\"collapseFilterContainer\"></div>
\t\t<div class=\"map-wrap skeleton skeleton--map loading\" id=\"map-wrap\"></div>
";
// line 179
echo " </div>
<svg class=\"d-none\" xmlns=\"http://www.w3.org/2000/svg\">
\t\t<symbol id=\"selfie\" viewBox=\"0 0 18 18\">
<path d=\"M12.75.75C13.99.75 15 1.75 15 3v12c0 1.24-1 2.25-2.25 2.25h-7.5C4.01 17.25 3 16.25 3 15V3C3 1.76 4 .75 5.25.75zm-7.5 1.5A.75.75 0 0 0 4.5 3v12c0 .41.34.75.75.75h7.5c.41 0 .75-.34.75-.75V3a.75.75 0 0 0-.75-.75zm3.76 10.5a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5m2.69-3.6a.75.75 0 0 1 0 1.5H6.3a.75.75 0 0 1 0-1.5zM9 3.75a2.55 2.55 0 1 1 0 5.1 2.55 2.55 0 0 1 0-5.1m0 1.5a1.05 1.05 0 1 0 0 2.1 1.05 1.05 0 0 0 0-2.1\"/>
\t</symbol>
\t\t<symbol id=\"video\" viewBox=\"0 0 18 19\">
<path d=\"M17.6 4.58c.24.13.4.39.4.67v7.5a.75.75 0 0 1-1.19.61l-5.25-3.75a.75.75 0 0 1 0-1.22l5.25-3.75a.8.8 0 0 1 .78-.06M13.28 9l3.21 2.3V6.7z\"/><path d=\"M2.25 4.5a.75.75 0 0 0-.75.75v7.5c0 .41.34.75.75.75h8.25c.41 0 .75-.34.75-.75v-7.5a.75.75 0 0 0-.75-.75zM0 5.25C0 4.01 1 3 2.25 3h8.25c1.24 0 2.25 1 2.25 2.25v7.5c0 1.24-1 2.25-2.25 2.25H2.25C1.01 15 0 14 0 12.75z\"/>
\t</symbol>
\t\t<symbol id=\"comment\" viewBox=\"0 0 18 19\">
<path fill-rule=\"evenodd\" d=\"M3.75 3a.75.75 0 0 0-.75.75v10.19l1.72-1.72a.8.8 0 0 1 .53-.22h9a.75.75 0 0 0 .75-.75v-7.5a.75.75 0 0 0-.75-.75zm-1.6-.84c.43-.42 1-.66 1.6-.66h10.5a2.25 2.25 0 0 1 2.25 2.25v7.5a2.25 2.25 0 0 1-2.25 2.25H5.56l-2.78 2.78a.75.75 0 0 1-1.28-.53v-12c0-.6.24-1.17.66-1.6\" clip-rule=\"evenodd\"/>
\t</symbol>
</svg>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 195
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 196
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
\t";
// line 198
if ((array_key_exists("city", $context) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 198, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 198), "latitude", [], "any", false, false, false, 198))) {
// line 199
echo "\t\t";
$context["lat"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 199, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 199), "latitude", [], "any", false, false, false, 199);
// line 200
echo "\t\t";
$context["lon"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 200, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 200), "longitude", [], "any", false, false, false, 200);
// line 201
echo "\t";
} else {
// line 202
echo "\t\t";
$context["lat"] = "55.753215";
// line 203
echo "\t\t";
$context["lon"] = "37.622504";
// line 204
echo "\t";
}
// line 205
echo "
\t<script src=\"";
// line 206
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/fosjsrouting/js/router.min.js"), "html", null, true);
echo "\" defer></script>
\t<script src=\"";
// line 207
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
echo "\" defer></script>
\t<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU&onload=initMap&ns=ym\" defer></script>
\t<script>
window.mapConfig = {
\t\t\tid:\"map-wrap\",
\t\t\tmultiple_cities:\"";
// line 213
echo twig_escape_filter($this->env, (isset($context["multipleCities"]) || array_key_exists("multipleCities", $context) ? $context["multipleCities"] : (function () { throw new RuntimeError('Variable "multipleCities" does not exist.', 213, $this->source); })()), "html", null, true);
echo "\",
\t\t\troutes_url: \"";
// line 214
echo ((((isset($context["multipleCities"]) || array_key_exists("multipleCities", $context) ? $context["multipleCities"] : (function () { throw new RuntimeError('Variable "multipleCities" does not exist.', 214, $this->source); })()) == 0)) ? ("/js/fos_js_routes.json") : ("/js/fos_js_routes_city_prefixed.json"));
echo "\",
\t\t\tcity_uri_identity:\"";
// line 215
echo twig_escape_filter($this->env, (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity", $context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.', 215, $this->source); })()), "html", null, true);
echo "\",
\t\t\tcity_latitude:\"";
// line 216
echo twig_escape_filter($this->env, (isset($context["lat"]) || array_key_exists("lat", $context) ? $context["lat"] : (function () { throw new RuntimeError('Variable "lat" does not exist.', 216, $this->source); })()), "html", null, true);
echo "\",
\t\t\tcity_longitude:\"";
// line 217
echo twig_escape_filter($this->env, (isset($context["lon"]) || array_key_exists("lon", $context) ? $context["lon"] : (function () { throw new RuntimeError('Variable "lon" does not exist.', 217, $this->source); })()), "html", null, true);
echo "\",
\t\t\tlocale:\"";
// line 218
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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.', 218, $this->source); })()), "request", [], "any", false, false, false, 218), "locale", [], "any", false, false, false, 218), "html", null, true);
echo "\",
\t\t\tpath:\"";
// line 219
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("map.filter", ["city" => (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity", $context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.', 219, $this->source); })())]), "html", null, true);
echo "\",
\t\t\tdetail: \"";
// line 220
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("map.detail", ["city" => (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity", $context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.', 220, $this->source); })())]), "html", null, true);
echo "\",
\t\t\t";
// line 237
echo "
\t\t\tmap_marker_cluster: '";
// line 238
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/mapMarker_g__cluster.svg")), "html", null, true);
echo "',
\t\t\tmap_marker_cluster_hover: '";
// line 239
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/mapMarker_g__cluster_hover.svg")), "html", null, true);
echo "',
\t\t\tmap_marker_build: '";
// line 240
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/mapMarker_b__build.svg")), "html", null, true);
echo "',
\t\t\tmap_marker_opened: '";
// line 241
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/mapMarker_b__hover_opened.svg")), "html", null, true);
echo "',
\t\t\tmap_marker_ready: '";
// line 242
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/mapMarker_g__ready.svg")), "html", null, true);
echo "',
\t\t\tmap_marker_ready_hover: '";
// line 243
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/mapMarker_g__ready_hover.svg")), "html", null, true);
echo "',
\t\t\t";
// line 245
echo "
\t\t\tavatar_path : \"";
// line 246
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl("replace_path", "profile_media_avatar", "200x280", "jpg"), "html", null, true);
echo "\",
\t\t\tphoto_path : \"";
// line 247
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl("replace_path", "profile_media", "200x280", "jpg"), "html", null, true);
echo "\",
\t\t\tthumb_path : \"";
// line 248
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ResponsiveAssetExtension']->getResponsiveImageUrl("replace_path", "saloon_media_thumb", "200x280", "jpg"), "html", null, true);
echo "\",
\t\t\tprocess_profile_shows_url : \"";
// line 249
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("map.increment_profile_shows", (((isset($context["multipleCities"]) || array_key_exists("multipleCities", $context) ? $context["multipleCities"] : (function () { throw new RuntimeError('Variable "multipleCities" does not exist.', 249, $this->source); })())) ? (["city" => (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity", $context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.', 249, $this->source); })())]) : ([]))), "html", null, true);
echo "\"
\t\t};
\t\twindow.map_filters = {
\t\t\tmap_center: [";
// line 253
echo twig_escape_filter($this->env, (isset($context["lat"]) || array_key_exists("lat", $context) ? $context["lat"] : (function () { throw new RuntimeError('Variable "lat" does not exist.', 253, $this->source); })()), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, (isset($context["lon"]) || array_key_exists("lon", $context) ? $context["lon"] : (function () { throw new RuntimeError('Variable "lon" does not exist.', 253, $this->source); })()), "html", null, true);
echo "]
\t\t};
\t\twindow.isMapInitialized = false;
\t\twindow.isYMapLoaded = false;
function initMap() {
\t\t\twindow.ymaps = ym;
\t\t\t";
// line 267
echo "\t\t\twindow.isMapInitialized = true;
\t\t\twindow.isYMapLoaded = true;
\t\t}
\t\twindow.profileShowed = function ({id}) {
\t\t\tif (!id) return;
\t\t\tfetch('";
// line 274
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_ctr.increase_shows");
echo "', {
\t\t\t\tmethod: \"POST\",
\t\t\t\tbody: JSON.stringify({ profiles: [id], source: 'map' }),
\t\t\t});
\t\t}
window.stations = {";
// line 281
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\StationsExtension']->stations());
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["station"], "id", [], "any", false, false, false, 281), "html", null, true);
echo ":{icon:`";
$this->loadTemplate("components/metro/icon_generate.partial.twig", "Map/page.html.twig", 281)->display(twig_array_merge($context, ["data" => $this->extensions['App\Twig\StationsExtension']->stationLines($context["station"])]));
echo "`,name:`";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["station"], "name", [], "any", false, false, false, 281), "html", null, true);
echo "`},";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 282
echo "};
document.addEventListener('DOMContentLoaded', function () {
\t\t\tfunction loadForm() {
\t\t\t\tfetch('";
// line 286
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("map.form", ["city" => (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity", $context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.', 286, $this->source); })())]), "html", null, true);
echo "', {
\t\t\t\t\tmode: \"cors\",
\t\t\t\t\timportance: \"low\",
\t\t\t\t\tmethod: \"POST\",
\t\t\t\t\theaders: {
\t\t\t\t\t\t\"Content-Type\": \"application/x-www-form-urlencoded\",
\t\t\t\t\t\t\"X-Requested-With\": \"XMLHttpRequest\"
\t\t\t\t\t},
\t\t\t\t}).then(response => {
\t\t\t\t\tif (response.status < 300) {
\t\t\t\t\t\treturn response.text();
\t\t\t\t\t} else {
\t\t\t\t\t\tconsole.warn(\"🤔\");
\t\t\t\t\t\treturn null;
\t\t\t\t\t}
\t\t\t\t}).then(response => {
\t\t\t\t\tdocument.getElementById('collapseFilterContainer').innerHTML = response;
\t\t\t\t\tdocument.dispatchEvent(new Event('form-html-load'));
\t\t\t\t\tfilterLoader();
\t\t\t\t});
\t\t\t}
\t\t\tloadForm();
\t\t\tfunction filterLoader() {
\t\t\t\tconst stringifyData = `{\"city_id\":\"\${document.getElementById('filter_map_form_city_id').value}\",\"_token\":\"\${document.getElementById('filter_map_form__token').value}\",\"scale\":12}`;
\t\t\t\tfetch(\"";
// line 312
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("map.filter", ["city" => (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity", $context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.', 312, $this->source); })())]), "html", null, true);
echo "\", {
\t\t\t\t\tmethod: \"POST\",
\t\t\t\t\theaders: {
\t\t\t\t\t\t'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
\t\t\t\t\t\t'X-Requested-With': 'XMLHttpRequest',
\t\t\t\t\t},
\t\t\t\t\tbody: new URLSearchParams({ form: stringifyData, scale: 12 }).toString(),
\t\t\t\t})
\t\t\t\t\t.then(response => response.json())
\t\t\t\t\t.then(data => {
\t\t\t\t\t\tconst mapLoadedInterval = setInterval(()=>{
\t\t\t\t\t\t\tif (window.isYMapLoaded) {
\t\t\t\t\t\t\t\tdocument.dispatchEvent(new CustomEvent('map:data:loaded', { detail: { data, stringifyData, mapConfig: window.mapConfig } }));
\t\t\t\t\t\t\t\tclearInterval(mapLoadedInterval)
\t\t\t\t\t\t\t}
\t\t\t\t\t\t}, 200)
\t\t\t\t\t})
\t\t\t\t\t.catch(error => console.error(error));
\t\t\t}
\t\t});
\t</script>
";
// line 335
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("scripts/map-page-2026", null, "basicConfig");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 338
public function block_modal($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modal"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modal"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modal"));
// line 339
$this->displayParentBlock("modal", $context, $blocks);
// line 340
echo twig_include($this->env, $context, "components/modals/map-filter.html.twig");
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Map/page.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 707 => 340, 705 => 339, 692 => 338, 676 => 335, 651 => 312, 622 => 286, 616 => 282, 581 => 281, 572 => 274, 563 => 267, 550 => 253, 543 => 249, 539 => 248, 535 => 247, 531 => 246, 528 => 245, 524 => 243, 520 => 242, 516 => 241, 512 => 240, 508 => 239, 504 => 238, 501 => 237, 496 => 220, 492 => 219, 488 => 218, 484 => 217, 480 => 216, 476 => 215, 472 => 214, 468 => 213, 459 => 207, 455 => 206, 452 => 205, 449 => 204, 446 => 203, 443 => 202, 440 => 201, 437 => 200, 434 => 199, 432 => 198, 426 => 196, 413 => 195, 387 => 179, 374 => 151, 363 => 143, 352 => 134, 349 => 133, 346 => 132, 343 => 131, 340 => 130, 337 => 129, 334 => 128, 331 => 127, 318 => 126, 293 => 124, 275 => 119, 262 => 118, 147 => 14, 142 => 12, 129 => 11, 113 => 8, 100 => 7, 84 => 4, 71 => 3, 42 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'grid.html.twig' %}
{% block title %}
{{ seo_title() }}
{% endblock %}
{% block metaDescription %}
<meta name=\"description\" content=\"{{ seo_description() }}\">
{% endblock %}
{% block stylesheet %}
{{ parent() }}
{# <link rel=\"stylesheet\" href=\"//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css\"> #}
<style>
.ymaps-2-1-79-balloon__close+.ymaps-2-1-79-balloon__content {
margin-right: 0!important;
padding: 0!important;
}
.map-wrap {
width: 100%;
height: 700px;
border-radius: 20px;
overflow: hidden;
}
.map-model__info .info-title {
color: #fff;
font-size: 16px;
line-height: 19px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.map-model__info .info-phone {
padding-top: 5px;
}
[class\$=\"-balloon-pane\"] ymaps {
box-shadow: none !important;
border: none !important;
background: #000;
border-radius: 12px;
}
.map-model__info .info-phone .phone {
color: #ed0c34;
font-size: 14px;
font-weight: 700;
line-height: 16px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.map-model__info .info-phone span {
color: #ffb800;
font-size: 14px;
line-height: 16px;
}
.map-model-widget .map-model__info .info-phone span em,
.map-model__info .info-phone span em {
color: grey;
font-size: 12px;
font-style: normal;
line-height: 14px;
}
[class\$=\"-balloon-pane\"] .ymaps-2-1-79-balloon__close-button {
border-radius: 20px;
}
[class\$=\"-balloon-pane\"] .ymaps-2-1-79-balloon__tail {
border-radius: 0;
}
[class\$=\"-balloon-pane\"] .map-model__images img {
border-radius: 12px;
}
[class\$=-balloon__close] {
position: absolute !important;
right: 0;
}
[class\$=-balloon__close] [class\$=-balloon__close-button] {
height: 25px;
position: relative;
width: 25px;
}
[class\$=-balloon__close] [class\$=-balloon__close-button]:before {
background: #000;
bottom: 0;
content: \"\";
filter: invert(1);
height: 2px;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
transform: rotate(45deg);
width: 70%;
}
[class\$=-balloon__close] [class\$=-balloon__close-button]:after {
background: #000;
bottom: 0;
content: \"\";
filter: invert(1);
height: 2px;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
transform: rotate(-45deg);
width: 70%;
}
</style>
{% endblock %}
{% block preconnect %}
\t{{ parent() }}
\t<link rel=\"preconnect\" href=\"https://yastatic.net\">
\t<link rel=\"preconnect\" href=\"https://api-maps.yandex.ru\">
{% endblock %}
{% block name_page %}map{% endblock %}
{% block mainContainer %}
{% if city is defined and city.mapCoordinate.latitude %}
{% set lat = city.mapCoordinate.latitude %}
{% set lon = city.mapCoordinate.longitude %}
{% else %}
{% set lat = '55.753215' %}
{% set lon = '37.622504' %}
{% endif %}
<h1 class=\"border-line\">Интим карта</h1>
<p class=\"mb-lg-4\">
На карте обозначено местоположение зарегистрированных анкет.
Кликнув на маркер Вы узнаете краткую информацию о девушке.
</p>
<div class=\"map p-2 p-md-3 p-lg-4 mb-3 mb-md-4\">
<div class=\"d-flex justify-content-center justify-content-md-between mb-2 mb-md-3 mb-lg-4\">
<button class=\"btn btn-secondary btn-collapse-filter\" type=\"button\" id=\"filter-expand\">
<svg class=\"icon mr-1\">
<use xlink:href=\"{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-dropdown\"></use>
</svg>
Расширенный поиск
</button>
<div class=\"d-flex align-items-center collapse-reset ml-2\">
<span class=\"d-none d-md-block\" id=\"count-parameters\">Выбрано <em data-count-parameters>0</em> параметров</span>
<button class=\"btn btn-secondary btn-collapse-reset ml-md-2\" id=\"reset-form-2\" data-reset>
<svg class=\"icon mr-1\">
<use xlink:href=\"{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-reset\"></use>
</svg>
Сброс
</button>
</div>
</div>
<div id=\"collapseFilterContainer\"></div>
\t\t<div class=\"map-wrap skeleton skeleton--map loading\" id=\"map-wrap\"></div>
{# <div class=\"map-wrap loading\" id=\"map-wrap\">
<img src=\"{{ asset('assets/images/preloader.svg','basicConfig') }}\" class=\"preloader\" id=\"preloader\" style=\"display: none;\" />
<div class=\"map\" id=\"map\" style=\"width: 100%; height: 700px;\"
data-multiple-cities=\"{{ multipleCities }}\"
data-city-uri-idenity=\"{{ cityUriIdentity }}\"
data-city-latitude=\"{{ lat }}\"
data-city-longitude=\"{{ lon }}\"
data-locale=\"{{ app.request.locale }}\"
data-path=\"{{ path('map.filter', {city:cityUriIdentity}) }}\"
data-icon-single=\"islands#redIcon\"
data-icon-saloon=\"islands#violetIcon\"
data-icon-cluster=\"islands#invertedRedClusterIcons\"
\t\t\t\tdata-avatar-path = \"{{ responsive_asset('replace-path', 'profile_media_avatar', \"200x280\", \"jpg\") }}\"
data-photo-path = \"{{ responsive_asset('replace-path', 'profile_media', \"200x280\", \"jpg\") }}\"
data-thumb-path = \"{{ responsive_asset('replace-path', 'saloon_media_thumb', \"200x280\", \"jpg\") }}\"
data-process-profile-shows-url = \"{{ path('map.increment_profile_shows', multipleCities ? {city:cityUriIdentity} : {}) }}\"
></div>
</div> #}
</div>
<svg class=\"d-none\" xmlns=\"http://www.w3.org/2000/svg\">
\t\t<symbol id=\"selfie\" viewBox=\"0 0 18 18\">
<path d=\"M12.75.75C13.99.75 15 1.75 15 3v12c0 1.24-1 2.25-2.25 2.25h-7.5C4.01 17.25 3 16.25 3 15V3C3 1.76 4 .75 5.25.75zm-7.5 1.5A.75.75 0 0 0 4.5 3v12c0 .41.34.75.75.75h7.5c.41 0 .75-.34.75-.75V3a.75.75 0 0 0-.75-.75zm3.76 10.5a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5m2.69-3.6a.75.75 0 0 1 0 1.5H6.3a.75.75 0 0 1 0-1.5zM9 3.75a2.55 2.55 0 1 1 0 5.1 2.55 2.55 0 0 1 0-5.1m0 1.5a1.05 1.05 0 1 0 0 2.1 1.05 1.05 0 0 0 0-2.1\"/>
\t</symbol>
\t\t<symbol id=\"video\" viewBox=\"0 0 18 19\">
<path d=\"M17.6 4.58c.24.13.4.39.4.67v7.5a.75.75 0 0 1-1.19.61l-5.25-3.75a.75.75 0 0 1 0-1.22l5.25-3.75a.8.8 0 0 1 .78-.06M13.28 9l3.21 2.3V6.7z\"/><path d=\"M2.25 4.5a.75.75 0 0 0-.75.75v7.5c0 .41.34.75.75.75h8.25c.41 0 .75-.34.75-.75v-7.5a.75.75 0 0 0-.75-.75zM0 5.25C0 4.01 1 3 2.25 3h8.25c1.24 0 2.25 1 2.25 2.25v7.5c0 1.24-1 2.25-2.25 2.25H2.25C1.01 15 0 14 0 12.75z\"/>
\t</symbol>
\t\t<symbol id=\"comment\" viewBox=\"0 0 18 19\">
<path fill-rule=\"evenodd\" d=\"M3.75 3a.75.75 0 0 0-.75.75v10.19l1.72-1.72a.8.8 0 0 1 .53-.22h9a.75.75 0 0 0 .75-.75v-7.5a.75.75 0 0 0-.75-.75zm-1.6-.84c.43-.42 1-.66 1.6-.66h10.5a2.25 2.25 0 0 1 2.25 2.25v7.5a2.25 2.25 0 0 1-2.25 2.25H5.56l-2.78 2.78a.75.75 0 0 1-1.28-.53v-12c0-.6.24-1.17.66-1.6\" clip-rule=\"evenodd\"/>
\t</symbol>
</svg>
{% endblock %}
{% block javascripts %}
{{ parent() }}
\t{% if city is defined and city.mapCoordinate.latitude %}
\t\t{% set lat = city.mapCoordinate.latitude %}
\t\t{% set lon = city.mapCoordinate.longitude %}
\t{% else %}
\t\t{% set lat = '55.753215' %}
\t\t{% set lon = '37.622504' %}
\t{% endif %}
\t<script src=\"{{ asset('bundles/fosjsrouting/js/router.min.js') }}\" defer></script>
\t<script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\" defer></script>
\t<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU&onload=initMap&ns=ym\" defer></script>
\t<script>
window.mapConfig = {
\t\t\tid:\"map-wrap\",
\t\t\tmultiple_cities:\"{{ multipleCities }}\",
\t\t\troutes_url: \"{{ multipleCities == 0 ? '/js/fos_js_routes.json' : '/js/fos_js_routes_city_prefixed.json' }}\",
\t\t\tcity_uri_identity:\"{{ cityUriIdentity }}\",
\t\t\tcity_latitude:\"{{ lat }}\",
\t\t\tcity_longitude:\"{{ lon }}\",
\t\t\tlocale:\"{{ app.request.locale }}\",
\t\t\tpath:\"{{ path('map.filter', {city:cityUriIdentity}) }}\",
\t\t\tdetail: \"{{ path('map.detail', {city:cityUriIdentity}) }}\",
\t\t\t{# icon_profile:\"{{ asset('assets/images/map/profile.svg') }}\",
\t\t\ticon_profile_active:\"{{ asset('assets/images/map/profile-active.svg') }}\",
\t\t\ticon_profile_hover:\"{{ asset('assets/images/map/profile-hover.svg') }}\",
\t\t\ticon_saloon:\"{{ asset('assets/images/map/saloon.svg') }}\",
\t\t\ticon_saloon_active:\"{{ asset('assets/images/map/saloon-active.svg') }}\",
\t\t\ticon_saloon_hover:\"{{ asset('assets/images/map/saloon-hover.svg') }}\",
\t\t\ticon_masseur:\"{{ asset('assets/images/map/masseur.svg') }}\",
\t\t\ticon_masseur_active:\"{{ asset('assets/images/map/masseur-active.svg') }}\",
\t\t\ticon_masseur_hover:\"{{ asset('assets/images/map/masseur-hover.svg') }}\",
\t\t\ticon_cluster_small:\"{{ asset('assets/images/map/cluster-small.svg') }}\",
\t\t\ticon_cluster_medium:\"{{ asset('assets/images/map/cluster-medium.svg') }}\",
\t\t\ticon_cluster_big:\"{{ asset('assets/images/map/cluster-big.svg') }}\", #}
\t\t\tmap_marker_cluster: '{{ absolute_url(asset('assets/images/map/mapMarker_g__cluster.svg')) }}',
\t\t\tmap_marker_cluster_hover: '{{ absolute_url(asset('assets/images/map/mapMarker_g__cluster_hover.svg')) }}',
\t\t\tmap_marker_build: '{{ absolute_url(asset('assets/images/map/mapMarker_b__build.svg')) }}',
\t\t\tmap_marker_opened: '{{ absolute_url(asset('assets/images/map/mapMarker_b__hover_opened.svg')) }}',
\t\t\tmap_marker_ready: '{{ absolute_url(asset('assets/images/map/mapMarker_g__ready.svg')) }}',
\t\t\tmap_marker_ready_hover: '{{ absolute_url(asset('assets/images/map/mapMarker_g__ready_hover.svg')) }}',
\t\t\t{# map_marker_transparent: '{{ absolute_url(asset(\"assets/images/map/transparent_1px.png\")) }}', #}
\t\t\tavatar_path : \"{{ responsive_asset('replace_path', 'profile_media_avatar', \"200x280\", \"jpg\") }}\",
\t\t\tphoto_path : \"{{ responsive_asset('replace_path', 'profile_media', \"200x280\", \"jpg\") }}\",
\t\t\tthumb_path : \"{{ responsive_asset('replace_path', 'saloon_media_thumb', \"200x280\", \"jpg\") }}\",
\t\t\tprocess_profile_shows_url : \"{{ path('map.increment_profile_shows', multipleCities ? {city:cityUriIdentity} : {}) }}\"
\t\t};
\t\twindow.map_filters = {
\t\t\tmap_center: [{{ lat }}, {{ lon }}]
\t\t};
\t\twindow.isMapInitialized = false;
\t\twindow.isYMapLoaded = false;
function initMap() {
\t\t\twindow.ymaps = ym;
\t\t\t{# window.ymap = new ym.Map(document.getElementById('map-wrap'), {
\t\t\t\tcenter: [\"{{ lat }}\", \"{{ lon }}\"],
\t\t\t\tzoom: 12,
\t\t\t\tbehaviors: [\"drag\", \"dblClickZoom\", \"rightMouseButtonMagnifier\", \"multiTouch\", \"scrollZoom\"],
\t\t\t\tcontrols: ['zoomControl', 'typeSelector', 'fullscreenControl']
\t\t\t}); #}
\t\t\twindow.isMapInitialized = true;
\t\t\twindow.isYMapLoaded = true;
\t\t}
\t\twindow.profileShowed = function ({id}) {
\t\t\tif (!id) return;
\t\t\tfetch('{{ path('profile_ctr.increase_shows') }}', {
\t\t\t\tmethod: \"POST\",
\t\t\t\tbody: JSON.stringify({ profiles: [id], source: 'map' }),
\t\t\t});
\t\t}
window.stations = {
\t\t\t{%- for station in stations() -%}{{- station.id -}}:{icon:`{%- include 'components/metro/icon_generate.partial.twig' with {data: station|station_lines} -%}`,name:`{{- station.name -}}`},{%- endfor -%}
\t\t};
document.addEventListener('DOMContentLoaded', function () {
\t\t\tfunction loadForm() {
\t\t\t\tfetch('{{ path('map.form', {city: cityUriIdentity}) }}', {
\t\t\t\t\tmode: \"cors\",
\t\t\t\t\timportance: \"low\",
\t\t\t\t\tmethod: \"POST\",
\t\t\t\t\theaders: {
\t\t\t\t\t\t\"Content-Type\": \"application/x-www-form-urlencoded\",
\t\t\t\t\t\t\"X-Requested-With\": \"XMLHttpRequest\"
\t\t\t\t\t},
\t\t\t\t}).then(response => {
\t\t\t\t\tif (response.status < 300) {
\t\t\t\t\t\treturn response.text();
\t\t\t\t\t} else {
\t\t\t\t\t\tconsole.warn(\"🤔\");
\t\t\t\t\t\treturn null;
\t\t\t\t\t}
\t\t\t\t}).then(response => {
\t\t\t\t\tdocument.getElementById('collapseFilterContainer').innerHTML = response;
\t\t\t\t\tdocument.dispatchEvent(new Event('form-html-load'));
\t\t\t\t\tfilterLoader();
\t\t\t\t});
\t\t\t}
\t\t\tloadForm();
\t\t\tfunction filterLoader() {
\t\t\t\tconst stringifyData = `{\"city_id\":\"\${document.getElementById('filter_map_form_city_id').value}\",\"_token\":\"\${document.getElementById('filter_map_form__token').value}\",\"scale\":12}`;
\t\t\t\tfetch(\"{{ path('map.filter', {city:cityUriIdentity}) }}\", {
\t\t\t\t\tmethod: \"POST\",
\t\t\t\t\theaders: {
\t\t\t\t\t\t'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
\t\t\t\t\t\t'X-Requested-With': 'XMLHttpRequest',
\t\t\t\t\t},
\t\t\t\t\tbody: new URLSearchParams({ form: stringifyData, scale: 12 }).toString(),
\t\t\t\t})
\t\t\t\t\t.then(response => response.json())
\t\t\t\t\t.then(data => {
\t\t\t\t\t\tconst mapLoadedInterval = setInterval(()=>{
\t\t\t\t\t\t\tif (window.isYMapLoaded) {
\t\t\t\t\t\t\t\tdocument.dispatchEvent(new CustomEvent('map:data:loaded', { detail: { data, stringifyData, mapConfig: window.mapConfig } }));
\t\t\t\t\t\t\t\tclearInterval(mapLoadedInterval)
\t\t\t\t\t\t\t}
\t\t\t\t\t\t}, 200)
\t\t\t\t\t})
\t\t\t\t\t.catch(error => console.error(error));
\t\t\t}
\t\t});
\t</script>
{# {{ encore_entry_script_tags('scripts/map-page', null, 'basicConfig') }} #}
{{ encore_entry_script_tags('scripts/map-page-2026', null, 'basicConfig') }}
{% endblock %}
{% block modal %}
\t{{- parent() -}}
\t{{- include('components/modals/map-filter.html.twig') -}}
{% endblock %}
", "Map/page.html.twig", "/app/templates/Map/page.html.twig");
}
}