<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* PimUserBundle::layout.html.twig */
class __TwigTemplate_910a434ca666ccd7df22d9a37b49206d7276e626f1c38202de77af462529f030 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
            'head' => [$this, 'block_head'],
            'title' => [$this, 'block_title'],
            'head_style' => [$this, 'block_head_style'],
            'bodyClass' => [$this, 'block_bodyClass'],
            'main' => [$this, 'block_main'],
            'messages' => [$this, 'block_messages'],
            'content' => [$this, 'block_content'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        echo "<!DOCTYPE html>
<html>
<head>
    ";
        // line 4
        $this->displayBlock('head', $context, $blocks);
        // line 15
        echo "</head>
<body class=\"";
        // line 16
        $this->displayBlock('bodyClass', $context, $blocks);
        echo "\">
    <div id=\"page\">
        <div id=\"top-page\">
            ";
        // line 19
        $this->displayBlock('main', $context, $blocks);
        // line 34
        echo "        </div>
    </div>
    ";
        // line 37
        echo "    <script type=\"text/javascript\" nonce=\"";
        echo twig_escape_filter($this->env, $this->env->getExtension('Akeneo\Platform\Bundle\UIBundle\Twig\ContentSecurityPolicyExtension')->getScriptNonce(), "html", null, true);
        echo "\">
        const tooltip = document.querySelector('[data-toggle=\"tooltip\"]');
        if (null !== tooltip) {
            tooltip.addEventListener('mouseover', function(event){
                var html =`
                    <div class=\"tooltip-arrow\" style=\"top: 19.2982%;\"></div>
                    <div class=\"tooltip-inner\">\${event.currentTarget.dataset.originalTitle}</div>`
                var tooltip = document.createElement('div');
                tooltip.className = 'tooltip fade right in';
                tooltip.style = `top: 0px; left: \${event.currentTarget.offsetLeft + event.currentTarget.offsetWidth}px; display: block;`;

                tooltip.innerHTML = html;
                event.currentTarget.parentNode.appendChild(tooltip);
            });

            tooltip.addEventListener('mouseout', function(event){
                event.currentTarget.parentNode.querySelectorAll('.tooltip').forEach((tooltip) => tooltip.remove());
            });
        }
    </script>
</body>
</html>
";
    }

    // line 4
    public function block_head($context, array $blocks = [])
    {
        // line 5
        echo "        <title>
            ";
        // line 6
        $this->displayBlock('title', $context, $blocks);
        // line 8
        echo "        </title>
        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
        ";
        // line 10
        $this->displayBlock('head_style', $context, $blocks);
        // line 14
        echo "    ";
    }

    // line 6
    public function block_title($context, array $blocks = [])
    {
        // line 7
        echo "            ";
    }

    // line 10
    public function block_head_style($context, array $blocks = [])
    {
        // line 11
        echo "            <link rel=\"shortcut icon\" href=\"";
        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("favicon.ico"), "html", null, true);
        echo "\" />
            <link rel=\"stylesheet\" href=\"";
        // line 12
        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("css/pim.css", "frontend"), "html", null, true);
        echo "\"/>
        ";
    }

    // line 16
    public function block_bodyClass($context, array $blocks = [])
    {
    }

    // line 19
    public function block_main($context, array $blocks = [])
    {
        // line 20
        echo "                ";
        $this->displayBlock('messages', $context, $blocks);
        // line 31
        echo "                ";
        $this->displayBlock('content', $context, $blocks);
        // line 33
        echo "            ";
    }

    // line 20
    public function block_messages($context, array $blocks = [])
    {
        // line 21
        echo "                    ";
        if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "session", []), "flashbag", []), "peekAll", [])) > 0)) {
            // line 22
            echo "                        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "session", []), "flashbag", []), "all", []));
            foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
                // line 23
                echo "                            ";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($context["messages"]);
                foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
                    // line 24
                    echo "                            <div class=\"alert";
                    (($context["type"]) ? (print (twig_escape_filter($this->env, (" alert-" . $context["type"]), "html", null, true))) : (print ("")));
                    echo "\">
                            ";
                    // line 25
                    echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($context["message"]);
                    echo "
                            </div>
                            ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 28
                echo "                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['type'], $context['messages'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 29
            echo "                    ";
        }
        // line 30
        echo "                ";
    }

    // line 31
    public function block_content($context, array $blocks = [])
    {
        // line 32
        echo "                ";
    }

    public function getTemplateName()
    {
        return "PimUserBundle::layout.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  190 => 32,  187 => 31,  183 => 30,  180 => 29,  174 => 28,  165 => 25,  160 => 24,  155 => 23,  150 => 22,  147 => 21,  144 => 20,  140 => 33,  137 => 31,  134 => 20,  131 => 19,  126 => 16,  120 => 12,  115 => 11,  112 => 10,  108 => 7,  105 => 6,  101 => 14,  99 => 10,  95 => 8,  93 => 6,  90 => 5,  87 => 4,  59 => 37,  55 => 34,  53 => 19,  47 => 16,  44 => 15,  42 => 4,  37 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("", "PimUserBundle::layout.html.twig", "/var/www/html/vendor/akeneo/pim-community-dev/src/Akeneo/UserManagement/Bundle/Resources/views/layout.html.twig");
    }
}
