<?php

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

/* @PimUser/Reset/reset.html.twig */
class __TwigTemplate_87b30b9685af3bce12c8c122dd00e11e extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'bodyClass' => [$this, 'block_bodyClass'],
            'messages' => [$this, 'block_messages'],
            'content' => [$this, 'block_content'],
            'deferred_javascript' => [$this, 'block_deferred_javascript'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "@PimUser/layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 3
        $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme(($context["form"] ?? null), ["@PimUser/Reset/_fields.html.twig"], true);
        // line 1
        $this->parent = $this->loadTemplate("@PimUser/layout.html.twig", "@PimUser/Reset/reset.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 5
    public function block_bodyClass($context, array $blocks = [])
    {
        $macros = $this->macros;
        yield "AknLogin";
        return; yield '';
    }

    // line 7
    public function block_messages($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 8
        yield "    ";
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
        yield "
";
        return; yield '';
    }

    // line 11
    public function block_content($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 12
        yield "    ";
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pim_user_reset_reset", ["token" =>         // line 13
($context["token"] ?? null)]), "method" => "post", "class" => "Form"]);
        // line 16
        yield "
    <div class=\"InputGroup\">
        ";
        // line 18
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "plainPassword", [], "any", false, false, false, 18), 'widget', ["required" => true]);
        yield "
        <div class=\"CancelPasswordReset\">
            <a href=\"";
        // line 20
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pim_user_security_login");
        yield "\">";
        yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("pim_common.cancel"), "html", null, true);
        yield "</a>
        </div>
    </div>
    <button type=\"submit\" id=\"_submit\" class=\"AknButton AknButton--apply\">";
        // line 24
        yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("pim_user.user.login.reset"), "html", null, true);
        // line 25
        yield "</button>
    ";
        // line 26
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        yield "
";
        return; yield '';
    }

    // line 29
    public function block_deferred_javascript($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 30
        yield "    ";
        yield from $this->yieldParentBlock("deferred_javascript", $context, $blocks);
        yield "
    <script type=\"text/javascript\" nonce=\"";
        // line 31
        yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Akeneo\Platform\Bundle\UIBundle\Twig\ContentSecurityPolicyExtension']->getScriptNonce(), "html", null, true);
        yield "\">
      (function () {
        const passwordFirst = document.getElementById('pim_user_reset_form_plainPassword_first');
        const passwordSecond = document.getElementById('pim_user_reset_form_plainPassword_second');
        const submit = document.getElementById('_submit');
        const form = document.querySelector('form.Form');

        initPimLoginForm([passwordFirst, passwordSecond], submit, form);
      })();
    </script>
";
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "@PimUser/Reset/reset.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  119 => 31,  114 => 30,  110 => 29,  103 => 26,  100 => 25,  98 => 24,  90 => 20,  85 => 18,  81 => 16,  79 => 13,  77 => 12,  73 => 11,  65 => 8,  61 => 7,  53 => 5,  48 => 1,  46 => 3,  39 => 1,);
    }

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