<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* @Storefront/storefront/layout/header/search-suggest.html.twig */
class __TwigTemplate_11983b5f67ec2f7d7c6fa89399e08322 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'layout_search_suggest' => [$this, 'block_layout_search_suggest'],
'layout_search_suggest_container' => [$this, 'block_layout_search_suggest_container'],
'layout_search_suggest_results' => [$this, 'block_layout_search_suggest_results'],
'layout_search_suggest_result_product' => [$this, 'block_layout_search_suggest_result_product'],
'layout_search_suggest_result_link' => [$this, 'block_layout_search_suggest_result_link'],
'layout_search_suggest_result_image' => [$this, 'block_layout_search_suggest_result_image'],
'layout_search_suggest_result_name' => [$this, 'block_layout_search_suggest_result_name'],
'layout_search_suggest_result_price' => [$this, 'block_layout_search_suggest_result_price'],
'layout_search_suggest_result_total' => [$this, 'block_layout_search_suggest_result_total'],
'layout_search_suggest_no_result' => [$this, 'block_layout_search_suggest_no_result'],
'layout_search_suggest_result_total_result' => [$this, 'block_layout_search_suggest_result_total_result'],
'layout_search_suggest_result_total_link' => [$this, 'block_layout_search_suggest_result_total_link'],
'layout_search_suggest_result_total_count' => [$this, 'block_layout_search_suggest_result_total_count'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "@Storefront/storefront/layout/header/search-suggest.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Storefront/storefront/layout/header/search-suggest.html.twig"));
echo "<!-- INCLUDE BEGIN @Storefront/storefront/layout/header/search-suggest.html.twig (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
// line 2
echo "
";
// line 3
$this->displayBlock('layout_search_suggest', $context, $blocks);
// line 0
echo "<!-- INCLUDE END @Storefront/storefront/layout/header/search-suggest.html.twig -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_layout_search_suggest($context, array $blocks = [])
{
$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", "layout_search_suggest"));
// line 0
echo "<!-- BLOCK BEGIN layout_search_suggest (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_search_suggest"));
// line 4
echo " <div class=\"search-suggest js-search-result\">
";
// line 5
$this->displayBlock('layout_search_suggest_container', $context, $blocks);
// line 119
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
// line 0
echo "<!-- BLOCK END layout_search_suggest -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
public function block_layout_search_suggest_container($context, array $blocks = [])
{
$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", "layout_search_suggest_container"));
// line 0
echo "<!-- BLOCK BEGIN layout_search_suggest_container (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_search_suggest_container"));
// line 6
echo " <ul class=\"search-suggest-container\">
";
// line 7
$this->displayBlock('layout_search_suggest_results', $context, $blocks);
// line 81
echo "
";
// line 82
$this->displayBlock('layout_search_suggest_result_total', $context, $blocks);
// line 117
echo " </ul>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
// line 0
echo "<!-- BLOCK END layout_search_suggest_container -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 7
public function block_layout_search_suggest_results($context, array $blocks = [])
{
$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", "layout_search_suggest_results"));
// line 0
echo "<!-- BLOCK BEGIN layout_search_suggest_results (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_search_suggest_results"));
// line 8
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "searchResult", [], "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["product"]) {
// line 9
echo " ";
$this->displayBlock('layout_search_suggest_result_product', $context, $blocks);
// line 79
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 80
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
// line 0
echo "<!-- BLOCK END layout_search_suggest_results -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 9
public function block_layout_search_suggest_result_product($context, array $blocks = [])
{
$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", "layout_search_suggest_result_product"));
// line 0
echo "<!-- BLOCK BEGIN layout_search_suggest_result_product (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_search_suggest_result_product"));
// line 10
echo " <li class=\"search-suggest-product js-result\">
";
// line 11
$this->displayBlock('layout_search_suggest_result_link', $context, $blocks);
// line 77
echo " </li>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
// line 0
echo "<!-- BLOCK END layout_search_suggest_result_product -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
public function block_layout_search_suggest_result_link($context, array $blocks = [])
{
$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", "layout_search_suggest_result_link"));
// line 0
echo "<!-- BLOCK BEGIN layout_search_suggest_result_link (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_search_suggest_result_link"));
// line 12
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.detail.page", ["productId" => twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "id", [], "any", false, false, false, 12)]), "html", null, true);
echo "\"
title=\"";
// line 13
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "translated", [], "any", false, false, false, 13), "name", [], "any", false, false, false, 13), "html", null, true);
echo "\"
class=\"search-suggest-product-link\">
<div class=\"row align-items-center ";
// line 15
echo twig_escape_filter($this->env, ($context["gridNoGuttersClass"] ?? null), "html", null, true);
echo "\">
";
// line 16
$this->displayBlock('layout_search_suggest_result_image', $context, $blocks);
// line 37
echo "
";
// line 38
$this->displayBlock('layout_search_suggest_result_name', $context, $blocks);
// line 43
echo "
";
// line 44
$this->displayBlock('layout_search_suggest_result_price', $context, $blocks);
// line 74
echo " </div>
</a>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
// line 0
echo "<!-- BLOCK END layout_search_suggest_result_link -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 16
public function block_layout_search_suggest_result_image($context, array $blocks = [])
{
$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", "layout_search_suggest_result_image"));
// line 0
echo "<!-- BLOCK BEGIN layout_search_suggest_result_image (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_search_suggest_result_image"));
// line 17
echo " <div class=\"col-auto search-suggest-product-image-container\">
";
// line 18
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "cover", [], "any", false, false, false, 18), "media", [], "any", false, false, false, 18), "url", [], "any", false, false, false, 18)) {
// line 19
echo " ";
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/thumbnail.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@Storefront/storefront/layout/header/search-suggest.html.twig", 19);
})())->display(twig_array_merge($context, ["media" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 20
($context["product"] ?? null), "cover", [], "any", false, false, false, 20), "media", [], "any", false, false, false, 20), "sizes" => ["default" => "100px"], "attributes" => ["class" => "search-suggest-product-image", "alt" => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 26
($context["product"] ?? null), "cover", [], "any", false, false, false, 26), "media", [], "any", false, false, false, 26), "translated", [], "any", false, false, false, 26), "alt", [], "any", false, false, false, 26)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "cover", [], "any", false, false, false, 26), "media", [], "any", false, false, false, 26), "translated", [], "any", false, false, false, 26), "alt", [], "any", false, false, false, 26)) : ("")), "title" => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 27
($context["product"] ?? null), "cover", [], "any", false, false, false, 27), "media", [], "any", false, false, false, 27), "translated", [], "any", false, false, false, 27), "title", [], "any", false, false, false, 27)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "cover", [], "any", false, false, false, 27), "media", [], "any", false, false, false, 27), "translated", [], "any", false, false, false, 27), "title", [], "any", false, false, false, 27)) : (""))], "name" => "search-suggest-product-image-thumbnails"]));
// line 30
echo " ";
} else {
// line 31
echo " ";
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@Storefront/storefront/layout/header/search-suggest.html.twig", 31);
})())->display(twig_array_merge($context, ["size" => "lg", "name" => "placeholder"]));
// line 34
echo " ";
}
// line 35
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
// line 0
echo "<!-- BLOCK END layout_search_suggest_result_image -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 38
public function block_layout_search_suggest_result_name($context, array $blocks = [])
{
$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", "layout_search_suggest_result_name"));
// line 0
echo "<!-- BLOCK BEGIN layout_search_suggest_result_name (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_search_suggest_result_name"));
// line 39
echo " <div class=\"col search-suggest-product-name\">
";
// line 40
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "translated", [], "any", false, false, false, 40), "name", [], "any", false, false, false, 40), "html", null, true);
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
// line 0
echo "<!-- BLOCK END layout_search_suggest_result_name -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 44
public function block_layout_search_suggest_result_price($context, array $blocks = [])
{
$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", "layout_search_suggest_result_price"));
// line 0
echo "<!-- BLOCK BEGIN layout_search_suggest_result_price (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_search_suggest_result_price"));
// line 45
echo " <div class=\"col-auto search-suggest-product-price\">
";
// line 46
$context["price"] = twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "calculatedPrice", [], "any", false, false, false, 46);
// line 47
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "calculatedPrices", [], "any", false, false, false, 47), "count", [], "any", false, false, false, 47) > 0)) {
// line 48
echo " ";
$context["price"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "calculatedPrices", [], "any", false, false, false, 48), "last", [], "any", false, false, false, 48);
// line 49
echo " ";
}
// line 50
echo "
";
// line 51
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "variantListingConfig", [], "any", false, false, false, 51), "displayParent", [], "any", false, false, false, 51) && (twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "parentId", [], "any", false, false, false, 51) === null))) {
// line 52
echo " ";
$context["displayFromVariants"] = (twig_get_attribute($this->env, $this->source, ($context["price"] ?? null), "unitPrice", [], "any", false, false, false, 52) !== twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "calculatedCheapestPrice", [], "any", false, false, false, 52), "unitPrice", [], "any", false, false, false, 52));
// line 53
echo " ";
$context["price"] = twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "calculatedCheapestPrice", [], "any", false, false, false, 53);
// line 54
echo " ";
}
// line 55
echo "
";
// line 56
$context["referencePrice"] = twig_get_attribute($this->env, $this->source, ($context["price"] ?? null), "referencePrice", [], "any", false, false, false, 56);
// line 57
echo "
";
// line 58
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "calculatedPrices", [], "any", false, false, false, 58), "count", [], "any", false, false, false, 58) > 1) || ($context["displayFromVariants"] ?? null))) {
// line 59
echo " ";
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.listingTextFrom"));
echo "
";
}
// line 61
echo " <span class=\"search-suggest-product-price\">
";
// line 62
echo twig_escape_filter($this->env, $this->extensions['Shopware\Core\Framework\Adapter\Twig\Filter\CurrencyFilter']->formatCurrency($context, twig_get_attribute($this->env, $this->source, ($context["price"] ?? null), "unitPrice", [], "any", false, false, false, 62)), "html", null, true);
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.star"));
echo "
</span>
";
// line 65
if ( !(null === twig_get_attribute($this->env, $this->source, ($context["price"] ?? null), "referencePrice", [], "any", false, false, false, 65))) {
// line 66
echo " <br><small class=\"search-suggest-product-reference-price\">(";
echo twig_escape_filter($this->env, $this->extensions['Shopware\Core\Framework\Adapter\Twig\Filter\CurrencyFilter']->formatCurrency($context, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["price"] ?? null), "referencePrice", [], "any", false, false, false, 66), "price", [], "any", false, false, false, 66)), "html", null, true);
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.star"));
echo " / ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["price"] ?? null), "referencePrice", [], "any", false, false, false, 66), "referenceUnit", [], "any", false, false, false, 66), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["price"] ?? null), "referencePrice", [], "any", false, false, false, 66), "unitName", [], "any", false, false, false, 66), "html", null, true);
echo ")</small>
";
}
// line 68
echo "
";
// line 69
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["price"] ?? null), "regulationPrice", [], "any", false, false, false, 69), "price", [], "any", false, false, false, 69))) {
// line 70
echo " <small class=\"search-suggest-product-list-price\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.listPricePreviously", ["%price%" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Filter\CurrencyFilter']->formatCurrency($context, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["price"] ?? null), "regulationPrice", [], "any", false, false, false, 70), "price", [], "any", false, false, false, 70))]), "html", null, true);
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.star"));
echo "</small>
";
}
// line 72
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
// line 0
echo "<!-- BLOCK END layout_search_suggest_result_price -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 82
public function block_layout_search_suggest_result_total($context, array $blocks = [])
{
$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", "layout_search_suggest_result_total"));
// line 0
echo "<!-- BLOCK BEGIN layout_search_suggest_result_total (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_search_suggest_result_total"));
// line 83
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "searchResult", [], "any", false, false, false, 83), "total", [], "any", false, false, false, 83) == 0)) {
// line 84
echo " ";
$this->displayBlock('layout_search_suggest_no_result', $context, $blocks);
// line 89
echo " ";
} else {
// line 90
echo "
";
// line 91
$this->displayBlock('layout_search_suggest_result_total_result', $context, $blocks);
// line 115
echo " ";
}
// line 116
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
// line 0
echo "<!-- BLOCK END layout_search_suggest_result_total -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 84
public function block_layout_search_suggest_no_result($context, array $blocks = [])
{
$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", "layout_search_suggest_no_result"));
// line 0
echo "<!-- BLOCK BEGIN layout_search_suggest_no_result (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_search_suggest_no_result"));
// line 85
echo " <li class=\"search-suggest-no-result\">
";
// line 86
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header.searchNoResult"));
echo "
</li>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
// line 0
echo "<!-- BLOCK END layout_search_suggest_no_result -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 91
public function block_layout_search_suggest_result_total_result($context, array $blocks = [])
{
$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", "layout_search_suggest_result_total_result"));
// line 0
echo "<!-- BLOCK BEGIN layout_search_suggest_result_total_result (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_search_suggest_result_total_result"));
// line 92
echo " <li class=\"js-result search-suggest-total\">
<div class=\"row align-items-center ";
// line 93
echo twig_escape_filter($this->env, ($context["gridNoGuttersClass"] ?? null), "html", null, true);
echo "\">
";
// line 94
$this->displayBlock('layout_search_suggest_result_total_link', $context, $blocks);
// line 104
echo "
";
// line 105
$this->displayBlock('layout_search_suggest_result_total_count', $context, $blocks);
// line 112
echo " </div>
</li>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
// line 0
echo "<!-- BLOCK END layout_search_suggest_result_total_result -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 94
public function block_layout_search_suggest_result_total_link($context, array $blocks = [])
{
$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", "layout_search_suggest_result_total_link"));
// line 0
echo "<!-- BLOCK BEGIN layout_search_suggest_result_total_link (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_search_suggest_result_total_link"));
// line 95
echo " <div class=\"col\">
<a href=\"";
// line 96
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.search.page");
echo "?search=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "searchTerm", [], "any", false, false, false, 96), "html", null, true);
echo "\"
title=\"";
// line 97
echo twig_escape_filter($this->env, twig_striptags($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header.searchAllResults")), "html", null, true);
echo "\"
class=\"search-suggest-total-link\">
";
// line 99
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@Storefront/storefront/layout/header/search-suggest.html.twig", 99);
})())->display(twig_array_merge($context, ["size" => "sm", "name" => "arrow-head-right"]));
// line 100
echo " ";
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header.searchAllResults"));
echo "
</a>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
// line 0
echo "<!-- BLOCK END layout_search_suggest_result_total_link -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 105
public function block_layout_search_suggest_result_total_count($context, array $blocks = [])
{
$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", "layout_search_suggest_result_total_count"));
// line 0
echo "<!-- BLOCK BEGIN layout_search_suggest_result_total_count (vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig) -->";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_search_suggest_result_total_count"));
// line 106
echo " <div class=\"col-auto search-suggest-total-count\">
";
// line 107
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header.searchResults", ["%count%" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 108
($context["page"] ?? null), "searchResult", [], "any", false, false, false, 108), "total", [], "any", false, false, false, 108)]));
// line 109
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
// line 0
echo "<!-- BLOCK END layout_search_suggest_result_total_count -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@Storefront/storefront/layout/header/search-suggest.html.twig";
}
public function getDebugInfo()
{
return array ( 656 => 0, 649 => 109, 647 => 108, 646 => 107, 643 => 106, 638 => 0, 631 => 105, 624 => 0, 614 => 100, 606 => 99, 601 => 97, 595 => 96, 592 => 95, 587 => 0, 580 => 94, 573 => 0, 566 => 112, 564 => 105, 561 => 104, 559 => 94, 555 => 93, 552 => 92, 547 => 0, 540 => 91, 533 => 0, 525 => 86, 522 => 85, 517 => 0, 510 => 84, 503 => 0, 498 => 116, 495 => 115, 493 => 91, 490 => 90, 487 => 89, 484 => 84, 481 => 83, 476 => 0, 469 => 82, 462 => 0, 456 => 72, 449 => 70, 447 => 69, 444 => 68, 433 => 66, 431 => 65, 424 => 62, 421 => 61, 415 => 59, 413 => 58, 410 => 57, 408 => 56, 405 => 55, 402 => 54, 399 => 53, 396 => 52, 394 => 51, 391 => 50, 388 => 49, 385 => 48, 382 => 47, 380 => 46, 377 => 45, 372 => 0, 365 => 44, 358 => 0, 350 => 40, 347 => 39, 342 => 0, 335 => 38, 328 => 0, 322 => 35, 319 => 34, 310 => 31, 307 => 30, 305 => 27, 304 => 26, 303 => 20, 295 => 19, 293 => 18, 290 => 17, 285 => 0, 278 => 16, 271 => 0, 264 => 74, 262 => 44, 259 => 43, 257 => 38, 254 => 37, 252 => 16, 248 => 15, 243 => 13, 238 => 12, 233 => 0, 226 => 11, 219 => 0, 213 => 77, 211 => 11, 208 => 10, 203 => 0, 196 => 9, 189 => 0, 184 => 80, 170 => 79, 167 => 9, 149 => 8, 144 => 0, 137 => 7, 130 => 0, 124 => 117, 122 => 82, 119 => 81, 117 => 7, 114 => 6, 109 => 0, 102 => 5, 95 => 0, 89 => 119, 87 => 5, 84 => 4, 79 => 0, 72 => 3, 62 => 0, 60 => 3, 57 => 2,);
}
public function getSourceContext()
{
return new Source("{# @var product \\Shopware\\Core\\Content\\Product\\SalesChannel\\SalesChannelProductEntity #}
{% block layout_search_suggest %}
<div class=\"search-suggest js-search-result\">
{% block layout_search_suggest_container %}
<ul class=\"search-suggest-container\">
{% block layout_search_suggest_results %}
{% for product in page.searchResult %}
{% block layout_search_suggest_result_product %}
<li class=\"search-suggest-product js-result\">
{% block layout_search_suggest_result_link %}
<a href=\"{{ seoUrl('frontend.detail.page', {'productId': product.id}) }}\"
title=\"{{ product.translated.name }}\"
class=\"search-suggest-product-link\">
<div class=\"row align-items-center {{ gridNoGuttersClass }}\">
{% block layout_search_suggest_result_image %}
<div class=\"col-auto search-suggest-product-image-container\">
{% if product.cover.media.url %}
{% sw_thumbnails 'search-suggest-product-image-thumbnails' with {
media: product.cover.media,
sizes: {
'default': '100px'
},
attributes: {
'class': 'search-suggest-product-image',
'alt': (product.cover.media.translated.alt ?: ''),
'title': (product.cover.media.translated.title ?: '')
}
} %}
{% else %}
{% sw_icon 'placeholder' style {
'size': 'lg'
} %}
{% endif %}
</div>
{% endblock %}
{% block layout_search_suggest_result_name %}
<div class=\"col search-suggest-product-name\">
{{ product.translated.name }}
</div>
{% endblock %}
{% block layout_search_suggest_result_price %}
<div class=\"col-auto search-suggest-product-price\">
{% set price = product.calculatedPrice %}
{% if product.calculatedPrices.count > 0 %}
{% set price = product.calculatedPrices.last %}
{% endif %}
{% if product.variantListingConfig.displayParent and product.parentId === null %}
{% set displayFromVariants = price.unitPrice !== product.calculatedCheapestPrice.unitPrice %}
{% set price = product.calculatedCheapestPrice %}
{% endif %}
{% set referencePrice = price.referencePrice %}
{% if product.calculatedPrices.count > 1 or displayFromVariants %}
{{ \"listing.listingTextFrom\"|trans|sw_sanitize }}
{% endif %}
<span class=\"search-suggest-product-price\">
{{ price.unitPrice|currency }}{{ \"general.star\"|trans|sw_sanitize }}
</span>
{% if price.referencePrice is not null %}
<br><small class=\"search-suggest-product-reference-price\">({{ price.referencePrice.price|currency }}{{ \"general.star\"|trans|sw_sanitize }} / {{ price.referencePrice.referenceUnit }} {{ price.referencePrice.unitName }})</small>
{% endif %}
{% if price.regulationPrice.price is not null %}
<small class=\"search-suggest-product-list-price\">{{ \"general.listPricePreviously\"|trans({'%price%': price.regulationPrice.price|currency }) }}{{ \"general.star\"|trans|sw_sanitize }}</small>
{% endif %}
</div>
{% endblock %}
</div>
</a>
{% endblock %}
</li>
{% endblock %}
{% endfor %}
{% endblock %}
{% block layout_search_suggest_result_total %}
{% if page.searchResult.total == 0 %}
{% block layout_search_suggest_no_result %}
<li class=\"search-suggest-no-result\">
{{ \"header.searchNoResult\"|trans|sw_sanitize }}
</li>
{% endblock %}
{% else %}
{% block layout_search_suggest_result_total_result %}
<li class=\"js-result search-suggest-total\">
<div class=\"row align-items-center {{ gridNoGuttersClass }}\">
{% block layout_search_suggest_result_total_link %}
<div class=\"col\">
<a href=\"{{ path('frontend.search.page') }}?search={{ page.searchTerm }}\"
title=\"{{ \"header.searchAllResults\"|trans|striptags }}\"
class=\"search-suggest-total-link\">
{% sw_icon 'arrow-head-right' style { 'size': 'sm' } %}
{{ \"header.searchAllResults\"|trans|sw_sanitize }}
</a>
</div>
{% endblock %}
{% block layout_search_suggest_result_total_count %}
<div class=\"col-auto search-suggest-total-count\">
{{ \"header.searchResults\"|trans({
'%count%': page.searchResult.total,
})|sw_sanitize }}
</div>
{% endblock %}
</div>
</li>
{% endblock %}
{% endif %}
{% endblock %}
</ul>
{% endblock %}
</div>
{% endblock %}
", "@Storefront/storefront/layout/header/search-suggest.html.twig", "/home/p-a6iu1i/html/hbc-shopware-stage-qcsct/dev/vendor/shopware/storefront/Resources/views/storefront/layout/header/search-suggest.html.twig");
}
}