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

/* @SuluPage/Export/Snippet/base.export.twig */
class __TwigTemplate_a460169138ab8b838649d0c6d1427f49 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 = [
            'main' => [$this, 'block_main'],
            'snippets' => [$this, 'block_snippets'],
            'snippet' => [$this, 'block_snippet'],
            'content' => [$this, 'block_content'],
            'properties' => [$this, 'block_properties'],
            'model' => [$this, 'block_model'],
            'view' => [$this, 'block_view'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        yield from $this->unwrap()->yieldBlock('main', $context, $blocks);
        // line 4
        yield "
";
        // line 5
        if (false) {
            yield " ";
            // line 6
            yield "    ";
            // line 7
            yield from $this->unwrap()->yieldBlock('snippets', $context, $blocks);
            // line 17
            yield "    ";
            yield from $this->unwrap()->yieldBlock('snippet', $context, $blocks);
            // line 20
            yield "
    ";
            // line 22
            yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
            // line 28
            yield from $this->unwrap()->yieldBlock('properties', $context, $blocks);
            // line 46
            yield from $this->unwrap()->yieldBlock('model', $context, $blocks);
            // line 56
            yield from $this->unwrap()->yieldBlock('view', $context, $blocks);
        }
        yield from [];
    }

    // line 1
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_main(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 2
        yield "    ";
        yield from         $this->unwrap()->yieldBlock("snippets", $context, $blocks);
        yield "
";
        yield from [];
    }

    // line 7
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_snippets(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 8
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["snippetData"] ?? 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["document"]) {
            // line 9
            $_v0 = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
                // line 10
                yield "                ";
                $context["content"] = CoreExtension::getAttribute($this->env, $this->source, $context["document"], "content", [], "any", false, false, false, 10);
                // line 11
                yield "                ";
                $context["prefix"] = "";
                // line 12
                yield "            ";
                yield from [];
            })())) ? '' : new Markup($tmp, $this->env->getCharset());
            // line 9
            yield Twig\Extension\CoreExtension::spaceless($_v0);
            // line 12
            yield from             $this->unwrap()->yieldBlock("snippet", $context, $blocks);
            ++$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['document'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        yield from [];
    }

    // line 17
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_snippet(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 18
        yield from         $this->unwrap()->yieldBlock("content", $context, $blocks);
        yield from [];
    }

    // line 22
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 23
        $context["properties"] = ($context["content"] ?? null);
        // line 24
        yield from         $this->unwrap()->yieldBlock("properties", $context, $blocks);
        yield from [];
    }

    // line 28
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_properties(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 29
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["properties"] ?? 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["property"]) {
            // line 30
            if (CoreExtension::getAttribute($this->env, $this->source, $context["property"], "value", [], "any", true, true, false, 30)) {
                // line 31
                yield from                 $this->unwrap()->yieldBlock("model", $context, $blocks);
            }
            // line 33
            if (CoreExtension::getAttribute($this->env, $this->source, $context["property"], "children", [], "any", true, true, false, 33)) {
                // line 34
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["property"], "children", [], "any", false, false, false, 34));
                $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 35
                    $context["prefixBefore"] = ($context["prefix"] ?? null);
                    // line 36
                    yield "                    ";
                    $context["prefix"] = ((((($context["prefix"] ?? null) . CoreExtension::getAttribute($this->env, $this->source, $context["property"], "name", [], "any", false, false, false, 36)) . "#") . $context["key"]) . "-");
                    // line 37
                    yield "                    ";
                    $context["properties"] = $context["child"];
                    // line 38
                    yield from                     $this->unwrap()->yieldBlock("properties", $context, $blocks);
                    // line 39
                    $context["prefix"] = ($context["prefixBefore"] ?? null);
                    ++$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;
            }
            ++$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['property'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        yield from [];
    }

    // line 46
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_model(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 47
        $_v1 = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 48
            yield "            ";
            $context["name"] = (($context["prefix"] ?? null) . CoreExtension::getAttribute($this->env, $this->source, ($context["property"] ?? null), "name", [], "any", false, false, false, 48));
            // line 49
            yield "            ";
            $context["options"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["property"] ?? null), "options", [], "any", true, true, false, 49)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["property"] ?? null), "options", [], "any", false, false, false, 49), "")) : (""));
            // line 50
            yield "            ";
            $context["value"] = CoreExtension::getAttribute($this->env, $this->source, ($context["property"] ?? null), "value", [], "any", false, false, false, 50);
            // line 51
            yield "            ";
            $context["type"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["property"] ?? null), "type", [], "any", true, true, false, 51)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["property"] ?? null), "type", [], "any", false, false, false, 51), "")) : (""));
            // line 52
            yield "        ";
            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 47
        yield Twig\Extension\CoreExtension::spaceless($_v1);
        // line 52
        yield from         $this->unwrap()->yieldBlock("view", $context, $blocks);
        yield from [];
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@SuluPage/Export/Snippet/base.export.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  295 => 56,  290 => 52,  288 => 47,  284 => 52,  281 => 51,  278 => 50,  275 => 49,  272 => 48,  270 => 47,  263 => 46,  233 => 39,  231 => 38,  228 => 37,  225 => 36,  223 => 35,  206 => 34,  204 => 33,  201 => 31,  199 => 30,  182 => 29,  175 => 28,  170 => 24,  168 => 23,  161 => 22,  156 => 18,  149 => 17,  132 => 12,  130 => 9,  126 => 12,  123 => 11,  120 => 10,  118 => 9,  101 => 8,  94 => 7,  86 => 2,  79 => 1,  73 => 56,  71 => 46,  69 => 28,  67 => 22,  64 => 20,  61 => 17,  59 => 7,  57 => 6,  54 => 5,  51 => 4,  49 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "@SuluPage/Export/Snippet/base.export.twig", "C:\\xampp\\htdocs\\taiafropressapi\\vendor\\sulu\\sulu\\src\\Sulu\\Bundle\\PageBundle\\Resources\\views\\Export\\Snippet\\base.export.twig");
    }
}
