<?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;

/* tool/ajax/ags/listResults.html.twig */
class __TwigTemplate_85fb677fdb7569853c13574ac4ffbdff4948786801c1cd0d258a7428be1f421c 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", "tool/ajax/ags/listResults.html.twig"));

        // line 1
        echo "<br/>
<hr/>
";
        // line 3
        if ((twig_length_filter($this->env, (isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 3, $this->source); })())) != 0)) {
            // line 4
            echo "    <div class=\"alert alert-info\" role=\"alert\">
        <i class=\"fas fa-poll-h\"></i>&nbsp;";
            // line 5
            echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 5, $this->source); })())), "html", null, true);
            echo " result(s) found
    </div>
    <div class=\"input-group mb-3\">
        <input type=\"text\" id=\"agsModalResultSearch-";
            // line 8
            echo twig_escape_filter($this->env, ((array_key_exists("mode", $context)) ? (_twig_default_filter((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 8, $this->source); })()), "line-item-container")) : ("line-item-container")), "html", null, true);
            echo "\" class=\"form-control\" placeholder=\"Search\">
        <div class=\"input-group-append\">
            <button id=\"agsModalResultSearchReset-";
            // line 10
            echo twig_escape_filter($this->env, ((array_key_exists("mode", $context)) ? (_twig_default_filter((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 10, $this->source); })()), "line-item-container")) : ("line-item-container")), "html", null, true);
            echo "\" class=\"btn-secondary btn\"><i class=\"fas fa-undo-alt\"></i>&nbsp;Reset</button>
        </div>
    </div>
    <pre>
        <code id=\"agsModalResultZone-";
            // line 14
            echo twig_escape_filter($this->env, ((array_key_exists("mode", $context)) ? (_twig_default_filter((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 14, $this->source); })()), "line-item-container")) : ("line-item-container")), "html", null, true);
            echo "\" class=\"language-json hljs\">";
            echo twig_escape_filter($this->env, json_encode((isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 14, $this->source); })()), (twig_constant("JSON_PRETTY_PRINT") + twig_constant("JSON_UNESCAPED_SLASHES"))), "html", null, true);
            echo "</code>
    </pre>
";
        } else {
            // line 17
            echo "    <div class=\"alert alert-dark alert-no-margin-bottom\" role=\"alert\">
        <i class=\"fas fa-ban\"></i>&nbsp;No results found
    </div>
";
        }
        // line 21
        echo "
<script>
    hljs.initHighlightingOnLoad();

    \$(\"#agsModalResultSearch-";
        // line 25
        echo twig_escape_filter($this->env, ((array_key_exists("mode", $context)) ? (_twig_default_filter((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 25, $this->source); })()), "line-item-container")) : ("line-item-container")), "html", null, true);
        echo "\").on(\"input\", function(){
        \$(\"#agsModalResultZone-";
        // line 26
        echo twig_escape_filter($this->env, ((array_key_exists("mode", $context)) ? (_twig_default_filter((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 26, $this->source); })()), "line-item-container")) : ("line-item-container")), "html", null, true);
        echo "\").unmark({
            done: function() {
                \$(\"#agsModalResultZone-";
        // line 28
        echo twig_escape_filter($this->env, ((array_key_exists("mode", $context)) ? (_twig_default_filter((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 28, $this->source); })()), "line-item-container")) : ("line-item-container")), "html", null, true);
        echo "\").mark(
                    \$(\"#agsModalResultSearch-";
        // line 29
        echo twig_escape_filter($this->env, ((array_key_exists("mode", $context)) ? (_twig_default_filter((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 29, $this->source); })()), "line-item-container")) : ("line-item-container")), "html", null, true);
        echo "\").val()
                );
            }
        });
    });

    \$(\"#agsModalResultSearchReset-";
        // line 35
        echo twig_escape_filter($this->env, ((array_key_exists("mode", $context)) ? (_twig_default_filter((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 35, $this->source); })()), "line-item-container")) : ("line-item-container")), "html", null, true);
        echo "\").click(function(){
        \$(\"#agsModalResultSearch-";
        // line 36
        echo twig_escape_filter($this->env, ((array_key_exists("mode", $context)) ? (_twig_default_filter((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 36, $this->source); })()), "line-item-container")) : ("line-item-container")), "html", null, true);
        echo "\").val(\"\");
        \$(\"#agsModalResultZone-";
        // line 37
        echo twig_escape_filter($this->env, ((array_key_exists("mode", $context)) ? (_twig_default_filter((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 37, $this->source); })()), "line-item-container")) : ("line-item-container")), "html", null, true);
        echo "\").unmark();
    });
</script>";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    public function getTemplateName()
    {
        return "tool/ajax/ags/listResults.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  117 => 37,  113 => 36,  109 => 35,  100 => 29,  96 => 28,  91 => 26,  87 => 25,  81 => 21,  75 => 17,  67 => 14,  60 => 10,  55 => 8,  49 => 5,  46 => 4,  44 => 3,  40 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<br/>
<hr/>
{% if results|length != 0 %}
    <div class=\"alert alert-info\" role=\"alert\">
        <i class=\"fas fa-poll-h\"></i>&nbsp;{{ results|length}} result(s) found
    </div>
    <div class=\"input-group mb-3\">
        <input type=\"text\" id=\"agsModalResultSearch-{{ mode|default('line-item-container') }}\" class=\"form-control\" placeholder=\"Search\">
        <div class=\"input-group-append\">
            <button id=\"agsModalResultSearchReset-{{ mode|default('line-item-container') }}\" class=\"btn-secondary btn\"><i class=\"fas fa-undo-alt\"></i>&nbsp;Reset</button>
        </div>
    </div>
    <pre>
        <code id=\"agsModalResultZone-{{ mode|default('line-item-container') }}\" class=\"language-json hljs\">{{ results|json_encode(constant('JSON_PRETTY_PRINT') + constant('JSON_UNESCAPED_SLASHES')) }}</code>
    </pre>
{% else %}
    <div class=\"alert alert-dark alert-no-margin-bottom\" role=\"alert\">
        <i class=\"fas fa-ban\"></i>&nbsp;No results found
    </div>
{% endif %}

<script>
    hljs.initHighlightingOnLoad();

    \$(\"#agsModalResultSearch-{{ mode|default('line-item-container') }}\").on(\"input\", function(){
        \$(\"#agsModalResultZone-{{ mode|default('line-item-container') }}\").unmark({
            done: function() {
                \$(\"#agsModalResultZone-{{ mode|default('line-item-container') }}\").mark(
                    \$(\"#agsModalResultSearch-{{ mode|default('line-item-container') }}\").val()
                );
            }
        });
    });

    \$(\"#agsModalResultSearchReset-{{ mode|default('line-item-container') }}\").click(function(){
        \$(\"#agsModalResultSearch-{{ mode|default('line-item-container') }}\").val(\"\");
        \$(\"#agsModalResultZone-{{ mode|default('line-item-container') }}\").unmark();
    });
</script>", "tool/ajax/ags/listResults.html.twig", "C:\\wamp64\\www\\devkit-lti1p3-master-tool\\templates\\tool\\ajax\\ags\\listResults.html.twig");
    }
}
