<?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/platformSecurity.html.twig */
class __TwigTemplate_37aadcc620e31b7c52510704b28aca576e414f6855355dab98bac119758369f8 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/platformSecurity.html.twig"));

        // line 1
        if (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.', 1, $this->source); })()), "payload", [], "any", false, false, false, 1)) {
            // line 2
            echo "    <div class=\"alert alert-info\" role=\"alert\">
        <i class=\"fas fa-shield-alt\"></i>&nbsp;
        Valid tool originating LTI message
    </div>
";
        } else {
            // line 7
            echo "    <div class=\"alert alert-danger\" role=\"alert\">
        <i class=\"fas fa-exclamation-circle\"></i>&nbsp;
        Invalid tool originating LTI message
    </div>
";
        }
        // line 12
        echo "<div class=\"card bg-light\">
    <div class=\"card-header\">
        <i class=\"fas fa-lock\"></i>&nbsp;Token
    </div>
    <div class=\"card-body\">
        <dl class=\"list-unstyled\">
            <dt>JWT</dt>
            <dd>
                <div class=\"input-group\">
                    <div class=\"input-group-prepend\">
                        <a target=\"_blank\" class=\"btn btn-secondary\" href=\"https://jwt.io?token=";
        // line 22
        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.', 22, $this->source); })()), "payload", [], "any", false, false, false, 22), "token", [], "any", false, false, false, 22), "toString", [], "any", false, false, false, 22), "html", null, true);
        echo "\" role=\"button\" title=\"See on jwt.io\">
                            <i class=\"fas fa-external-link-alt\"></i>
                        </a>
                    </div>
                    <input type=\"text\" class=\"form-control\" placeholder=\"token\" value=\"";
        // line 26
        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.', 26, $this->source); })()), "payload", [], "any", false, false, false, 26), "token", [], "any", false, false, false, 26), "toString", [], "any", false, false, false, 26), "html", null, true);
        echo "\" readonly>
                </div>
            </dd>
        </dl>
    </div>
</div>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    public function getTemplateName()
    {
        return "launch/blocks/platformSecurity.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  75 => 26,  68 => 22,  56 => 12,  49 => 7,  42 => 2,  40 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% if token.payload %}
    <div class=\"alert alert-info\" role=\"alert\">
        <i class=\"fas fa-shield-alt\"></i>&nbsp;
        Valid tool originating LTI message
    </div>
{% else %}
    <div class=\"alert alert-danger\" role=\"alert\">
        <i class=\"fas fa-exclamation-circle\"></i>&nbsp;
        Invalid tool originating LTI message
    </div>
{% endif %}
<div class=\"card bg-light\">
    <div class=\"card-header\">
        <i class=\"fas fa-lock\"></i>&nbsp;Token
    </div>
    <div class=\"card-body\">
        <dl class=\"list-unstyled\">
            <dt>JWT</dt>
            <dd>
                <div class=\"input-group\">
                    <div class=\"input-group-prepend\">
                        <a target=\"_blank\" class=\"btn btn-secondary\" href=\"https://jwt.io?token={{ token.payload.token.toString }}\" role=\"button\" title=\"See on jwt.io\">
                            <i class=\"fas fa-external-link-alt\"></i>
                        </a>
                    </div>
                    <input type=\"text\" class=\"form-control\" placeholder=\"token\" value=\"{{ token.payload.token.toString }}\" readonly>
                </div>
            </dd>
        </dl>
    </div>
</div>
", "launch/blocks/platformSecurity.html.twig", "C:\\wamp64\\www\\devkit-lti1p3-master-tool\\templates\\launch\\blocks\\platformSecurity.html.twig");
    }
}
