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

/* index.twig */
class __TwigTemplate_884ff9d1063bfcc475f138609089fc7e 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 = [
            'content' => [$this, 'block_content'],
        ];
    }

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

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

    // line 3
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 4
        yield "    ";
        yield from $this->load("components/header.twig", 4)->unwrap()->yield($context);
        // line 5
        yield "
    <div class=\"flex flex-col grow container mx-auto px-4 xl:max-w-screen-xl dark:text-white\">
        <div class=\"my-4\">
            <div class=\"flex justify-between font-bold p-4\">
                <div class=\"grow font-mono mr-2\">
                    ";
        // line 10
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('translate')->getCallable()("file.name"), "html", null, true);
        yield "
                </div>

                <div class=\"font-mono text-right w-1/6 mx-2 hidden sm:block\">
                    ";
        // line 14
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('translate')->getCallable()("file.size"), "html", null, true);
        yield "
                </div>

                <div class=\"font-mono text-right w-1/4 ml-2 hidden sm:block\">
                    ";
        // line 18
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('translate')->getCallable()("file.date"), "html", null, true);
        yield "
                </div>
            </div>

            <ul>
                <li>
                    ";
        // line 24
        if ((($context["path"] ?? null) && (($context["path"] ?? null) != "."))) {
            // line 25
            yield "                        ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "components/file.twig", ["parentDir" => true]);
            yield "
                    ";
        }
        // line 27
        yield "                </li>

                <li>
                    ";
        // line 30
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["files"] ?? 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["file"]) {
            // line 31
            yield "                        ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "components/file.twig");
            yield "
                    ";
            ++$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['file'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 33
        yield "                </li>
            </ul>
        </div>

        ";
        // line 37
        if ((($tmp = ($context["readme"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 38
            yield "            ";
            yield from $this->load("components/readme.twig", 38)->unwrap()->yield($context);
            // line 39
            yield "        ";
        }
        // line 40
        yield "    </div>

    ";
        // line 42
        yield from $this->load("components/footer.twig", 42)->unwrap()->yield($context);
        // line 43
        yield "
    ";
        // line 44
        yield from $this->load("components/scroll-to-top.twig", 44)->unwrap()->yield($context);
        // line 45
        yield "
    ";
        // line 46
        yield from $this->load("components/file-info-modal.twig", 46)->unwrap()->yield($context);
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  166 => 46,  163 => 45,  161 => 44,  158 => 43,  156 => 42,  152 => 40,  149 => 39,  146 => 38,  144 => 37,  138 => 33,  121 => 31,  104 => 30,  99 => 27,  93 => 25,  91 => 24,  82 => 18,  75 => 14,  68 => 10,  61 => 5,  58 => 4,  51 => 3,  40 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "index.twig", "/var/www/vhosts/awxpokmt.host213.checkdomain.de/htdocs/playground/DirectoryLister/DirectoryLister-5.2.1/app/views/index.twig");
    }
}
