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

/* @SuluForm/themes/dynamic.html.twig */
class __TwigTemplate_271afd4f8a53f182fe9526e93d959099 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->blocks = [
            'form_row' => [$this, 'block_form_row'],
            'button_row' => [$this, 'block_button_row'],
            'form_label' => [$this, 'block_form_label'],
            'hidden_row' => [$this, 'block_hidden_row'],
            'hidden_widget' => [$this, 'block_hidden_widget'],
            'sulu_form__token_widget' => [$this, 'block_sulu_form__token_widget'],
            'sulu_form_text_row' => [$this, 'block_sulu_form_text_row'],
            'sulu_form_text_headline_widget' => [$this, 'block_sulu_form_text_headline_widget'],
            'sulu_form_text_spacer_widget' => [$this, 'block_sulu_form_text_spacer_widget'],
            'sulu_form_text_freeText_widget' => [$this, 'block_sulu_form_text_freeText_widget'],
            'sulu_form_row_start' => [$this, 'block_sulu_form_row_start'],
            'sulu_form_row_class_name' => [$this, 'block_sulu_form_row_class_name'],
            'sulu_form_row_end' => [$this, 'block_sulu_form_row_end'],
            'attributes' => [$this, 'block_attributes'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 1
        return "form_div_layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("form_div_layout.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 6
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_form_row(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 7
        yield from         $this->unwrap()->yieldBlock("sulu_form_row_start", $context, $blocks);
        // line 8
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label');
        // line 9
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
        // line 10
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        // line 11
        yield from         $this->unwrap()->yieldBlock("sulu_form_row_end", $context, $blocks);
        yield from [];
    }

    // line 14
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_button_row(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 15
        yield from         $this->unwrap()->yieldBlock("sulu_form_row_start", $context, $blocks);
        // line 16
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        // line 17
        yield from         $this->unwrap()->yieldBlock("sulu_form_row_end", $context, $blocks);
        yield from [];
    }

    // line 21
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_form_label(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 22
        if ((($tmp =  !(($context["label"] ?? null) === false)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 23
            $context["label"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
                yield ($context["label"] ?? null);
                yield from [];
            })())) ? '' : new Markup($tmp, $this->env->getCharset());
            // line 24
            yield from $this->yieldParentBlock("form_label", $context, $blocks);
        }
        yield from [];
    }

    // line 29
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_hidden_row(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 30
        if (CoreExtension::inFilter(((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "type", [], "any", true, true, false, 30)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "type", [], "any", false, false, false, 30), "")) : ("")), ["spacer", "freeText", "headline"])) {
            // line 31
            yield from             $this->unwrap()->yieldBlock("sulu_form_text_row", $context, $blocks);
        } else {
            // line 33
            yield from $this->yieldParentBlock("hidden_row", $context, $blocks);
        }
        yield from [];
    }

    // line 38
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_hidden_widget(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 39
        if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 39), "name", [], "any", false, false, false, 39) == "_token")) {
            // line 40
            yield from             $this->unwrap()->yieldBlock("sulu_form__token_widget", $context, $blocks);
        } else {
            // line 42
            yield from $this->yieldParentBlock("hidden_widget", $context, $blocks);
        }
        yield from [];
    }

    // line 47
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_sulu_form__token_widget(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 48
        yield "    ";
        yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragmentStrategy("esi", Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Sulu\\Bundle\\FormBundle\\Controller\\FormTokenController::tokenAction", ["form" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,         // line 49
($context["form"] ?? null), "parent", [], "any", false, false, false, 49), "vars", [], "any", false, false, false, 49), "name", [], "any", false, false, false, 49), "html" => true, "_requestAnalyzer" => false]));
        yield from [];
    }

    // line 56
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_sulu_form_text_row(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 57
        yield from         $this->unwrap()->yieldBlock("sulu_form_row_start", $context, $blocks);
        yield "
    ";
        // line 58
        yield from         $this->unwrap()->yieldBlock((("sulu_form_text_" . CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "type", [], "any", false, false, false, 58)) . "_widget"), $context, $blocks);
        yield "
    ";
        // line 59
        yield from         $this->unwrap()->yieldBlock("sulu_form_row_end", $context, $blocks);
        yield from [];
    }

    // line 63
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_sulu_form_text_headline_widget(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 64
        yield "<h4>";
        yield ($context["label"] ?? null);
        yield "</h4>";
        yield from [];
    }

    // line 68
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_sulu_form_text_spacer_widget(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield from [];
    }

    // line 72
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_sulu_form_text_freeText_widget(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 73
        yield "<p>";
        yield ($context["label"] ?? null);
        yield "</p>";
        yield from [];
    }

    // line 77
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_sulu_form_row_start(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 78
        yield "<div class=\"";
        yield from         $this->unwrap()->yieldBlock("sulu_form_row_class_name", $context, $blocks);
        yield "\">";
        yield from [];
    }

    // line 81
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_sulu_form_row_class_name(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 82
        $context["className"] = ("form-item form-width-" . ((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "width", [], "any", true, true, false, 82)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "width", [], "any", false, false, false, 82), "full")) : ("full")));
        // line 83
        if ((($tmp = ((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "lastWidth", [], "any", true, true, false, 83)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "lastWidth", [], "any", false, false, false, 83), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 84
            $context["className"] = (($context["className"] ?? null) . " form-width-last");
        }
        // line 86
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["className"] ?? null), "html", null, true);
        yield from [];
    }

    // line 89
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_sulu_form_row_end(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 90
        yield "</div>";
        yield from [];
    }

    // line 94
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_attributes(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 95
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["attr"] ?? null));
        foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
            // line 96
            yield " ";
            // line 97
            if (CoreExtension::inFilter($context["attrname"], ["width", "widthNumber", "lastWidth"])) {
            } elseif (CoreExtension::inFilter(            // line 99
$context["attrname"], ["placeholder", "title"])) {
                // line 100
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrname"], "html", null, true);
                yield "=\"";
                yield (((($context["translation_domain"] ?? null) === false)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrvalue"], "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["attrvalue"], [], ($context["translation_domain"] ?? null)), "html", null, true)));
                yield "\"";
            } elseif ((            // line 101
$context["attrvalue"] === true)) {
                // line 102
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrname"], "html", null, true);
                yield "=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrname"], "html", null, true);
                yield "\"";
            } elseif ((($tmp =  !(            // line 103
$context["attrvalue"] === false)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 104
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrname"], "html", null, true);
                yield "=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrvalue"], "html", null, true);
                yield "\"";
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['attrname'], $context['attrvalue'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@SuluForm/themes/dynamic.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  304 => 104,  302 => 103,  297 => 102,  295 => 101,  290 => 100,  288 => 99,  286 => 97,  284 => 96,  280 => 95,  273 => 94,  268 => 90,  261 => 89,  256 => 86,  253 => 84,  251 => 83,  249 => 82,  242 => 81,  235 => 78,  228 => 77,  221 => 73,  214 => 72,  204 => 68,  197 => 64,  190 => 63,  185 => 59,  181 => 58,  177 => 57,  170 => 56,  165 => 49,  163 => 48,  156 => 47,  150 => 42,  147 => 40,  145 => 39,  138 => 38,  132 => 33,  129 => 31,  127 => 30,  120 => 29,  114 => 24,  109 => 23,  107 => 22,  100 => 21,  95 => 17,  93 => 16,  91 => 15,  84 => 14,  79 => 11,  77 => 10,  75 => 9,  73 => 8,  71 => 7,  64 => 6,  53 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "@SuluForm/themes/dynamic.html.twig", "C:\\xampp\\htdocs\\taiafropressapi\\vendor\\sulu\\form-bundle\\Resources\\views\\themes\\dynamic.html.twig");
    }
}
