<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
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/component/product/card/wishlist.html.twig */
class __TwigTemplate_d8fda69e6a31a5d5cfa985ad254f5d08 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'component_product_wishlist' => [$this, 'block_component_product_wishlist'],
'component_product_wishlist_button' => [$this, 'block_component_product_wishlist_button'],
'component_product_wishlist_icon' => [$this, 'block_component_product_wishlist_icon'],
];
}
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/component/product/card/wishlist.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/component/product/card/wishlist.html.twig"));
// line 1
$this->displayBlock('component_product_wishlist', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function block_component_product_wishlist($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", "component_product_wishlist"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_wishlist"));
// line 2
echo " ";
// line 3
echo " ";
$context["addToWishlistOptions"] = ["productId" => // line 4
($context["productId"] ?? null), "router" => ["add" => ["afterLoginPath" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.wishlist.add.after.login", ["productId" => // line 7
($context["productId"] ?? null)]), "path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.wishlist.product.add", ["productId" => // line 8
($context["productId"] ?? null)]), "token" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.wishlist.product.add", ["mode" => "token"])], "remove" => ["path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.wishlist.product.remove", ["productId" => // line 12
($context["productId"] ?? null)]), "token" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.wishlist.product.remove", ["mode" => "token"])]]];
// line 17
echo "
";
// line 18
$context["size"] = (($context["size"]) ?? ("md"));
// line 19
echo "
<div class=\"product-wishlist\">
";
// line 21
$this->displayBlock('component_product_wishlist_button', $context, $blocks);
// line 44
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 21
public function block_component_product_wishlist_button($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", "component_product_wishlist_button"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_wishlist_button"));
// line 22
echo " <button
class=\"product-wishlist-";
// line 23
echo sw_escape_filter($this->env, ($context["productId"] ?? null), "html", null, true);
echo " product-wishlist-action";
if ((($context["appearance"] ?? null) == "circle")) {
echo "-circle";
}
echo " product-wishlist-not-added product-wishlist-loading\"
title=\"";
// line 24
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.toggleWishlist"));
echo "\"
data-add-to-wishlist=\"true\"
data-add-to-wishlist-options=\"";
// line 26
echo sw_escape_filter($this->env, $this->env->getFilter('json_encode')->getCallable()(($context["addToWishlistOptions"] ?? null)), "html", null, true);
echo "\"
>
";
// line 28
$this->displayBlock('component_product_wishlist_icon', $context, $blocks);
// line 42
echo " </button>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 28
public function block_component_product_wishlist_icon($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", "component_product_wishlist_icon"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_wishlist_icon"));
// line 29
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/component/product/card/wishlist.html.twig", 29);
})())->display(twig_array_merge($context, ["class" => "wishlist icon-wishlist-added", "size" => ($context["size"] ?? null), "name" => "heart-fill"]));
// line 30
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/component/product/card/wishlist.html.twig", 30);
})())->display(twig_array_merge($context, ["class" => "wishlist icon-wishlist-not-added", "size" => ($context["size"] ?? null), "name" => "heart"]));
// line 31
echo "
";
// line 32
if (($context["showText"] ?? null)) {
// line 33
echo " <span class=\"product-wishlist-btn-content text-wishlist-not-added product-wishlist-btn-content-";
echo sw_escape_filter($this->env, ($context["size"] ?? null), "html", null, true);
echo "\">
";
// line 34
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.addToWishlist"));
echo "
</span>
<span class=\"product-wishlist-btn-content text-wishlist-remove product-wishlist-btn-content-";
// line 36
echo sw_escape_filter($this->env, ($context["size"] ?? null), "html", null, true);
echo "\">
";
// line 37
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.removeFromWishlist"));
echo "
</span>
";
}
// line 41
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@Storefront/storefront/component/product/card/wishlist.html.twig";
}
public function getDebugInfo()
{
return array ( 194 => 41, 187 => 37, 183 => 36, 178 => 34, 173 => 33, 171 => 32, 168 => 31, 159 => 30, 150 => 29, 140 => 28, 129 => 42, 127 => 28, 122 => 26, 117 => 24, 109 => 23, 106 => 22, 96 => 21, 85 => 44, 83 => 21, 79 => 19, 77 => 18, 74 => 17, 72 => 12, 71 => 8, 70 => 7, 69 => 4, 67 => 3, 65 => 2, 46 => 1,);
}
public function getSourceContext()
{
return new Source("{% block component_product_wishlist %}
{# @deprecated tag:v6.5.0 - Options addToWishlistOptions.router.add.token and addToWishlistOptions.remove.add.token will be removed. #}
{% set addToWishlistOptions = {
productId: productId,
router: {
add: {
afterLoginPath: path('frontend.wishlist.add.after.login', { productId: productId }),
path: path('frontend.wishlist.product.add', { productId: productId }),
token: sw_csrf('frontend.wishlist.product.add', {\"mode\": \"token\"})
},
remove: {
path: path('frontend.wishlist.product.remove', { productId: productId }),
token: sw_csrf('frontend.wishlist.product.remove', {\"mode\": \"token\"}),
}
}
} %}
{% set size = size ?? 'md' %}
<div class=\"product-wishlist\">
{% block component_product_wishlist_button %}
<button
class=\"product-wishlist-{{ productId }} product-wishlist-action{% if appearance == 'circle' %}-circle{% endif %} product-wishlist-not-added product-wishlist-loading\"
title=\"{{ \"listing.toggleWishlist\"|trans|sw_sanitize }}\"
data-add-to-wishlist=\"true\"
data-add-to-wishlist-options=\"{{ addToWishlistOptions|json_encode }}\"
>
{% block component_product_wishlist_icon %}
{% sw_icon 'heart-fill' style { 'class': 'wishlist icon-wishlist-added', 'size': size } %}
{% sw_icon 'heart' style {'class': 'wishlist icon-wishlist-not-added', 'size': size } %}
{% if showText %}
<span class=\"product-wishlist-btn-content text-wishlist-not-added product-wishlist-btn-content-{{ size }}\">
{{ \"listing.addToWishlist\"|trans|sw_sanitize }}
</span>
<span class=\"product-wishlist-btn-content text-wishlist-remove product-wishlist-btn-content-{{ size }}\">
{{ \"listing.removeFromWishlist\"|trans|sw_sanitize }}
</span>
{% endif %}
{% endblock %}
</button>
{% endblock %}
</div>
{% endblock %}
", "@Storefront/storefront/component/product/card/wishlist.html.twig", "/var/www/share/efb-elektronik.dev.mc.emzcustomers.de/shopware6/vendor/shopware/storefront/Resources/views/storefront/component/product/card/wishlist.html.twig");
}
}