<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* export/actions.html.twig */
class __TwigTemplate_ade4444f39cc2c5669f531b1b88e86c589e3cee10fe55b79ffb2966c1e8ffe4a extends Template
{
    private $source;
    private $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 = [])
    {
        $macros = $this->macros;
        // line 1
        echo "
";
    }

    // line 2
    public function macro_export($__view__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "view" => $__view__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 3
            echo "    ";
            $macros["widgets"] = $this->loadTemplate("macros/widgets.html.twig", "export/actions.html.twig", 3)->unwrap();
            // line 4
            echo "
    ";
            // line 5
            $context["actions"] = ["visibility" => "#modal_export"];
            // line 6
            echo "
    ";
            // line 7
            if (0 === twig_compare(($context["view"] ?? null), "preview")) {
                // line 8
                echo "        ";
                $context["actions"] = twig_array_merge(($context["actions"] ?? null), ["off" => ["id" => "export-toggle-button"]]);
                // line 9
                echo "    ";
            }
            // line 10
            echo "    ";
            $context["actions"] = twig_array_merge(($context["actions"] ?? null), ["help" => ["url" => $this->extensions['App\Twig\Extensions']->documentationLink("export.html"), "target" => "_blank"]]);
            // line 11
            echo "
    ";
            // line 12
            $context["event"] = $this->env->getRuntime('App\Twig\Runtime\ThemeEventExtension')->trigger("actions.export", ["actions" => ($context["actions"] ?? null), "view" => ($context["view"] ?? null)]);
            // line 13
            echo "    ";
            echo twig_call_macro($macros["widgets"], "macro_page_actions", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["event"] ?? null), "payload", [], "any", false, false, false, 13), "actions", [], "any", false, false, false, 13)], 13, $context, $this->getSourceContext());
            echo "
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    public function getTemplateName()
    {
        return "export/actions.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  82 => 13,  80 => 12,  77 => 11,  74 => 10,  71 => 9,  68 => 8,  66 => 7,  63 => 6,  61 => 5,  58 => 4,  55 => 3,  42 => 2,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "export/actions.html.twig", "/var/www/html/kimai2/templates/export/actions.html.twig");
    }
}
