<?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;
/* modules/search-widget/schedule/stoparea/next_departures.html.twig */
class __TwigTemplate_eb82dae0fbc4d7acd4a0b1277d3c49f4 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;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "modules/search-widget/schedule/stoparea/next_departures.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "modules/search-widget/schedule/stoparea/next_departures.html.twig"));
// line 1
if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 1, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 2
yield " <div class=\"is-Schedule-Header is-Result-Header\">
<button class=\"is-hide is-Schedule-BackButton is-Result-Header-BackButton\" title=\"";
// line 3
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("schedule.back_to_results"), "html", null, true);
yield "\">
<i class=\"is-Icon is-Icon-com-chevron-left-thick\" aria-hidden=\"true\"></i>
</button>
<div class=\"is-Schedule-H1 is-Widget-H2\"
tabindex=\"0\" aria-label=\"";
// line 7
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("schedule.next_departure_for_stoppoint_new_format", ["stopPoint" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 7, $this->source); })()), "name", [], "any", false, false, false, 7), "city" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 7, $this->source); })()), "city", [], "any", false, false, false, 7)]), "html", null, true);
yield "\">
";
// line 8
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 8, $this->source); })()), "name", [], "any", false, false, false, 8), "html", null, true);
yield " - ";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 8, $this->source); })()), "city", [], "any", false, false, false, 8), "html", null, true);
yield "
</div>
</div>
";
}
// line 12
yield "
";
// line 13
if ((( !Twig\Extension\CoreExtension::testEmpty((isset($context["departures"]) || array_key_exists("departures", $context) ? $context["departures"] : (function () { throw new RuntimeError('Variable "departures" does not exist.', 13, $this->source); })())) || !Twig\Extension\CoreExtension::testEmpty((isset($context["stopAreaLines"]) || array_key_exists("stopAreaLines", $context) ? $context["stopAreaLines"] : (function () { throw new RuntimeError('Variable "stopAreaLines" does not exist.', 13, $this->source); })()))) || (( !Twig\Extension\CoreExtension::testEmpty((isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 13, $this->source); })())) && !Twig\Extension\CoreExtension::testEmpty((isset($context["stopPoints"]) || array_key_exists("stopPoints", $context) ? $context["stopPoints"] : (function () { throw new RuntimeError('Variable "stopPoints" does not exist.', 13, $this->source); })()))) && !Twig\Extension\CoreExtension::testEmpty((isset($context["lines"]) || array_key_exists("lines", $context) ? $context["lines"] : (function () { throw new RuntimeError('Variable "lines" does not exist.', 13, $this->source); })()))))) {
// line 14
yield " ";
if (( !Twig\Extension\CoreExtension::testEmpty((isset($context["departures"]) || array_key_exists("departures", $context) ? $context["departures"] : (function () { throw new RuntimeError('Variable "departures" does not exist.', 14, $this->source); })())) || (( !Twig\Extension\CoreExtension::testEmpty((isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 14, $this->source); })())) && !Twig\Extension\CoreExtension::testEmpty((isset($context["stopPoints"]) || array_key_exists("stopPoints", $context) ? $context["stopPoints"] : (function () { throw new RuntimeError('Variable "stopPoints" does not exist.', 14, $this->source); })()))) && !Twig\Extension\CoreExtension::testEmpty((isset($context["lines"]) || array_key_exists("lines", $context) ? $context["lines"] : (function () { throw new RuntimeError('Variable "lines" does not exist.', 14, $this->source); })()))))) {
// line 15
yield " ";
yield from $this->load("modules/search-widget/schedule/includes/filters.html.twig", 15)->unwrap()->yield($context);
// line 16
yield " ";
if (((array_key_exists("switch_map_mobile", $context) && ((isset($context["switch_map_mobile"]) || array_key_exists("switch_map_mobile", $context) ? $context["switch_map_mobile"] : (function () { throw new RuntimeError('Variable "switch_map_mobile" does not exist.', 16, $this->source); })()) == false)) && (array_key_exists("hasMap", $context) && (isset($context["hasMap"]) || array_key_exists("hasMap", $context) ? $context["hasMap"] : (function () { throw new RuntimeError('Variable "hasMap" does not exist.', 16, $this->source); })())))) {
// line 17
yield " <div class=\"is-panel is-panel-default is-Interactive-Map-Container\" id=\"is-InteractiveMap-Button\">
<button class=\"is-Interactive-Map-ShowMapButton is-Interactive-Map-ShowMapButton--linkedFromBotside is-ShowMapButton\">";
// line 18
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("schedule.roadmap_show_map"), "html", null, true);
yield "</button>
</div>
";
}
// line 21
yield "
";
// line 22
if (( !Twig\Extension\CoreExtension::testEmpty((isset($context["disruptions"]) || array_key_exists("disruptions", $context) ? $context["disruptions"] : (function () { throw new RuntimeError('Variable "disruptions" does not exist.', 22, $this->source); })())) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["disruptions"]) || array_key_exists("disruptions", $context) ? $context["disruptions"] : (function () { throw new RuntimeError('Variable "disruptions" does not exist.', 22, $this->source); })()), "currentDisruptions", [], "any", false, false, false, 22)))) {
// line 23
yield " <span class=\"is-Schedule-Label\"><strong>";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 23, $this->source); })()), "name", [], "any", false, false, false, 23), "html", null, true);
yield "</strong></span>
";
// line 24
yield from $this->load("modules/search-widget/traffic-infos/includes/specific-disruptions.html.twig", 24)->unwrap()->yield(CoreExtension::merge($context, ["disruptions" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["disruptions"]) || array_key_exists("disruptions", $context) ? $context["disruptions"] : (function () { throw new RuntimeError('Variable "disruptions" does not exist.', 24, $this->source); })()), "currentDisruptions", [], "any", false, false, false, 24), "stopPoints", [], "any", false, false, false, 24)]));
// line 25
yield " ";
}
// line 26
yield " <h3 class=\"is-Widget-H3\" data-is-stoparea-label=\"";
yield (string) (((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 26, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, (isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 26, $this->source); })()), "name", [], "any", false, false, false, 26) . " - ") . CoreExtension::getAttribute($this->env, $this->source, (isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 26, $this->source); })()), "city", [], "any", false, false, false, 26)), "html", null, true)) : (""));
yield "\">";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("schedule.next_departures"), "html", null, true);
yield "</h3>
";
// line 27
if (( !Twig\Extension\CoreExtension::testEmpty((isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 27, $this->source); })())) && !Twig\Extension\CoreExtension::testEmpty((isset($context["departures"]) || array_key_exists("departures", $context) ? $context["departures"] : (function () { throw new RuntimeError('Variable "departures" does not exist.', 27, $this->source); })())))) {
// line 28
yield " <ul class=\"is-Switch\" role=\"tablist\">
<li role=\"presentation\" class=\"is-Switch-Item is-active\">
<a role=\"tab\" data-toggle=\"is-tab\" aria-controls=\"is-StopAreaSchedule_DepartureType\" aria-selected=\"true\" href=\"#is-StopAreaSchedule_DepartureType\" class=\"is-Switch-Link\">";
// line 30
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("schedule.tab_departure_type"), "html", null, true);
yield "</a>
</li>";
// line 32
yield "<li role=\"presentation\" class=\"is-Switch-Item\">
<a role=\"tab\" data-toggle=\"is-tab\" aria-controls=\"is-StopAreaSchedule_LineType\" aria-selected=\"false\" href=\"#is-StopAreaSchedule_LineType\" class=\"is-Switch-Link\">";
// line 33
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("journey.traveller_profile.subscriptions_modal.others_modes.title"), "html", null, true);
yield "</a>
</li>
</ul>
";
}
// line 37
yield "
";
// line 39
yield " ";
if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["departures"]) || array_key_exists("departures", $context) ? $context["departures"] : (function () { throw new RuntimeError('Variable "departures" does not exist.', 39, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 40
yield " <div id=\"is-StopAreaSchedule_DepartureType\" class=\"is-Tab-Pane is-StopAreaSchedule_DepartureType is-active\">
";
// line 41
yield from $this->load("modules/search-widget/schedule/stoparea/departure_type.html.twig", 41)->unwrap()->yield(CoreExtension::merge($context, ["departures" => (isset($context["departures"]) || array_key_exists("departures", $context) ? $context["departures"] : (function () { throw new RuntimeError('Variable "departures" does not exist.', 41, $this->source); })())]));
// line 42
yield " </div>
";
}
// line 44
yield "
";
// line 46
yield " ";
if ((( !Twig\Extension\CoreExtension::testEmpty((isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 46, $this->source); })())) && !Twig\Extension\CoreExtension::testEmpty((isset($context["stopPoints"]) || array_key_exists("stopPoints", $context) ? $context["stopPoints"] : (function () { throw new RuntimeError('Variable "stopPoints" does not exist.', 46, $this->source); })()))) && !Twig\Extension\CoreExtension::testEmpty((isset($context["lines"]) || array_key_exists("lines", $context) ? $context["lines"] : (function () { throw new RuntimeError('Variable "lines" does not exist.', 46, $this->source); })())))) {
// line 47
yield " <div id=\"is-StopAreaSchedule_LineType\" class=\"is-Schedule-Lines is-Tab-Pane is-active\">
";
// line 48
$context["vars"] = ["stopArea" => (isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 48, $this->source); })()), "stopPoints" => (isset($context["stopPoints"]) || array_key_exists("stopPoints", $context) ? $context["stopPoints"] : (function () { throw new RuntimeError('Variable "stopPoints" does not exist.', 48, $this->source); })()), "lines" => (isset($context["lines"]) || array_key_exists("lines", $context) ? $context["lines"] : (function () { throw new RuntimeError('Variable "lines" does not exist.', 48, $this->source); })()), "departures" => (isset($context["departures"]) || array_key_exists("departures", $context) ? $context["departures"] : (function () { throw new RuntimeError('Variable "departures" does not exist.', 48, $this->source); })())];
// line 49
yield " ";
yield from $this->load("modules/search-widget/schedule/stoparea/line_type.html.twig", 49)->unwrap()->yield(CoreExtension::merge($context, (isset($context["vars"]) || array_key_exists("vars", $context) ? $context["vars"] : (function () { throw new RuntimeError('Variable "vars" does not exist.', 49, $this->source); })())));
// line 50
yield " </div>
";
} else {
// line 52
yield " <p class=\"is-Alert is-Alert_Warning\" role=\"alert\">
";
// line 53
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("schedule.no_stoppoint_for_this_mode"), "html", null, true);
yield "
</p>
";
}
// line 56
yield " ";
}
} else {
// line 58
yield " <div class=\"is-Alert is-Alert_Warning\" role=\"is-Alert\">
";
// line 59
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("schedule.data_not_loaded"), "html", null, true);
yield "
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "modules/search-widget/schedule/stoparea/next_departures.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 187 => 59, 184 => 58, 180 => 56, 174 => 53, 171 => 52, 167 => 50, 164 => 49, 162 => 48, 159 => 47, 156 => 46, 153 => 44, 149 => 42, 147 => 41, 144 => 40, 141 => 39, 138 => 37, 131 => 33, 128 => 32, 124 => 30, 120 => 28, 118 => 27, 111 => 26, 108 => 25, 106 => 24, 101 => 23, 99 => 22, 96 => 21, 90 => 18, 87 => 17, 84 => 16, 81 => 15, 78 => 14, 76 => 13, 73 => 12, 64 => 8, 60 => 7, 53 => 3, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if stopArea is not empty %}
<div class=\"is-Schedule-Header is-Result-Header\">
<button class=\"is-hide is-Schedule-BackButton is-Result-Header-BackButton\" title=\"{{ \x27schedule.back_to_results\x27|trans }}\">
<i class=\"is-Icon is-Icon-com-chevron-left-thick\" aria-hidden=\"true\"></i>
</button>
<div class=\"is-Schedule-H1 is-Widget-H2\"
tabindex=\"0\" aria-label=\"{{ \x27schedule.next_departure_for_stoppoint_new_format\x27|trans({ \x27stopPoint\x27: stopArea.name, \x27city\x27: stopArea.city }) }}\">
{{ stopArea.name }} - {{ stopArea.city }}
</div>
</div>
{% endif %}
{% if departures is not empty or stopAreaLines is not empty or (stopArea is not empty and stopPoints is not empty and lines is not empty) %}
{% if departures is not empty or (stopArea is not empty and stopPoints is not empty and lines is not empty) %}
{% include \"modules/search-widget/schedule/includes/filters.html.twig\" %}
{% if switch_map_mobile is defined and switch_map_mobile == false and (hasMap is defined and hasMap) %}
<div class=\"is-panel is-panel-default is-Interactive-Map-Container\" id=\"is-InteractiveMap-Button\">
<button class=\"is-Interactive-Map-ShowMapButton is-Interactive-Map-ShowMapButton--linkedFromBotside is-ShowMapButton\">{{ \x27schedule.roadmap_show_map\x27|trans }}</button>
</div>
{% endif %}
{% if disruptions is not empty and disruptions.currentDisruptions is not empty %}
<span class=\"is-Schedule-Label\"><strong>{{ stopArea.name }}</strong></span>
{% include \"modules/search-widget/traffic-infos/includes/specific-disruptions.html.twig\" with { \x27disruptions\x27: disruptions.currentDisruptions.stopPoints } %}
{% endif %}
<h3 class=\"is-Widget-H3\" data-is-stoparea-label=\"{{ stopArea is not empty ? stopArea.name ~ \x27 - \x27 ~ stopArea.city }}\">{{ \"schedule.next_departures\"| trans }}</h3>
{% if stopArea is not empty and departures is not empty %}
<ul class=\"is-Switch\" role=\"tablist\">
<li role=\"presentation\" class=\"is-Switch-Item is-active\">
<a role=\"tab\" data-toggle=\"is-tab\" aria-controls=\"is-StopAreaSchedule_DepartureType\" aria-selected=\"true\" href=\"#is-StopAreaSchedule_DepartureType\" class=\"is-Switch-Link\">{{ \x27schedule.tab_departure_type\x27 | trans }}</a>
</li>{#
#}<li role=\"presentation\" class=\"is-Switch-Item\">
<a role=\"tab\" data-toggle=\"is-tab\" aria-controls=\"is-StopAreaSchedule_LineType\" aria-selected=\"false\" href=\"#is-StopAreaSchedule_LineType\" class=\"is-Switch-Link\">{{ \x27journey.traveller_profile.subscriptions_modal.others_modes.title\x27 | trans }}</a>
</li>
</ul>
{% endif %}
{# Stoparea schedules by departures (TIMEBOARD) #}
{% if departures is not empty %}
<div id=\"is-StopAreaSchedule_DepartureType\" class=\"is-Tab-Pane is-StopAreaSchedule_DepartureType is-active\">
{% include \"modules/search-widget/schedule/stoparea/departure_type.html.twig\" with { \x27departures\x27: departures} %}
</div>
{% endif %}
{# Stoparea schedules by lines (LINE) #}
{% if stopArea is not empty and stopPoints is not empty and lines is not empty %}
<div id=\"is-StopAreaSchedule_LineType\" class=\"is-Schedule-Lines is-Tab-Pane is-active\">
{% set vars = { \x27stopArea\x27: stopArea, \x27stopPoints\x27: stopPoints, \x27lines\x27: lines, \x27departures\x27: departures} %}
{% include \"modules/search-widget/schedule/stoparea/line_type.html.twig\" with vars %}
</div>
{% else %}
<p class=\"is-Alert is-Alert_Warning\" role=\"alert\">
{{ \x27schedule.no_stoppoint_for_this_mode\x27 | trans }}
</p>
{% endif %}
{% endif %}
{% else %}
<div class=\"is-Alert is-Alert_Warning\" role=\"is-Alert\">
{{ \"schedule.data_not_loaded\"| trans }}
</div>
{% endif %}
", "modules/search-widget/schedule/stoparea/next_departures.html.twig", "/var/www/html/templates/modules/search-widget/schedule/stoparea/next_departures.html.twig");
}
}