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

/* components/file.twig */
class __TwigTemplate_ef2cc674909613ecea792786e120e4f9 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 = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        yield "<a
    href=\"";
        // line 2
        yield (((($tmp = ($context["parentDir"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('parent_url')->getCallable()(($context["path"] ?? null)), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('file_url')->getCallable()(CoreExtension::getAttribute($this->env, $this->source, ($context["file"] ?? null), "getPathname", [], "any", false, false, false, 2)), "html", null, true)));
        yield "\"
    class=\"flex flex-col items-center rounded-lg font-mono group hover:bg-slate-100 hover:shadow-sm dark:hover:bg-violet-700\"
>
    <div class=\"flex justify-between items-center p-4 w-full\">
        <div class=\"pr-2\">
            ";
        // line 7
        if ((($tmp = ($context["parentDir"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 8
            yield "                <i class=\"fas fa-level-up-alt fa-fw fa-lg\"></i>
            ";
        } else {
            // line 10
            yield "                ";
            yield $this->env->getFunction('icon')->getCallable()(($context["file"] ?? null));
            yield "
            ";
        }
        // line 12
        yield "        </div>

        <div class=\"flex-1 truncate\">
            ";
        // line 15
        yield (((($tmp = ($context["parentDir"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("..") : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["file"] ?? null), "getRelativePathname", [], "any", false, false, false, 15), "html", null, true)));
        yield "
        </div>

        ";
        // line 18
        if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["file"] ?? null), "isFile", [], "any", false, false, false, 18)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 19
            yield "            <div class=\"ml-2\">
                <button title=\"";
            // line 20
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('translate')->getCallable()("file.info"), "html", null, true);
            yield "\" @click.prevent=\"\$dispatch('show-file-info', { file: '";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()(CoreExtension::getAttribute($this->env, $this->source, ($context["file"] ?? null), "getPathname", [], "any", false, false, false, 20)), "js"), "html", null, true);
            yield "' })\"
                    class=\"justify-center items-center rounded-full w-8 h-8 -m-1 cursor-pointer transition md:invisible hover:bg-slate-300 hover:shadow-sm hover:scale-110 dark:hover:bg-violet-900 group-hover:visible\"
                >
                    <i class=\"fas fa-info-circle\"></i>
                </button>
            </div>
        ";
        }
        // line 27
        yield "
        <div class=\"hidden whitespace-nowrap text-right mx-2 w-1/6 sm:block\">
            ";
        // line 29
        if ((($context["parentDir"] ?? null) || CoreExtension::getAttribute($this->env, $this->source, ($context["file"] ?? null), "isDir", [], "any", false, false, false, 29))) {
            // line 30
            yield "                    —
            ";
        } else {
            // line 32
            yield "                ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('size_for_humans')->getCallable()(($context["file"] ?? null)), "html", null, true);
            yield "
            ";
        }
        // line 34
        yield "        </div>

        <div class=\"hidden whitespace-nowrap text-right truncate ml-2 w-1/4 sm:block\">
            ";
        // line 37
        yield (((($tmp = ($context["parentDir"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("—") : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('modified_time')->getCallable()(($context["file"] ?? null)), "html", null, true)));
        yield "
        </div>
    </div>
</a>
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  114 => 37,  109 => 34,  103 => 32,  99 => 30,  97 => 29,  93 => 27,  81 => 20,  78 => 19,  76 => 18,  70 => 15,  65 => 12,  59 => 10,  55 => 8,  53 => 7,  45 => 2,  42 => 1,);
    }

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