var/cache/review/twig/ee/ee002d42ec00fc30d2ce745fe71a05c8.php line 92

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* ProfilePreview/page.html.twig */
  14. class __TwigTemplate_c169b2457306e63df82a8554c8176c37 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'metaDescription' => [$this'block_metaDescription'],
  25.             'navbar' => [$this'block_navbar'],
  26.             'mainContainer' => [$this'block_mainContainer'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "ProfilePreview/grid.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  38.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProfilePreview/page.html.twig"));
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProfilePreview/page.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProfilePreview/page.html.twig"));
  43.         $this->parent $this->loadTemplate("ProfilePreview/grid.html.twig""ProfilePreview/page.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 3
  53.     public function block_title($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  57.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         echo twig_escape_filter($this->env$this->extensions['App\Twig\SeoExtension']->metaTitle(), "html"nulltrue);
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         
  68.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  69.     }
  70.     // line 5
  71.     public function block_metaDescription($context, array $blocks = [])
  72.     {
  73.         $macros $this->macros;
  74.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  75.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  80.         // line 6
  81.         echo "    <meta name=\"description\" content=\"";
  82.         echo twig_escape_filter($this->env$this->extensions['App\Twig\SeoExtension']->metaDescription(), "html"nulltrue);
  83.         echo "\">
  84. ";
  85.         
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  87.         
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  89.         
  90.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  91.     }
  92.     // line 9
  93.     public function block_navbar($context, array $blocks = [])
  94.     {
  95.         $macros $this->macros;
  96.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  97.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  102.         // line 10
  103.         echo "    ";
  104.         $this->displayParentBlock("navbar"$context$blocks);
  105.         echo "
  106.     ";
  107.         // line 11
  108.         $context["excludeRecommendationProfileIds"] = [twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'11$this->source); })()), "id", [], "any"falsefalsefalse11)];
  109.         // line 12
  110.         echo "    ";
  111.         $this->loadTemplate("Recommendations/_profile_recommendations.html.twig""ProfilePreview/page.html.twig"12)->display($context);
  112.         
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  114.         
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  116.         
  117.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  118.     }
  119.     // line 15
  120.     public function block_mainContainer($context, array $blocks = [])
  121.     {
  122.         $macros $this->macros;
  123.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  124.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  126.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  128.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  129.         // line 16
  130.         echo "    <div class=\"row\" alt=\"";
  131.         ((twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'16$this->source); })()), "seo", [], "any"falsefalsefalse16)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'16$this->source); })()), "seo", [], "any"falsefalsefalse16), "phone", [], "any"falsefalsefalse16), "html"nulltrue))) : (print ("")));
  132.         echo "\">
  133.         <div class=\"col-3\">
  134.             <div id=\"left_column_metric\">
  135.                 ";
  136.         // line 19
  137.         if (( !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.'19$this->source); })()), "user", [], "any"falsefalsefalse19) || $this->extensions['App\Twig\UserExtension']->isUserCustomer(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.'19$this->source); })()), "user", [], "any"falsefalsefalse19)))) {
  138.             // line 20
  139.             echo "                    <div><a class=\"add-remove-favourite\" data-action=\"remove\" href=\"javascript:void(0);\" style=\"display: ";
  140.             echo (($this->extensions['App\Twig\UserExtension']->isProfileInFavourites((isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'20$this->source); })()))) ? ("block") : ("none"));
  141.             echo "\">UNLIKE</a></div>
  142.                     <div><a class=\"add-remove-favourite\" data-action=\"add\"  style=\"display: ";
  143.             // line 21
  144.             echo (( !$this->extensions['App\Twig\UserExtension']->isProfileInFavourites((isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'21$this->source); })()))) ? ("block") : ("none"));
  145.             echo "\" ";
  146.             if (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.'21$this->source); })()), "user", [], "any"falsefalsefalse21)) {
  147.                 echo "href=\"javascript:void(0);\"";
  148.             } else {
  149.                 echo "href=\"javascript:alert('Чтобы сделать что-то зарегистрируйтесь');\"";
  150.             }
  151.             echo ">LIKE</a></div>
  152.                 ";
  153.         }
  154.         // line 23
  155.         echo "                <div class=\"row\">
  156.                     ";
  157.         // line 24
  158.         if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'24$this->source); })()), "isApproved", [], "any"falsefalsefalse24)) {
  159.             echo " <b style=\"color:green;\">APPROVED</b><br /> ";
  160.         }
  161.         // line 25
  162.         echo "                    ";
  163.         if ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'25$this->source); })()), "deleted", [], "any"falsefalsefalse25)) {
  164.             // line 26
  165.             echo "                        ";
  166.             if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'26$this->source); })()), "isModerationRejected", [], "any"falsefalsefalse26)) {
  167.                 // line 27
  168.                 echo "                            <img src=\"";
  169.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/img/red-circle.png"), "html"nulltrue);
  170.                 echo "\" alt=\"";
  171.                 ((twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'27$this->source); })()), "seo", [], "any"falsefalsefalse27)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'27$this->source); })()), "seo", [], "any"falsefalsefalse27), "phone", [], "any"falsefalsefalse27), "html"nulltrue))) : (print ("")));
  172.                 echo "\" width=\"150\">
  173.                         ";
  174.             } else {
  175.                 // line 29
  176.                 echo "                            ";
  177.                 $context["photo"] = $this->extensions['App\Twig\ProfileAvatarExtension']->profileAvatar((isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'29$this->source); })()));
  178.                 // line 30
  179.                 echo "                            ";
  180.                 if ((isset($context["photo"]) || array_key_exists("photo"$context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.'30$this->source); })())) {
  181.                     // line 31
  182.                     echo "                                <img src=\"";
  183.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source, (isset($context["photo"]) || array_key_exists("photo"$context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.'31$this->source); })()), "path", [], "any"falsefalsefalse31), (((twig_get_attribute($this->env$this->source, (isset($context["photo"]) || array_key_exists("photo"$context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.'31$this->source); })()), "type", [], "any"falsefalsefalse31) == "photo")) ? ("profile_media") : ("profile_media_avatar"))), "html"nulltrue);
  184.                     echo "\" alt=\"";
  185.                     ((twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'31$this->source); })()), "seo", [], "any"falsefalsefalse31)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'31$this->source); })()), "seo", [], "any"falsefalsefalse31), "phone", [], "any"falsefalsefalse31), "html"nulltrue))) : (print ("")));
  186.                     echo "\" width=\"150\">
  187.                             ";
  188.                 }
  189.                 // line 33
  190.                 echo "                        ";
  191.             }
  192.             // line 34
  193.             echo "                    ";
  194.         } else {
  195.             // line 35
  196.             echo "                        Фото-заглушка
  197.                     ";
  198.         }
  199.         // line 37
  200.         echo "                </div>
  201.                 ";
  202.         // line 38
  203.         if (((false == twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'38$this->source); })()), "isModerationRejected", [], "any"falsefalsefalse38)) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'38$this->source); })()), "photos", [], "any"falsefalsefalse38)) > 0))) {
  204.             // line 39
  205.             echo "                    <div class=\"row\">
  206.                         ";
  207.             // line 40
  208.             if ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'40$this->source); })()), "deleted", [], "any"falsefalsefalse40)) {
  209.                 // line 41
  210.                 echo "                            ";
  211.                 $context['_parent'] = $context;
  212.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'41$this->source); })()), "photos", [], "any"falsefalsefalse41));
  213.                 foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
  214.                     // line 42
  215.                     echo "                                    <div class=\"col-4\">
  216.                                         <img src=\"";
  217.                     // line 43
  218.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source$context["photo"], "path", [], "any"falsefalsefalse43), "profile_media"), "html"nulltrue);
  219.                     echo "\" alt=\"\" width=\"150\">
  220.                                     </div>
  221.                             ";
  222.                 }
  223.                 $_parent $context['_parent'];
  224.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
  225.                 $context array_intersect_key($context$_parent) + $_parent;
  226.                 // line 46
  227.                 echo "                        ";
  228.             }
  229.             // line 47
  230.             echo "                    </div>
  231.                 ";
  232.         }
  233.         // line 49
  234.         echo "                ";
  235.         if (((false == twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'49$this->source); })()), "isModerationRejected", [], "any"falsefalsefalse49)) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'49$this->source); })()), "selfies", [], "any"falsefalsefalse49)) > 0))) {
  236.             // line 50
  237.             echo "                    <div class=\"row\">
  238.                         ";
  239.             // line 51
  240.             if ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'51$this->source); })()), "deleted", [], "any"falsefalsefalse51)) {
  241.                 // line 52
  242.                 echo "                            ";
  243.                 $context['_parent'] = $context;
  244.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'52$this->source); })()), "selfies", [], "any"falsefalsefalse52));
  245.                 foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
  246.                     // line 53
  247.                     echo "                                ";
  248.                     if ((twig_get_attribute($this->env$this->source$context["photo"], "main", [], "any"falsefalsefalse53) == false)) {
  249.                         // line 54
  250.                         echo "                                    <div class=\"col-4\">
  251.                                         <img src=\"";
  252.                         // line 55
  253.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source$context["photo"], "path", [], "any"falsefalsefalse55), "profile_media_selfie"), "html"nulltrue);
  254.                         echo "\" alt=\"\" width=\"150\">
  255.                                     </div>
  256.                                 ";
  257.                     }
  258.                     // line 58
  259.                     echo "                            ";
  260.                 }
  261.                 $_parent $context['_parent'];
  262.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
  263.                 $context array_intersect_key($context$_parent) + $_parent;
  264.                 // line 59
  265.                 echo "                        ";
  266.             }
  267.             // line 60
  268.             echo "                    </div>
  269.                 ";
  270.         }
  271.         // line 62
  272.         echo "                ";
  273.         if (((false == twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'62$this->source); })()), "isModerationRejected", [], "any"falsefalsefalse62)) &&  !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'62$this->source); })()), "deleted", [], "any"falsefalsefalse62))) {
  274.             // line 63
  275.             echo "                    <div class=\"row\">
  276.                         ";
  277.             // line 64
  278.             $context['_parent'] = $context;
  279.             $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'64$this->source); })()), "confirmedVideos", [], "any"falsefalsefalse64), function ($__video__) use ($context$macros) { $context["video"] = $__video__; return twig_get_attribute($this->env$this->source$context["video"], "previewPath", [], "any"falsefalsefalse64); }));
  280.             foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
  281.                 // line 65
  282.                 echo "                            <div class=\"col-4\">
  283.                                 <video width=\"100%\" controls poster=\"";
  284.                 // line 66
  285.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source$context["video"], "previewPath", [], "any"falsefalsefalse66), "profile_media""fullsize"), "html"nulltrue);
  286.                 echo "\">
  287.                                     <source src=\"";
  288.                 // line 67
  289.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source$context["video"], "path", [], "any"falsefalsefalse67), "profile_media""fullsize"), "html"nulltrue);
  290.                 echo "\" type=\"video/mp4\">
  291.                                     Your browser does not support the video tag.
  292.                                 </video>
  293.                             </div>
  294.                         ";
  295.             }
  296.             $_parent $context['_parent'];
  297.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
  298.             $context array_intersect_key($context$_parent) + $_parent;
  299.             // line 72
  300.             echo "                    </div>
  301.                 ";
  302.         }
  303.         // line 74
  304.         echo "            </div>
  305.         </div>
  306.         <div class=\"col-9\">
  307.             <div id=\"center_column_metric\">
  308.                 <h5>";
  309.         // line 78
  310.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'78$this->source); })()), "name", [], "any"falsefalsefalse78)), "html"nulltrue);
  311.         echo " ";
  312.         echo twig_escape_filter($this->env, (isset($context["rating"]) || array_key_exists("rating"$context) ? $context["rating"] : (function () { throw new RuntimeError('Variable "rating" does not exist.'78$this->source); })()), "html"nulltrue);
  313.         echo "&#9733;
  314.                     ";
  315.         // line 79
  316.         if ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'79$this->source); })()), "deleted", [], "any"falsefalsefalse79)) {
  317.             // line 80
  318.             echo "                        ";
  319.             if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'80$this->source); })()), "isModerationRejected", [], "any"falsefalsefalse80)) {
  320.                 // line 81
  321.                 echo "                            <h3>Анкета отклонена модератором</h3>
  322.                         ";
  323.             } else {
  324.                 // line 83
  325.                 echo "                            ";
  326.                 if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'83$this->source); })()), "active", [], "any"falsefalsefalse83)) {
  327.                     // line 84
  328.                     echo "                            <small><a href=\"tel:";
  329.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'84$this->source); })()), "phoneNumber", [], "any"falsefalsefalse84), "html"nulltrue);
  330.                     echo "\">";
  331.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'84$this->source); })()), "phoneNumber", [], "any"falsefalsefalse84), "html"nulltrue);
  332.                     echo "</a></small>
  333.                             ";
  334.                 }
  335.                 // line 86
  336.                 echo "                        ";
  337.             }
  338.             // line 87
  339.             echo "                    ";
  340.         } else {
  341.             // line 88
  342.             echo "                         Заглушка телефона
  343.                     ";
  344.         }
  345.         // line 90
  346.         echo "                </h5>
  347.                 <dl>
  348.                     <dt>";
  349.         // line 92
  350.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Город", [], "messages");
  351.         echo "</dt>
  352.                     <dd>";
  353.         // line 93
  354.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'93$this->source); })()), "city", [], "any"falsefalsefalse93), "name", [], "any"falsefalsefalse93)), "html"nulltrue);
  355.         echo "</dd>
  356.                     <dt>";
  357.         // line 94
  358.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Метро", [], "messages");
  359.         echo "</dt>
  360.                     <dd>
  361.                         ";
  362.         // line 96
  363.         $context['_parent'] = $context;
  364.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'96$this->source); })()), "stations", [], "any"falsefalsefalse96));
  365.         $context['loop'] = [
  366.           'parent' => $context['_parent'],
  367.           'index0' => 0,
  368.           'index'  => 1,
  369.           'first'  => true,
  370.         ];
  371.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  372.             $length count($context['_seq']);
  373.             $context['loop']['revindex0'] = $length 1;
  374.             $context['loop']['revindex'] = $length;
  375.             $context['loop']['length'] = $length;
  376.             $context['loop']['last'] = === $length;
  377.         }
  378.         foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
  379.             // line 97
  380.             echo "                            <a href=\"";
  381.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_station", ["city" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'97$this->source); })()), "city", [], "any"falsefalsefalse97), "uriIdentity", [], "any"falsefalsefalse97), "station" => twig_get_attribute($this->env$this->source$context["station"], "uriIdentity", [], "any"falsefalsefalse97)]), "html"nulltrue);
  382.             echo "\">";
  383.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["station"], "name", [], "any"falsefalsefalse97)), "html"nulltrue);
  384.             echo "</a>
  385.                             ";
  386.             // line 98
  387.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse98)) {
  388.                 echo ", ";
  389.             }
  390.             // line 99
  391.             echo "                        ";
  392.             ++$context['loop']['index0'];
  393.             ++$context['loop']['index'];
  394.             $context['loop']['first'] = false;
  395.             if (isset($context['loop']['length'])) {
  396.                 --$context['loop']['revindex0'];
  397.                 --$context['loop']['revindex'];
  398.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  399.             }
  400.         }
  401.         $_parent $context['_parent'];
  402.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
  403.         $context array_intersect_key($context$_parent) + $_parent;
  404.         // line 100
  405.         echo "                    </dd>
  406.                     <dt>";
  407.         // line 101
  408.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Район", [], "messages");
  409.         echo "</dt>
  410.                     <dd>
  411.                         ";
  412.         // line 103
  413.         $context['_parent'] = $context;
  414.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'103$this->source); })()), "stations", [], "any"falsefalsefalse103));
  415.         foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
  416.             // line 104
  417.             echo "                            ";
  418.             $context["stationDistrict"] = twig_get_attribute($this->env$this->source$context["station"], "district", [], "any"falsefalsefalse104);
  419.             // line 105
  420.             echo "                            ";
  421.             if ((isset($context["stationDistrict"]) || array_key_exists("stationDistrict"$context) ? $context["stationDistrict"] : (function () { throw new RuntimeError('Variable "stationDistrict" does not exist.'105$this->source); })())) {
  422.                 // line 106
  423.                 echo "                                ";
  424.                 $context["districtCounty"] = twig_get_attribute($this->env$this->source, (isset($context["stationDistrict"]) || array_key_exists("stationDistrict"$context) ? $context["stationDistrict"] : (function () { throw new RuntimeError('Variable "stationDistrict" does not exist.'106$this->source); })()), "county", [], "any"falsefalsefalse106);
  425.                 // line 107
  426.                 echo "                                ";
  427.                 if ((isset($context["districtCounty"]) || array_key_exists("districtCounty"$context) ? $context["districtCounty"] : (function () { throw new RuntimeError('Variable "districtCounty" does not exist.'107$this->source); })())) {
  428.                     // line 108
  429.                     echo "                                    <a href=\"";
  430.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_county", ["city" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'108$this->source); })()), "city", [], "any"falsefalsefalse108), "uriIdentity", [], "any"falsefalsefalse108), "county" => twig_get_attribute($this->env$this->source, (isset($context["districtCounty"]) || array_key_exists("districtCounty"$context) ? $context["districtCounty"] : (function () { throw new RuntimeError('Variable "districtCounty" does not exist.'108$this->source); })()), "uriIdentity", [], "any"falsefalsefalse108)]), "html"nulltrue);
  431.                     echo "\">";
  432.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["districtCounty"]) || array_key_exists("districtCounty"$context) ? $context["districtCounty"] : (function () { throw new RuntimeError('Variable "districtCounty" does not exist.'108$this->source); })()), "name", [], "any"falsefalsefalse108)), "html"nulltrue);
  433.                     echo "</a>
  434.                                 ";
  435.                 }
  436.                 // line 110
  437.                 echo "                            ";
  438.             }
  439.             // line 111
  440.             echo "                        ";
  441.         }
  442.         $_parent $context['_parent'];
  443.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
  444.         $context array_intersect_key($context$_parent) + $_parent;
  445.         // line 112
  446.         echo "                    </dd>
  447.                     ";
  448.         // line 113
  449.         if ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'113$this->source); })()), "deleted", [], "any"falsefalsefalse113)) {
  450.             // line 114
  451.             echo "                        ";
  452.             if ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'114$this->source); })()), "isModerationRejected", [], "any"falsefalsefalse114)) {
  453.                 // line 115
  454.                 echo "                            <dt><strong>";
  455.                 echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телефон", [], "messages");
  456.                 echo "</strong></dt>
  457.                             <dd><strong>";
  458.                 // line 116
  459.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'116$this->source); })()), "phoneNumber", [], "any"falsefalsefalse116), "html"nulltrue);
  460.                 echo "</strong></dd>
  461.                         ";
  462.             }
  463.             // line 118
  464.             echo "                    ";
  465.         } else {
  466.             // line 119
  467.             echo "                        Заглушка телефона
  468.                     ";
  469.         }
  470.         // line 121
  471.         echo "                    <dt>";
  472.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Возраст", [], "messages");
  473.         echo "</dt>
  474.                     <dd>";
  475.         // line 122
  476.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'122$this->source); })()), "personParameters", [], "any"falsefalsefalse122), "age", [], "any"falsefalsefalse122), "html"nulltrue);
  477.         echo "</dd>
  478.                     <dt>";
  479.         // line 123
  480.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Рост", [], "messages");
  481.         echo "</dt>
  482.                     <dd>";
  483.         // line 124
  484.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'124$this->source); })()), "personParameters", [], "any"falsefalsefalse124), "height", [], "any"falsefalsefalse124), "html"nulltrue);
  485.         echo "</dd>
  486.                     <dt>";
  487.         // line 125
  488.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер груди", [], "messages");
  489.         echo "</dt>
  490.                     <dd>";
  491.         // line 126
  492.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'126$this->source); })()), "personParameters", [], "any"falsefalsefalse126), "breastSize", [], "any"falsefalsefalse126), "html"nulltrue);
  493.         echo "</dd>
  494.                     <dt>";
  495.         // line 127
  496.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Вес", [], "messages");
  497.         echo "</dt>
  498.                     <dd>";
  499.         // line 128
  500.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'128$this->source); })()), "personParameters", [], "any"falsefalsefalse128), "weight", [], "any"falsefalsefalse128), "html"nulltrue);
  501.         echo "</dd>
  502.                     <dt>";
  503.         // line 129
  504.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер одежды", [], "messages");
  505.         echo "</dt>
  506.                     <dd>";
  507.         // line 130
  508.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'130$this->source); })()), "personParameters", [], "any"falsefalsefalse130), "clothSize", [], "any"falsefalsefalse130), "html"nulltrue);
  509.         echo "</dd>
  510.                     <dt>";
  511.         // line 131
  512.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телосложение", [], "messages");
  513.         echo "</dt>
  514.                     <dd>";
  515.         // line 132
  516.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PersonParametersExtension']->bodyTypeLabel(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'132$this->source); })()), "personParameters", [], "any"falsefalsefalse132), "bodyType", [], "any"falsefalsefalse132))), "html"nulltrue);
  517.         echo "</dd>
  518.                     <dt>";
  519.         // line 133
  520.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Цвет волос", [], "messages");
  521.         echo "</dt>
  522.                     <dd>";
  523.         // line 134
  524.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PersonParametersExtension']->hairColorLabel(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'134$this->source); })()), "personParameters", [], "any"falsefalsefalse134), "hairColor", [], "any"falsefalsefalse134))), "html"nulltrue);
  525.         echo "</dd>
  526.                     <dt>";
  527.         // line 135
  528.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Интимная стрижка", [], "messages");
  529.         echo "</dt>
  530.                     <dd>";
  531.         // line 136
  532.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PersonParametersExtension']->privateHaircutLabel(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'136$this->source); })()), "personParameters", [], "any"falsefalsefalse136), "privateHaircut", [], "any"falsefalsefalse136))), "html"nulltrue);
  533.         echo "</dd>
  534.                     <dt>";
  535.         // line 137
  536.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Национальность", [], "messages");
  537.         echo "</dt>
  538.                     <dd>";
  539.         // line 138
  540.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PersonParametersExtension']->nationalityLabel(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'138$this->source); })()), "personParameters", [], "any"falsefalsefalse138), "nationality", [], "any"falsefalsefalse138))), "html"nulltrue);
  541.         echo "</dd>
  542.                     <dt>";
  543.         // line 139
  544.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Дата обновления", [], "messages");
  545.         echo "</dt>
  546.                     <dd>";
  547.         // line 140
  548.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'140$this->source); })()), "updatedAt", [], "any"falsefalsefalse140)), "html"nulltrue);
  549.         echo "</dd>
  550.                 </dl>
  551.                 <h6>";
  552.         // line 143
  553.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("О себе", [], "messages");
  554.         echo "</h6>
  555.                 <p>";
  556.         // line 144
  557.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'144$this->source); })()), "description", [], "any"falsefalsefalse144)), "html"nulltrue);
  558.         echo "</p>
  559.                 <h6>";
  560.         // line 146
  561.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Предпочтения", [], "messages");
  562.         echo "</h6>
  563.                 ";
  564.         // line 147
  565.         $context['_parent'] = $context;
  566.         $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'147$this->source); })()), function ($__servicesGroup__$__group__) use ($context$macros) { $context["servicesGroup"] = $__servicesGroup__$context["group"] = $__group__; return ( !twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'147$this->source); })()), "masseur", [], "any"falsefalsefalse147) || !twig_in_filter($context["group"], (isset($context["masseurExcludeServiceGroups"]) || array_key_exists("masseurExcludeServiceGroups"$context) ? $context["masseurExcludeServiceGroups"] : (function () { throw new RuntimeError('Variable "masseurExcludeServiceGroups" does not exist.'147$this->source); })()))); }));
  567.         foreach ($context['_seq'] as $context["group"] => $context["servicesGroup"]) {
  568.             // line 148
  569.             echo "                    <p><strong>";
  570.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\ServicesExtension']->serviceGroupLabel($context["group"]), [], "service_groups"), "html"nulltrue);
  571.             echo "</strong></p>
  572.                     <ul>
  573.                         ";
  574.             // line 150
  575.             $context['_parent'] = $context;
  576.             $context['_seq'] = twig_ensure_traversable($context["servicesGroup"]);
  577.             foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
  578.                 // line 151
  579.                 echo "                            ";
  580.                 $context["providedService"] = twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'151$this->source); })()), "providedService", [$context["service"]], "method"falsefalsefalse151);
  581.                 // line 152
  582.                 echo "                            <li class=\"";
  583.                 if ((isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'152$this->source); })())) {
  584.                     echo "text-success";
  585.                 } else {
  586.                     echo "text-danger";
  587.                 }
  588.                 echo "\">
  589.                                 <a href=\"";
  590.                 // line 153
  591.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_provided_service", ["city" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'153$this->source); })()), "city", [], "any"falsefalsefalse153), "uriIdentity", [], "any"falsefalsefalse153), "service" => twig_get_attribute($this->env$this->source$context["service"], "uriIdentity", [], "any"falsefalsefalse153)]), "html"nulltrue);
  592.                 echo "\">";
  593.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["service"], "name", [], "any"falsefalsefalse153)), "html"nulltrue);
  594.                 echo "</a></li>
  595.                             ";
  596.                 // line 154
  597.                 if ((isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'154$this->source); })())) {
  598.                     // line 155
  599.                     echo "                                ";
  600.                     if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  601.                         // line 156
  602.                         echo "                                    ";
  603.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\ServicesExtension']->providedServiceCondition(twig_get_attribute($this->env$this->source, (isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'156$this->source); })()), "condition", [], "any"falsefalsefalse156)), [], "service_conditions"), "html"nulltrue);
  604.                         if ((twig_get_attribute($this->env$this->source, (isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'156$this->source); })()), "condition", [], "any"falsefalsefalse156) == 3)) {
  605.                             echo ", цена:";
  606.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'156$this->source); })()), "extraCharge", [], "any"falsefalsefalse156), "html"nulltrue);
  607.                         }
  608.                         // line 157
  609.                         echo "                                ";
  610.                     }
  611.                     // line 158
  612.                     echo "                                ";
  613.                     if (twig_get_attribute($this->env$this->source, (isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'158$this->source); })()), "comment", [], "any"falsefalsefalse158)) {
  614.                         // line 159
  615.                         echo "                                    Комментарий: ";
  616.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["providedService"]) || array_key_exists("providedService"$context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.'159$this->source); })()), "comment", [], "any"falsefalsefalse159), "html"nulltrue);
  617.                         echo "
  618.                                 ";
  619.                     }
  620.                     // line 161
  621.                     echo "                            ";
  622.                 }
  623.                 // line 162
  624.                 echo "                        ";
  625.             }
  626.             $_parent $context['_parent'];
  627.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
  628.             $context array_intersect_key($context$_parent) + $_parent;
  629.             // line 163
  630.             echo "                    </ul>
  631.                 ";
  632.         }
  633.         $_parent $context['_parent'];
  634.         unset($context['_seq'], $context['_iterated'], $context['group'], $context['servicesGroup'], $context['_parent'], $context['loop']);
  635.         $context array_intersect_key($context$_parent) + $_parent;
  636.         // line 165
  637.         echo "
  638.             <h6>";
  639.         // line 166
  640.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывы", [], "messages");
  641.         echo "</h6>
  642.                 <div id=\"comments\">
  643.                     ";
  644.         // line 168
  645.         $context['_parent'] = $context;
  646.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'168$this->source); })()), "comments", [], "any"falsefalsefalse168));
  647.         $context['_iterated'] = false;
  648.         $context['loop'] = [
  649.           'parent' => $context['_parent'],
  650.           'index0' => 0,
  651.           'index'  => 1,
  652.           'first'  => true,
  653.         ];
  654.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  655.             $length count($context['_seq']);
  656.             $context['loop']['revindex0'] = $length 1;
  657.             $context['loop']['revindex'] = $length;
  658.             $context['loop']['length'] = $length;
  659.             $context['loop']['last'] = === $length;
  660.         }
  661.         foreach ($context['_seq'] as $context["_key"] => $context["comment"]) {
  662.             // line 169
  663.             echo "                        ";
  664.             $this->loadTemplate("ProfilePreview/comment.html.twig""ProfilePreview/page.html.twig"169)->display($context);
  665.             // line 170
  666.             echo "                    ";
  667.             $context['_iterated'] = true;
  668.             ++$context['loop']['index0'];
  669.             ++$context['loop']['index'];
  670.             $context['loop']['first'] = false;
  671.             if (isset($context['loop']['length'])) {
  672.                 --$context['loop']['revindex0'];
  673.                 --$context['loop']['revindex'];
  674.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  675.             }
  676.         }
  677.         if (!$context['_iterated']) {
  678.             // line 171
  679.             echo "                        <p>";
  680.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывов нет", [], "messages");
  681.             echo "</p>
  682.                     ";
  683.         }
  684.         $_parent $context['_parent'];
  685.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
  686.         $context array_intersect_key($context$_parent) + $_parent;
  687.         // line 173
  688.         echo "                </div>
  689.                 <div id=\"commentFormContainer\">
  690.                 </div>
  691.                 <div id=\"recaptcha-container\"></div>
  692.                 ";
  693.         // line 180
  694.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  695.             // line 181
  696.             echo "                    <div>
  697.                         ";
  698.             // line 182
  699.             if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'182$this->source); })()), "expressPricing", [], "any"falsefalsefalse182)) {
  700.                 // line 183
  701.                 echo "                            <b>Экспресс:</b>
  702.                             ";
  703.                 // line 184
  704.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'184$this->source); })()), "expressPricing", [], "any"falsefalsefalse184), "provided", [], "any"falsefalsefalse184)) {
  705.                     // line 185
  706.                     echo "                                Да, стоимость";
  707.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'185$this->source); })()), "expressPricing", [], "any"falsefalsefalse185), "price", [], "any"falsefalsefalse185), "html"nulltrue);
  708.                     echo "
  709.                             ";
  710.                 } else {
  711.                     // line 187
  712.                     echo "                                Нет
  713.                             ";
  714.                 }
  715.                 // line 189
  716.                 echo "                        ";
  717.             }
  718.             // line 190
  719.             echo "                    </div>
  720.                 ";
  721.         }
  722.         // line 192
  723.         echo "
  724.                 ";
  725.         // line 193
  726.         if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'193$this->source); })()), "clientTypes", [], "any"falsefalsefalse193)) {
  727.             // line 194
  728.             echo "                    <div>
  729.                         <b>Услуги для:</b>
  730.                         ";
  731.             // line 196
  732.             $context['_parent'] = $context;
  733.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'196$this->source); })()), "clientTypes", [], "any"falsefalsefalse196));
  734.             foreach ($context['_seq'] as $context["_key"] => $context["clientType"]) {
  735.                 // line 197
  736.                 echo "                            ";
  737.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\ClientTypeExtension']->clientType($context["clientType"]), [], "client_types"), "html"nulltrue);
  738.                 echo "<br>
  739.                         ";
  740.             }
  741.             $_parent $context['_parent'];
  742.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['clientType'], $context['_parent'], $context['loop']);
  743.             $context array_intersect_key($context$_parent) + $_parent;
  744.             // line 199
  745.             echo "                    </div>
  746.                 ";
  747.         }
  748.         // line 201
  749.         echo "
  750.                 ";
  751.         // line 202
  752.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  753.             // line 203
  754.             echo "                    <div>
  755.                         ";
  756.             // line 204
  757.             if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'204$this->source); })()), "messengers", [], "any"falsefalsefalse204)) {
  758.                 // line 205
  759.                 echo "                            <b>Мессенджеры</b><br>
  760.                             <b>Telegram</b> ";
  761.                 // line 206
  762.                 echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'206$this->source); })()), "messengers", [], "any"falsefalsefalse206), "telegram", [], "any"falsefalsefalse206)) ? ("Да") : ("Нет"));
  763.                 echo "
  764.                             <b>WhatsApp</b> ";
  765.                 // line 207
  766.                 echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'207$this->source); })()), "messengers", [], "any"falsefalsefalse207), "whatsApp", [], "any"falsefalsefalse207)) ? ("Да") : ("Нет"));
  767.                 echo "
  768.                         ";
  769.             }
  770.             // line 209
  771.             echo "                    </div>
  772.                 ";
  773.         }
  774.         // line 211
  775.         echo "
  776.                 ";
  777.         // line 212
  778.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  779.             // line 213
  780.             echo "                    <div>
  781.                         ";
  782.             // line 214
  783.             if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'214$this->source); })()), "carPricing", [], "any"falsefalsefalse214)) {
  784.                 // line 215
  785.                 echo "                            <b>В машине:</b> ";
  786.                 echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'215$this->source); })()), "carPricing", [], "any"falsefalsefalse215), "provided", [], "any"falsefalsefalse215)) ? ("Да") : ("Нет"));
  787.                 echo "
  788.                         ";
  789.             }
  790.             // line 217
  791.             echo "                    </div>
  792.                 ";
  793.         }
  794.         // line 219
  795.         echo "
  796.                 ";
  797.         // line 220
  798.         if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
  799.             // line 221
  800.             echo "                    <div>
  801.                         ";
  802.             // line 222
  803.             if ( !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'222$this->source); })()), "personParameters", [], "any"falsefalsefalse222), "tattoo", [], "any"falsefalsefalse222))) {
  804.                 // line 223
  805.                 echo "                            <b>Тату:</b> ";
  806.                 echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'223$this->source); })()), "personParameters", [], "any"falsefalsefalse223), "tattoo", [], "any"falsefalsefalse223)) ? ("Да") : ("Нет"));
  807.                 echo "
  808.                         ";
  809.             }
  810.             // line 225
  811.             echo "                    </div>
  812.                     <div>
  813.                         ";
  814.             // line 227
  815.             if ( !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'227$this->source); })()), "personParameters", [], "any"falsefalsefalse227), "piercing", [], "any"falsefalsefalse227))) {
  816.                 // line 228
  817.                 echo "                            <b>Пирсинг:</b> ";
  818.                 echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'228$this->source); })()), "personParameters", [], "any"falsefalsefalse228), "piercing", [], "any"falsefalsefalse228)) ? ("Да") : ("Нет"));
  819.                 echo "
  820.                         ";
  821.             }
  822.             // line 230
  823.             echo "                    </div>
  824.                 ";
  825.         }
  826.         // line 232
  827.         echo "                <div>
  828.                     <b>Отвечаю на:</b>
  829.                     ";
  830.         // line 234
  831.         $context['_parent'] = $context;
  832.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'234$this->source); })()), "phoneCallRestrictions", [], "any"falsefalsefalse234), "answeringTo", [], "any"falsefalsefalse234));
  833.         foreach ($context['_seq'] as $context["_key"] => $context["answeringTo"]) {
  834.             // line 235
  835.             echo "                        ";
  836.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PhoneCallExtension']->answeringTo($context["answeringTo"]), [], "phone_call_restrictions"), "html"nulltrue);
  837.             echo "<br>
  838.                     ";
  839.         }
  840.         $_parent $context['_parent'];
  841.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['answeringTo'], $context['_parent'], $context['loop']);
  842.         $context array_intersect_key($context$_parent) + $_parent;
  843.         // line 237
  844.         echo "                </div>
  845.             </div>
  846.         </div>
  847.         ";
  848.         // line 241
  849.         $this->loadTemplate("ProfilePreview/nearest_profiles.html.twig""ProfilePreview/page.html.twig"241)->display($context);
  850.         // line 242
  851.         echo "
  852.         <div id=\"recentlyViewedProfiles\"></div>
  853.     </div>
  854.     <script type=\"text/javascript\">
  855.         var onloadCallback = function() {
  856.             grecaptcha.render('recaptcha-container', {
  857.                 'sitekey' : '";
  858.         // line 249
  859.         echo twig_escape_filter($this->env, (isset($context["ewz_recaptcha_site_key"]) || array_key_exists("ewz_recaptcha_site_key"$context) ? $context["ewz_recaptcha_site_key"] : (function () { throw new RuntimeError('Variable "ewz_recaptcha_site_key" does not exist.'249$this->source); })()), "html"nulltrue);
  860.         echo "'
  861.             });
  862.         };
  863.     </script>
  864.     <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
  865.     <script src=\"";
  866.         // line 254
  867.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("ajax.js""js_script"), "html"nulltrue);
  868.         echo "\"></script>
  869.     <script src=\"";
  870.         // line 255
  871.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("local-storage.js""js_script"), "html"nulltrue);
  872.         echo "\"></script>
  873.     <script src=\"";
  874.         // line 256
  875.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("recommendations.js""js_script"), "html"nulltrue);
  876.         echo "\"></script>
  877.     <script src=\"";
  878.         // line 257
  879.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bot-helper.js""js_script"), "html"nulltrue);
  880.         echo "\"></script>
  881.     <script src=\"";
  882.         // line 258
  883.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("recently-viewed.js""js_script"), "html"nulltrue);
  884.         echo "\"></script>
  885.     <script type=\"text/javascript\">
  886.         document.addEventListener('DOMContentLoaded', function() {
  887.             profileRecommendations.addViewedProfile(";
  888.         // line 261
  889.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'261$this->source); })()), "id", [], "any"falsefalsefalse261), "html"nulltrue);
  890.         echo ");
  891.             profileBotHelper.addViewedProfile(";
  892.         // line 262
  893.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'262$this->source); })()), "id", [], "any"falsefalsefalse262), "html"nulltrue);
  894.         echo ");
  895.             //достаем список, пока без учета текущей страницы, для текущего аякс запроса
  896.             const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
  897.             recentlyViewed.addViewedProfile(";
  898.         // line 265
  899.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'265$this->source); })()), "id", [], "any"falsefalsefalse265), "html"nulltrue);
  900.         echo ");
  901.             //recently viewed profiles
  902.             ajax({
  903.                 url: '";
  904.         // line 269
  905.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("recent_profiles.recently_viewed.list");
  906.         echo "',
  907.                 data: {
  908.                     recently_viewed_profiles: recentlyViewedProfiles,
  909.                 },
  910.                 callback: function(response) {
  911.                     if(!response)
  912.                         return;
  913.                     // console.log(response);
  914.                     document.querySelector('#recentlyViewedProfiles').innerHTML = response;
  915.                 },
  916.                 dataType: 'json',
  917.                 responseType: 'text/html',
  918.             });
  919.             ajax({
  920.                 url: '";
  921.         // line 284
  922.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile.comment.comment_form", ["profile" => twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'284$this->source); })()), "id", [], "any"falsefalsefalse284)]), "html"nulltrue);
  923.         echo "',
  924.                 callback: function(response) {
  925.                     // console.log(response);
  926.                     if('' !== response) {
  927.                         document.querySelector('#commentFormContainer').innerHTML = response;
  928.                         setCommentFormListeners();
  929.                     }
  930.                 },
  931.                 dataType: 'json',
  932.                 responseType: 'text/html',
  933.             });
  934.             function setCommentFormListeners() {
  935.                 const formName = 'comment_form';
  936.                 document.querySelector('#send_comment').addEventListener('click', function() {
  937.                     ajax({
  938.                         url: '";
  939.         // line 301
  940.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile.comment.create", ["profile" => twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'301$this->source); })()), "id", [], "any"falsefalsefalse301)]), "html"nulltrue);
  941.         echo "',
  942.                         method: '',
  943.                         data: {
  944.                             'g-recaptcha-response': grecaptcha.getResponse(),
  945.                             'entity_id': document.querySelector(`#\${formName}_entity_id`).value,
  946.                             'mark': document.querySelector(`input[name=\"\${formName}[mark]\"]:checked`).value,
  947.                             'text': document.querySelector(`#\${formName}_text`).value,
  948.                         },
  949.                         callback: function(response) {
  950.                             if(response) {
  951.                                 if(response.success) {
  952.                                     //document.querySelector(`#{formName}`).style.display = 'none';
  953.                                     //document.querySelector('#send_comment').style.display = 'none';
  954.                                     document.querySelector(`form[name=\"\${formName}\"]`).reset();
  955.                                     grecaptcha.reset();
  956.                                     let template =
  957.                                         '<div>' +
  958.                                         (response.comment.nickname ?
  959.                                             '<span class=\"author\">' +
  960.                                             '<img src=\"#avatar\" alt=\"shift\" width=\"25\">' +
  961.                                             '<span class=\"name\">#nickname</span>' +
  962.                                             '</span>' : '') +
  963.                                         '<span class=\"date\">#createdAt</span>' +
  964.                                         '<span>#text</span>' +
  965.                                         '</div>'
  966.                                     ;
  967.                                     response.comment.createdAt = new Date(response.comment.createdAt * 1000);
  968.                                     for(let k in response.comment) {
  969.                                         template = template.replace('#'+k, response.comment[k]);
  970.                                     }
  971.                                     document.querySelector('#comments').innerHTML += template;
  972.                                     // console.log(template);
  973.                                     // document.querySelector('#comments').innerHTML += response.html;
  974.                                 } else {
  975.                                     alert(response.error);
  976.                                 }
  977.                             }
  978.                         },
  979.                         dataType: 'json',
  980.                         responseType: 'json',
  981.                     });
  982.                 });
  983.             }
  984.             //LIKE/UNLIKE
  985.             document.querySelector('#left_column_metric').addEventListener('click', function(e) {
  986.                 if(false == e.target.classList.contains('add-remove-favourite'))
  987.                     return;
  988.                 addRemoveFavourite(e.target.dataset['action'] == 'add');
  989.             });
  990.             let addRemoveFavourite = function(add) {
  991.                 let btn = document.querySelector('.add-remove-favourite[data-action=\"' + (add ? 'add' : 'remove') + '\"]');
  992.                 let reverseBtn = document.querySelector('.add-remove-favourite[data-action=\"' + (!add ? 'add' : 'remove') + '\"]');
  993.                 btn.style.display = 'none';
  994.                 ajax({
  995.                     url: add ? '";
  996.         // line 359
  997.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account.favourites.add", ["profile" => twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'359$this->source); })()), "id", [], "any"falsefalsefalse359)]), "html"nulltrue);
  998.         echo "' : '";
  999.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account.favourites.remove", ["profile" => twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'359$this->source); })()), "id", [], "any"falsefalsefalse359)]), "html"nulltrue);
  1000.         echo "',
  1001.                     callback: function(response) {
  1002.                         if(response) {
  1003.                             if(response.success) {
  1004.                                 reverseBtn.style.display = 'block';
  1005.                             } else {
  1006.                                 btn.style.display = 'block';
  1007.                                 alert(response.error);
  1008.                             }
  1009.                         }
  1010.                     },
  1011.                     dataType: 'json',
  1012.                     responseType: 'json',
  1013.                 });
  1014.             };
  1015.             //LIKE/UNLIKE end
  1016.         });
  1017.     </script>
  1018. ";
  1019.         
  1020.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1021.         
  1022.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1023.         
  1024.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  1025.     }
  1026.     /**
  1027.      * @codeCoverageIgnore
  1028.      */
  1029.     public function getTemplateName()
  1030.     {
  1031.         return "ProfilePreview/page.html.twig";
  1032.     }
  1033.     /**
  1034.      * @codeCoverageIgnore
  1035.      */
  1036.     public function isTraitable()
  1037.     {
  1038.         return false;
  1039.     }
  1040.     /**
  1041.      * @codeCoverageIgnore
  1042.      */
  1043.     public function getDebugInfo()
  1044.     {
  1045.         return array (  1050 => 359,  989 => 301,  969 => 284,  951 => 269,  944 => 265,  938 => 262,  934 => 261,  928 => 258,  924 => 257,  920 => 256,  916 => 255,  912 => 254,  904 => 249,  895 => 242,  893 => 241,  887 => 237,  878 => 235,  874 => 234,  870 => 232,  866 => 230,  860 => 228,  858 => 227,  854 => 225,  848 => 223,  846 => 222,  843 => 221,  841 => 220,  838 => 219,  834 => 217,  828 => 215,  826 => 214,  823 => 213,  821 => 212,  818 => 211,  814 => 209,  809 => 207,  805 => 206,  802 => 205,  800 => 204,  797 => 203,  795 => 202,  792 => 201,  788 => 199,  779 => 197,  775 => 196,  771 => 194,  769 => 193,  766 => 192,  762 => 190,  759 => 189,  755 => 187,  749 => 185,  747 => 184,  744 => 183,  742 => 182,  739 => 181,  737 => 180,  728 => 173,  719 => 171,  706 => 170,  703 => 169,  685 => 168,  680 => 166,  677 => 165,  670 => 163,  664 => 162,  661 => 161,  655 => 159,  652 => 158,  649 => 157,  642 => 156,  639 => 155,  637 => 154,  631 => 153,  622 => 152,  619 => 151,  615 => 150,  609 => 148,  605 => 147,  601 => 146,  596 => 144,  592 => 143,  586 => 140,  582 => 139,  578 => 138,  574 => 137,  570 => 136,  566 => 135,  562 => 134,  558 => 133,  554 => 132,  550 => 131,  546 => 130,  542 => 129,  538 => 128,  534 => 127,  530 => 126,  526 => 125,  522 => 124,  518 => 123,  514 => 122,  509 => 121,  505 => 119,  502 => 118,  497 => 116,  492 => 115,  489 => 114,  487 => 113,  484 => 112,  478 => 111,  475 => 110,  467 => 108,  464 => 107,  461 => 106,  458 => 105,  455 => 104,  451 => 103,  446 => 101,  443 => 100,  429 => 99,  425 => 98,  418 => 97,  401 => 96,  396 => 94,  392 => 93,  388 => 92,  384 => 90,  380 => 88,  377 => 87,  374 => 86,  366 => 84,  363 => 83,  359 => 81,  356 => 80,  354 => 79,  348 => 78,  342 => 74,  338 => 72,  327 => 67,  323 => 66,  320 => 65,  316 => 64,  313 => 63,  310 => 62,  306 => 60,  303 => 59,  297 => 58,  291 => 55,  288 => 54,  285 => 53,  280 => 52,  278 => 51,  275 => 50,  272 => 49,  268 => 47,  265 => 46,  256 => 43,  253 => 42,  248 => 41,  246 => 40,  243 => 39,  241 => 38,  238 => 37,  234 => 35,  231 => 34,  228 => 33,  220 => 31,  217 => 30,  214 => 29,  206 => 27,  203 => 26,  200 => 25,  196 => 24,  193 => 23,  182 => 21,  177 => 20,  175 => 19,  168 => 16,  155 => 15,  141 => 12,  139 => 11,  134 => 10,  121 => 9,  105 => 6,  92 => 5,  67 => 3,  38 => 1,);
  1046.     }
  1047.     public function getSourceContext()
  1048.     {
  1049.         return new Source("{% extends 'ProfilePreview/grid.html.twig' %}
  1050. {% block title %}{{ seo_title() }}{% endblock %}
  1051. {% block metaDescription %}
  1052.     <meta name=\"description\" content=\"{{ seo_description() }}\">
  1053. {% endblock %}
  1054. {% block navbar %}
  1055.     {{ parent() }}
  1056.     {% set excludeRecommendationProfileIds = [profile.id] %}
  1057.     {% include 'Recommendations/_profile_recommendations.html.twig' %}
  1058. {% endblock %}
  1059. {% block mainContainer %}
  1060.     <div class=\"row\" alt=\"{{ profile.seo ? profile.seo.phone : '' }}\">
  1061.         <div class=\"col-3\">
  1062.             <div id=\"left_column_metric\">
  1063.                 {% if not app.user or is_user_customer(app.user) %}
  1064.                     <div><a class=\"add-remove-favourite\" data-action=\"remove\" href=\"javascript:void(0);\" style=\"display: {{ is_profile_in_favourites(profile) ? 'block' : 'none' }}\">UNLIKE</a></div>
  1065.                     <div><a class=\"add-remove-favourite\" data-action=\"add\"  style=\"display: {{ not is_profile_in_favourites(profile) ? 'block' : 'none' }}\" {% if app.user %}href=\"javascript:void(0);\"{% else %}href=\"javascript:alert('Чтобы сделать что-то зарегистрируйтесь');\"{% endif %}>LIKE</a></div>
  1066.                 {% endif %}
  1067.                 <div class=\"row\">
  1068.                     {% if profile.isApproved %} <b style=\"color:green;\">APPROVED</b><br /> {% endif %}
  1069.                     {% if not profile.deleted %}
  1070.                         {% if profile.isModerationRejected %}
  1071.                             <img src=\"{{ asset('static/img/red-circle.png') }}\" alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
  1072.                         {% else %}
  1073.                             {% set photo = profile|avatar %}
  1074.                             {% if photo %}
  1075.                                 <img src=\"{{ asset(photo.path, photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar') }}\" alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
  1076.                             {% endif %}
  1077.                         {% endif %}
  1078.                     {% else %}
  1079.                         Фото-заглушка
  1080.                     {% endif %}
  1081.                 </div>
  1082.                 {% if false == profile.isModerationRejected and profile.photos|length > 0 %}
  1083.                     <div class=\"row\">
  1084.                         {% if not profile.deleted %}
  1085.                             {% for photo in profile.photos %}
  1086.                                     <div class=\"col-4\">
  1087.                                         <img src=\"{{ asset(photo.path, 'profile_media') }}\" alt=\"\" width=\"150\">
  1088.                                     </div>
  1089.                             {% endfor %}
  1090.                         {% endif %}
  1091.                     </div>
  1092.                 {% endif %}
  1093.                 {% if false == profile.isModerationRejected and profile.selfies|length > 0 %}
  1094.                     <div class=\"row\">
  1095.                         {% if not profile.deleted %}
  1096.                             {% for photo in profile.selfies %}
  1097.                                 {% if photo.main == false %}
  1098.                                     <div class=\"col-4\">
  1099.                                         <img src=\"{{ asset(photo.path, 'profile_media_selfie') }}\" alt=\"\" width=\"150\">
  1100.                                     </div>
  1101.                                 {% endif %}
  1102.                             {% endfor %}
  1103.                         {% endif %}
  1104.                     </div>
  1105.                 {% endif %}
  1106.                 {% if false == profile.isModerationRejected and not profile.deleted %}
  1107.                     <div class=\"row\">
  1108.                         {% for video in profile.confirmedVideos | filter(video => video.previewPath) %}
  1109.                             <div class=\"col-4\">
  1110.                                 <video width=\"100%\" controls poster=\"{{ asset(video.previewPath, 'profile_media', 'fullsize') }}\">
  1111.                                     <source src=\"{{ asset(video.path, 'profile_media', 'fullsize') }}\" type=\"video/mp4\">
  1112.                                     Your browser does not support the video tag.
  1113.                                 </video>
  1114.                             </div>
  1115.                         {% endfor %}
  1116.                     </div>
  1117.                 {% endif %}
  1118.             </div>
  1119.         </div>
  1120.         <div class=\"col-9\">
  1121.             <div id=\"center_column_metric\">
  1122.                 <h5>{{ profile.name|trans }} {{ rating }}&#9733;
  1123.                     {% if not profile.deleted %}
  1124.                         {% if profile.isModerationRejected %}
  1125.                             <h3>Анкета отклонена модератором</h3>
  1126.                         {% else %}
  1127.                             {% if profile.active %}
  1128.                             <small><a href=\"tel:{{ profile.phoneNumber }}\">{{ profile.phoneNumber }}</a></small>
  1129.                             {% endif %}
  1130.                         {% endif %}
  1131.                     {% else %}
  1132.                          Заглушка телефона
  1133.                     {% endif %}
  1134.                 </h5>
  1135.                 <dl>
  1136.                     <dt>{% trans %}Город{% endtrans %}</dt>
  1137.                     <dd>{{ profile.city.name|trans }}</dd>
  1138.                     <dt>{% trans %}Метро{% endtrans %}</dt>
  1139.                     <dd>
  1140.                         {% for station in profile.stations %}
  1141.                             <a href=\"{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}\">{{ station.name|trans }}</a>
  1142.                             {% if not loop.last %}, {% endif %}
  1143.                         {% endfor %}
  1144.                     </dd>
  1145.                     <dt>{% trans %}Район{% endtrans %}</dt>
  1146.                     <dd>
  1147.                         {% for station in profile.stations %}
  1148.                             {% set stationDistrict = station.district %}
  1149.                             {% if stationDistrict %}
  1150.                                 {% set districtCounty = stationDistrict.county %}
  1151.                                 {% if districtCounty %}
  1152.                                     <a href=\"{{ path('profile_list.list_by_county', {'city': profile.city.uriIdentity, 'county': districtCounty.uriIdentity}) }}\">{{ districtCounty.name|trans }}</a>
  1153.                                 {% endif %}
  1154.                             {% endif %}
  1155.                         {% endfor %}
  1156.                     </dd>
  1157.                     {% if not profile.deleted %}
  1158.                         {% if not profile.isModerationRejected %}
  1159.                             <dt><strong>{% trans %}Телефон{% endtrans %}</strong></dt>
  1160.                             <dd><strong>{{ profile.phoneNumber }}</strong></dd>
  1161.                         {% endif %}
  1162.                     {% else %}
  1163.                         Заглушка телефона
  1164.                     {% endif %}
  1165.                     <dt>{% trans %}Возраст{% endtrans %}</dt>
  1166.                     <dd>{{ profile.personParameters.age }}</dd>
  1167.                     <dt>{% trans %}Рост{% endtrans %}</dt>
  1168.                     <dd>{{ profile.personParameters.height }}</dd>
  1169.                     <dt>{% trans %}Размер груди{% endtrans %}</dt>
  1170.                     <dd>{{ profile.personParameters.breastSize }}</dd>
  1171.                     <dt>{% trans %}Вес{% endtrans %}</dt>
  1172.                     <dd>{{ profile.personParameters.weight }}</dd>
  1173.                     <dt>{% trans %}Размер одежды{% endtrans %}</dt>
  1174.                     <dd>{{ profile.personParameters.clothSize }}</dd>
  1175.                     <dt>{% trans %}Телосложение{% endtrans %}</dt>
  1176.                     <dd>{{ profile.personParameters.bodyType|body_type|trans }}</dd>
  1177.                     <dt>{% trans %}Цвет волос{% endtrans %}</dt>
  1178.                     <dd>{{ profile.personParameters.hairColor|hair_color|trans }}</dd>
  1179.                     <dt>{% trans %}Интимная стрижка{% endtrans %}</dt>
  1180.                     <dd>{{ profile.personParameters.privateHaircut|private_haircut|trans }}</dd>
  1181.                     <dt>{% trans %}Национальность{% endtrans %}</dt>
  1182.                     <dd>{{ profile.personParameters.nationality|nationality|trans }}</dd>
  1183.                     <dt>{% trans %}Дата обновления{% endtrans %}</dt>
  1184.                     <dd>{{ profile.updatedAt|date }}</dd>
  1185.                 </dl>
  1186.                 <h6>{% trans %}О себе{% endtrans %}</h6>
  1187.                 <p>{{ profile.description|trans }}</p>
  1188.                 <h6>{% trans %}Предпочтения{% endtrans %}</h6>
  1189.                 {% for group, servicesGroup in services | filter((servicesGroup, group) => not profile.masseur or group not in masseurExcludeServiceGroups) %}
  1190.                     <p><strong>{{ group|service_group|trans({}, 'service_groups') }}</strong></p>
  1191.                     <ul>
  1192.                         {% for service in servicesGroup %}
  1193.                             {% set providedService = profile.providedService(service) %}
  1194.                             <li class=\"{% if providedService %}text-success{% else %}text-danger{% endif %}\">
  1195.                                 <a href=\"{{ path('profile_list.list_by_provided_service', {'city': profile.city.uriIdentity, 'service': service.uriIdentity}) }}\">{{ service.name|trans }}</a></li>
  1196.                             {% if providedService %}
  1197.                                 {% if feature('extended_profile_form') %}
  1198.                                     {{ providedService.condition|provided_service_condition|trans({},'service_conditions') }}{% if providedService.condition == 3 %}, цена:{{ providedService.extraCharge }}{% endif %}
  1199.                                 {% endif %}
  1200.                                 {% if providedService.comment %}
  1201.                                     Комментарий: {{ providedService.comment }}
  1202.                                 {% endif %}
  1203.                             {% endif %}
  1204.                         {% endfor %}
  1205.                     </ul>
  1206.                 {% endfor %}
  1207.             <h6>{% trans %}Отзывы{% endtrans %}</h6>
  1208.                 <div id=\"comments\">
  1209.                     {% for comment in profile.comments %}
  1210.                         {% include 'ProfilePreview/comment.html.twig' %}
  1211.                     {% else %}
  1212.                         <p>{% trans %}Отзывов нет{% endtrans %}</p>
  1213.                     {% endfor %}
  1214.                 </div>
  1215.                 <div id=\"commentFormContainer\">
  1216.                 </div>
  1217.                 <div id=\"recaptcha-container\"></div>
  1218.                 {% if feature('extended_profile_form') %}
  1219.                     <div>
  1220.                         {% if profile.expressPricing %}
  1221.                             <b>Экспресс:</b>
  1222.                             {% if profile.expressPricing.provided %}
  1223.                                 Да, стоимость{{ profile.expressPricing.price }}
  1224.                             {% else %}
  1225.                                 Нет
  1226.                             {% endif %}
  1227.                         {% endif %}
  1228.                     </div>
  1229.                 {% endif %}
  1230.                 {% if profile.clientTypes %}
  1231.                     <div>
  1232.                         <b>Услуги для:</b>
  1233.                         {% for clientType in profile.clientTypes %}
  1234.                             {{ clientType|client_type|trans({}, 'client_types') }}<br>
  1235.                         {% endfor %}
  1236.                     </div>
  1237.                 {% endif %}
  1238.                 {% if feature('extended_profile_form') %}
  1239.                     <div>
  1240.                         {% if profile.messengers %}
  1241.                             <b>Мессенджеры</b><br>
  1242.                             <b>Telegram</b> {{ profile.messengers.telegram ? 'Да' : 'Нет' }}
  1243.                             <b>WhatsApp</b> {{ profile.messengers.whatsApp ? 'Да' : 'Нет' }}
  1244.                         {% endif %}
  1245.                     </div>
  1246.                 {% endif %}
  1247.                 {% if feature('extended_profile_form') %}
  1248.                     <div>
  1249.                         {% if profile.carPricing %}
  1250.                             <b>В машине:</b> {{ profile.carPricing.provided ? 'Да' : 'Нет' }}
  1251.                         {% endif %}
  1252.                     </div>
  1253.                 {% endif %}
  1254.                 {% if feature('extended_profile_form') %}
  1255.                     <div>
  1256.                         {% if profile.personParameters.tattoo is not null %}
  1257.                             <b>Тату:</b> {{ profile.personParameters.tattoo ? 'Да' : 'Нет' }}
  1258.                         {% endif %}
  1259.                     </div>
  1260.                     <div>
  1261.                         {% if profile.personParameters.piercing is not null %}
  1262.                             <b>Пирсинг:</b> {{ profile.personParameters.piercing ? 'Да' : 'Нет' }}
  1263.                         {% endif %}
  1264.                     </div>
  1265.                 {% endif %}
  1266.                 <div>
  1267.                     <b>Отвечаю на:</b>
  1268.                     {% for answeringTo in profile.phoneCallRestrictions.answeringTo %}
  1269.                         {{ answeringTo|answering_to|trans({}, 'phone_call_restrictions') }}<br>
  1270.                     {% endfor %}
  1271.                 </div>
  1272.             </div>
  1273.         </div>
  1274.         {% include 'ProfilePreview/nearest_profiles.html.twig' %}
  1275.         <div id=\"recentlyViewedProfiles\"></div>
  1276.     </div>
  1277.     <script type=\"text/javascript\">
  1278.         var onloadCallback = function() {
  1279.             grecaptcha.render('recaptcha-container', {
  1280.                 'sitekey' : '{{ ewz_recaptcha_site_key }}'
  1281.             });
  1282.         };
  1283.     </script>
  1284.     <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
  1285.     <script src=\"{{ asset('ajax.js', 'js_script') }}\"></script>
  1286.     <script src=\"{{ asset('local-storage.js', 'js_script') }}\"></script>
  1287.     <script src=\"{{ asset('recommendations.js', 'js_script') }}\"></script>
  1288.     <script src=\"{{ asset('bot-helper.js', 'js_script') }}\"></script>
  1289.     <script src=\"{{ asset('recently-viewed.js', 'js_script') }}\"></script>
  1290.     <script type=\"text/javascript\">
  1291.         document.addEventListener('DOMContentLoaded', function() {
  1292.             profileRecommendations.addViewedProfile({{ profile.id }});
  1293.             profileBotHelper.addViewedProfile({{ profile.id }});
  1294.             //достаем список, пока без учета текущей страницы, для текущего аякс запроса
  1295.             const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
  1296.             recentlyViewed.addViewedProfile({{ profile.id }});
  1297.             //recently viewed profiles
  1298.             ajax({
  1299.                 url: '{{ path('recent_profiles.recently_viewed.list') }}',
  1300.                 data: {
  1301.                     recently_viewed_profiles: recentlyViewedProfiles,
  1302.                 },
  1303.                 callback: function(response) {
  1304.                     if(!response)
  1305.                         return;
  1306.                     // console.log(response);
  1307.                     document.querySelector('#recentlyViewedProfiles').innerHTML = response;
  1308.                 },
  1309.                 dataType: 'json',
  1310.                 responseType: 'text/html',
  1311.             });
  1312.             ajax({
  1313.                 url: '{{ path('profile.comment.comment_form', {profile: profile.id}) }}',
  1314.                 callback: function(response) {
  1315.                     // console.log(response);
  1316.                     if('' !== response) {
  1317.                         document.querySelector('#commentFormContainer').innerHTML = response;
  1318.                         setCommentFormListeners();
  1319.                     }
  1320.                 },
  1321.                 dataType: 'json',
  1322.                 responseType: 'text/html',
  1323.             });
  1324.             function setCommentFormListeners() {
  1325.                 const formName = 'comment_form';
  1326.                 document.querySelector('#send_comment').addEventListener('click', function() {
  1327.                     ajax({
  1328.                         url: '{{ path('profile.comment.create', {profile: profile.id}) }}',
  1329.                         method: '',
  1330.                         data: {
  1331.                             'g-recaptcha-response': grecaptcha.getResponse(),
  1332.                             'entity_id': document.querySelector(`#\${formName}_entity_id`).value,
  1333.                             'mark': document.querySelector(`input[name=\"\${formName}[mark]\"]:checked`).value,
  1334.                             'text': document.querySelector(`#\${formName}_text`).value,
  1335.                         },
  1336.                         callback: function(response) {
  1337.                             if(response) {
  1338.                                 if(response.success) {
  1339.                                     //document.querySelector(`#{formName}`).style.display = 'none';
  1340.                                     //document.querySelector('#send_comment').style.display = 'none';
  1341.                                     document.querySelector(`form[name=\"\${formName}\"]`).reset();
  1342.                                     grecaptcha.reset();
  1343.                                     let template =
  1344.                                         '<div>' +
  1345.                                         (response.comment.nickname ?
  1346.                                             '<span class=\"author\">' +
  1347.                                             '<img src=\"#avatar\" alt=\"shift\" width=\"25\">' +
  1348.                                             '<span class=\"name\">#nickname</span>' +
  1349.                                             '</span>' : '') +
  1350.                                         '<span class=\"date\">#createdAt</span>' +
  1351.                                         '<span>#text</span>' +
  1352.                                         '</div>'
  1353.                                     ;
  1354.                                     response.comment.createdAt = new Date(response.comment.createdAt * 1000);
  1355.                                     for(let k in response.comment) {
  1356.                                         template = template.replace('#'+k, response.comment[k]);
  1357.                                     }
  1358.                                     document.querySelector('#comments').innerHTML += template;
  1359.                                     // console.log(template);
  1360.                                     // document.querySelector('#comments').innerHTML += response.html;
  1361.                                 } else {
  1362.                                     alert(response.error);
  1363.                                 }
  1364.                             }
  1365.                         },
  1366.                         dataType: 'json',
  1367.                         responseType: 'json',
  1368.                     });
  1369.                 });
  1370.             }
  1371.             //LIKE/UNLIKE
  1372.             document.querySelector('#left_column_metric').addEventListener('click', function(e) {
  1373.                 if(false == e.target.classList.contains('add-remove-favourite'))
  1374.                     return;
  1375.                 addRemoveFavourite(e.target.dataset['action'] == 'add');
  1376.             });
  1377.             let addRemoveFavourite = function(add) {
  1378.                 let btn = document.querySelector('.add-remove-favourite[data-action=\"' + (add ? 'add' : 'remove') + '\"]');
  1379.                 let reverseBtn = document.querySelector('.add-remove-favourite[data-action=\"' + (!add ? 'add' : 'remove') + '\"]');
  1380.                 btn.style.display = 'none';
  1381.                 ajax({
  1382.                     url: add ? '{{ path('account.favourites.add', {profile: profile.id}) }}' : '{{ path('account.favourites.remove', {profile: profile.id}) }}',
  1383.                     callback: function(response) {
  1384.                         if(response) {
  1385.                             if(response.success) {
  1386.                                 reverseBtn.style.display = 'block';
  1387.                             } else {
  1388.                                 btn.style.display = 'block';
  1389.                                 alert(response.error);
  1390.                             }
  1391.                         }
  1392.                     },
  1393.                     dataType: 'json',
  1394.                     responseType: 'json',
  1395.                 });
  1396.             };
  1397.             //LIKE/UNLIKE end
  1398.         });
  1399.     </script>
  1400. {% endblock %}
  1401. ""ProfilePreview/page.html.twig""/app/templates/ProfilePreview/page.html.twig");
  1402.     }
  1403. }