<?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;
use Twig\TemplateWrapper;

/* @AdminLTE/Macros/default.html.twig */
class __TwigTemplate_12a5dc8358e50b80dced558b696fbc21 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 8
        yield "
";
        // line 25
        yield "
";
        yield from [];
    }

    // line 1
    public function macro_avatar($image = null, $alt = null, $class = null, ...$varargs): string|Markup
    {
        $macros = $this->macros;
        $context = [
            "image" => $image,
            "alt" => $alt,
            "class" => $class,
            "varargs" => $varargs,
        ] + $this->env->getGlobals();

        $blocks = [];

        return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 2
            yield "    ";
            if ((($tmp = ($context["image"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 3
                yield "        <img src=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(($context["image"] ?? null)), "html", null, true);
                yield "\" class=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("class", $context)) ? (Twig\Extension\CoreExtension::default(($context["class"] ?? null), "img-circle")) : ("img-circle")), "html", null, true);
                yield "\" alt=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["alt"] ?? null), "html", null, true);
                yield "\" />
    ";
            } else {
                // line 5
                yield "        <img src=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "default_avatar", [], "any", false, false, false, 5)), "html", null, true);
                yield "\" class=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("class", $context)) ? (Twig\Extension\CoreExtension::default(($context["class"] ?? null), "img-circle")) : ("img-circle")), "html", null, true);
                yield "\" alt=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["alt"] ?? null), "html", null, true);
                yield "\" />
    ";
            }
            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
    }

    // line 13
    public function macro_flash($type = null, $message = null, $close = null, $use_raw = null, $class = null, $domain = null, ...$varargs): string|Markup
    {
        $macros = $this->macros;
        $context = [
            "type" => $type,
            "message" => $message,
            "close" => $close,
            "use_raw" => $use_raw,
            "class" => $class,
            "domain" => $domain,
            "varargs" => $varargs,
        ] + $this->env->getGlobals();

        $blocks = [];

        return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 14
            yield "    <div class=\"alert";
            yield (((($tmp = ($context["type"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((" alert-" . ($context["type"] ?? null)), "html", null, true)) : (""));
            yield " fade in ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("class", $context)) ? (Twig\Extension\CoreExtension::default(($context["class"] ?? null), "")) : ("")), "html", null, true);
            yield " ";
            if ((($tmp = ((array_key_exists("close", $context)) ? (Twig\Extension\CoreExtension::default(($context["close"] ?? null), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                yield "alert-dismissible";
            }
            yield "\">
        ";
            // line 15
            if ((($tmp = ((array_key_exists("close", $context)) ? (Twig\Extension\CoreExtension::default(($context["close"] ?? null), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 16
                yield "            <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">&times;</button>
        ";
            }
            // line 18
            yield "        ";
            if ((($tmp = ((array_key_exists("use_raw", $context)) ? (Twig\Extension\CoreExtension::default(($context["use_raw"] ?? null), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 19
                yield "            ";
                yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["message"] ?? null), [], ((array_key_exists("domain", $context)) ? (Twig\Extension\CoreExtension::default(($context["domain"] ?? null), "AdminLTEBundle")) : ("AdminLTEBundle")));
                yield "
        ";
            } else {
                // line 21
                yield "            ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["message"] ?? null), [], ((array_key_exists("domain", $context)) ? (Twig\Extension\CoreExtension::default(($context["domain"] ?? null), "AdminLTEBundle")) : ("AdminLTEBundle"))), "html", null, true);
                yield "
        ";
            }
            // line 23
            yield "    </div>
";
            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
    }

    // line 26
    public function macro_session_flash($close = null, $use_raw = null, $class = null, $domain = null, ...$varargs): string|Markup
    {
        $macros = $this->macros;
        $context = [
            "close" => $close,
            "use_raw" => $use_raw,
            "class" => $class,
            "domain" => $domain,
            "varargs" => $varargs,
        ] + $this->env->getGlobals();

        $blocks = [];

        return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 27
            yield "    ";
            $macros["flash_messages"] = $this;
            // line 28
            yield "
    ";
            // line 29
            if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 29), "flashbag", [], "any", false, false, false, 29), "peekAll", [], "any", false, false, false, 29)) > 0)) {
                // line 30
                yield "        ";
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 30), "flashbag", [], "any", false, false, false, 30), "all", [], "any", false, false, false, 30));
                foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
                    // line 31
                    yield "            ";
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable($context["messages"]);
                    foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
                        // line 32
                        yield "                ";
                        if (($context["type"] == "fos_user_success")) {
                            // line 33
                            yield "                    ";
                            $context["type"] = "success";
                            // line 34
                            yield "                    ";
                            $context["domain"] = "FOSUserBundle";
                            // line 35
                            yield "                ";
                        }
                        // line 36
                        yield "                ";
                        yield $macros["flash_messages"]->getTemplateForMacro("macro_flash", $context, 36, $this->getSourceContext())->macro_flash(...[$context["type"], $context["message"], ($context["close"] ?? null), ($context["use_raw"] ?? null), ($context["class"] ?? null), ($context["domain"] ?? null)]);
                        yield "
            ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_key'], $context['message'], $context['_parent']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 38
                    yield "        ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['type'], $context['messages'], $context['_parent']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 39
                yield "    ";
            }
            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@AdminLTE/Macros/default.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  208 => 39,  202 => 38,  193 => 36,  190 => 35,  187 => 34,  184 => 33,  181 => 32,  176 => 31,  171 => 30,  169 => 29,  166 => 28,  163 => 27,  148 => 26,  141 => 23,  135 => 21,  129 => 19,  126 => 18,  122 => 16,  120 => 15,  109 => 14,  92 => 13,  78 => 5,  68 => 3,  65 => 2,  51 => 1,  45 => 25,  42 => 8,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "@AdminLTE/Macros/default.html.twig", "/var/www/html/vendor/kevinpapst/adminlte-bundle/Resources/views/Macros/default.html.twig");
    }
}
