<?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'],
];
}
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 "
<link rel=\"stylesheet\" href=\"//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 16
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 17
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 22
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 24
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 25
echo "
<h1 class=\"border-line\">";
// line 26
echo (($this->extensions['App\Twig\SeoExtension']->pageHeading()) ? ($this->extensions['App\Twig\SeoExtension']->pageHeading()) : ("Интим карта"));
echo "</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 36
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>0</em> параметров</span>
<button class=\"btn btn-secondary btn-collapse-reset ml-md-2\" id=\"reset-form-2\">
<svg class=\"icon mr-1\">
<use xlink:href=\"";
// line 44
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 class=\"collapse\" id=\"collapseFilter\">
";
// line 52
echo " ";
// line 159
echo " ";
// line 160
echo " </div>
<div class=\"map-wrap loading\" id=\"map-wrap\">
<img src=\"";
// line 163
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/preloader.svg", "basicConfig"), "html", null, true);
echo "\" class=\"preloader\" id=\"preloader\" style=\"display: none;\" />
<div class=\"map\" id=\"map\" style=\"width: 100%; height: 700px;\"
data-icon-single=\"islands#redIcon\"
data-icon-saloon=\"islands#violetIcon\"
data-icon-cluster=\"islands#invertedRedClusterIcons\"
></div>
</div>
</div>
\t";
// line 172
echo twig_include($this->env, $context, "components/seo_text.html.twig", ["type" => "top", "noindex" => true]);
echo "
\t";
// line 173
echo twig_include($this->env, $context, "components/seo_text.html.twig", ["type" => "bottom", "noindex" => true]);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 177
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 178
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 180
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.', 180, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 180), "latitude", [], "any", false, false, false, 180))) {
// line 181
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.', 181, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 181), "latitude", [], "any", false, false, false, 181);
// line 182
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.', 182, $this->source); })()), "mapCoordinate", [], "any", false, false, false, 182), "longitude", [], "any", false, false, false, 182);
// line 183
echo "\t";
} else {
// line 184
echo "\t\t";
$context["lat"] = "55.753215";
// line 185
echo "\t\t";
$context["lon"] = "37.622504";
// line 186
echo "\t";
}
// line 187
echo "
<script src=\"";
// line 188
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/fosjsrouting/js/router.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 189
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
echo "\"></script>
\t<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU&onload=initMap&ns=ym\" defer></script>
\t<script>
const mapConfig = {
\t\t\tid:\"map-wrap\",
\t\t\tmultiple_cities:\"";
// line 195
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.', 195, $this->source); })()), "html", null, true);
echo "\",
\t\t\troutes_url: \"";
// line 196
echo ((((isset($context["multipleCities"]) || array_key_exists("multipleCities", $context) ? $context["multipleCities"] : (function () { throw new RuntimeError('Variable "multipleCities" does not exist.', 196, $this->source); })()) == 0)) ? ("/js/fos_js_routes.json") : ("/js/fos_js_routes_city_prefixed.json"));
echo "\",
\t\t\tcity_uri_identity:\"";
// line 197
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.', 197, $this->source); })()), "html", null, true);
echo "\",
\t\t\tcity_latitude:\"";
// line 198
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.', 198, $this->source); })()), "html", null, true);
echo "\",
\t\t\tcity_longitude:\"";
// line 199
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.', 199, $this->source); })()), "html", null, true);
echo "\",
\t\t\tlocale:\"";
// line 200
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.', 200, $this->source); })()), "request", [], "any", false, false, false, 200), "locale", [], "any", false, false, false, 200), "html", null, true);
echo "\",
\t\t\tpath:\"";
// line 201
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.', 201, $this->source); })())]), "html", null, true);
echo "\",
\t\t\ticon_profile:\"";
// line 203
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/profile.svg"), "html", null, true);
echo "\",
\t\t\ticon_profile_active:\"";
// line 204
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/profile-active.svg"), "html", null, true);
echo "\",
\t\t\ticon_profile_hover:\"";
// line 205
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/profile-hover.svg"), "html", null, true);
echo "\",
\t\t\ticon_saloon:\"";
// line 207
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/saloon.svg"), "html", null, true);
echo "\",
\t\t\ticon_saloon_active:\"";
// line 208
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/saloon-active.svg"), "html", null, true);
echo "\",
\t\t\ticon_saloon_hover:\"";
// line 209
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/saloon-hover.svg"), "html", null, true);
echo "\",
\t\t\ticon_masseur:\"";
// line 211
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/masseur.svg"), "html", null, true);
echo "\",
\t\t\ticon_masseur_active:\"";
// line 212
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/masseur-active.svg"), "html", null, true);
echo "\",
\t\t\ticon_masseur_hover:\"";
// line 213
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/masseur-hover.svg"), "html", null, true);
echo "\",
\t\t\ticon_cluster_small:\"";
// line 215
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/cluster-small.svg"), "html", null, true);
echo "\",
\t\t\ticon_cluster_medium:\"";
// line 216
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/cluster-medium.svg"), "html", null, true);
echo "\",
\t\t\ticon_cluster_big:\"";
// line 217
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/map/cluster-big.svg"), "html", null, true);
echo "\",
\t\t\tavatar_path : \"";
// line 219
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 220
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 221
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 222
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.', 222, $this->source); })())) ? (["city" => (isset($context["cityUriIdentity"]) || array_key_exists("cityUriIdentity", $context) ? $context["cityUriIdentity"] : (function () { throw new RuntimeError('Variable "cityUriIdentity" does not exist.', 222, $this->source); })())]) : ([]))), "html", null, true);
echo "\"
\t\t};
var isMapInitialized = false;
\t\tvar yaMapLoaded = false;
function initMap() {
\t\t\twindow.ymap = new ym.Map(document.getElementById('map'), {
\t\t\t\tcenter: [\"";
// line 229
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.', 229, $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.', 229, $this->source); })()), "html", null, true);
echo "\"],
\t\t\t\tzoom: 8,
\t\t\t\tcontrols: ['zoomControl', 'typeSelector', 'fullscreenControl']
\t\t\t});
\t\t\tyaMapLoaded = true;
\t\t}
window.stations = {";
// line 236
$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, 236), "html", null, true);
echo ":{icon:`";
$this->loadTemplate("components/metro/icon_generate.partial.twig", "Map/page.html.twig", 236)->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, 236), "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 237
echo "};
document.addEventListener('DOMContentLoaded', function () {
\t\t\tfunction loadForm() {
\t\t\t\treturn fetch('";
// line 240
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.', 240, $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('collapseFilter').innerHTML = response;
\t\t\t\t});
\t\t\t}
\t\t\tloadForm().then(()=>{
filterLoader()
});
\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}\"}`;
\t\t\t\tfetch(\"";
// line 266
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.', 266, $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 }).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\t//console.log('map-data-loaded')
\t\t\t\t\t\tconst mapLoadedInterval = setInterval(()=>{
\t\t\t\t\t\t\tif (yaMapLoaded) {
\t\t\t\t\t\t\t\tnew MapPage(mapConfig);
\t\t\t\t\t\t\t\tdocument.dispatchEvent(new CustomEvent('map:data:loaded', { detail: { data, stringifyData } }));
\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\twindow.profileShowed = function ({id}) {
\t\t\tif (!id) return;
\t\t\tfetch('";
// line 294
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}
\t</script>
";
$__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 ( 573 => 294, 542 => 266, 513 => 240, 508 => 237, 473 => 236, 462 => 229, 452 => 222, 448 => 221, 444 => 220, 440 => 219, 435 => 217, 431 => 216, 427 => 215, 422 => 213, 418 => 212, 414 => 211, 409 => 209, 405 => 208, 401 => 207, 396 => 205, 392 => 204, 388 => 203, 383 => 201, 379 => 200, 375 => 199, 371 => 198, 367 => 197, 363 => 196, 359 => 195, 350 => 189, 346 => 188, 343 => 187, 340 => 186, 337 => 185, 334 => 184, 331 => 183, 328 => 182, 325 => 181, 323 => 180, 317 => 178, 304 => 177, 289 => 173, 285 => 172, 273 => 163, 268 => 160, 266 => 159, 264 => 52, 254 => 44, 243 => 36, 230 => 26, 227 => 25, 214 => 24, 189 => 22, 171 => 17, 158 => 16, 141 => 12, 128 => 11, 112 => 8, 99 => 7, 83 => 4, 70 => 3, 41 => 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\">
{% 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 %}
<h1 class=\"border-line\">{{ seo_heading() ? seo_heading() : 'Интим карта' }}</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>0</em> параметров</span>
<button class=\"btn btn-secondary btn-collapse-reset ml-md-2\" id=\"reset-form-2\">
<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 class=\"collapse\" id=\"collapseFilter\">
{# <div class=\"mb-3 mb-lg-4\"> #}
{# {{ form_start(form) }}
<div class=\"pl-2 pr-2 pl-xs-0 pr-xs-0\">
<div class=\"filter-form d-md-flex\">
<div class=\"form-items d-xxl-flex\">
<div class=\"form-item min-input\">
<div class=\"mb-3 mb-md-5\">
<div class=\"title mb-3\">Основные параметры</div>
<div class=\"d-flex align-items-center mb-2\">
<label>Возраст:</label>
{{ form_widget(form.age.min, {'attr': {'size': '3', 'type': 'text', 'placeholder': 'от'}}) }}
<span class=\"mr-1 ml-1\">-</span>
{{ form_widget(form.age.max, {'attr': {'size': '3', 'type': 'text', 'placeholder': 'до'}}) }}
</div>
<div class=\"d-flex align-items-center mb-2\">
<label>Размер груди:</label>
{{ form_widget(form.breast_size.min, {'attr': {'size': '3', 'type': 'text', 'placeholder': 'от'}}) }}
<span class=\"mr-1 ml-1\">-</span>
{{ form_widget(form.breast_size.max, {'attr': {'size': '3', 'type': 'text', 'placeholder': 'до'}}) }}
</div>
<div class=\"d-flex align-items-center mb-2\">
<label>Рост:</label>
{{ form_widget(form.height.min, {'attr': {'size': '3', 'type': 'text', 'placeholder': 'от'}}) }}
<span class=\"mr-1 ml-1\">-</span>
{{ form_widget(form.height.max, {'attr': {'size': '3', 'type': 'text', 'placeholder': 'до'}}) }}
</div>
<div class=\"d-flex align-items-center mb-2\">
<label>Вес:</label>
{{ form_widget(form.weight.min, {'attr': {'size': '3', 'type': 'text', 'placeholder': 'от'}}) }}
<span class=\"mr-1 ml-1\">-</span>
{{ form_widget(form.weight.max, {'attr': {'size': '3', 'type': 'text', 'placeholder': 'до'}}) }}
</div>
</div>
<div class=\"mb-3 mb-md-5 inline-label\">
<div class=\"title mb-3\">Интимная стрижка</div>
<div class=\"d-flex align-items-center mb-2\">
<div id=\"filter_map_form_private_haircut\" size=\"3\">
{% for elem in form.private_haircut %}
{{form_widget(elem, {'attr': {
'class': 'item'
}}) }}
<label for=\"{{elem.vars.id}}\">{{elem.vars.label|trans({}, 'left_menu')}}</label>
{% endfor %}
</div>
</div>
</div>
</div>
<div class=\"form-item ml-xxl-4\">
<div class=\"mb-3 mb-md-5 inline-label\">
<div class=\"title mb-3\">Цвет волос</div>
<div class=\"d-flex flex-wrap align-items-center mb-2\">
<div id=\"filter_map_form_hair_color\" size=\"3\">
{% for elem in form.hair_color %}
{{form_widget(elem, {'attr': {
'class': 'item'
}}) }}
<label for=\"{{elem.vars.id}}\">{{elem.vars.label|trans({}, 'left_menu')}}</label>
{% endfor %}
</div>
</div>
</div>
<div class=\"mb-3 mb-md-5 inline-label\">
<div class=\"title mb-3\">Телосложение</div>
<div class=\"d-flex flex-wrap align-items-center mb-2\">
<div id=\"filter_map_form_body_type\">
{% for elem in form.body_type %}
{{form_widget(elem, {'attr': {
'class': 'item'
}}) }}
<label for=\"{{elem.vars.id}}\">{{elem.vars.label|trans({}, 'left_menu')}}</label>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
<div class=\"form-items pl-0 pl-md-4\">
<div class=\"form-item ml-xl-4\">
<div class=\"mb-3 mb-md-5 inline-label\">
<div class=\"title mb-3\">Национальность</div>
<div class=\"d-flex align-items-center mb-2\">
<div id=\"filter_map_form_nationality\">
{% for elem in form.nationality %}
{{form_widget(elem, {'attr': {
'class': 'item'
}}) }}
<label for=\"{{elem.vars.id}}\">{{elem.vars.label|trans({}, 'left_menu')}}</label>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"form-line mb-2 mb-md-4\"></div>
<div class=\"d-flex justify-content-center\">
<button type=\"reset\" class=\"btn btn-secondary btn-collapse-reset mr-2\" id=\"reset-form\">
<svg class=\"icon mr-1\">
<use xlink:href=\"{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-reset\"></use>
</svg>
Сброс
</button>
{{ form_widget(form.search, {'label': 'Подобрать', 'attr': {
'class': 'btn btn-danger'
}}) }}
</div>
</div>
{{ form_end(form) }} #}
{# </div> #}
</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-icon-single=\"islands#redIcon\"
data-icon-saloon=\"islands#violetIcon\"
data-icon-cluster=\"islands#invertedRedClusterIcons\"
></div>
</div>
</div>
\t{{ include('components/seo_text.html.twig', { \"type\": 'top', \"noindex\": true }) }}
\t{{ include('components/seo_text.html.twig', { \"type\": 'bottom', \"noindex\": true }) }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% 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 %}
<script src=\"{{ asset('bundles/fosjsrouting/js/router.min.js') }}\"></script>
<script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\"></script>
\t<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU&onload=initMap&ns=ym\" defer></script>
\t<script>
const 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\ticon_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\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};
var isMapInitialized = false;
\t\tvar yaMapLoaded = false;
function initMap() {
\t\t\twindow.ymap = new ym.Map(document.getElementById('map'), {
\t\t\t\tcenter: [\"{{ lat }}\", \"{{ lon }}\"],
\t\t\t\tzoom: 8,
\t\t\t\tcontrols: ['zoomControl', 'typeSelector', 'fullscreenControl']
\t\t\t});
\t\t\tyaMapLoaded = true;
\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\treturn fetch('{{ 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('collapseFilter').innerHTML = response;
\t\t\t\t});
\t\t\t}
\t\t\tloadForm().then(()=>{
filterLoader()
});
\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}\"}`;
\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 }).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\t//console.log('map-data-loaded')
\t\t\t\t\t\tconst mapLoadedInterval = setInterval(()=>{
\t\t\t\t\t\t\tif (yaMapLoaded) {
\t\t\t\t\t\t\t\tnew MapPage(mapConfig);
\t\t\t\t\t\t\t\tdocument.dispatchEvent(new CustomEvent('map:data:loaded', { detail: { data, stringifyData } }));
\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\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}
\t</script>
{% endblock %}
", "Map/page.html.twig", "/app/templates/Map/page.html.twig");
}
}