<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* launch/blocks/identity.html.twig */
class __TwigTemplate_ffaa767fd4585ce3e0d84b244a3bb97df18bf139eb846ceb806def6b30a20231 extends Template
{
    private $source;
    private $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 = [])
    {
        $macros = $this->macros;
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "launch/blocks/identity.html.twig"));

        // line 1
        echo "<div class=\"card bg-light\">
    <div class=\"card-header\">
        <i class=\"fas fa-user\"></i>&nbsp;User
    </div>
    <div class=\"card-body\">
        ";
        // line 6
        if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 6, $this->source); })()), "payload", [], "any", false, false, false, 6), "userIdentity", [], "any", false, false, false, 6)) {
            // line 7
            echo "            <div class=\"row\">
                <div class=\"col-md-6\">
                    <dl class=\"list-unstyled\">
                        <dt>Identifier</dt>
                        <dd><code>";
            // line 11
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 11, $this->source); })()), "payload", [], "any", false, false, false, 11), "userIdentity", [], "any", false, false, false, 11), "identifier", [], "any", false, false, false, 11), "html", null, true);
            echo "</code></dd>
                        <dt>Name</dt>
                        <dd>";
            // line 13
            echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["token"] ?? null), "payload", [], "any", false, true, false, 13), "userIdentity", [], "any", false, true, false, 13), "name", [], "any", true, true, false, 13)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["token"] ?? null), "payload", [], "any", false, true, false, 13), "userIdentity", [], "any", false, true, false, 13), "name", [], "any", false, false, false, 13), "n/a")) : ("n/a")), "html", null, true);
            echo "</dd>
                        <dt>Email</dt>
                        <dd>";
            // line 15
            echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["token"] ?? null), "payload", [], "any", false, true, false, 15), "userIdentity", [], "any", false, true, false, 15), "email", [], "any", true, true, false, 15)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["token"] ?? null), "payload", [], "any", false, true, false, 15), "userIdentity", [], "any", false, true, false, 15), "email", [], "any", false, false, false, 15), "n/a")) : ("n/a")), "html", null, true);
            echo "</dd>
                        <dt>Given name</dt>
                        <dd>";
            // line 17
            echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["token"] ?? null), "payload", [], "any", false, true, false, 17), "userIdentity", [], "any", false, true, false, 17), "givenName", [], "any", true, true, false, 17)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["token"] ?? null), "payload", [], "any", false, true, false, 17), "userIdentity", [], "any", false, true, false, 17), "givenName", [], "any", false, false, false, 17), "n/a")) : ("n/a")), "html", null, true);
            echo "</dd>
                        <dt>Family name</dt>
                        <dd>";
            // line 19
            echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["token"] ?? null), "payload", [], "any", false, true, false, 19), "userIdentity", [], "any", false, true, false, 19), "familyName", [], "any", true, true, false, 19)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["token"] ?? null), "payload", [], "any", false, true, false, 19), "userIdentity", [], "any", false, true, false, 19), "familyName", [], "any", false, false, false, 19), "n/a")) : ("n/a")), "html", null, true);
            echo "</dd>
                        <dt>Middle name</dt>
                        <dd>";
            // line 21
            echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["token"] ?? null), "payload", [], "any", false, true, false, 21), "userIdentity", [], "any", false, true, false, 21), "middleName", [], "any", true, true, false, 21)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["token"] ?? null), "payload", [], "any", false, true, false, 21), "userIdentity", [], "any", false, true, false, 21), "middleName", [], "any", false, false, false, 21), "n/a")) : ("n/a")), "html", null, true);
            echo "</dd>
                        <dt>Locale</dt>
                        <dd>";
            // line 23
            echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["token"] ?? null), "payload", [], "any", false, true, false, 23), "userIdentity", [], "any", false, true, false, 23), "locale", [], "any", true, true, false, 23)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["token"] ?? null), "payload", [], "any", false, true, false, 23), "userIdentity", [], "any", false, true, false, 23), "locale", [], "any", false, false, false, 23), "n/a")) : ("n/a")), "html", null, true);
            echo "</dd>
                    </dl>
                </div>
                <div class=\"col-md-6\">
                    <dl class=\"list-unstyled\">
                        <dt>Picture</dt>
                        <dd>
                            ";
            // line 30
            if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 30, $this->source); })()), "payload", [], "any", false, false, false, 30), "userIdentity", [], "any", false, false, false, 30), "picture", [], "any", false, false, false, 30)) {
                // line 31
                echo "                                <img
                                        src=\"";
                // line 32
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 32, $this->source); })()), "payload", [], "any", false, false, false, 32), "userIdentity", [], "any", false, false, false, 32), "picture", [], "any", false, false, false, 32), "html", null, true);
                echo "\"
                                        class=\"img-thumbnail rounded\"
                                        alt=\"";
                // line 34
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 34, $this->source); })()), "payload", [], "any", false, false, false, 34), "userIdentity", [], "any", false, false, false, 34), "picture", [], "any", false, false, false, 34), "html", null, true);
                echo "\"
                                        height=\"350\"
                                        width=\"350\"
                                />
                            ";
            } else {
                // line 39
                echo "                                n/a
                            ";
            }
            // line 41
            echo "                        </dd>
                    </dl>
                </div>
            </div>
        ";
        } else {
            // line 46
            echo "            <div class=\"alert alert-dark alert-no-margin-bottom\" role=\"alert\">
                <i class=\"fas fa-user-secret\"></i>&nbsp;Anonymous User
            </div>
        ";
        }
        // line 50
        echo "    </div>
</div>
<br/>
<div class=\"card bg-light\">
    <div class=\"card-header\">
        <i class=\"fas fa-user-tag\"></i>&nbsp;Roles <small>(at launch)</small>
    </div>
    <div class=\"card-body\">
        <div class=\"row\">
            <div class=\"col-md-12\">
                ";
        // line 60
        if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 60, $this->source); })()), "payload", [], "any", false, false, false, 60), "roles", [], "any", false, false, false, 60))) {
            // line 61
            echo "                    <dl class=\"list-unstyled\">
                        ";
            // line 62
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 62, $this->source); })()), "payload", [], "any", false, false, false, 62), "roles", [], "any", false, false, false, 62));
            foreach ($context['_seq'] as $context["_key"] => $context["role"]) {
                // line 63
                echo "                            <dd><code>";
                echo twig_escape_filter($this->env, $context["role"], "html", null, true);
                echo "</code></dd>
                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['role'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 65
            echo "                    </dl>
                ";
        } else {
            // line 67
            echo "                    <div class=\"alert alert-dark alert-no-margin-bottom\" role=\"alert\">
                        <i class=\"fas fa-ban\"></i>&nbsp;No roles provided
                    </div>
                ";
        }
        // line 71
        echo "            </div>
        </div>
    </div>
</div>

";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    public function getTemplateName()
    {
        return "launch/blocks/identity.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  170 => 71,  164 => 67,  160 => 65,  151 => 63,  147 => 62,  144 => 61,  142 => 60,  130 => 50,  124 => 46,  117 => 41,  113 => 39,  105 => 34,  100 => 32,  97 => 31,  95 => 30,  85 => 23,  80 => 21,  75 => 19,  70 => 17,  65 => 15,  60 => 13,  55 => 11,  49 => 7,  47 => 6,  40 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div class=\"card bg-light\">
    <div class=\"card-header\">
        <i class=\"fas fa-user\"></i>&nbsp;User
    </div>
    <div class=\"card-body\">
        {% if token.payload.userIdentity %}
            <div class=\"row\">
                <div class=\"col-md-6\">
                    <dl class=\"list-unstyled\">
                        <dt>Identifier</dt>
                        <dd><code>{{ token.payload.userIdentity.identifier }}</code></dd>
                        <dt>Name</dt>
                        <dd>{{ token.payload.userIdentity.name|default('n/a') }}</dd>
                        <dt>Email</dt>
                        <dd>{{ token.payload.userIdentity.email|default('n/a') }}</dd>
                        <dt>Given name</dt>
                        <dd>{{ token.payload.userIdentity.givenName|default('n/a') }}</dd>
                        <dt>Family name</dt>
                        <dd>{{ token.payload.userIdentity.familyName|default('n/a') }}</dd>
                        <dt>Middle name</dt>
                        <dd>{{ token.payload.userIdentity.middleName|default('n/a') }}</dd>
                        <dt>Locale</dt>
                        <dd>{{ token.payload.userIdentity.locale|default('n/a') }}</dd>
                    </dl>
                </div>
                <div class=\"col-md-6\">
                    <dl class=\"list-unstyled\">
                        <dt>Picture</dt>
                        <dd>
                            {% if token.payload.userIdentity.picture %}
                                <img
                                        src=\"{{ token.payload.userIdentity.picture }}\"
                                        class=\"img-thumbnail rounded\"
                                        alt=\"{{ token.payload.userIdentity.picture }}\"
                                        height=\"350\"
                                        width=\"350\"
                                />
                            {% else %}
                                n/a
                            {% endif %}
                        </dd>
                    </dl>
                </div>
            </div>
        {% else %}
            <div class=\"alert alert-dark alert-no-margin-bottom\" role=\"alert\">
                <i class=\"fas fa-user-secret\"></i>&nbsp;Anonymous User
            </div>
        {% endif %}
    </div>
</div>
<br/>
<div class=\"card bg-light\">
    <div class=\"card-header\">
        <i class=\"fas fa-user-tag\"></i>&nbsp;Roles <small>(at launch)</small>
    </div>
    <div class=\"card-body\">
        <div class=\"row\">
            <div class=\"col-md-12\">
                {% if token.payload.roles is not empty  %}
                    <dl class=\"list-unstyled\">
                        {% for role in token.payload.roles  %}
                            <dd><code>{{ role }}</code></dd>
                        {% endfor %}
                    </dl>
                {% else %}
                    <div class=\"alert alert-dark alert-no-margin-bottom\" role=\"alert\">
                        <i class=\"fas fa-ban\"></i>&nbsp;No roles provided
                    </div>
                {% endif %}
            </div>
        </div>
    </div>
</div>

", "launch/blocks/identity.html.twig", "C:\\wamp64\\www\\devkit-lti1p3-master-tool\\templates\\launch\\blocks\\identity.html.twig");
    }
}
