<?php

use Twig\Environment;
use Shopware\Core\Framework\Adapter\Twig\SwTwigFunction;
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;

/* @Storefront/storefront/component/product/card/box-standard.html.twig */
class __TwigTemplate_5db22659e8080b49fb38430b7bf21c98 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 = [
            'component_product_box' => [$this, 'block_component_product_box'],
            'component_product_box_content' => [$this, 'block_component_product_box_content'],
            'component_product_box_badges' => [$this, 'block_component_product_box_badges'],
            'component_product_box_image' => [$this, 'block_component_product_box_image'],
            'component_product_box_image_link' => [$this, 'block_component_product_box_image_link'],
            'component_product_box_image_link_inner' => [$this, 'block_component_product_box_image_link_inner'],
            'component_product_box_video' => [$this, 'block_component_product_box_video'],
            'component_product_box_image_thumbnail' => [$this, 'block_component_product_box_image_thumbnail'],
            'component_product_box_image_placeholder' => [$this, 'block_component_product_box_image_placeholder'],
            'component_product_box_wishlist_action' => [$this, 'block_component_product_box_wishlist_action'],
            'component_product_box_info' => [$this, 'block_component_product_box_info'],
            'component_product_box_rating' => [$this, 'block_component_product_box_rating'],
            'component_product_box_name' => [$this, 'block_component_product_box_name'],
            'component_product_box_variant_characteristics' => [$this, 'block_component_product_box_variant_characteristics'],
            'component_product_box_description' => [$this, 'block_component_product_box_description'],
            'component_product_box_price' => [$this, 'block_component_product_box_price'],
            'component_product_box_action' => [$this, 'block_component_product_box_action'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        yield from $this->unwrap()->yieldBlock('component_product_box', $context, $blocks);
        yield from [];
    }

    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_component_product_box(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 2
        yield "    ";
        if (($context["product"] ?? null)) {
            // line 3
            yield "        ";
            $context["name"] = SwTwigFunction::getAttribute($this->env, $this->source, SwTwigFunction::getAttribute($this->env, $this->source, ($context["product"] ?? null), "translated", [], "any", false, false, false, 3), "name", [], "any", false, false, false, 3);
            // line 4
            yield "        ";
            $context["id"] = SwTwigFunction::getAttribute($this->env, $this->source, ($context["product"] ?? null), "id", [], "any", false, false, false, 4);
            // line 5
            yield "        ";
            $context["cover"] = SwTwigFunction::getAttribute($this->env, $this->source, SwTwigFunction::getAttribute($this->env, $this->source, ($context["product"] ?? null), "cover", [], "any", false, false, false, 5), "media", [], "any", false, false, false, 5);
            // line 6
            yield "        ";
            $context["variation"] = SwTwigFunction::getAttribute($this->env, $this->source, ($context["product"] ?? null), "variation", [], "any", false, false, false, 6);
            // line 7
            yield "        ";
            $context["displayParent"] = (SwTwigFunction::getAttribute($this->env, $this->source, SwTwigFunction::getAttribute($this->env, $this->source, ($context["product"] ?? null), "variantListingConfig", [], "any", false, false, false, 7), "displayParent", [], "any", false, false, false, 7) && (SwTwigFunction::getAttribute($this->env, $this->source, ($context["product"] ?? null), "parentId", [], "any", false, false, false, 7) === null));
            // line 8
            yield "
        <div class=\"card product-box box-";
            // line 9
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["layout"] ?? null), "html", null, true);
            yield "\" data-product-information=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFilter('json_encode')->getCallable()(["id" => ($context["id"] ?? null), "name" => ($context["name"] ?? null)]), "html", null, true);
            yield "\">
            ";
            // line 10
            yield from $this->unwrap()->yieldBlock('component_product_box_content', $context, $blocks);
            // line 160
            yield "        </div>
    ";
        }
        yield from [];
    }

    // line 10
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_component_product_box_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 11
        yield "                <div class=\"card-body\">
                    ";
        // line 12
        yield from $this->unwrap()->yieldBlock('component_product_box_badges', $context, $blocks);
        // line 15
        yield "
                    ";
        // line 16
        yield from $this->unwrap()->yieldBlock('component_product_box_image', $context, $blocks);
        // line 100
        yield "
                    ";
        // line 101
        yield from $this->unwrap()->yieldBlock('component_product_box_info', $context, $blocks);
        // line 158
        yield "                </div>
            ";
        yield from [];
    }

    // line 12
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_component_product_box_badges(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 13
        yield "                        ";
        yield from         $this->loadTemplate("@Storefront/storefront/component/product/card/badges.html.twig", "@Storefront/storefront/component/product/card/box-standard.html.twig", 13)->unwrap()->yield($context);
        // line 14
        yield "                    ";
        yield from [];
    }

    // line 16
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_component_product_box_image(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 17
        yield "                        <div class=\"product-image-wrapper\">
                            ";
        // line 19
        yield "                            ";
        $context["displayMode"] = ((($context["displayMode"] ?? null)) ?: ("standard"));
        // line 20
        yield "
                            ";
        // line 22
        yield "                            ";
        if (((($context["layout"] ?? null) == "image") && (($context["displayMode"] ?? null) == "standard"))) {
            // line 23
            yield "                                ";
            $context["displayMode"] = "cover";
            // line 24
            yield "                            ";
        }
        // line 25
        yield "
                            ";
        // line 27
        yield "                            ";
        yield from $this->unwrap()->yieldBlock('component_product_box_image_link', $context, $blocks);
        // line 89
        yield "
                            ";
        // line 90
        if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "core.cart.wishlistEnabled")) {
            // line 91
            yield "                                ";
            yield from $this->unwrap()->yieldBlock('component_product_box_wishlist_action', $context, $blocks);
            // line 97
            yield "                            ";
        }
        // line 98
        yield "                        </div>
                    ";
        yield from [];
    }

    // line 27
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_component_product_box_image_link(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 28
        yield "                                ";
        // line 29
        yield "                                ";
        if ( !$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\FeatureFlagExtension']->feature("ACCESSIBILITY_TWEAKS")) {
            // line 30
            yield "                                    <a href=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.detail.page", ["productId" => ($context["id"] ?? null)]), "html", null, true);
            yield "\"
                                       title=\"";
            // line 31
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["name"] ?? null), "html", null, true);
            yield "\"
                                       class=\"product-image-link is-";
            // line 32
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["displayMode"] ?? null), "html", null, true);
            yield "\">
                                ";
        }
        // line 34
        yield "                                    ";
        yield from $this->unwrap()->yieldBlock('component_product_box_image_link_inner', $context, $blocks);
        // line 84
        yield "                                ";
        // line 85
        yield "                                ";
        if ( !$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\FeatureFlagExtension']->feature("ACCESSIBILITY_TWEAKS")) {
            // line 86
            yield "                                    </a>
                                ";
        }
        // line 88
        yield "                            ";
        yield from [];
    }

    // line 34
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_component_product_box_image_link_inner(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 35
        yield "                                        ";
        if ((SwTwigFunction::getAttribute($this->env, $this->source, ($context["cover"] ?? null), "url", [], "any", false, false, false, 35) && (SwTwigFunction::getAttribute($this->env, $this->source, ($context["cover"] ?? null), "isSpatialObject", [], "method", false, false, false, 35) == false))) {
            // line 36
            yield "                                            ";
            $context["attributes"] = ["class" => ("product-image is-" .             // line 37
($context["displayMode"] ?? null)), "title" => ((SwTwigFunction::getAttribute($this->env, $this->source, SwTwigFunction::getAttribute($this->env, $this->source,             // line 38
($context["cover"] ?? null), "translated", [], "any", false, false, false, 38), "title", [], "any", false, false, false, 38)) ?: (($context["name"] ?? null)))];
            // line 40
            yield "
                                            ";
            // line 41
            if ((SwTwigFunction::getAttribute($this->env, $this->source, SwTwigFunction::getAttribute($this->env, $this->source, ($context["cover"] ?? null), "getMediaType", [], "method", false, false, false, 41), "getName", [], "method", false, false, false, 41) === "VIDEO")) {
                // line 42
                yield "                                                ";
                if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "core.listing.autoplayVideoInListing")) {
                    // line 43
                    yield "                                                    ";
                    $context["attributes"] = Twig\Extension\CoreExtension::merge(($context["attributes"] ?? null), ["autoplay" => true, "loop" => true]);
                    // line 47
                    yield "                                                ";
                }
                // line 48
                yield "
                                                ";
                // line 49
                yield from $this->unwrap()->yieldBlock('component_product_box_video', $context, $blocks);
                // line 55
                yield "                                            ";
            } else {
                // line 56
                yield "                                                ";
                $context["attributes"] = Twig\Extension\CoreExtension::merge(($context["attributes"] ?? null), ["alt" => ((SwTwigFunction::getAttribute($this->env, $this->source, SwTwigFunction::getAttribute($this->env, $this->source,                 // line 57
($context["cover"] ?? null), "translated", [], "any", false, false, false, 57), "alt", [], "any", false, false, false, 57)) ?: (($context["name"] ?? null))), "loading" => "lazy"]);
                // line 60
                yield "
                                                ";
                // line 61
                if (((($context["displayMode"] ?? null) == "cover") || (($context["displayMode"] ?? null) == "contain"))) {
                    // line 62
                    yield "                                                    ";
                    $context["attributes"] = Twig\Extension\CoreExtension::merge(($context["attributes"] ?? null), ["data-object-fit" => ($context["displayMode"] ?? null)]);
                    // line 63
                    yield "                                                ";
                }
                // line 64
                yield "
                                                ";
                // line 65
                yield from $this->unwrap()->yieldBlock('component_product_box_image_thumbnail', $context, $blocks);
                // line 72
                yield "                                            ";
            }
            // line 73
            yield "                                        ";
        } else {
            // line 74
            yield "                                            ";
            yield from $this->unwrap()->yieldBlock('component_product_box_image_placeholder', $context, $blocks);
            // line 82
            yield "                                        ";
        }
        // line 83
        yield "                                    ";
        yield from [];
    }

    // line 49
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_component_product_box_video(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 50
        yield "                                                    ";
        yield from         $this->loadTemplate("@Storefront/storefront/utilities/video.html.twig", "@Storefront/storefront/component/product/card/box-standard.html.twig", 50)->unwrap()->yield(CoreExtension::merge($context, ["media" =>         // line 51
($context["cover"] ?? null), "attributes" =>         // line 52
($context["attributes"] ?? null)]));
        // line 54
        yield "                                                ";
        yield from [];
    }

    // line 65
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public f