<?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;
/* components/organisms/offside/offside.html.twig */
class __TwigTemplate_c59571afc420bf582761bca7f869c520 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 = [
'offcanvasHeader' => [$this, 'block_offcanvasHeader'],
'offcanvasClose' => [$this, 'block_offcanvasClose'],
'offcanvasContent' => [$this, 'block_offcanvasContent'],
'offcanvasFooter' => [$this, 'block_offcanvasFooter'],
];
}
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", "components/organisms/offside/offside.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/offside/offside.html.twig"));
// line 1
yield "<div class=\"offside ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("class", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.', 1, $this->source); })()))) : ("")), "html", null, true);
yield "\" id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("id", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 1, $this->source); })()))) : ("")), "html", null, true);
yield "\" role=\"dialog\" ";
if (array_key_exists("ariaLabelledBy", $context)) {
yield " aria-labelledby=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["ariaLabelledBy"]) || array_key_exists("ariaLabelledBy", $context) ? $context["ariaLabelledBy"] : (function () { throw new RuntimeError('Variable "ariaLabelledBy" does not exist.', 1, $this->source); })()), "html", null, true);
yield "\" ";
} else {
yield " aria-label=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("id", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 1, $this->source); })()))) : ("")), "html", null, true);
yield "\" ";
}
yield ">
<div class=\"offside__container\">
";
// line 3
yield from $this->unwrap()->yieldBlock('offcanvasHeader', $context, $blocks);
// line 10
yield " ";
yield from $this->unwrap()->yieldBlock('offcanvasClose', $context, $blocks);
// line 22
yield " <div class=\"offside__content\">
";
// line 23
yield from $this->unwrap()->yieldBlock('offcanvasContent', $context, $blocks);
// line 25
yield " </div>
";
// line 27
yield from $this->unwrap()->yieldBlock('offcanvasFooter', $context, $blocks);
// line 29
yield " </div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_offcanvasHeader(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(), "block", "offcanvasHeader"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasHeader"));
// line 4
yield " <div class=\"offside__header\">
<div class=\"offside__headline\" ";
// line 5
if (array_key_exists("ariaLabelledBy", $context)) {
yield " id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["ariaLabelledBy"]) || array_key_exists("ariaLabelledBy", $context) ? $context["ariaLabelledBy"] : (function () { throw new RuntimeError('Variable "ariaLabelledBy" does not exist.', 5, $this->source); })()), "html", null, true);
yield "\" ";
}
yield ">
<span>";
// line 6
yield ((array_key_exists("header", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["header"]) || array_key_exists("header", $context) ? $context["header"] : (function () { throw new RuntimeError('Variable "header" does not exist.', 6, $this->source); })()))) : (""));
yield "</span>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 10
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_offcanvasClose(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(), "block", "offcanvasClose"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasClose"));
// line 11
yield " ";
yield from $this->load("components/atoms/button/button.html.twig", 11)->unwrap()->yield(CoreExtension::merge($context, ["class" => "offside__close js-offside-close button--close", "type" => "button", "content" => "", "attributes" => ["data-off-canvas-close-id" => (( // line 17
array_key_exists("id", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 17, $this->source); })()))) : ("")), "aria-label" => ("Close " . (( // line 18
array_key_exists("id", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 18, $this->source); })()), "offside")) : ("offside")))]]));
// line 21
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 23
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_offcanvasContent(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(), "block", "offcanvasContent"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasContent"));
// line 24
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 27
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_offcanvasFooter(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(), "block", "offcanvasFooter"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasFooter"));
// line 28
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "components/organisms/offside/offside.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 204 => 28, 191 => 27, 180 => 24, 167 => 23, 156 => 21, 154 => 18, 153 => 17, 151 => 11, 138 => 10, 123 => 6, 115 => 5, 112 => 4, 99 => 3, 86 => 29, 84 => 27, 80 => 25, 78 => 23, 75 => 22, 72 => 10, 70 => 3, 52 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<div class=\"offside {{ class|default }}\" id=\"{{ id|default }}\" role=\"dialog\" {% if ariaLabelledBy is defined %} aria-labelledby=\"{{ ariaLabelledBy }}\" {% else %} aria-label=\"{{ id|default }}\" {% endif %}>
<div class=\"offside__container\">
{% block offcanvasHeader %}
<div class=\"offside__header\">
<div class=\"offside__headline\" {% if ariaLabelledBy is defined %} id=\"{{ ariaLabelledBy }}\" {% endif %}>
<span>{{ header|default|raw }}</span>
</div>
</div>
{% endblock %}
{% block offcanvasClose %}
{% include 'components/atoms/button/button.html.twig'
with {
'class': 'offside__close js-offside-close button--close',
'type': 'button',
'content': '',
'attributes': {
'data-off-canvas-close-id': id|default,
'aria-label': \"Close \" ~ id|default('offside'),
}
} %}
{% endblock %}
<div class=\"offside__content\">
{% block offcanvasContent %}
{% endblock %}
</div>
{% block offcanvasFooter %}
{% endblock %}
</div>
</div>
", "components/organisms/offside/offside.html.twig", "/var/www/html/templates/default/components/organisms/offside/offside.html.twig");
}
}