<?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/line_type.html.twig */
class __TwigTemplate_c7ce7a25243aa25e327ac1b5958517da 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/line_type.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/line_type.html.twig"));
// line 1
$context["realtime"] = false;
// line 2
yield "<ul class=\"is-Schedule-Lines\">
<span class=\"is-hide is-stopArea-json\" id=\"stop-area-json\">";
// line 3
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(json_encode((isset($context["stopArea"]) || array_key_exists("stopArea", $context) ? $context["stopArea"] : (function () { throw new RuntimeError('Variable "stopArea" does not exist.', 3, $this->source); })())), "html", null, true);
yield "</span>
<span class=\"is-hide is-lines-json\" id=\"lines-json\">";
// line 4
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(json_encode((isset($context["lines"]) || array_key_exists("lines", $context) ? $context["lines"] : (function () { throw new RuntimeError('Variable "lines" does not exist.', 4, $this->source); })())), "html", null, true);
yield "</span>
<span class=\"is-hide is-stopPoints-json\" id=\"stoppoints-json\">";
// line 5
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(json_encode((isset($context["stopPoints"]) || array_key_exists("stopPoints", $context) ? $context["stopPoints"] : (function () { throw new RuntimeError('Variable "stopPoints" does not exist.', 5, $this->source); })())), "html", null, true);
yield "</span>
";
// line 6
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["lines"]) || array_key_exists("lines", $context) ? $context["lines"] : (function () { throw new RuntimeError('Variable "lines" does not exist.', 6, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 7
yield " ";
if ((array_key_exists("groupBySubNetworks", $context) && (true == (isset($context["groupBySubNetworks"]) || array_key_exists("groupBySubNetworks", $context) ? $context["groupBySubNetworks"] : (function () { throw new RuntimeError('Variable "groupBySubNetworks" does not exist.', 7, $this->source); })())))) {
// line 8
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "line", [], "any", false, false, false, 8));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["line"]) {
// line 9
yield " ";
yield from $this->load("modules/search-widget/schedule/includes/line_type_item.html.twig", 9)->unwrap()->yield(CoreExtension::merge($context, ["item" => $context["line"]]));
// line 10
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['line'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 11
yield " ";
} else {
// line 12
yield " ";
yield from $this->load("modules/search-widget/schedule/includes/line_type_item.html.twig", 12)->unwrap()->yield(CoreExtension::merge($context, ["item" => CoreExtension::getAttribute($this->env, $this->source, $context["item"], "line", [], "any", false, false, false, 12)]));
// line 13
yield " ";
}
// line 14
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 15
yield "</ul>
<div class=\"is-Schedule-NextDeparture-No-More-Item-Line is-Schedule-NextDeparture-No-More-Item is-Alert is-Alert_Warning\" style=\"display: none\">
<p>";
// line 17
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("schedule.filter.no_more_next_departure"), "html", null, true);
yield "</p>
</div>
";
// line 19
if (((isset($context["realtime"]) || array_key_exists("realtime", $context) ? $context["realtime"] : (function () { throw new RuntimeError('Variable "realtime" does not exist.', 19, $this->source); })()) === true)) {
// line 20
yield " <ul class=\"is-Schedule-Caption\">
<li>
<i class=\"is-Icon is-Icon-sim-real-time\"><i class=\"is-path1\"></i><i class=\"is-path2\"></i></i>: ";
// line 22
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("next_departures_panel.realtime"), "html", null, true);
yield "
</li>
</ul>
";
}
$__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/line_type.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 158 => 22, 154 => 20, 152 => 19, 147 => 17, 143 => 15, 129 => 14, 126 => 13, 123 => 12, 120 => 11, 106 => 10, 103 => 9, 85 => 8, 82 => 7, 65 => 6, 61 => 5, 57 => 4, 53 => 3, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% set realtime = false %}
<ul class=\"is-Schedule-Lines\">
<span class=\"is-hide is-stopArea-json\" id=\"stop-area-json\">{{ stopArea | json_encode }}</span>
<span class=\"is-hide is-lines-json\" id=\"lines-json\">{{ lines | json_encode }}</span>
<span class=\"is-hide is-stopPoints-json\" id=\"stoppoints-json\">{{ stopPoints | json_encode }}</span>
{% for item in lines %}
{% if groupBySubNetworks is defined and true == groupBySubNetworks%}
{% for line in item.line %}
{% include \"modules/search-widget/schedule/includes/line_type_item.html.twig\" with {\x27item\x27:line} %}
{% endfor %}
{% else %}
{% include \"modules/search-widget/schedule/includes/line_type_item.html.twig\" with {\x27item\x27:item.line} %}
{% endif %}
{% endfor %}
</ul>
<div class=\"is-Schedule-NextDeparture-No-More-Item-Line is-Schedule-NextDeparture-No-More-Item is-Alert is-Alert_Warning\" style=\"display: none\">
<p>{{ \x27schedule.filter.no_more_next_departure\x27|trans }}</p>
</div>
{% if realtime is same as(true) %}
<ul class=\"is-Schedule-Caption\">
<li>
<i class=\"is-Icon is-Icon-sim-real-time\"><i class=\"is-path1\"></i><i class=\"is-path2\"></i></i>: {{ \x27next_departures_panel.realtime\x27 | trans }}
</li>
</ul>
{% endif %}
", "modules/search-widget/schedule/stoparea/line_type.html.twig", "/var/www/html/templates/modules/search-widget/schedule/stoparea/line_type.html.twig");
}
}