<?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-schedules.html.twig */
class __TwigTemplate_8a7394cb887e850727fe5106dc432221 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-schedules.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-schedules.html.twig"));
// line 1
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["validator"]) || array_key_exists("validator", $context) ? $context["validator"] : (function () { throw new RuntimeError('Variable "validator" does not exist.', 1, $this->source); })()), "error", [], "any", false, false, false, 1) == 1)) {
// line 2
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["validator"]) || array_key_exists("validator", $context) ? $context["validator"] : (function () { throw new RuntimeError('Variable "validator" does not exist.', 2, $this->source); })()), "errors", [], "any", false, false, false, 2));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 3
yield " <div class=\"is-Alert is-Alert_Warning\" role=\"alert\">
<i class=\"is-Icon is-Icon-com-alert-triangle\" aria-hidden=\"true\"></i> ";
// line 4
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 4), "html", null, true);
yield "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['error'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
} else {
// line 8
$context["realtime"] = false;
// line 9
yield "<div id=\"is-StopAreaSchedules\">
<div id=\"is-StopAreaNextDepartures\" class=\"is-Tab-Content\">
";
// line 11
yield from $this->load("modules/search-widget/schedule/stoparea/next_departures.html.twig", 11)->unwrap()->yield($context);
// line 12
yield " </div>
<div id=\"is-StopAreaLines\" class=\"is-Tab-Content\">
";
// line 14
yield from $this->load("modules/search-widget/schedule/stoparea/lines.html.twig", 14)->unwrap()->yield(CoreExtension::merge($context, ["limit" => 0]));
// line 15
yield " </div>
</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-schedules.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 82 => 15, 80 => 14, 76 => 12, 74 => 11, 70 => 9, 68 => 8, 58 => 4, 55 => 3, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if validator.error == 1 %}
{% for error in validator.errors %}
<div class=\"is-Alert is-Alert_Warning\" role=\"alert\">
<i class=\"is-Icon is-Icon-com-alert-triangle\" aria-hidden=\"true\"></i> {{ error.message }}
</div>
{% endfor %}
{% else %}
{% set realtime = false %}
<div id=\"is-StopAreaSchedules\">
<div id=\"is-StopAreaNextDepartures\" class=\"is-Tab-Content\">
{% include \"modules/search-widget/schedule/stoparea/next_departures.html.twig\" %}
</div>
<div id=\"is-StopAreaLines\" class=\"is-Tab-Content\">
{% include \"modules/search-widget/schedule/stoparea/lines.html.twig\" with { \x27limit\x27: 0 } %}
</div>
</div>
{% endif %}
", "modules/search-widget/schedule/stoparea-schedules.html.twig", "/var/www/html/templates/modules/search-widget/schedule/stoparea-schedules.html.twig");
}
}