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

/* map/cartographie.html.twig */
class __TwigTemplate_41ac91002b68785fa4ad17e96e35c843594c3b00e3a1b6290f6b85178149644e extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'body_class' => [$this, 'block_body_class'],
            'style_container' => [$this, 'block_style_container'],
            'title' => [$this, 'block_title'],
            'stylesheets' => [$this, 'block_stylesheets'],
            'body_id' => [$this, 'block_body_id'],
            'main' => [$this, 'block_main'],
            'popup' => [$this, 'block_popup'],
            'javascripts' => [$this, 'block_javascripts'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "admin/layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "map/cartographie.html.twig"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "map/cartographie.html.twig"));

        $this->parent = $this->loadTemplate("admin/layout.html.twig", "map/cartographie.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 2
    public function block_body_class($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_class"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_class"));

        // line 0
        yield " bg-white";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 3
    public function block_style_container($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "style_container"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "style_container"));

        yield "padding:0;";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 4
    public function block_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        yield " Cartographie des interventions ";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 7
    public function block_stylesheets($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));

        // line 8
        yield "    ";
        yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
        yield "
    ";
        // line 9
        yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("map");
        yield "
    ";
        // line 10
        yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("carto");
        yield "
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 12
    public function block_body_id($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_id"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_id"));

        // line 0
        yield "admin_post_index";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 14
    public function block_main($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));

        // line 15
        yield "    <form action=\"\" id=\"form_carto\" method=\"post\" data-turbo=\"false\" data-changed=\"false\" style=\"height: 97px\">
        <input type=\"hidden\" name=\"process\" id=\"process_update\" value=\"\" form=\"form_carto\">
        <div class=\"d-flex position-fixed bg-white col-sm-12\" style=\"z-index: 1000;\">
            <div class=\"d-flex bg-primary  pt-2 ps-2 pb-2 ms-1 me-1 justify-content-center\" style=\"flex-grow:1;\">
                <div class=\"d-flex align-items-center\">
                    <div style=\"margin-right:2rem;\">
                        <div class=\"input-group form-group pb-2 d-flex\">
                            <label class=\"white me-2  control-label align-self-center\" for=\"site\" style=\"width:48px;\">Site</label>
                            <select name=\"site\" style=\"width:128px\" class=\"form-control bg-grey\" form=\"form_carto\">
                                ";
        // line 24
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["sites"]) || array_key_exists("sites", $context) ? $context["sites"] : (function () { throw new RuntimeError('Variable "sites" does not exist.', 24, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["site"]) {
            // line 25
            yield "                                    <option value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["site"], "getId", [], "any", false, false, false, 25), "html", null, true);
            yield "\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["site"], "getNom", [], "any", false, false, false, 25), "html", null, true);
            yield "</option>
                                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['site'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 27
        yield "                            </select>
                        </div>
                    </div>
                    <div style=\"margin-right:2rem;\">
                        <div class=\"input-group form-group pb-2 d-flex\">
                            <label class=\"white me-2  control-label align-self-center\" for=\"groupes\" style=\"width:48px;\">Groupe</label>
                            <div class=\"dropdown-container\" data-list=\"groupes\">
                                <div class=\"dropdown\">
                                    <button style=\"width:200px\" type=\"button\"
                                            class=\"d-flex form-control dropdown-button\">Sélectionnez des groupes
                                    </button>
                                    <div class=\"dropdown-content\" id=\"dropdown-content-groupes\">
                                        ";
        // line 39
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["groupes"]) || array_key_exists("groupes", $context) ? $context["groupes"] : (function () { throw new RuntimeError('Variable "groupes" does not exist.', 39, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["groupe"]) {
            // line 40
            yield "                                            <label>
                                                <input type=\"checkbox\" name=\"options_groupes[]\"
                                                       value=\"";
            // line 42
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["groupe"], "getId", [], "any", false, false, false, 42), "html", null, true);
            yield "\" class=\"checkbox-option\">
                                                ";
            // line 43
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["groupe"], "getTypeNom", [], "any", false, false, false, 43), "html", null, true);
            yield "
                                            </label>
                                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['groupe'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 46
        yield "                                    </div>
                                </div>

                                <!-- Champ caché pour stocker les valeurs sélectionnées -->
                                <input type=\"hidden\" name=\"selected_options_groupes\" class=\"selected-options\">
                            </div>

                        </div>
                    </div>
                    <div style=\"margin-right:2rem;\">
                        <div class=\"input-group form-group pb-2 d-flex\">
                            <label class=\"white me-2  control-label align-self-center\" for=\"agents\" style=\"width:48px;\">Agent</label>

                            <div class=\"dropdown-container\" data-list=\"agents\">
                                <div class=\"dropdown\">
                                    <button style=\"width:200px\" type=\"button\"
                                            class=\"d-flex form-control dropdown-button\">Sélectionnez des agents
                                    </button>
                                    <div class=\"dropdown-content\" id=\"dropdown-content-agents\">
                                        ";
        // line 65
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["agents"]) || array_key_exists("agents", $context) ? $context["agents"] : (function () { throw new RuntimeError('Variable "agents" does not exist.', 65, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["agent"]) {
            // line 66
            yield "                                            <label>
                                                <input type=\"checkbox\" name=\"options_agents[]\" value=\"";
            // line 67
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "getId", [], "any", false, false, false, 67), "html", null, true);
            yield "\"
                                                       class=\"checkbox-option\">
                                                ";
            // line 69
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agent"], "getCodeNom", [], "any", false, false, false, 69), "html", null, true);
            yield "
                                            </label>
                                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['agent'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 72
        yield "                                    </div>
                                </div>

                                <!-- Champ caché pour stocker les valeurs sélectionnées -->
                                <input type=\"hidden\" name=\"selected_options_agents\" class=\"selected-options\">
                                <input type=\"hidden\" id=\"selected_etiquettes\">
                            </div>
                        </div>
                    </div>
                    <div style=\"margin-right:2rem;\">
                        <div class=\"input-group form-group pb-2 d-flex\">
                            <label class=\"white me-2  control-label align-self-center\" for=\"date_tournee\">Date de la
                                tournée</label>
                            <input type=\"date\" style=\"width:128px\" name=\"date_tournee\"
                                   class=\"form-control bg-white input-date-custom\" value=\"";
        // line 86
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y-m-d"), "html", null, true);
        yield "\">
                        </div>
                    </div>
                </div>
                <div class=\"px-2 color-primary h-100 d-flex flex-column align-items-center \">
                    <div class=\"d-flex flex-column justify-content-center w-100 h-100\"
                         style=\"margin-left: 6rem;\">
                        <div class=\"d-flex flex-column align-items-center h-100\" style=\"gap:0.5rem;\">
                            <button id=\"submit-form-carto\" class=\"btn bg-vert-vert w-100 \" style=\"width: 193px !important;\" form=\"form_carto\">
                                Rechercher
                            </button>

                            <button id=\"reset-form-carto\" class=\"btn bg-rouge-rouge w-100\" style=\"width:193px !important\">
                                Effacer
                            </button>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </form>
    <div class=\"col-md-12 ms-1 me-1\" id='etiquettes'>
    </div>

    <div id=\"map\" class=\"ms-1 me-1\" style=\"width: auto; height: 700px;\"></div>

    <div id=\"loader-overlay\" class=\"loader-overlay\"></div>
    <div id=\"loader\" class=\"loader-container\">
        <div class=\"spinner\">
            <div></div><div></div><div></div><div></div>
            <div></div><div></div><div></div><div></div>
        </div>
        <div class=\"text\">Chargement...</div>
    </div>
    ";
        // line 121
        yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("loader");
        yield "

";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 125
    public function block_popup($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "popup"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "popup"));

        // line 126
        yield "    ";
        yield Twig\Extension\CoreExtension::include($this->env, $context, "map/_popup_cartographie_legende.html.twig");
        yield "
    ";
        // line 127
        yield Twig\Extension\CoreExtension::include($this->env, $context, "map/_popup_rdv.html.twig");
        yield "
    ";
        // line 128
        yield Twig\Extension\CoreExtension::include($this->env, $context, "map/_popup_gps.html.twig");
        yield "
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 131
    public function block_javascripts($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));

        // line 132
        yield "     <script>
         var page = '";
        // line 133
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("page", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 133, $this->source); })()), null)) : (null)), "html", null, true);
        yield "';
         var data = ";
        // line 134
        yield json_encode((isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 134, $this->source); })()));
        yield ";
         var path_client = ";
        // line 135
        yield json_encode((isset($context["path_client"]) || array_key_exists("path_client", $context) ? $context["path_client"] : (function () { throw new RuntimeError('Variable "path_client" does not exist.', 135, $this->source); })()));
        yield ";
     </script>
     ";
        // line 137
        yield from $this->yieldParentBlock("javascripts", $context, $blocks);
        yield "
     ";
        // line 138
        yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("map");
        yield "
     ";
        // line 139
        yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("carto");
        yield "
 ";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "map/cartographie.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  427 => 139,  423 => 138,  419 => 137,  414 => 135,  410 => 134,  406 => 133,  403 => 132,  393 => 131,  380 => 128,  376 => 127,  371 => 126,  361 => 125,  347 => 121,  309 => 86,  293 => 72,  284 => 69,  279 => 67,  276 => 66,  272 => 65,  251 => 46,  242 => 43,  238 => 42,  234 => 40,  230 => 39,  216 => 27,  205 => 25,  201 => 24,  190 => 15,  180 => 14,  169 => 0,  159 => 12,  146 => 10,  142 => 9,  137 => 8,  127 => 7,  107 => 4,  87 => 3,  76 => 0,  66 => 2,  43 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends 'admin/layout.html.twig' %}
{% block body_class ' bg-white' %}
{% block style_container %}padding:0;{% endblock %}
{% block title %} Cartographie des interventions {% endblock %}


{% block stylesheets %}
    {{ parent() }}
    {{ encore_entry_link_tags('map') }}
    {{ encore_entry_link_tags('carto') }}
{% endblock %}
{% block body_id 'admin_post_index' %}

{% block main %}
    <form action=\"\" id=\"form_carto\" method=\"post\" data-turbo=\"false\" data-changed=\"false\" style=\"height: 97px\">
        <input type=\"hidden\" name=\"process\" id=\"process_update\" value=\"\" form=\"form_carto\">
        <div class=\"d-flex position-fixed bg-white col-sm-12\" style=\"z-index: 1000;\">
            <div class=\"d-flex bg-primary  pt-2 ps-2 pb-2 ms-1 me-1 justify-content-center\" style=\"flex-grow:1;\">
                <div class=\"d-flex align-items-center\">
                    <div style=\"margin-right:2rem;\">
                        <div class=\"input-group form-group pb-2 d-flex\">
                            <label class=\"white me-2  control-label align-self-center\" for=\"site\" style=\"width:48px;\">Site</label>
                            <select name=\"site\" style=\"width:128px\" class=\"form-control bg-grey\" form=\"form_carto\">
                                {% for site in sites %}
                                    <option value=\"{{ site.getId }}\">{{ site.getNom }}</option>
                                {% endfor %}
                            </select>
                        </div>
                    </div>
                    <div style=\"margin-right:2rem;\">
                        <div class=\"input-group form-group pb-2 d-flex\">
                            <label class=\"white me-2  control-label align-self-center\" for=\"groupes\" style=\"width:48px;\">Groupe</label>
                            <div class=\"dropdown-container\" data-list=\"groupes\">
                                <div class=\"dropdown\">
                                    <button style=\"width:200px\" type=\"button\"
                                            class=\"d-flex form-control dropdown-button\">Sélectionnez des groupes
                                    </button>
                                    <div class=\"dropdown-content\" id=\"dropdown-content-groupes\">
                                        {% for groupe in groupes %}
                                            <label>
                                                <input type=\"checkbox\" name=\"options_groupes[]\"
                                                       value=\"{{ groupe.getId }}\" class=\"checkbox-option\">
                                                {{ groupe.getTypeNom }}
                                            </label>
                                        {% endfor %}
                                    </div>
                                </div>

                                <!-- Champ caché pour stocker les valeurs sélectionnées -->
                                <input type=\"hidden\" name=\"selected_options_groupes\" class=\"selected-options\">
                            </div>

                        </div>
                    </div>
                    <div style=\"margin-right:2rem;\">
                        <div class=\"input-group form-group pb-2 d-flex\">
                            <label class=\"white me-2  control-label align-self-center\" for=\"agents\" style=\"width:48px;\">Agent</label>

                            <div class=\"dropdown-container\" data-list=\"agents\">
                                <div class=\"dropdown\">
                                    <button style=\"width:200px\" type=\"button\"
                                            class=\"d-flex form-control dropdown-button\">Sélectionnez des agents
                                    </button>
                                    <div class=\"dropdown-content\" id=\"dropdown-content-agents\">
                                        {% for agent in agents %}
                                            <label>
                                                <input type=\"checkbox\" name=\"options_agents[]\" value=\"{{ agent.getId }}\"
                                                       class=\"checkbox-option\">
                                                {{ agent.getCodeNom }}
                                            </label>
                                        {% endfor %}
                                    </div>
                                </div>

                                <!-- Champ caché pour stocker les valeurs sélectionnées -->
                                <input type=\"hidden\" name=\"selected_options_agents\" class=\"selected-options\">
                                <input type=\"hidden\" id=\"selected_etiquettes\">
                            </div>
                        </div>
                    </div>
                    <div style=\"margin-right:2rem;\">
                        <div class=\"input-group form-group pb-2 d-flex\">
                            <label class=\"white me-2  control-label align-self-center\" for=\"date_tournee\">Date de la
                                tournée</label>
                            <input type=\"date\" style=\"width:128px\" name=\"date_tournee\"
                                   class=\"form-control bg-white input-date-custom\" value=\"{{ 'now'|date('Y-m-d') }}\">
                        </div>
                    </div>
                </div>
                <div class=\"px-2 color-primary h-100 d-flex flex-column align-items-center \">
                    <div class=\"d-flex flex-column justify-content-center w-100 h-100\"
                         style=\"margin-left: 6rem;\">
                        <div class=\"d-flex flex-column align-items-center h-100\" style=\"gap:0.5rem;\">
                            <button id=\"submit-form-carto\" class=\"btn bg-vert-vert w-100 \" style=\"width: 193px !important;\" form=\"form_carto\">
                                Rechercher
                            </button>

                            <button id=\"reset-form-carto\" class=\"btn bg-rouge-rouge w-100\" style=\"width:193px !important\">
                                Effacer
                            </button>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </form>
    <div class=\"col-md-12 ms-1 me-1\" id='etiquettes'>
    </div>

    <div id=\"map\" class=\"ms-1 me-1\" style=\"width: auto; height: 700px;\"></div>

    <div id=\"loader-overlay\" class=\"loader-overlay\"></div>
    <div id=\"loader\" class=\"loader-container\">
        <div class=\"spinner\">
            <div></div><div></div><div></div><div></div>
            <div></div><div></div><div></div><div></div>
        </div>
        <div class=\"text\">Chargement...</div>
    </div>
    {{ encore_entry_script_tags('loader') }}

{% endblock %}

{% block popup %}
    {{ include('map/_popup_cartographie_legende.html.twig') }}
    {{ include('map/_popup_rdv.html.twig') }}
    {{ include('map/_popup_gps.html.twig') }}
{% endblock %}

 {% block javascripts %}
     <script>
         var page = '{{ page|default(null) }}';
         var data = {{ data|json_encode|raw }};
         var path_client = {{ path_client|json_encode|raw }};
     </script>
     {{ parent() }}
     {{ encore_entry_script_tags('map') }}
     {{ encore_entry_script_tags('carto') }}
 {% endblock %}
", "map/cartographie.html.twig", "/builds/dev/refonte_sav/templates/map/cartographie.html.twig");
    }
}
