<?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;

/* @Mcp/prompts.html.twig */
class __TwigTemplate_a7f1e75dfaf617d7d88a41ca92d0a618 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 1
        if ((($tmp = Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, ($context["collector"] ?? null), "prompts", [], "any", false, false, false, 1))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 2
            yield "    <div class=\"sf-tabs\">
        ";
            // line 3
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["collector"] ?? null), "prompts", [], "any", false, false, false, 3));
            foreach ($context['_seq'] as $context["_key"] => $context["prompt"]) {
                // line 4
                yield "            <div class=\"tab\">
                <h3 class=\"tab-title\">";
                // line 5
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["prompt"], "name", [], "any", false, false, false, 5), "html", null, true);
                yield "</h3>
                <div class=\"tab-content\">
                    ";
                // line 7
                if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["prompt"], "description", [], "any", false, false, false, 7)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                    // line 8
                    yield "                        <p><strong>Description:</strong> ";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["prompt"], "description", [], "any", false, false, false, 8), "html", null, true);
                    yield "</p>
                    ";
                }
                // line 10
                yield "
                    ";
                // line 11
                if ((($tmp = Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["prompt"], "arguments", [], "any", false, false, false, 11))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                    // line 12
                    yield "                        <h4>Arguments</h4>
                        <table>
                            <thead>
                                <tr>
                                    <th>Name</th>
                                    <th>Required</th>
                                    <th>Description</th>
                                </tr>
                            </thead>
                            <tbody>
                                ";
                    // line 22
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["prompt"], "arguments", [], "any", false, false, false, 22));
                    foreach ($context['_seq'] as $context["_key"] => $context["arg"]) {
                        // line 23
                        yield "                                    <tr>
                                        <td><code>";
                        // line 24
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["arg"], "name", [], "any", false, false, false, 24), "html", null, true);
                        yield "</code></td>
                                        <td>
                                            ";
                        // line 26
                        if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["arg"], "required", [], "any", false, false, false, 26)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                            // line 27
                            yield "                                                <span class=\"label status-error\">Yes</span>
                                            ";
                        } else {
                            // line 29
                            yield "                                                <span class=\"label\">No</span>
                                            ";
                        }
                        // line 31
                        yield "                                        </td>
                                        <td>";
                        // line 32
                        yield (((CoreExtension::getAttribute($this->env, $this->source, $context["arg"], "description", [], "any", true, true, false, 32) &&  !(null === CoreExtension::getAttribute($this->env, $this->source, $context["arg"], "description", [], "any", false, false, false, 32)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["arg"], "description", [], "any", false, false, false, 32), "html", null, true)) : ("-"));
                        yield "</td>
                                    </tr>
                                ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_key'], $context['arg'], $context['_parent']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 35
                    yield "                            </tbody>
                        </table>
                    ";
                } else {
                    // line 38
                    yield "                        <div class=\"empty\">
                            <p>This prompt has no arguments.</p>
                        </div>
                    ";
                }
                // line 42
                yield "                </div>
            </div>
        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['prompt'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 45
            yield "    </div>
";
        } else {
            // line 47
            yield "    <div class=\"empty\">
        <p>No prompts were registered.</p>
    </div>
";
        }
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@Mcp/prompts.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  141 => 47,  137 => 45,  129 => 42,  123 => 38,  118 => 35,  109 => 32,  106 => 31,  102 => 29,  98 => 27,  96 => 26,  91 => 24,  88 => 23,  84 => 22,  72 => 12,  70 => 11,  67 => 10,  61 => 8,  59 => 7,  54 => 5,  51 => 4,  47 => 3,  44 => 2,  42 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "@Mcp/prompts.html.twig", "/var/www/fulfillment/api/vendor/symfony/mcp-bundle/templates/prompts.html.twig");
    }
}
