<?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/basic.html.twig */
class __TwigTemplate_3efda6cfa6b7c261a9b7eb285d2b4745 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'],
            'csrf_token_widget' => [$this, 'block_csrf_token_widget'],
            'headline_row' => [$this, 'block_headline_row'],
            'headline_widget' => [$this, 'block_headline_widget'],
            'freeText_row' => [$this, 'block_freeText_row'],
            'freeText_widget' => [$this, 'block_freeText_widget'],
            'spacer_row' => [$this, 'block_spacer_row'],
            'spacer_widget' => [$this, 'block_spacer_widget'],
            'sulu_form_row_class_name' => [$this, 'block_sulu_form_row_class_name'],
            'honeypot_row' => [$this, 'block_honeypot_row'],
            'checkbox_row' => [$this, 'block_checkbox_row'],
            'choice_widget_expanded' => [$this, 'block_choice_widget_expanded'],
            'sulu_form_choice_class_name' => [$this, 'block_sulu_form_choice_class_name'],
            '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 4
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_form_row(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 5
        $context["row_attr"] = Twig\Extension\CoreExtension::merge(($context["row_attr"] ?? null), ["class" =>         $this->unwrap()->renderBlock("sulu_form_row_class_name", $context, $blocks)]);
        // line 6
        yield from $this->yieldParentBlock("form_row", $context, $blocks);
        yield from [];
    }

    // line 9
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_button_row(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 10
        $context["row_attr"] = Twig\Extension\CoreExtension::merge(($context["row_attr"] ?? null), ["class" =>         $this->unwrap()->renderBlock("sulu_form_row_class_name", $context, $blocks)]);
        // line 11
        yield from $this->yieldParentBlock("button_row", $context, $blocks);
        yield from [];
    }

    // line 15
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_form_label(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 16
        if ((($tmp =  !(($context["label"] ?? null) === false)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 17
            $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 18
            yield from $this->yieldParentBlock("form_label", $context, $blocks);
        }
        yield from [];
    }

    // line 23
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_csrf_token_widget(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 24
        yield "    ";
        $context["controller"] = 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 25
($context["form"] ?? null), "parent", [], "any", false, false, false, 25), "vars", [], "any", false, false, false, 25), "name", [], "any", false, false, false, 25), "html" => true, "_requestAnalyzer" => false]);
        // line 29
        yield "
    ";
        // line 34
        yield "    ";
        if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 34), "isMethodCacheable", [], "any", false, false, false, 34)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 35
            yield "        ";
            trigger_deprecation('', '', "CSRF Token over ESI is deprecated and fails since Symfony 5.4, use Ajax based CSRF Token loading, see CSRF docs."." in \"@SuluForm/themes/basic.html.twig\" at line 35.");
            // line 36
            yield "        ";
            yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragmentStrategy("esi", ($context["controller"] ?? null));
            yield "
    ";
        } else {
            // line 38
            yield "        ";
            yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(($context["controller"] ?? null));
            yield "
    ";
        }
        yield from [];
    }

    // line 43
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_headline_row(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 44
        yield "<div class=\"";
        yield from         $this->unwrap()->yieldBlock("sulu_form_row_class_name", $context, $blocks);
        yield "\">";
        // line 45
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        // line 46
        yield "</div>";
        yield from [];
    }

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

    // line 54
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_freeText_row(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 55
        yield "<div class=\"";
        yield from         $this->unwrap()->yieldBlock("sulu_form_row_class_name", $context, $blocks);
        yield "\">";
        // line 56
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        // line 57
        yield "</div>";
        yield from [];
    }

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

    // line 65
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_spacer_row(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 66
        yield "<div class=\"";
        yield from         $this->unwrap()->yieldBlock("sulu_form_row_class_name", $context, $blocks);
        yield "\">";
        // line 67
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        // line 68
        yield "</div>";
        yield from [];
    }

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

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

    // line 84
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_honeypot_row(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 85
        yield "<div class=\"honung\">";
        // line 86
        yield from         $this->unwrap()->yieldBlock("form_row", $context, $blocks);
        // line 87
        yield "</div>";
        yield from [];
    }

    // line 91
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_checkbox_row(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 92
        $context["row_attr"] = Twig\Extension\CoreExtension::merge(($context["row_attr"] ?? null), ["class" =>         $this->unwrap()->renderBlock("sulu_form_row_class_name", $context, $blocks)]);
        // line 93
        $context["widget_attr"] = [];
        // line 94
        if ((($tmp =  !Twig\Extension\CoreExtension::testEmpty(($context["help"] ?? null))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 95
            $context["widget_attr"] = ["attr" => ["aria-describedby" => (($context["id"] ?? null) . "_help")]];
        }
        // line 97
        yield "<div";
        $_v0 = $context;
        $_v1 = ["attr" => ($context["row_attr"] ?? null)];
        if (!is_iterable($_v1)) {
            throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 97, $this->getSourceContext());
        }
        $_v1 = CoreExtension::toArray($_v1);
        $context = $_v1 + $context + $this->env->getGlobals();
        yield from         $this->unwrap()->yieldBlock("attributes", $context, $blocks);
        $context = $_v0;
        yield ">
        <div class=\"";
        // line 98
        yield from         $this->unwrap()->yieldBlock("sulu_form_choice_class_name", $context, $blocks);
        yield "\">";
        // line 99
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget', ($context["widget_attr"] ?? null));
        // line 100
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label');
        // line 101
        yield "</div>";
        // line 102
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
        // line 103
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'help');
        // line 104
        yield "</div>";
        yield from [];
    }

    // line 107
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_choice_widget_expanded(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 108
        yield "<div ";
        yield from         $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks);
        yield ">";
        // line 109
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["form"] ?? null));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
            // line 110
            yield "<div class=\"";
            yield from             $this->unwrap()->yieldBlock("sulu_form_choice_class_name", $context, $blocks);
            yield "\">";
            // line 111
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
            // line 112
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'label', ["translation_domain" => ($context["choice_translation_domain"] ?? null)]);
            // line 113
            yield "</div>";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 115
        yield "</div>";
        yield from [];
    }

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

    // line 124
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_attributes(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 125
        $context["attr"] = Twig\Extension\CoreExtension::merge(($context["attr"] ?? null), ["width" => false, "widthNumber" => false, "lastWidth" => false]);
        // line 126
        yield from $this->yieldParentBlock("attributes", $context, $blocks);
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  399 => 126,  397 => 125,  390 => 124,  385 => 120,  378 => 119,  373 => 115,  359 => 113,  357 => 112,  355 => 111,  351 => 110,  334 => 109,  330 => 108,  323 => 107,  318 => 104,  316 => 103,  314 => 102,  312 => 101,  310 => 100,  308 => 99,  305 => 98,  292 => 97,  289 => 95,  287 => 94,  285 => 93,  283 => 92,  276 => 91,  271 => 87,  269 => 86,  267 => 85,  260 => 84,  255 => 80,  252 => 78,  250 => 77,  248 => 76,  241 => 75,  231 => 71,  226 => 68,  224 => 67,  220 => 66,  213 => 65,  206 => 61,  199 => 60,  194 => 57,  192 => 56,  188 => 55,  181 => 54,  174 => 50,  167 => 49,  162 => 46,  160 => 45,  156 => 44,  149 => 43,  140 => 38,  134 => 36,  131 => 35,  128 => 34,  125 => 29,  123 => 25,  121 => 24,  114 => 23,  108 => 18,  103 => 17,  101 => 16,  94 => 15,  89 => 11,  87 => 10,  80 => 9,  75 => 6,  73 => 5,  66 => 4,  55 => 1,);
    }

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