<?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/molecules/filter/filter.html.twig */
class __TwigTemplate_c5982599c8381a2bb9a0b236f6165b13 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", "components/molecules/filter/filter.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/molecules/filter/filter.html.twig"));
// line 1
yield "<div class=\"filter\">
";
// line 2
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["facets"]) || array_key_exists("facets", $context) ? $context["facets"] : (function () { throw new RuntimeError('Variable "facets" does not exist.', 2, $this->source); })())) > 6)) {
// line 3
yield " <input class=\"filter__display-input\" type=\"checkbox\" id=\"moreFilter\" >
";
}
// line 5
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["facets"]) || array_key_exists("facets", $context) ? $context["facets"] : (function () { throw new RuntimeError('Variable "facets" does not exist.', 5, $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["facet"]) {
// line 6
yield " <div class=\"filter__facet";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 6) > 6)) {
yield " filter__facet--more-filter";
}
yield "\">
";
// line 7
yield from $this->load("components/molecules/filter/filter.html.twig", 7, "1321854731")->unwrap()->yield(CoreExtension::merge($context, ["id" => CoreExtension::getAttribute($this->env, $this->source, // line 8
$context["loop"], "index", [], "any", false, false, false, 8), "class" => "filter__panel", "options" => // line 10
$context["facet"]]));
// line 13
yield " </div>
";
++$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['facet'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 15
yield "
";
// line 16
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["facets"]) || array_key_exists("facets", $context) ? $context["facets"] : (function () { throw new RuntimeError('Variable "facets" does not exist.', 16, $this->source); })())) > 6)) {
// line 17
yield " <label for=\"moreFilter\" class=\"filter__display-more-less-label\"><span class=\"filter__display-more\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("filter_show_more"), "html", null, true);
yield "</span> <span class=\"filter__display-less\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("filter_show_less"), "html", null, true);
yield "</span></label>
";
}
// line 19
yield "
";
// line 20
yield from $this->load("components/atoms/button/button.html.twig", 20)->unwrap()->yield(CoreExtension::merge($context, ["class" => "filter__set-filter-button", "type" => "submit", "content" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing_filter_active_filter_set")]));
// line 25
yield "
<div class=\"filter__active-facets\">
";
// line 27
yield from $this->load("components/molecules/filter-active/filter-active.html.twig", 27)->unwrap()->yield($context);
// line 28
yield " </div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "components/molecules/filter/filter.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 125 => 28, 123 => 27, 119 => 25, 117 => 20, 114 => 19, 106 => 17, 104 => 16, 101 => 15, 86 => 13, 84 => 10, 83 => 8, 82 => 7, 75 => 6, 57 => 5, 53 => 3, 51 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<div class=\"filter\">
{% if facets|length > 6 %}
<input class=\"filter__display-input\" type=\"checkbox\" id=\"moreFilter\" >
{% endif %}
{% for facet in facets %}
<div class=\"filter__facet{% if loop.index > 6 %} filter__facet--more-filter{% endif %}\">
{% embed 'components/molecules/filter-panel/filter-panel.html.twig' with {
'id': loop.index,
'class': 'filter__panel',
'options': facet
} %}
{% endembed %}
</div>
{% endfor %}
{% if facets|length > 6 %}
<label for=\"moreFilter\" class=\"filter__display-more-less-label\"><span class=\"filter__display-more\">{{ 'filter_show_more'|trans }}</span> <span class=\"filter__display-less\">{{ 'filter_show_less'|trans }}</span></label>
{% endif %}
{% include 'components/atoms/button/button.html.twig'with {
'class': 'filter__set-filter-button',
'type': 'submit',
'content': 'listing_filter_active_filter_set' | trans
} %}
<div class=\"filter__active-facets\">
{% include('components/molecules/filter-active/filter-active.html.twig') %}
</div>
</div>
", "components/molecules/filter/filter.html.twig", "/var/www/html/templates/default/components/molecules/filter/filter.html.twig");
}
}
/* components/molecules/filter/filter.html.twig */
class __TwigTemplate_c5982599c8381a2bb9a0b236f6165b13___1321854731 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->blocks = [
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 7
return "components/molecules/filter-panel/filter-panel.html.twig";
}
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/molecules/filter/filter.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/molecules/filter/filter.html.twig"));
$this->parent = $this->load("components/molecules/filter-panel/filter-panel.html.twig", 7);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "components/molecules/filter/filter.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 221 => 7, 125 => 28, 123 => 27, 119 => 25, 117 => 20, 114 => 19, 106 => 17, 104 => 16, 101 => 15, 86 => 13, 84 => 10, 83 => 8, 82 => 7, 75 => 6, 57 => 5, 53 => 3, 51 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<div class=\"filter\">
{% if facets|length > 6 %}
<input class=\"filter__display-input\" type=\"checkbox\" id=\"moreFilter\" >
{% endif %}
{% for facet in facets %}
<div class=\"filter__facet{% if loop.index > 6 %} filter__facet--more-filter{% endif %}\">
{% embed 'components/molecules/filter-panel/filter-panel.html.twig' with {
'id': loop.index,
'class': 'filter__panel',
'options': facet
} %}
{% endembed %}
</div>
{% endfor %}
{% if facets|length > 6 %}
<label for=\"moreFilter\" class=\"filter__display-more-less-label\"><span class=\"filter__display-more\">{{ 'filter_show_more'|trans }}</span> <span class=\"filter__display-less\">{{ 'filter_show_less'|trans }}</span></label>
{% endif %}
{% include 'components/atoms/button/button.html.twig'with {
'class': 'filter__set-filter-button',
'type': 'submit',
'content': 'listing_filter_active_filter_set' | trans
} %}
<div class=\"filter__active-facets\">
{% include('components/molecules/filter-active/filter-active.html.twig') %}
</div>
</div>
", "components/molecules/filter/filter.html.twig", "/var/www/html/templates/default/components/molecules/filter/filter.html.twig");
}
}