<?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/Webspace/base.export.twig */
class __TwigTemplate_44c79d699cf276daba2bdef7cae27627 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'],
            'pages' => [$this, 'block_pages'],
            'page' => [$this, 'block_page'],
            'content' => [$this, 'block_content'],
            'extensions' => [$this, 'block_extensions'],
            'settings' => [$this, 'block_settings'],
            '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('pages', $context, $blocks);
            // line 19
            yield "    ";
            yield from $this->unwrap()->yieldBlock('page', $context, $blocks);
            // line 24
            yield "
    ";
            // line 26
            yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
            // line 32
            yield from $this->unwrap()->yieldBlock('extensions', $context, $blocks);
            // line 43
            yield from $this->unwrap()->yieldBlock('settings', $context, $blocks);
            // line 49
            yield from $this->unwrap()->yieldBlock('properties', $context, $blocks);
            // line 67
            yield from $this->unwrap()->yieldBlock('model', $context, $blocks);
            // line 77
            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("pages", $context, $blocks);
        yield "
";
        yield from [];
    }

    // line 7
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_pages(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 8
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["documents"] ?? 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["settings"] = CoreExtension::getAttribute($this->env, $this->source, $context["document"], "settings", [], "any", false, false, false, 10);
                // line 11
                yield "                ";
                $context["content"] = CoreExtension::getAttribute($this->env, $this->source, $context["document"], "content", [], "any", false, false, false, 11);
                // line 12
                yield "                ";
                $context["extensions"] = CoreExtension::getAttribute($this->env, $this->source, $context["document"], "extensions", [], "any", false, false, false, 12);
                // line 13
                yield "                ";
                $context["prefix"] = "";
                // line 14
                yield "            ";
                yield from [];
            })())) ? '' : new Markup($tmp, $this->env->getCharset());
            // line 9
            yield Twig\Extension\CoreExtension::spaceless($_v0);
            // line 14
            yield from             $this->unwrap()->yieldBlock("page", $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 19
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 20
        yield from         $this->unwrap()->yieldBlock("content", $context, $blocks);
        // line 21
        yield from         $this->unwrap()->yieldBlock("extensions", $context, $blocks);
        // line 22
        yield from         $this->unwrap()->yieldBlock("settings", $context, $blocks);
        yield from [];
    }

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

    // line 32
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_extensions(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 33
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["extensions"] ?? 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["extension"]) {
            // line 34
            $context["prefixBefore"] = ($context["prefix"] ?? null);
            // line 35
            yield "            ";
            $context["prefix"] = ((($context["prefix"] ?? null) . $context["key"]) . "-");
            // line 36
            yield "            ";
            $context["properties"] = $context["extension"];
            // line 37
            yield from             $this->unwrap()->yieldBlock("properties", $context, $blocks);
            // line 38
            $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['extension'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        yield from [];
    }

    // line 43
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_settings(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 44
        $context["properties"] = ($context["settings"] ?? null);
        // line 45
        yield from         $this->unwrap()->yieldBlock("properties", $context, $blocks);
        yield from [];
    }

    // line 49
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_properties(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 50
        $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 51
            if (CoreExtension::getAttribute($this->env, $this->source, $context["property"], "value", [], "any", true, true, false, 51)) {
                // line 52
                yield from                 $this->unwrap()->yieldBlock("model", $context, $blocks);
            }
            // line 54
            if (CoreExtension::getAttribute($this->env, $this->source, $context["property"], "children", [], "any", true, true, false, 54)) {
                // line 55
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["property"], "children", [], "any", false, false, false, 55));
                $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 56
                    $context["prefixBefore"] = ($context["prefix"] ?? null);
                    // line 57
                    yield "                    ";
                    $context["prefix"] = ((((($context["prefix"] ?? null) . CoreExtension::getAttribute($this->env, $this->source, $context["property"], "name", [], "any", false, false, false, 57)) . "#") . $context["key"]) . "-");
                    // line 58
                    yield "                    ";
                    $context["properties"] = $context["child"];
                    // line 59
                    yield from                     $this->unwrap()->yieldBlock("properties", $context, $blocks);
                    // line 60
                    $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 67
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_model(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 68
        $_v1 = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 69
            yield "            ";
            $context["name"] = (($context["prefix"] ?? null) . CoreExtension::getAttribute($this->env, $this->source, ($context["property"] ?? null), "name", [], "any", false, false, false, 69));
            // line 70
            yield "            ";
            $context["options"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["property"] ?? null), "options", [], "any", true, true, false, 70)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["property"] ?? null), "options", [], "any", false, false, false, 70), "")) : (""));
            // line 71
            yield "            ";
            $context["value"] = CoreExtension::getAttribute($this->env, $this->source, ($context["property"] ?? null), "value", [], "any", false, false, false, 71);
            // line 72
            yield "            ";
            $context["type"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["property"] ?? null), "type", [], "any", true, true, false, 72)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["property"] ?? null), "type", [], "any", false, false, false, 72), "")) : (""));
            // line 73
            yield "        ";
            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 68
        yield Twig\Extension\CoreExtension::spaceless($_v1);
        // line 73
        yield from         $this->unwrap()->yieldBlock("view", $context, $blocks);
        yield from [];
    }

    // line 77
    /**
     * @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/Webspace/base.export.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  376 => 77,  371 => 73,  369 => 68,  365 => 73,  362 => 72,  359 => 71,  356 => 70,  353 => 69,  351 => 68,  344 => 67,  314 => 60,  312 => 59,  309 => 58,  306 => 57,  304 => 56,  287 => 55,  285 => 54,  282 => 52,  280 => 51,  263 => 50,  256 => 49,  251 => 45,  249 => 44,  242 => 43,  225 => 38,  223 => 37,  220 => 36,  217 => 35,  215 => 34,  198 => 33,  191 => 32,  186 => 28,  184 => 27,  177 => 26,  172 => 22,  170 => 21,  168 => 20,  161 => 19,  144 => 14,  142 => 9,  138 => 14,  135 => 13,  132 => 12,  129 => 11,  126 => 10,  124 => 9,  107 => 8,  100 => 7,  92 => 2,  85 => 1,  79 => 77,  77 => 67,  75 => 49,  73 => 43,  71 => 32,  69 => 26,  66 => 24,  63 => 19,  61 => 7,  59 => 6,  56 => 5,  53 => 4,  51 => 1,);
    }

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