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

/* frontend/cible.html.twig */
class __TwigTemplate_ec67cc5087fae1c0e556931c775750e1 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'],
            'js' => [$this, 'block_js'],
        ];
    }

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

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("frontend/layout.html.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 "<div class=\"container single-template\">
\t<div class=\"page-header\">
\t\t<a href=\"";
        // line 6
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("odd", ["id" => CoreExtension::getAttribute($this->env, $this->source, ($context["goal"] ?? null), "id", [], "any", false, false, false, 6)]), "html", null, true);
        yield "\"><h1 class=\"page-title\">
\t\t\t";
        // line 7
        yield (((($context["agenda"] ?? null) == "2030")) ? ("ODD") : ("Aspiration"));
        yield " ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["goal"] ?? null), "code", [], "any", false, false, false, 7), "html", null, true);
        yield " : ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["goal"] ?? null), "name", [], "any", false, false, false, 7), "html", null, true);
        yield "
\t\t</h1></a>
\t</div>

\t<div class=\"row gx-md-5 gy-3\">
\t\t<div class=\"";
        // line 12
        yield (((($context["agenda"] ?? null) == "2030")) ? ("col-lg-8") : ("col-lg-12"));
        yield "\">

\t\t\t<div class=\"download-template\" style=\"margin-top:0px;\">

\t\t\t\t<div class=\"licenses\">
\t\t\t\t\t<div class=\"title\">
\t\t\t\t\t\t<h2>";
        // line 18
        yield (((($context["agenda"] ?? null) == "2030")) ? ("Cible") : ("Objectifs"));
        yield "  ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["target"] ?? null), "code", [], "any", false, false, false, 18), "html", null, true);
        yield " : ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["target"] ?? null), "name", [], "any", false, false, false, 18), "html", null, true);
        yield "</h2>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>


\t\t\t<div class=\"single-contnet pt-4\">
\t\t\t\t";
        // line 25
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["target"] ?? null), "description", [], "any", false, false, false, 25), "html", null, true);
        yield "
\t\t\t\t<br>
\t\t\t\t<br>
\t\t\t\t<br>
\t\t\t\t<div class=\"template-details\">
\t\t\t\t\t<h2>Les ";
        // line 30
        yield (((($context["agenda"] ?? null) == "2030")) ? ("indicateurs") : ("domaines"));
        yield "  de ";
        yield (((($context["agenda"] ?? null) == "2030")) ? ("la cible ") : ("l'objectif "));
        yield "  ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["target"] ?? null), "code", [], "any", false, false, false, 30), "html", null, true);
        yield "
\t\t\t\t\t</h2>
\t\t\t\t</div>

\t\t\t\t<ul style=\"list-style-type: none;\">
\t\t\t\t\t";
        // line 35
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["target"] ?? null), "indicators", [], "any", false, false, false, 35));
        foreach ($context['_seq'] as $context["_key"] => $context["indicateur"]) {
            // line 36
            yield "\t\t\t\t\t\t<li style=\"margin-bottom: 10px;\">

\t\t\t\t\t\t\t<a href=\"";
            // line 38
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("indicateur", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["indicateur"], "id", [], "any", false, false, false, 38)]), "html", null, true);
            yield "\">
\t\t\t\t\t\t\t\t<svg class=\"icon icon-chevron-right\" fill=\"currentColor\">
\t\t\t\t\t\t\t\t\t<use xlink:href=\"";
            // line 40
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("frontend/icons/icons-3.7.svg"), "html", null, true);
            yield "#chevron-right\"></use>
\t\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t\t\t";
            // line 42
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicateur"], "code", [], "any", false, false, false, 42), "html", null, true);
            yield "
\t\t\t\t\t\t\t\t-
\t\t\t\t\t\t\t\t";
            // line 44
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicateur"], "name", [], "any", false, false, false, 44), "html", null, true);
            yield "
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['indicateur'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 48
        yield "\t\t\t\t</ul>
\t\t\t</div>
\t\t</div>
\t\t";
        // line 51
        if ((($context["agenda"] ?? null) == "2030")) {
            // line 52
            yield "\t\t<div class=\"col-lg-4\">
\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t<div class=\"col-lg-6\">
\t\t\t\t\t\t\t\t\t\t<svg class=\"MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-1k33q06\" style=\"fill-rule:evenodd;clip-rule:evenodd;fill:#cccccc;stroke:#cccccc;stroke-width:1;stroke-miterlimit:10;\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"><path d=\"M12 4.08A7.92 7.92 0 0 0 4.08 12 7.92 7.92 0 0 0 12 19.92 7.92 7.92 0 0 0 19.92 12 7.92 7.92 0 0 0 12 4.08Z\" style=\"stroke-width: 0.792;\"></path></svg>
\t\t\t\t\t\t\t\t\t\tNon applicable
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
            // line 58
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["status"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["s"]) {
                // line 59
                yield "\t\t\t\t\t\t\t\t<div class=\"col-lg-6\">
\t\t\t\t\t\t\t\t\t\t<svg class=\"MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-1k33q06\" style=\"fill-rule:evenodd;clip-rule:evenodd;fill:";
                // line 60
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "flag", [], "any", false, false, false, 60), "html", null, true);
                yield ";stroke:";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "flag", [], "any", false, false, false, 60), "html", null, true);
                yield ";stroke-width:1;stroke-miterlimit:10;\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"><path d=\"M12 4.08A7.92 7.92 0 0 0 4.08 12 7.92 7.92 0 0 0 12 19.92 7.92 7.92 0 0 0 19.92 12 7.92 7.92 0 0 0 12 4.08Z\" style=\"stroke-width: 0.792;\"></path></svg>
\t\t\t\t\t\t\t\t\t\t";
                // line 61
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "name", [], "any", false, false, false, 61), "html", null, true);
                yield "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['s'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 64
            yield "\t\t\t\t\t\t\t</div>
\t\t\t<div class=\"single-sidebar\">

\t\t\t\t<svg version=\"1.1\" id=\"Benin\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"300px\" height=\"540px\" viewbox=\"0 0 432 755\" style=\"enable-background:new 0 0 432 755;\" xml:space=\"preserve\">
\t\t\t\t\t\t<defs>
\t\t\t\t\t\t\t<style>
\t\t\t\t\t\t\t\t#carte path {
\t\t\t\t\t\t\t\t\tcursor: pointer;
\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t\tpath:hover {
\t\t\t\t\t\t\t\t\topacity: .5;
\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t</style>
\t\t\t\t\t\t</defs>
\t\t\t\t\t\t";
            // line 78
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["departements"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["departement"]) {
                // line 79
                yield "\t\t\t\t\t\t";
                $context["flag"] = CoreExtension::getAttribute($this->env, $this->source, ($context["settingsManager"] ?? null), "getTargetStatutColor", [($context["year"] ?? null), ($context["target"] ?? null), 2, CoreExtension::getAttribute($this->env, $this->source, $context["departement"], "id", [], "any", false, false, false, 79)], "method", false, false, false, 79);
                // line 80
                yield "\t\t\t\t\t\t<a onclick=\"chargerCommune(";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["departement"], "id", [], "any", false, false, false, 80), "html", null, true);
                yield ")\" class=\"tooltips\" data-container=\"body\" data-original-title=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["departement"], "name", [], "any", false, false, false, 80), "html", null, true);
                yield "\">
\t\t\t\t\t\t\t<path
\t\t\t\t\t\t\t\tid=\"departement";
                // line 82
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["departement"], "id", [], "any", false, false, false, 82), "html", null, true);
                yield "\" style=\"fill-rule:evenodd;clip-rule:evenodd;fill:";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["flag"] ?? null), "html", null, true);
                yield ";stroke:#000;stroke-width:1;stroke-miterlimit:10;\" d=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["departement"], "coordonnee", [], "any", false, false, false, 82), "html", null, true);
                yield "\"><title>";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["departement"], "name", [], "any", false, false, false, 82), "html", null, true);
                yield "</title>
\t\t\t\t\t\t\t</path>
\t\t\t\t\t\t</a>
\t\t\t\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['departement'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 86
            yield "\t\t\t\t\t</svg>
\t\t\t</div>
\t\t</div>
\t\t";
        }
        // line 90
        yield "\t</div>
";
        // line 91
        if ((($context["agenda"] ?? null) == "2030")) {
            // line 92
            yield "<div class=\"page-header\">
\t\t<h1 class=\"page-title\">
\t\t\tSituation de la cible ";
            // line 94
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["target"] ?? null), "code", [], "any", false, false, false, 94), "html", null, true);
            yield " au Bénin
\t\t</h1>
\t</div>

<div id=\"chart\"></div>

</div>
";
        }
        yield from [];
    }

    // line 104
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_js(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 105
        yield "<script src=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/jquery/jquery.min.js"), "html", null, true);
        yield "\"></script>
<script src=\"";
        // line 106
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/apexcharts/apexcharts.js"), "html", null, true);
        yield "\"></script>

<script>
\$.getJSON('";
        // line 109
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/apexcharts/locales/fr.json"), "html", null, true);
        yield "', function(data) {
var fr = data

var options = {
  chart: {
    type: 'bar',
    locales: [fr],
    defaultLocale: 'fr',
  },
  series: [{
    name: 'Indice global',
    data: ";
        // line 120
        yield json_encode(($context["data"] ?? null));
        yield "
  }],
  xaxis: {
    categories: ";
        // line 123
        yield json_encode(($context["annees"] ?? null));
        yield "
  },
  legend: {
      show: false,
      },
  plotOptions: {
        bar: {
            distributed: true,
        },
    },
  colors: ";
        // line 133
        yield json_encode(($context["colors"] ?? null));
        yield ",
  yaxis: {
\t  
\tmin : 0,
},
}

var chart = new ApexCharts(document.querySelector(\"#chart\"), options);

chart.render();
});
</script>

";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  319 => 133,  306 => 123,  300 => 120,  286 => 109,  280 => 106,  275 => 105,  268 => 104,  254 => 94,  250 => 92,  248 => 91,  245 => 90,  239 => 86,  223 => 82,  215 => 80,  212 => 79,  208 => 78,  192 => 64,  183 => 61,  177 => 60,  174 => 59,  170 => 58,  162 => 52,  160 => 51,  155 => 48,  145 => 44,  140 => 42,  135 => 40,  130 => 38,  126 => 36,  122 => 35,  110 => 30,  102 => 25,  88 => 18,  79 => 12,  67 => 7,  63 => 6,  59 => 4,  52 => 3,  41 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "frontend/cible.html.twig", "/var/www/html/templates/frontend/cible.html.twig");
    }
}
