<?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;
/* @AmMacTrade/storefront/page/product-detail/index.html.twig */
class __TwigTemplate_c1f14c3f58ef9be62606f77dc46c43db extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'base_head' => [$this, 'block_base_head'],
'base_header' => [$this, 'block_base_header'],
'base_header_inner' => [$this, 'block_base_header_inner'],
'base_navigation' => [$this, 'block_base_navigation'],
'base_navigation_inner' => [$this, 'block_base_navigation_inner'],
'base_content' => [$this, 'block_base_content'],
'page_product_detail' => [$this, 'block_page_product_detail'],
'page_product_detail_tax_link' => [$this, 'block_page_product_detail_tax_link'],
'page_product_detail_inner' => [$this, 'block_page_product_detail_inner'],
'page_product_detail_content' => [$this, 'block_page_product_detail_content'],
'page_product_detail_headline' => [$this, 'block_page_product_detail_headline'],
'page_product_detail_main' => [$this, 'block_page_product_detail_main'],
'page_product_detail_media' => [$this, 'block_page_product_detail_media'],
'page_product_detail_buy' => [$this, 'block_page_product_detail_buy'],
'page_product_detail_tabs' => [$this, 'block_page_product_detail_tabs'],
'page_product_detail_cross_selling' => [$this, 'block_page_product_detail_cross_selling'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@SwagCmsExtensions/storefront/base.html.twig";
}
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", "@AmMacTrade/storefront/page/product-detail/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AmMacTrade/storefront/page/product-detail/index.html.twig"));
$this->parent = $this->loadTemplate("@SwagCmsExtensions/storefront/base.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_base_head($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", "base_head"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_head"));
// line 4
echo " ";
$this->loadTemplate("@SwagSocialShopping/storefront/page/product-detail/meta.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 4)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 7
public function block_base_header($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", "base_header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_header"));
// line 8
echo "<div class=\"header-main-wrapper\">
<header class=\"header-main\">
<div class=\"top-bar-container\">
<div class=\"container\">
";
// line 12
$this->loadTemplate("@AmMacTrade/storefront/layout/header/top-bar.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 12)->display($context);
// line 13
echo " </div>
</div>
";
// line 15
$this->displayBlock('base_header_inner', $context, $blocks);
// line 20
echo " </header>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 15
public function block_base_header_inner($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", "base_header_inner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_header_inner"));
// line 16
echo " <div class=\"container\">
";
// line 17
$this->loadTemplate("@NetzpShopmanager6/storefront/layout/header/header.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 17)->display($context);
// line 18
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 23
public function block_base_navigation($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", "base_navigation"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_navigation"));
// line 24
echo " <div class=\"nav-main\">
";
// line 25
$this->displayBlock('base_navigation_inner', $context, $blocks);
// line 28
echo " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 25
public function block_base_navigation_inner($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", "base_navigation_inner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_navigation_inner"));
// line 26
echo " ";
$this->loadTemplate("@AmMacTrade/storefront/layout/navigation/navigation.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 26)->display($context);
// line 27
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 50
public function block_base_content($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", "base_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_content"));
// line 51
echo " ";
$this->displayBlock('page_product_detail', $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function block_page_product_detail($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", "page_product_detail"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail"));
// line 52
echo "
<div id=\"sticky-cart\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-2 smll-none\">
<div data-wi-id=\"wi-button-container\"></div>
<div class=\"product-title\">
";
// line 60
echo " </div>
";
// line 65
echo " </div>
";
// line 66
$context["category"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "header", [], "any", false, false, false, 66), "navigation", [], "any", false, false, false, 66), "active", [], "any", false, false, false, 66);
// line 67
echo " <div class=\"col-lg-2 smll-none\">
";
// line 68
if (sw_get_attribute($this->env, $this->source, (($__internal_compile_0 = sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 68)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["amMactradeap1"] ?? null) : null), "get", [0 => "keyApi"], "method", false, false, false, 68)) {
// line 69
echo " <div class=\"stiky-cart-new-wrap
";
// line 70
if (($context["category"] ?? null)) {
// line 71
$context["breadcrumbCategories"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\BuildBreadcrumbExtension']->getFullBreadcrumb($context, ($context["category"] ?? null), sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "context", [], "any", false, false, false, 71));
// line 72
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["breadcrumbCategories"] ?? null));
$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["breadcrumbCategory"]) {
// line 73
$context["key"] = sw_get_attribute($this->env, $this->source, $context["breadcrumbCategory"], "id", [], "any", false, false, false, 73);
// line 74
$context["name"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["breadcrumbCategory"], "translated", [], "any", false, false, false, 74), "name", [], "any", false, false, false, 74);
// line 75
if ((sw_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 75) == 1)) {
// line 76
if ((($context["name"] ?? null) == "Zubehör")) {
// line 77
echo "d-none
";
}
}
++$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['breadcrumbCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 82
echo " \">
<h3>Gutschrift für Ihr Altgerät</h3>
<div class=\"price-mc\"><p>zw.</p><h2 class=\"price_range\"> 30 € - 735* </h2> <p>
";
// line 86
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, (($__internal_compile_1 = sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 86)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["amMactradeap1"] ?? null) : null), "get", [0 => "keyApiText"], "method", false, false, false, 86), "html", null, true);
echo "
</p></div>
<a class=\"small-link\" target=\"_blank\" href=\"https://mactrade.kauft-an.de/mactrade_c/hilfe/\">Mehr Infos</a>
</div>
";
}
// line 91
echo " </div>
<div class=\"col-lg-12 col-xl-8 d-flex justify-content-lg-between justify-content-xl-end align-items-center\">
<div class=\"edu-information\">
<div class=\"edu-price-container\">
";
// line 96
if (((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 96), "id", [], "any", false, false, false, 96) != "45be9f42765d42e8ae1137d1812040f4") && (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 96), "id", [], "any", false, false, false, 96) != "4faca3b6a7f149cea7ade06ee340ce19"))) {
// line 97
echo "
";
// line 98
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 98), "customFields", [], "any", false, false, false, 98), "product_custom_fields_edu_discount", [], "any", false, false, false, 98)) {
// line 99
echo " ";
$context["eduPrice"] = ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 99), "calculatedPrice", [], "any", false, false, false, 99), "unitPrice", [], "any", false, false, false, 99) / 100) * (100 - sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 99), "customFields", [], "any", false, false, false, 99), "product_custom_fields_edu_discount", [], "any", false, false, false, 99)));
// line 100
echo " EDU: ";
echo sw_escape_filter($this->env, twig_number_format_filter($this->env, ($context["eduPrice"] ?? null), 2, ",", "."), "html", null, true);
echo " € *
";
}
// line 102
echo " ";
}
// line 103
echo "
";
// line 104
if (((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 104), "id", [], "any", false, false, false, 104) == "45be9f42765d42e8ae1137d1812040f4") || (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 104), "id", [], "any", false, false, false, 104) == "4faca3b6a7f149cea7ade06ee340ce19"))) {
// line 105
echo " ";
$context["price"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 105), "calculatedPrices", [], "any", false, false, false, 105), "first", [], "any", false, false, false, 105);
// line 106
echo "
";
// line 107
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 107), "customFields", [], "any", false, false, false, 107), "product_custom_fields_edu_discount", [], "any", false, false, false, 107)) {
// line 108
echo " ";
$context["eduPrice"] = ((sw_get_attribute($this->env, $this->source, ($context["price"] ?? null), "unitPrice", [], "any", false, false, false, 108) / 100) * (100 - sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 108), "customFields", [], "any", false, false, false, 108), "product_custom_fields_edu_discount", [], "any", false, false, false, 108)));
// line 109
echo " EDU: ";
echo sw_escape_filter($this->env, twig_number_format_filter($this->env, ($context["eduPrice"] ?? null), 2, ",", "."), "html", null, true);
echo " € *
";
}
// line 111
echo " ";
}
// line 112
echo " </div>
<div class=\"delivery-container\">
";
// line 114
$this->loadTemplate("@MolliePayments/storefront/component/delivery-information.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 114)->display($context);
// line 115
echo " </div>
</div>
<div class=\"price-information\">
<div class=\"price-container\">";
// line 118
$this->loadTemplate("@AmMacTrade/storefront/page/product-detail/buy-widget-price.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 118)->display($context);
echo "</div>
<div class=\"tax-container\">
";
// line 120
if ((sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "taxState", [], "any", false, false, false, 120) == "gross")) {
// line 121
echo " ";
$context["taxText"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.grossTaxInformation"));
// line 122
echo " ";
} else {
// line 123
echo " ";
$context["taxText"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.netTaxInformation"));
// line 124
echo " ";
}
// line 125
echo "
<p class=\"product-detail-tax\">
";
// line 127
$this->displayBlock('page_product_detail_tax_link', $context, $blocks);
// line 134
echo " </p>
</div>
</div>
<div id=\"sticky-cart-form\">
";
// line 138
$this->loadTemplate("@SwagPayPal/storefront/page/product-detail/buy-widget-form.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 138)->display($context);
// line 139
echo " </div>
</div>
</div>
</div>
</div>
";
// line 160
echo "
<div class=\"product-detail\"
itemscope
itemtype=\"https://schema.org/Product\">
";
// line 166
$this->displayBlock('page_product_detail_inner', $context, $blocks);
// line 493
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 127
public function block_page_product_detail_tax_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", "page_product_detail_tax_link"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_tax_link"));
// line 128
echo " <a class=\"product-detail-tax-link\"
href=\"/kundenservice/versandkosten/\"
title=\"";
// line 130
echo sw_escape_filter($this->env, ($context["taxText"] ?? null), "html", null, true);
echo "\" target=\"_blank\">
";
// line 131
echo sw_escape_filter($this->env, ($context["taxText"] ?? null), "html", null, true);
echo "
</a>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 166
public function block_page_product_detail_inner($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", "page_product_detail_inner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_inner"));
// line 167
echo " ";
$this->displayBlock('page_product_detail_content', $context, $blocks);
// line 265
echo "\t
";
// line 267
$this->displayBlock('page_product_detail_tabs', $context, $blocks);
// line 377
echo "
";
// line 378
$this->displayBlock('page_product_detail_cross_selling', $context, $blocks);
// line 492
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 167
public function block_page_product_detail_content($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", "page_product_detail_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_content"));
// line 168
echo " <div class=\"product-detail-content\">
";
// line 169
$this->displayBlock('page_product_detail_headline', $context, $blocks);
// line 216
echo "
";
// line 217
$context["mediaItems"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 217), "media", [], "any", false, false, false, 217), "media", [], "any", false, false, false, 217);
// line 218
echo "
";
// line 219
$this->displayBlock('page_product_detail_main', $context, $blocks);
// line 263
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 169
public function block_page_product_detail_headline($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", "page_product_detail_headline"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_headline"));
// line 170
echo " <div class=\"row align-items-start product-detail-headline\">
";
// line 171
$this->loadTemplate("@AmMacTrade/storefront/page/product-detail/headline.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 171)->display($context);
// line 172
echo "
";
// line 173
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 173), "customFields", [], "any", false, false, false, 173), "product_custom_fields_pdp_promobanner_macbook_air", [], "any", false, false, false, 173) == true)) {
// line 174
echo " <div class=\"product-detail-promotion-banderole\">
";
// line 175
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.macbook-air");
echo "
</div>
";
} elseif ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 177
($context["page"] ?? null), "product", [], "any", false, false, false, 177), "customFields", [], "any", false, false, false, 177), "product_custom_fields_pdp_promobanner_macbook_pro13", [], "any", false, false, false, 177) == true)) {
// line 178
echo " <div class=\"product-detail-promotion-banderole\">
";
// line 179
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.macbook-pro13");
echo "
</div>
";
} elseif ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 181
($context["page"] ?? null), "product", [], "any", false, false, false, 181), "customFields", [], "any", false, false, false, 181), "product_custom_fields_pdp_promobanner_macbook_pro14", [], "any", false, false, false, 181) == true)) {
// line 182
echo " <div class=\"product-detail-promotion-banderole\">
";
// line 183
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.macbook-pro14");
echo "
</div>
";
} elseif ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 185
($context["page"] ?? null), "product", [], "any", false, false, false, 185), "customFields", [], "any", false, false, false, 185), "product_custom_fields_pdp_promobanner_macbook_pro_16", [], "any", false, false, false, 185) == true)) {
// line 186
echo " <div class=\"product-detail-promotion-banderole\">
";
// line 187
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.macbook-pro16");
echo "
</div>
";
} elseif ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 189
($context["page"] ?? null), "product", [], "any", false, false, false, 189), "customFields", [], "any", false, false, false, 189), "product_custom_fields_pdp_promobanner_imac24", [], "any", false, false, false, 189) == true)) {
// line 190
echo " <div class=\"product-detail-promotion-banderole\">
";
// line 191
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.imac24");
echo "
</div>
";
} elseif ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 193
($context["page"] ?? null), "product", [], "any", false, false, false, 193), "customFields", [], "any", false, false, false, 193), "product_custom_fields_pdp_promobanner_imac27", [], "any", false, false, false, 193) == true)) {
// line 194
echo " <div class=\"product-detail-promotion-banderole\">
";
// line 195
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.imac27");
echo "
</div>
";
} elseif ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 197
($context["page"] ?? null), "product", [], "any", false, false, false, 197), "customFields", [], "any", false, false, false, 197), "product_custom_fields_pdp_promobanner_ipad", [], "any", false, false, false, 197) == true)) {
// line 198
echo " <div class=\"product-detail-promotion-banderole\">
";
// line 199
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.ipad");
echo "
</div>
";
} elseif ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 201
($context["page"] ?? null), "product", [], "any", false, false, false, 201), "customFields", [], "any", false, false, false, 201), "product_custom_fields_pdp_promobanner_ipad_pro", [], "any", false, false, false, 201) == true)) {
// line 202
echo " <div class=\"product-detail-promotion-banderole\">
";
// line 203
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.ipad-pro");
echo "
</div>
";
} elseif ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 205
($context["page"] ?? null), "product", [], "any", false, false, false, 205), "customFields", [], "any", false, false, false, 205), "product_custom_fields_pdp_promobanner_mac_mini", [], "any", false, false, false, 205) == true)) {
// line 206
echo " <div class=\"product-detail-promotion-banderole\">
";
// line 207
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.mac-mini");
echo "
</div>
";
} elseif ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 209
($context["page"] ?? null), "product", [], "any", false, false, false, 209), "customFields", [], "any", false, false, false, 209), "product_custom_fields_pdp_promobanner_mac_studio", [], "any", false, false, false, 209) == true)) {
// line 210
echo " <div class=\"product-detail-promotion-banderole\">
";
// line 211
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.mac-studio");
echo "
</div>
";
}
// line 214
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 219
public function block_page_product_detail_main($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", "page_product_detail_main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_main"));
// line 220
echo " <div class=\"row product-detail-main\">
";
// line 221
$this->displayBlock('page_product_detail_media', $context, $blocks);
// line 255
echo "
";
// line 256
$this->displayBlock('page_product_detail_buy', $context, $blocks);
// line 261
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 221
public function block_page_product_detail_media($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", "page_product_detail_media"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_media"));
// line 222
echo " <div class=\"col-lg-6 product-detail-media\">
";
// line 224
echo " ";
if ((((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 224), "customFields", [], "any", false, false, false, 224), "product_custom_fields_subscription", [], "any", false, false, false, 224) == true) && (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 224), "customFields", [], "any", false, false, false, 224), "product_custom_fields_subscription_productType", [], "any", false, false, false, 224) != "ACCESSORY")) && (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 224), "customFields", [], "any", false, false, false, 224), "product_custom_fields_subscription_monthlyPriceGross", [], "any", false, false, false, 224) > 0))) {
// line 225
echo " <div class=\"abo-badge\">
<img src=\"";
// line 226
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/badge_abo.svg", "@AmMacTrade"), "html", null, true);
echo "\" alt=\"Abo\" height=\"50\" width=\"50\">
</div>
";
}
// line 229
echo " ";
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 229), "customFields", [], "any", false, false, false, 229), "product_custom_fields_batch_protect", [], "any", false, false, false, 229) == true)) {
// line 230
echo " <div class=\"protect-badge\">
<a class=\"link-new-window\" href=\"/garantiepaket\">
<img src=\"https://www.mactrade.de/media/a1/g0/f0/1644231456/stoerer-garantie.png\" alt=\"\">
</a>
</div>
";
}
// line 236
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 236), "media", [], "any", false, false, false, 236)) {
// line 237
echo " ";
$this->loadTemplate("@SolidProductVideos/storefront/element/cms-element-image-gallery.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 237)->display(twig_array_merge($context, ["mediaItems" => // line 238
($context["mediaItems"] ?? null), "zoom" => true, "zoomModal" => true, "displayMode" => "contain", "gutter" => 5, "minHeight" => "430px", "navigationArrows" => "inside", "navigationDots" => "inside", "galleryPosition" => "left", "isProduct" => true, "fallbackImageTitle" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 248
($context["page"] ?? null), "product", [], "any", false, false, false, 248), "translated", [], "any", false, false, false, 248), "name", [], "any", false, false, false, 248), "startIndexThumbnails" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 249
($context["page"] ?? null), "product", [], "any", false, false, false, 249), "cover", [], "any", false, false, false, 249), "position", [], "any", false, false, false, 249), "startIndexSlider" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 250
($context["page"] ?? null), "product", [], "any", false, false, false, 250), "cover", [], "any", false, false, false, 250), "position", [], "any", false, false, false, 250)]));
// line 252
echo " ";
}
// line 253
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 256
public function block_page_product_detail_buy($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", "page_product_detail_buy"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_buy"));
// line 257
echo " <div class=\"col-lg-5 offset-lg-1 product-detail-buy\">
";
// line 258
$this->loadTemplate("@CustomFieldAdd/storefront/page/product-detail/buy-widget.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 258)->display($context);
// line 259
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 267
public function block_page_product_detail_tabs($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", "page_product_detail_tabs"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_tabs"));
// line 268
echo "
";
// line 270
echo "
<div class=\"m1 menu\">
<div id=\"menu-center\">
<ul>
<li class=\"active\"><a href=\"#kombinierbare\">Kombinierbare Aktionen</a></li>
<li><a href=\"#produktbeschreibung\">Produktbeschreibung</a></li>
<li><a href=\"#technische\">Technische Daten</a></li>
</ul>
</div>
</div>
";
// line 283
echo "
";
// line 285
echo " <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script>
<script>
let onScroll = function(event){
var scrollPos = \$(document).scrollTop();
\$('#menu-center a').each(function () {
var currLink = \$(this);
var refElement = \$(currLink.attr(\"href\"));
scrollPos += 150;
if (refElement.position().top <= scrollPos && refElement.position().top + refElement.height() > scrollPos) {
\$('#menu-center ul a').parent().removeClass(\"active\");
currLink.parent().addClass(\"active\");
}
else{
currLink.parent().removeClass(\"active\");
}
});
}
\$(document).ready(function () {
\$(document).on(\"scroll.custom\", onScroll);
//smoothscroll
\$('a[href^=\"#\"]').on('click', function (e) {
e.preventDefault();
\$(document).off(\"scroll.custom\");
\$('a').each(function () {
\$(this).parent().removeClass('active');
})
\$(this).parent().addClass('active');
var target = this.hash;
e.preventDefault();
var pos = \$(this).attr('href');
doScrolling(pos, 1000);
});
});
function doScrolling(element, duration) {
var startingY = window.pageYOffset
var elementY = getElementY(element) + 70
var targetY = document.body.scrollHeight - elementY < window.innerHeight ? document.body.scrollHeight - window.innerHeight : elementY
var diff = (targetY - (130 + 85)) - startingY
var easing = function(t) {
return t < .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1
}
var start
if (!diff)
return
window.requestAnimationFrame(function step(timestamp) {
if (!start)
start = timestamp
var time = timestamp - start
var percent = Math.min(time / duration, 1)
percent = easing(percent)
window.scrollTo(0, startingY + diff * percent)
if (time < duration) {
window.requestAnimationFrame(step);
} else {
\$(element).parent().addClass(\"active\").siblings().removeClass(\"active\");
\$(document).on(\"scroll.custom\", onScroll);
}
})
}
function getElementY(query) {
return window.pageYOffset + document.querySelector(query).getBoundingClientRect().top
}
</script>
";
// line 365
echo "\t<div class=\"product-detail-tabs tb-pd d-none\">
\t\t";
// line 366
$this->loadTemplate("@AmMacTrade/storefront/page/product-detail/tabs.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 366)->display($context);
// line 367
echo "\t</div>
<div class=\"product-detail-tabs\">
";
// line 370
$this->loadTemplate("@AmMacTrade/storefront/page/product-detail/tabs.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 370)->display($context);
// line 371
echo " </div>
";
// line 376
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 378
public function block_page_product_detail_cross_selling($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", "page_product_detail_cross_selling"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_cross_selling"));
// line 379
echo " ";
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 379), "extensions", [], "any", false, false, false, 379), "netiProductCms", [], "any", false, false, false, 379) && sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 379), "extensions", [], "any", false, false, false, 379), "netiProductCms", [], "any", false, false, false, 379), "getReplaceProductDetailDescriptionContent", [], "method", false, false, false, 379))) {
// line 380
echo " <div class=\"product-detail-description-text 6666666666\" itemprop=\"description\">
";
// line 381
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 381), "extensions", [], "any", false, false, false, 381), "netiProductCms", [], "any", false, false, false, 381), "getReplaceProductDetailDescriptionContent", [], "method", false, false, false, 381));
foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
// line 382
echo " <div id=\"";
if (twig_in_filter("Kombinierbare", $context["content"])) {
echo "kombinierbare";
}
if (twig_in_filter("Technische", $context["content"])) {
echo "technische";
}
echo "\" class=\"is--neti-next-productdetailcms is--replace-product_detail_description ";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetiNextProductDetailCms.config.replaceProductDetailDescriptionIndention"), "html", null, true);
echo "\" ";
if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetiNextProductDetailCms.config.replaceProductDetailDescriptionInlineStyle")) {
echo " style=\"";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetiNextProductDetailCms.config.replaceProductDetailDescriptionInlineStyle"), "html", null, true);
echo "\" ";
}
echo ">
";
// line 383
echo $context["content"];
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 386
echo " </div>
";
}
// line 388
echo "
";
// line 389
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 389), "extensions", [], "any", false, false, false, 389), "netiProductCms", [], "any", false, false, false, 389) && sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 389), "extensions", [], "any", false, false, false, 389), "netiProductCms", [], "any", false, false, false, 389), "getAboveProductDetailDescriptionContent", [], "method", false, false, false, 389))) {
// line 390
echo "
";
// line 391
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 391), "extensions", [], "any", false, false, false, 391), "netiProductCms", [], "any", false, false, false, 391), "getAboveProductDetailDescriptionContent", [], "method", false, false, false, 391));
foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
// line 392
echo " <div id=\"";
if (twig_in_filter("Kombinierbare", $context["content"])) {
echo "kombinierbare";
}
if (twig_in_filter("Technische", $context["content"])) {
echo "technische";
}
echo "\" class=\"is--neti-next-productdetailcms is--above-product_detail_description ";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetiNextProductDetailCms.config.aboveProductDetailDescriptionIndention"), "html", null, true);
echo "\" ";
if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetiNextProductDetailCms.config.aboveProductDetailDescriptionInlineStyle")) {
echo " style=\"";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetiNextProductDetailCms.config.aboveProductDetailDescriptionInlineStyle"), "html", null, true);
echo "\" ";
}
echo ">
";
// line 393
echo $context["content"];
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 396
echo "
";
}
// line 398
echo "
";
// line 399
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 399), "extensions", [], "any", false, false, false, 399), "netiProductCms", [], "any", false, false, false, 399) && sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 399), "extensions", [], "any", false, false, false, 399), "netiProductCms", [], "any", false, false, false, 399), "getAboveProductDescriptionContent", [], "method", false, false, false, 399))) {
// line 400
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 400), "extensions", [], "any", false, false, false, 400), "netiProductCms", [], "any", false, false, false, 400), "getAboveProductDescriptionContent", [], "method", false, false, false, 400));
foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
// line 401
echo " <div id=\"";
if (twig_in_filter("Kombinierbare", $context["content"])) {
echo "kombinierbare";
}
if (twig_in_filter("Technische", $context["content"])) {
echo "technische";
}
echo "\" class=\"is--neti-next-productdetailcms is--above-product_description ";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetiNextProductDetailCms.config.aboveDescriptionIndention"), "html", null, true);
echo "\" ";
if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetiNextProductDetailCms.config.aboveDescriptionInlineStyle")) {
echo " style=\"";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetiNextProductDetailCms.config.aboveDescriptionInlineStyle"), "html", null, true);
echo "\" ";
}
echo ">
";
// line 402
echo $context["content"];
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 405
echo " ";
}
// line 406
echo "
\t";
// line 409
if (twig_test_empty(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 409), "customFields", [], "any", false, false, false, 409), "custom_pdp_content_file_path", [], "any", false, false, false, 409))) {
// line 410
echo "<div id=\"produktbeschreibung\" >
<div class=\"more-text-btn show-more-height\">
<h3 class=\"d-flex justify-content-center\">";
// line 412
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.descriptionTitle"));
echo " </h3>
\t";
// line 413
echo sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 413), "translated", [], "any", false, false, false, 413), "description", [], "any", false, false, false, 413);
echo "
</div>
</div>
\t";
}
// line 419
echo "\t";
if ( !twig_test_empty(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 419), "customFields", [], "any", false, false, false, 419), "custom_pdp_content_file_path", [], "any", false, false, false, 419))) {
// line 423
echo "
";
}
// line 425
echo "\t";
if ( !twig_test_empty(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 425), "customFields", [], "any", false, false, false, 425), "custom_pdp_content_file_path", [], "any", false, false, false, 425))) {
// line 426
echo "\t
\t<div id=\"produktbeschreibung\" class=\"is--neti-next-productdetailcms is--below-product_detail_description noindent\">
\t
\t <div class=\"more-text-btn show-more-height\">
\t<h2 class=\"d-flex justify-content-center\"> ";
// line 430
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.descriptionTitle"));
echo " </h2>
\t
\t<iframe frameborder=\"0\" id=\"child-iframe\" src=\"";
// line 432
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 432), "customFields", [], "any", false, false, false, 432), "custom_pdp_content_file_path", [], "any", false, false, false, 432), "html", null, true);
echo "\" name=\"iframe_a\" width=\"100%\" style=\"height: 8260px; width: 1360px;\"></iframe>
\t ";
// line 434
echo "\t</div>
\t</div>
\t
\t
\t
\t";
}
// line 440
echo "\t<div class=\"text-center more-btn\"> <a class=\"button mc-show-more\" style=\"--focus-color: rgba(0, 125, 250, 0.6);\">Mehr anzeigen</a> </div>
<!--BEGIN > SCRIPTS:BASE -->
<script type=\"text/javascript\">\"use strict\";const reorderDOM={selectorEls:null,headerEl:null,capturedEls:null,capturedElsQuery:null,clonedEls:[],cOrder:null,cMax:null,useStatic:null,selectorElsQuery:null,staticEl:null,staticElQuery:null,addListeners(){window.addEventListener(\"channel:reorder-dom\",e=>{if(this.useStatic=e.detail.useStatic,this.cOrder=e.detail.order,this.cMax=e.detail.max,this.updateElements(),void 0!==e.detail.selectorIndex){document.querySelectorAll(this.selectorElsQuery).item(e.detail.selectorIndex).focus()}})},updateElements(){!this.useStatic&&this.updateSelectors(),!this.useStatic&&this.updateHeadersAX(),!this.useStatic&&this.updateRows(),this.useStatic&&this.updateStatic()},arrayFromNodeList(e){const t=[];return e.forEach(e=>{t.push(e)}),t},updateStatic(){this.clonedEls.forEach((e,t)=>{const i=this.capturedEls[t],r=e.cloneNode(!0),n=r.querySelector(\"[role=rowheader]\"),s=r.querySelector(\"[id=hidden-columnheader]\");let o=[];this.cOrder.forEach((e,t)=>{const i=`[index=\"\${e}\"]`,n=r.querySelector(i).parentElement;o.push(n)}),o.reverse().forEach((e,t)=>{e.setAttribute(\"added\",!0),r.prepend(e)});for(let e=0;e<r.children.length;e++){const t=r.children[e];\"rowheader\"!==t.getAttribute(\"role\")&&\"hidden-columnheader\"!==t.getAttribute(\"id\")&&(t.style.order=\"unset\",this.toggleVisibility(t,e<this.cMax))}s&&r.prepend(s),r.prepend(n),r.setAttribute(\"added\",!0),i.innerHTML=r.innerHTML})},updateHeadersAX(){let e='<div role=\"columnheader\"> </div>';document.querySelectorAll(this.selectorElsQuery).forEach((t,i)=>{const r=t.querySelector(\"[selected=true]\").innerText.trim();\"flex\"===t.parentElement.parentElement.style.display&&(e+=`<div role=\"columnheader\">\${r}</div>`)}),this.headerEl.innerHTML=e},updateSelectors(){document.querySelectorAll(this.selectorElsQuery).forEach((e,t)=>{e.replaceWith(this.selectorEls[t])}),this.cOrder.forEach((e,t)=>{const i=this.selectorEls[t];let r=0;for(let t=0;t<i.options.length;t++){const n=i.options[t],s=Number(n.value)===e;s&&(r=t),n.removeAttribute(\"selected\"),n.setAttribute(\"selected\",s),n.removeAttribute(\"aria-selected\"),n.setAttribute(\"aria-selected\",s)}i.selectedIndex=r});for(var e=0;e<this.selectorEls.length;e++){const t=this.selectorEls[e],i=e<this.cMax;this.toggleVisibility(t.parentElement.parentElement,i)}},updateRows(){this.clonedEls.forEach((e,t)=>{const i=this.capturedEls[t],r=e.cloneNode(!0),n=r.querySelector(\"[role=rowheader]\"),s=[];this.cOrder.forEach(e=>{const t=`[index=\"\${e}\"]`,i=r.querySelector(t).parentElement;s.push(i)}),s.reverse().forEach(e=>{r.prepend(e)});for(let e=0;e<r.children.length;e++){const t=r.children[e];\"rowheader\"!==t.getAttribute(\"role\")&&(t.style.order=\"unset\",this.toggleVisibility(t,e<this.cMax))}r.prepend(n),i.innerHTML=r.innerHTML})},toggleVisibility(e,t){e.style.visibility=t?\"visible\":\"hidden\",e.style.display=t?\"flex\":\"none\",e.style.order=\"unset\"},init(e,t,i,r,n){this.useStatic=n,this.capturedEls=document.querySelectorAll(e),this.capturedElsQuery=e,this.headerEl=document.querySelector(i),this.selectorEls=document.querySelectorAll(t),this.selectorElsQuery=t,this.staticElQuery=r,this.staticEl=this.useStatic&&document.querySelector(this.staticElQuery).cloneNode(!0),this.useStatic=n,this.clonedEls=this.arrayFromNodeList(this.capturedEls),this.addListeners()}},viewportManager={nState:null,cState:null,init:function(){this.addListeners()},addListeners:function(){const e={small:window.matchMedia(\"(max-width: 734px)\"),medium:window.matchMedia(\"(min-width: 735px) and (max-width: 1068px)\"),large:window.matchMedia(\"(min-width: 1069px)\")};Object.keys(e).forEach(t=>{const i=e[t];\"function\"!=typeof i.addEventListener?i.addListener(()=>{i.matches&&this.viewportObserve(t)}):i.addEventListener(\"change\",()=>{i.matches&&this.viewportObserve(t)}),i.matches&&this.viewportObserve(t)})},viewportObserve:function(e){this.nState=e,this.cState!==this.nState&&(this.cState=this.nState,this.dispatch(this.cState))},dispatch:function(e){const t=new CustomEvent(\"channel:viewport-change\",{detail:e});window.dispatchEvent(t)}},orientationManager={orienation:null,init:function(){window.matchMedia(\"(orientation: portrait)\").addEventListener(\"change\",e=>{e.matches?this.orienation=\"portrait\":this.orienation=\"landscape\",this.dispatch(this.orienation)})},dispatch:function(e){const t=new CustomEvent(\"channel:orientation-change\",{detail:e});window.dispatchEvent(t)}},selectorManager={init:function(e,t){const i=document.querySelectorAll(e);i.forEach((e,t)=>{e.addEventListener(\"change\",()=>{const r=e.selectedIndex,n=e.value,s=Number(e.options[r].getAttribute(\"value\"));this.dispatch({elIndex:t,selectedIndex:s,value:n,selectorEls:i}),e.focus()})})},dispatch:function(e){const t=new CustomEvent(\"channel:pre-user-select\",{detail:e});window.dispatchEvent(t)}},buyButtonManager={buyButtonQuery:null,init:function(e){this.buyButtonQuery=e,this.addListeners(),this.attachButtonListeners()},addListeners:function(){window.addEventListener(\"channel:reorder-dom\",()=>{console.log,this.attachButtonListeners()})},attachButtonListeners:function(){document.querySelectorAll(this.buyButtonQuery).forEach(e=>{e.addEventListener(\"click\",t=>{const i=0===t.screenX&&0===t.screenY?\"Keyboard Interaction\":\"Mouse Click\";this.dispatch({productName:e.id,eventSource:i})})})},dispatch:function(e){const t=new CustomEvent(\"channel:buy-button-click\",{detail:e});window.dispatchEvent(t)}},dataManager={order:null,viewportKey:null,viewportOrder:null,viewportMax:null,init:function(e,t){this.order=e,this.useStatic=t,this.addListeners()},viewportChange(e){this.viewportKey=e,this.viewportOrder=this.order[this.viewportKey],this.viewportMax=this.order.max[this.viewportKey],this.dispatch({order:this.viewportOrder,max:this.viewportMax,useStatic:this.useStatic})},blurSelects(e){document.querySelectorAll(e).forEach(e=>{e.blur()})},flattenOrders(){this.viewportOrder=this.order[this.viewportKey],this.viewportMax=this.order.max[this.viewportKey],[\"small\",\"medium\",\"large\"].forEach(e=>{this.order[e]=this.viewportOrder})},getLineupInfo(e,t){const i={};return e.forEach((e,r)=>{i[r]={columnIndex:r,deviceName:e.options[e.selectedIndex].text,hasChanged:r===t}}),i},userSelect(e){const{elIndex:t,selectedIndex:i}=e,r=this.viewportOrder[t],n=this.viewportOrder.find(e=>e===i),s=this.viewportOrder.indexOf(n);void 0!==n?(this.viewportOrder[s]=r,this.viewportOrder[t]=n):this.viewportOrder[t]=i,this.flattenOrders(),this.dispatch({order:this.viewportOrder,max:this.viewportMax,useStatic:this.useStatic,selectorIndex:t}),e.deviceLineup=this.getLineupInfo(e.selectorEls,t),delete e.selectorEls;const o=Object.keys(e.deviceLineup).slice(0,this.viewportMax).reduce((t,i)=>(t[i]=e.deviceLineup[i],t),{});this.dispatchPostUserSelect({deviceLineup:o})},addListeners:function(){window.addEventListener(\"channel:pre-user-select\",e=>{this.userSelect(e.detail)}),window.addEventListener(\"channel:user-refresh\",e=>{this.dispatch({order:this.viewportOrder,max:this.viewportMax,useStatic:this.useStatic})}),window.addEventListener(\"channel:viewport-change\",e=>{this.viewportChange(e.detail),this.blurSelects(this.selectorElsQuery)}),window.addEventListener(\"change:orientation-change\",()=>{this.blurSelects(this.selectorElsQuery)}),window.addEventListener(\"channel:buy-button-click\",e=>{console.log(e.detail)})},dispatch:function(e){const t=new CustomEvent(\"channel:reorder-dom\",{detail:e});window.dispatchEvent(t)},dispatchPostUserSelect:function(e){const t=new CustomEvent(\"channel:user-select\",{detail:e});window.dispatchEvent(t)}},channelCompare={inited:!1,init:function(e=null){if(this.inited)return;let t;if(this.isDev=window.location.host.indexOf(\"127.0.0.1\")>-1,e)t=e;else if(!e){const e=document.querySelector(\"[data-channel-html-compare]\");if(!e)return void console.warn(\"channelCompare: element[data-channel-html-compare not found]\");try{const i=e.getAttribute(\"data-channel-html-compare\");t=JSON.parse(i)}catch(e){return void console.warn(\"channelCompare: error parsing JSON\",e)}}const i=t.order,r=t.headerEl,n=t.selectorEls,s=t.swapEls,o=t.staticEl,a=t.useStatic;reorderDOM.init(s,n,r,o,a),!a&&selectorManager.init(n),buyButtonManager.init(\".compare-button\"),dataManager.init(i,a),viewportManager.init(),orientationManager.init(),this.inited=!0}};window.addEventListener(\"pageshow\",e=>{const{persisted:t}=e;if(t)window.addEventListener(\"scroll\",()=>{const e=new CustomEvent(\"channel:user-refresh\");window.dispatchEvent(e)});else{channelCompare.init(),document.querySelector(\".channel-compare\").classList.remove(\"channel-compare--hidden\")}});</script>
<!--END > SCRIPTS:BASE -->
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script>
<script>
\$(document).ready(function() {
if(\$(\".more-text-btn\").hasClass(\"show-more-height\")) {
\$(\".more-text-btn\").removeClass(\"show-more-height\")
\$(\".mc-show-more\").html(\"Weniger anzeigen\");
}
\$(\".mc-show-more\").click(function () {
if(\$(\".more-text-btn\").hasClass(\"show-more-height\")) {
\$(this).text(\"Weniger anzeigen\");
} else {
\$(this).text(\"Mehr anzeigen\");
}
\$(\".more-text-btn\").toggleClass(\"show-more-height\");
});
});
</script>
<script>
\tlet iframe = document.querySelector(\"#child-iframe\");
\tiframe.addEventListener('load', function() {
\t\tif(iframe.contentDocument.body.scrollHeight) {
\t\t let newheight = iframe.contentDocument.body.scrollHeight + 50 ;
\t\t\tiframe.style.height = newheight + 'px';
\t\t\tiframe.style.width = iframe.contentDocument.body.scrollWidth + 'px';
\t\t}
\t});\t
</script>
";
// line 475
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 475), "extensions", [], "any", false, false, false, 475), "netiProductCms", [], "any", false, false, false, 475) && sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 475), "extensions", [], "any", false, false, false, 475), "netiProductCms", [], "any", false, false, false, 475), "getBelowProductDescriptionContent", [], "method", false, false, false, 475))) {
// line 476
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 476), "extensions", [], "any", false, false, false, 476), "netiProductCms", [], "any", false, false, false, 476), "getBelowProductDescriptionContent", [], "method", false, false, false, 476));
foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
// line 477
echo " <div id=\"technische\" class=\"is--neti-next-productdetailcms is--below-product_description ";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetiNextProductDetailCms.config.belowDescriptionIndention"), "html", null, true);
echo "\" ";
if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetiNextProductDetailCms.config.belowDescriptionInlineStyle")) {
echo "style=\"";
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "NetiNextProductDetailCms.config.belowDescriptionInlineStyle"), "html", null, true);
echo "\"";
}
echo ">
";
// line 478
echo $context["content"];
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 481
echo " ";
}
// line 482
echo "
";
// line 484
if ((twig_length_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "crossSellings", [], "any", false, false, false, 484)) > 0)) {
// line 485
echo " <div class=\"product-detail-tabs product-detail-cross-selling\">
";
// line 486
$this->loadTemplate("@Storefront/storefront/page/product-detail/cross-selling/tabs.html.twig", "@AmMacTrade/storefront/page/product-detail/index.html.twig", 486)->display(twig_to_array(["crossSellings" => sw_get_attribute($this->env, $this->source, // line 487
($context["page"] ?? null), "crossSellings", [], "any", false, false, false, 487)]));
// line 489
echo " </div>
";
}
// line 491
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@AmMacTrade/storefront/page/product-detail/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1205 => 491, 1201 => 489, 1199 => 487, 1198 => 486, 1195 => 485, 1193 => 484, 1189 => 482, 1186 => 481, 1177 => 478, 1166 => 477, 1161 => 476, 1159 => 475, 1122 => 440, 1114 => 434, 1110 => 432, 1105 => 430, 1099 => 426, 1096 => 425, 1092 => 423, 1089 => 419, 1080 => 413, 1076 => 412, 1072 => 410, 1070 => 409, 1065 => 406, 1062 => 405, 1053 => 402, 1035 => 401, 1030 => 400, 1028 => 399, 1025 => 398, 1021 => 396, 1012 => 393, 994 => 392, 990 => 391, 987 => 390, 985 => 389, 982 => 388, 978 => 386, 969 => 383, 951 => 382, 947 => 381, 944 => 380, 941 => 379, 931 => 378, 921 => 376, 917 => 371, 915 => 370, 910 => 367, 908 => 366, 905 => 365, 824 => 285, 821 => 283, 807 => 270, 804 => 268, 794 => 267, 783 => 259, 781 => 258, 778 => 257, 768 => 256, 757 => 253, 754 => 252, 752 => 250, 751 => 249, 750 => 248, 749 => 238, 747 => 237, 744 => 236, 736 => 230, 733 => 229, 727 => 226, 724 => 225, 721 => 224, 718 => 222, 708 => 221, 697 => 261, 695 => 256, 692 => 255, 690 => 221, 687 => 220, 677 => 219, 666 => 214, 660 => 211, 657 => 210, 655 => 209, 650 => 207, 647 => 206, 645 => 205, 640 => 203, 637 => 202, 635 => 201, 630 => 199, 627 => 198, 625 => 197, 620 => 195, 617 => 194, 615 => 193, 610 => 191, 607 => 190, 605 => 189, 600 => 187, 597 => 186, 595 => 185, 590 => 183, 587 => 182, 585 => 181, 580 => 179, 577 => 178, 575 => 177, 570 => 175, 567 => 174, 565 => 173, 562 => 172, 560 => 171, 557 => 170, 547 => 169, 536 => 263, 534 => 219, 531 => 218, 529 => 217, 526 => 216, 524 => 169, 521 => 168, 511 => 167, 501 => 492, 499 => 378, 496 => 377, 494 => 267, 490 => 265, 487 => 167, 477 => 166, 464 => 131, 460 => 130, 456 => 128, 446 => 127, 435 => 493, 433 => 166, 425 => 160, 416 => 139, 414 => 138, 408 => 134, 406 => 127, 402 => 125, 399 => 124, 396 => 123, 393 => 122, 390 => 121, 388 => 120, 383 => 118, 378 => 115, 376 => 114, 372 => 112, 369 => 111, 363 => 109, 360 => 108, 358 => 107, 355 => 106, 352 => 105, 350 => 104, 347 => 103, 344 => 102, 338 => 100, 335 => 99, 333 => 98, 330 => 97, 328 => 96, 321 => 91, 313 => 86, 307 => 82, 289 => 77, 287 => 76, 285 => 75, 283 => 74, 281 => 73, 264 => 72, 262 => 71, 260 => 70, 257 => 69, 255 => 68, 252 => 67, 250 => 66, 247 => 65, 244 => 60, 235 => 52, 215 => 51, 205 => 50, 195 => 27, 192 => 26, 182 => 25, 170 => 28, 168 => 25, 165 => 24, 155 => 23, 144 => 18, 142 => 17, 139 => 16, 129 => 15, 118 => 20, 116 => 15, 112 => 13, 110 => 12, 104 => 8, 94 => 7, 83 => 4, 73 => 3, 50 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% block base_head %}
{% sw_include '@Storefront/storefront/page/product-detail/meta.html.twig' %}
{% endblock %}
{% block base_header %}
<div class=\"header-main-wrapper\">
<header class=\"header-main\">
<div class=\"top-bar-container\">
<div class=\"container\">
{% sw_include '@Storefront/storefront/layout/header/top-bar.html.twig' %}
</div>
</div>
{% block base_header_inner %}
<div class=\"container\">
{% sw_include '@Storefront/storefront/layout/header/header.html.twig' %}
</div>
{% endblock %}
</header>
{% endblock %}
{% block base_navigation %}
<div class=\"nav-main\">
{% block base_navigation_inner %}
{% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
{% endblock %}
</div>
</div>
{% endblock %}
{#
{% block base_main_inner %}
{% block page_product_detail_breadcrumb %}
<div class=\"breadcrumb-container container-fluid\">
<div class=\"breadcrumb product-breadcrumb container\">
{% sw_include '@Storefront/storefront/component/product/breadcrumb.html.twig' with {
navigationTree: page.header.navigation.tree,
categoryTree: page.product.categoryTree|last,
product: page.product
} only %}
</div>
</div>
{% endblock %}
{{ parent() }}
{% endblock %}
#}
{% block base_content %}
{% block page_product_detail %}
<div id=\"sticky-cart\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-2 smll-none\">
<div data-wi-id=\"wi-button-container\"></div>
<div class=\"product-title\">
{#{ page.product.translated.name }#}
</div>
{#
<div class=\"product-price\">
{% sw_include '@Storefront/storefront/page/product-detail/buy-widget-price.html.twig' %}
</div>#}
</div>
{% set category = page.header.navigation.active %}
<div class=\"col-lg-2 smll-none\">
{% if page.extensions['amMactradeap1'].get('keyApi') %}
<div class=\"stiky-cart-new-wrap
{% if category %}
{% set breadcrumbCategories = sw_breadcrumb_full(category, context.context) %}
{% for breadcrumbCategory in breadcrumbCategories %}
{% set key = breadcrumbCategory.id %}
{% set name = breadcrumbCategory.translated.name %}
{% if loop.index == 1 %}
{% if name == 'Zubehör' %}
d-none
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
\">
<h3>Gutschrift für Ihr Altgerät</h3>
<div class=\"price-mc\"><p>zw.</p><h2 class=\"price_range\"> 30 € - 735* </h2> <p>
{{ page.extensions['amMactradeap1'].get('keyApiText') }}
</p></div>
<a class=\"small-link\" target=\"_blank\" href=\"https://mactrade.kauft-an.de/mactrade_c/hilfe/\">Mehr Infos</a>
</div>
{% endif %}
</div>
<div class=\"col-lg-12 col-xl-8 d-flex justify-content-lg-between justify-content-xl-end align-items-center\">
<div class=\"edu-information\">
<div class=\"edu-price-container\">
{% if context.salesChannel.id !='45be9f42765d42e8ae1137d1812040f4' && context.salesChannel.id !='4faca3b6a7f149cea7ade06ee340ce19' %}
{% if page.product.customFields.product_custom_fields_edu_discount %}
{% set eduPrice = page.product.calculatedPrice.unitPrice / 100 * (100 - page.product.customFields.product_custom_fields_edu_discount) %}
EDU: {{ eduPrice|number_format(2, ',', '.') }} € *
{% endif %}
{% endif %}
{% if context.salesChannel.id =='45be9f42765d42e8ae1137d1812040f4' || context.salesChannel.id =='4faca3b6a7f149cea7ade06ee340ce19' %}
{% set price = page.product.calculatedPrices.first %}
{% if page.product.customFields.product_custom_fields_edu_discount %}
{% set eduPrice = price.unitPrice / 100 * (100 - page.product.customFields.product_custom_fields_edu_discount) %}
EDU: {{ eduPrice|number_format(2, ',', '.') }} € *
{% endif %}
{% endif %}
</div>
<div class=\"delivery-container\">
{% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
</div>
</div>
<div class=\"price-information\">
<div class=\"price-container\">{% sw_include '@Storefront/storefront/page/product-detail/buy-widget-price.html.twig' %}</div>
<div class=\"tax-container\">
{% if context.taxState == \"gross\" %}
{% set taxText = \"general.grossTaxInformation\"|trans|sw_sanitize %}
{% else %}
{% set taxText = \"general.netTaxInformation\"|trans|sw_sanitize %}
{% endif %}
<p class=\"product-detail-tax\">
{% block page_product_detail_tax_link %}
<a class=\"product-detail-tax-link\"
href=\"/kundenservice/versandkosten/\"
title=\"{{ taxText }}\" target=\"_blank\">
{{ taxText }}
</a>
{% endblock %}
</p>
</div>
</div>
<div id=\"sticky-cart-form\">
{% sw_include '@Storefront/storefront/page/product-detail/buy-widget-form.html.twig' %}
</div>
</div>
</div>
</div>
</div>
{# {% if page.product.seoCategory.parentId == '08c95ea3cfc346cdadd32ee1d5f8a408' %}
<div class=\"detail-banner\" data-category=\"{{ page.product.seoCategory.translated.name }}\" data-parent-category=\"{{ page.product.seoCategory.parentId }}\">
<div class=\"hidden-phone\">
<a href=\"/blackweek-mac\" target=\"_blank\">
<img src=\"https://www.mactrade.de/media/23/9b/ba/1637868262/BW_bannerproduktseite.webp\" alt=\"\">
</a>
</div>
<div class=\"hidden-tablet hidden-desktop\">
<a href=\"/blackweek-mac\" target=\"_blank\">
<img src=\"https://www.mactrade.de/media/92/42/82/1637868262/BW_bannerproduktseite_mobil.webp\" alt=\"\">
</a>
</div>
</div>
{% endif %} #}
<div class=\"product-detail\"
itemscope
itemtype=\"https://schema.org/Product\">
{% block page_product_detail_inner %}
{% block page_product_detail_content %}
<div class=\"product-detail-content\">
{% block page_product_detail_headline %}
<div class=\"row align-items-start product-detail-headline\">
{% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
{% if page.product.customFields.product_custom_fields_pdp_promobanner_macbook_air == true %}
<div class=\"product-detail-promotion-banderole\">
{{ \"detail.promotion-banner.macbook-air\"|trans|raw }}
</div>
{% elseif page.product.customFields.product_custom_fields_pdp_promobanner_macbook_pro13 == true %}
<div class=\"product-detail-promotion-banderole\">
{{ \"detail.promotion-banner.macbook-pro13\"|trans|raw }}
</div>
{% elseif page.product.customFields.product_custom_fields_pdp_promobanner_macbook_pro14 == true %}
<div class=\"product-detail-promotion-banderole\">
{{ \"detail.promotion-banner.macbook-pro14\"|trans|raw }}
</div>
{% elseif page.product.customFields.product_custom_fields_pdp_promobanner_macbook_pro_16 == true %}
<div class=\"product-detail-promotion-banderole\">
{{ \"detail.promotion-banner.macbook-pro16\"|trans|raw }}
</div>
{% elseif page.product.customFields.product_custom_fields_pdp_promobanner_imac24 == true %}
<div class=\"product-detail-promotion-banderole\">
{{ \"detail.promotion-banner.imac24\"|trans|raw }}
</div>
{% elseif page.product.customFields.product_custom_fields_pdp_promobanner_imac27 == true %}
<div class=\"product-detail-promotion-banderole\">
{{ \"detail.promotion-banner.imac27\"|trans|raw }}
</div>
{% elseif page.product.customFields.product_custom_fields_pdp_promobanner_ipad == true %}
<div class=\"product-detail-promotion-banderole\">
{{ \"detail.promotion-banner.ipad\"|trans|raw }}
</div>
{% elseif page.product.customFields.product_custom_fields_pdp_promobanner_ipad_pro == true %}
<div class=\"product-detail-promotion-banderole\">
{{ \"detail.promotion-banner.ipad-pro\"|trans|raw }}
</div>
{% elseif page.product.customFields.product_custom_fields_pdp_promobanner_mac_mini == true %}
<div class=\"product-detail-promotion-banderole\">
{{ \"detail.promotion-banner.mac-mini\"|trans|raw }}
</div>
{% elseif page.product.customFields.product_custom_fields_pdp_promobanner_mac_studio == true %}
<div class=\"product-detail-promotion-banderole\">
{{ \"detail.promotion-banner.mac-studio\"|trans|raw }}
</div>
{% endif %}
</div>
{% endblock %}
{% set mediaItems = page.product.media.media %}
{% block page_product_detail_main %}
<div class=\"row product-detail-main\">
{% block page_product_detail_media %}
<div class=\"col-lg-6 product-detail-media\">
{#{% if page.product.customFields.product_custom_fields_subscription == true and page.product.restockTime <= 10 %}#}
{% if page.product.customFields.product_custom_fields_subscription == true and (page.product.customFields.product_custom_fields_subscription_productType != 'ACCESSORY') and page.product.customFields.product_custom_fields_subscription_monthlyPriceGross > 0 %}
<div class=\"abo-badge\">
<img src=\"{{ asset('assets/images/badge_abo.svg', \"@AmMacTrade\") }}\" alt=\"Abo\" height=\"50\" width=\"50\">
</div>
{% endif %}
{% if page.product.customFields.product_custom_fields_batch_protect == true %}
<div class=\"protect-badge\">
<a class=\"link-new-window\" href=\"/garantiepaket\">
<img src=\"https://www.mactrade.de/media/a1/g0/f0/1644231456/stoerer-garantie.png\" alt=\"\">
</a>
</div>
{% endif %}
{% if page.product.media %}
{% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
'mediaItems': mediaItems,
'zoom': true,
'zoomModal': true,
'displayMode': 'contain',
'gutter': 5,
'minHeight': '430px',
'navigationArrows': 'inside',
'navigationDots': 'inside',
'galleryPosition': 'left',
'isProduct': true,
'fallbackImageTitle': page.product.translated.name,
'startIndexThumbnails': page.product.cover.position,
'startIndexSlider': page.product.cover.position
} %}
{% endif %}
</div>
{% endblock %}
{% block page_product_detail_buy %}
<div class=\"col-lg-5 offset-lg-1 product-detail-buy\">
{% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
</div>
{% endblock %}
</div>
{% endblock %}
</div>
{% endblock %}
\t
{% block page_product_detail_tabs %}
{# start tabs #}
<div class=\"m1 menu\">
<div id=\"menu-center\">
<ul>
<li class=\"active\"><a href=\"#kombinierbare\">Kombinierbare Aktionen</a></li>
<li><a href=\"#produktbeschreibung\">Produktbeschreibung</a></li>
<li><a href=\"#technische\">Technische Daten</a></li>
</ul>
</div>
</div>
{# end tabs #}
{# start tab js #}
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script>
<script>
let onScroll = function(event){
var scrollPos = \$(document).scrollTop();
\$('#menu-center a').each(function () {
var currLink = \$(this);
var refElement = \$(currLink.attr(\"href\"));
scrollPos += 150;
if (refElement.position().top <= scrollPos && refElement.position().top + refElement.height() > scrollPos) {
\$('#menu-center ul a').parent().removeClass(\"active\");
currLink.parent().addClass(\"active\");
}
else{
currLink.parent().removeClass(\"active\");
}
});
}
\$(document).ready(function () {
\$(document).on(\"scroll.custom\", onScroll);
//smoothscroll
\$('a[href^=\"#\"]').on('click', function (e) {
e.preventDefault();
\$(document).off(\"scroll.custom\");
\$('a').each(function () {
\$(this).parent().removeClass('active');
})
\$(this).parent().addClass('active');
var target = this.hash;
e.preventDefault();
var pos = \$(this).attr('href');
doScrolling(pos, 1000);
});
});
function doScrolling(element, duration) {
var startingY = window.pageYOffset
var elementY = getElementY(element) + 70
var targetY = document.body.scrollHeight - elementY < window.innerHeight ? document.body.scrollHeight - window.innerHeight : elementY
var diff = (targetY - (130 + 85)) - startingY
var easing = function(t) {
return t < .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1
}
var start
if (!diff)
return
window.requestAnimationFrame(function step(timestamp) {
if (!start)
start = timestamp
var time = timestamp - start
var percent = Math.min(time / duration, 1)
percent = easing(percent)
window.scrollTo(0, startingY + diff * percent)
if (time < duration) {
window.requestAnimationFrame(step);
} else {
\$(element).parent().addClass(\"active\").siblings().removeClass(\"active\");
\$(document).on(\"scroll.custom\", onScroll);
}
})
}
function getElementY(query) {
return window.pageYOffset + document.querySelector(query).getBoundingClientRect().top
}
</script>
{# end tab js #}
\t<div class=\"product-detail-tabs tb-pd d-none\">
\t\t{% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
\t</div>
<div class=\"product-detail-tabs\">
{% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
</div>
{#<div class=\"product-detail-tabs properties\">
{% sw_include '@Storefront/storefront/page/product-detail/tabs-properties.html.twig' %}
</div>#}
{% endblock %}
{% block page_product_detail_cross_selling %}
{% if page.product.extensions.netiProductCms and page.product.extensions.netiProductCms.getReplaceProductDetailDescriptionContent() %}
<div class=\"product-detail-description-text 6666666666\" itemprop=\"description\">
{% for content in page.product.extensions.netiProductCms.getReplaceProductDetailDescriptionContent() %}
<div id=\"{%if 'Kombinierbare' in content %}kombinierbare{% endif %}{%if 'Technische' in content %}technische{% endif %}\" class=\"is--neti-next-productdetailcms is--replace-product_detail_description {{ config('NetiNextProductDetailCms.config.replaceProductDetailDescriptionIndention') }}\" {% if config('NetiNextProductDetailCms.config.replaceProductDetailDescriptionInlineStyle') %} style=\"{{ config('NetiNextProductDetailCms.config.replaceProductDetailDescriptionInlineStyle') }}\" {% endif %}>
{{ content|raw }}
</div>
{% endfor %}
</div>
{% endif %}
{% if page.product.extensions.netiProductCms and page.product.extensions.netiProductCms.getAboveProductDetailDescriptionContent() %}
{% for content in page.product.extensions.netiProductCms.getAboveProductDetailDescriptionContent() %}
<div id=\"{%if 'Kombinierbare' in content %}kombinierbare{% endif %}{%if 'Technische' in content %}technische{% endif %}\" class=\"is--neti-next-productdetailcms is--above-product_detail_description {{ config('NetiNextProductDetailCms.config.aboveProductDetailDescriptionIndention') }}\" {% if config('NetiNextProductDetailCms.config.aboveProductDetailDescriptionInlineStyle') %} style=\"{{ config('NetiNextProductDetailCms.config.aboveProductDetailDescriptionInlineStyle') }}\" {% endif %}>
{{ content|raw }}
</div>
{% endfor %}
{% endif %}
{% if page.product.extensions.netiProductCms and page.product.extensions.netiProductCms.getAboveProductDescriptionContent() %}
{% for content in page.product.extensions.netiProductCms.getAboveProductDescriptionContent() %}
<div id=\"{%if 'Kombinierbare' in content %}kombinierbare{% endif %}{%if 'Technische' in content %}technische{% endif %}\" class=\"is--neti-next-productdetailcms is--above-product_description {{ config('NetiNextProductDetailCms.config.aboveDescriptionIndention') }}\" {% if config('NetiNextProductDetailCms.config.aboveDescriptionInlineStyle') %} style=\"{{ config('NetiNextProductDetailCms.config.aboveDescriptionInlineStyle') }}\" {% endif %}>
{{ content|raw }}
</div>
{% endfor %}
{% endif %}
\t{% if page.product.customFields.custom_pdp_content_file_path is empty %}
<div id=\"produktbeschreibung\" >
<div class=\"more-text-btn show-more-height\">
<h3 class=\"d-flex justify-content-center\">{{ \"detail.descriptionTitle\"|trans|sw_sanitize }} </h3>
\t{{ page.product.translated.description|raw }}
</div>
</div>
\t{% endif %}
\t{% if page.product.customFields.custom_pdp_content_file_path is not empty %}
{#<div class=\"h3 product-detail-description-title\">
{{ \"detail.descriptionTitle\"|trans|sw_sanitize }} \"{{ page.product.translated.name }}\"
</div> #}
{% endif %}
\t{% if page.product.customFields.custom_pdp_content_file_path is not empty %}
\t
\t<div id=\"produktbeschreibung\" class=\"is--neti-next-productdetailcms is--below-product_detail_description noindent\">
\t
\t <div class=\"more-text-btn show-more-height\">
\t<h2 class=\"d-flex justify-content-center\"> {{ \"detail.descriptionTitle\"|trans|sw_sanitize }} </h2>
\t
\t<iframe frameborder=\"0\" id=\"child-iframe\" src=\"{{ page.product.customFields.custom_pdp_content_file_path }}\" name=\"iframe_a\" width=\"100%\" style=\"height: 8260px; width: 1360px;\"></iframe>
\t {# {{ productpdp|raw }} #}
\t</div>
\t</div>
\t
\t
\t
\t{% endif %}
\t<div class=\"text-center more-btn\"> <a class=\"button mc-show-more\" style=\"--focus-color: rgba(0, 125, 250, 0.6);\">Mehr anzeigen</a> </div>
<!--BEGIN > SCRIPTS:BASE -->
<script type=\"text/javascript\">\"use strict\";const reorderDOM={selectorEls:null,headerEl:null,capturedEls:null,capturedElsQuery:null,clonedEls:[],cOrder:null,cMax:null,useStatic:null,selectorElsQuery:null,staticEl:null,staticElQuery:null,addListeners(){window.addEventListener(\"channel:reorder-dom\",e=>{if(this.useStatic=e.detail.useStatic,this.cOrder=e.detail.order,this.cMax=e.detail.max,this.updateElements(),void 0!==e.detail.selectorIndex){document.querySelectorAll(this.selectorElsQuery).item(e.detail.selectorIndex).focus()}})},updateElements(){!this.useStatic&&this.updateSelectors(),!this.useStatic&&this.updateHeadersAX(),!this.useStatic&&this.updateRows(),this.useStatic&&this.updateStatic()},arrayFromNodeList(e){const t=[];return e.forEach(e=>{t.push(e)}),t},updateStatic(){this.clonedEls.forEach((e,t)=>{const i=this.capturedEls[t],r=e.cloneNode(!0),n=r.querySelector(\"[role=rowheader]\"),s=r.querySelector(\"[id=hidden-columnheader]\");let o=[];this.cOrder.forEach((e,t)=>{const i=`[index=\"\${e}\"]`,n=r.querySelector(i).parentElement;o.push(n)}),o.reverse().forEach((e,t)=>{e.setAttribute(\"added\",!0),r.prepend(e)});for(let e=0;e<r.children.length;e++){const t=r.children[e];\"rowheader\"!==t.getAttribute(\"role\")&&\"hidden-columnheader\"!==t.getAttribute(\"id\")&&(t.style.order=\"unset\",this.toggleVisibility(t,e<this.cMax))}s&&r.prepend(s),r.prepend(n),r.setAttribute(\"added\",!0),i.innerHTML=r.innerHTML})},updateHeadersAX(){let e='<div role=\"columnheader\"> </div>';document.querySelectorAll(this.selectorElsQuery).forEach((t,i)=>{const r=t.querySelector(\"[selected=true]\").innerText.trim();\"flex\"===t.parentElement.parentElement.style.display&&(e+=`<div role=\"columnheader\">\${r}</div>`)}),this.headerEl.innerHTML=e},updateSelectors(){document.querySelectorAll(this.selectorElsQuery).forEach((e,t)=>{e.replaceWith(this.selectorEls[t])}),this.cOrder.forEach((e,t)=>{const i=this.selectorEls[t];let r=0;for(let t=0;t<i.options.length;t++){const n=i.options[t],s=Number(n.value)===e;s&&(r=t),n.removeAttribute(\"selected\"),n.setAttribute(\"selected\",s),n.removeAttribute(\"aria-selected\"),n.setAttribute(\"aria-selected\",s)}i.selectedIndex=r});for(var e=0;e<this.selectorEls.length;e++){const t=this.selectorEls[e],i=e<this.cMax;this.toggleVisibility(t.parentElement.parentElement,i)}},updateRows(){this.clonedEls.forEach((e,t)=>{const i=this.capturedEls[t],r=e.cloneNode(!0),n=r.querySelector(\"[role=rowheader]\"),s=[];this.cOrder.forEach(e=>{const t=`[index=\"\${e}\"]`,i=r.querySelector(t).parentElement;s.push(i)}),s.reverse().forEach(e=>{r.prepend(e)});for(let e=0;e<r.children.length;e++){const t=r.children[e];\"rowheader\"!==t.getAttribute(\"role\")&&(t.style.order=\"unset\",this.toggleVisibility(t,e<this.cMax))}r.prepend(n),i.innerHTML=r.innerHTML})},toggleVisibility(e,t){e.style.visibility=t?\"visible\":\"hidden\",e.style.display=t?\"flex\":\"none\",e.style.order=\"unset\"},init(e,t,i,r,n){this.useStatic=n,this.capturedEls=document.querySelectorAll(e),this.capturedElsQuery=e,this.headerEl=document.querySelector(i),this.selectorEls=document.querySelectorAll(t),this.selectorElsQuery=t,this.staticElQuery=r,this.staticEl=this.useStatic&&document.querySelector(this.staticElQuery).cloneNode(!0),this.useStatic=n,this.clonedEls=this.arrayFromNodeList(this.capturedEls),this.addListeners()}},viewportManager={nState:null,cState:null,init:function(){this.addListeners()},addListeners:function(){const e={small:window.matchMedia(\"(max-width: 734px)\"),medium:window.matchMedia(\"(min-width: 735px) and (max-width: 1068px)\"),large:window.matchMedia(\"(min-width: 1069px)\")};Object.keys(e).forEach(t=>{const i=e[t];\"function\"!=typeof i.addEventListener?i.addListener(()=>{i.matches&&this.viewportObserve(t)}):i.addEventListener(\"change\",()=>{i.matches&&this.viewportObserve(t)}),i.matches&&this.viewportObserve(t)})},viewportObserve:function(e){this.nState=e,this.cState!==this.nState&&(this.cState=this.nState,this.dispatch(this.cState))},dispatch:function(e){const t=new CustomEvent(\"channel:viewport-change\",{detail:e});window.dispatchEvent(t)}},orientationManager={orienation:null,init:function(){window.matchMedia(\"(orientation: portrait)\").addEventListener(\"change\",e=>{e.matches?this.orienation=\"portrait\":this.orienation=\"landscape\",this.dispatch(this.orienation)})},dispatch:function(e){const t=new CustomEvent(\"channel:orientation-change\",{detail:e});window.dispatchEvent(t)}},selectorManager={init:function(e,t){const i=document.querySelectorAll(e);i.forEach((e,t)=>{e.addEventListener(\"change\",()=>{const r=e.selectedIndex,n=e.value,s=Number(e.options[r].getAttribute(\"value\"));this.dispatch({elIndex:t,selectedIndex:s,value:n,selectorEls:i}),e.focus()})})},dispatch:function(e){const t=new CustomEvent(\"channel:pre-user-select\",{detail:e});window.dispatchEvent(t)}},buyButtonManager={buyButtonQuery:null,init:function(e){this.buyButtonQuery=e,this.addListeners(),this.attachButtonListeners()},addListeners:function(){window.addEventListener(\"channel:reorder-dom\",()=>{console.log,this.attachButtonListeners()})},attachButtonListeners:function(){document.querySelectorAll(this.buyButtonQuery).forEach(e=>{e.addEventListener(\"click\",t=>{const i=0===t.screenX&&0===t.screenY?\"Keyboard Interaction\":\"Mouse Click\";this.dispatch({productName:e.id,eventSource:i})})})},dispatch:function(e){const t=new CustomEvent(\"channel:buy-button-click\",{detail:e});window.dispatchEvent(t)}},dataManager={order:null,viewportKey:null,viewportOrder:null,viewportMax:null,init:function(e,t){this.order=e,this.useStatic=t,this.addListeners()},viewportChange(e){this.viewportKey=e,this.viewportOrder=this.order[this.viewportKey],this.viewportMax=this.order.max[this.viewportKey],this.dispatch({order:this.viewportOrder,max:this.viewportMax,useStatic:this.useStatic})},blurSelects(e){document.querySelectorAll(e).forEach(e=>{e.blur()})},flattenOrders(){this.viewportOrder=this.order[this.viewportKey],this.viewportMax=this.order.max[this.viewportKey],[\"small\",\"medium\",\"large\"].forEach(e=>{this.order[e]=this.viewportOrder})},getLineupInfo(e,t){const i={};return e.forEach((e,r)=>{i[r]={columnIndex:r,deviceName:e.options[e.selectedIndex].text,hasChanged:r===t}}),i},userSelect(e){const{elIndex:t,selectedIndex:i}=e,r=this.viewportOrder[t],n=this.viewportOrder.find(e=>e===i),s=this.viewportOrder.indexOf(n);void 0!==n?(this.viewportOrder[s]=r,this.viewportOrder[t]=n):this.viewportOrder[t]=i,this.flattenOrders(),this.dispatch({order:this.viewportOrder,max:this.viewportMax,useStatic:this.useStatic,selectorIndex:t}),e.deviceLineup=this.getLineupInfo(e.selectorEls,t),delete e.selectorEls;const o=Object.keys(e.deviceLineup).slice(0,this.viewportMax).reduce((t,i)=>(t[i]=e.deviceLineup[i],t),{});this.dispatchPostUserSelect({deviceLineup:o})},addListeners:function(){window.addEventListener(\"channel:pre-user-select\",e=>{this.userSelect(e.detail)}),window.addEventListener(\"channel:user-refresh\",e=>{this.dispatch({order:this.viewportOrder,max:this.viewportMax,useStatic:this.useStatic})}),window.addEventListener(\"channel:viewport-change\",e=>{this.viewportChange(e.detail),this.blurSelects(this.selectorElsQuery)}),window.addEventListener(\"change:orientation-change\",()=>{this.blurSelects(this.selectorElsQuery)}),window.addEventListener(\"channel:buy-button-click\",e=>{console.log(e.detail)})},dispatch:function(e){const t=new CustomEvent(\"channel:reorder-dom\",{detail:e});window.dispatchEvent(t)},dispatchPostUserSelect:function(e){const t=new CustomEvent(\"channel:user-select\",{detail:e});window.dispatchEvent(t)}},channelCompare={inited:!1,init:function(e=null){if(this.inited)return;let t;if(this.isDev=window.location.host.indexOf(\"127.0.0.1\")>-1,e)t=e;else if(!e){const e=document.querySelector(\"[data-channel-html-compare]\");if(!e)return void console.warn(\"channelCompare: element[data-channel-html-compare not found]\");try{const i=e.getAttribute(\"data-channel-html-compare\");t=JSON.parse(i)}catch(e){return void console.warn(\"channelCompare: error parsing JSON\",e)}}const i=t.order,r=t.headerEl,n=t.selectorEls,s=t.swapEls,o=t.staticEl,a=t.useStatic;reorderDOM.init(s,n,r,o,a),!a&&selectorManager.init(n),buyButtonManager.init(\".compare-button\"),dataManager.init(i,a),viewportManager.init(),orientationManager.init(),this.inited=!0}};window.addEventListener(\"pageshow\",e=>{const{persisted:t}=e;if(t)window.addEventListener(\"scroll\",()=>{const e=new CustomEvent(\"channel:user-refresh\");window.dispatchEvent(e)});else{channelCompare.init(),document.querySelector(\".channel-compare\").classList.remove(\"channel-compare--hidden\")}});</script>
<!--END > SCRIPTS:BASE -->
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script>
<script>
\$(document).ready(function() {
if(\$(\".more-text-btn\").hasClass(\"show-more-height\")) {
\$(\".more-text-btn\").removeClass(\"show-more-height\")
\$(\".mc-show-more\").html(\"Weniger anzeigen\");
}
\$(\".mc-show-more\").click(function () {
if(\$(\".more-text-btn\").hasClass(\"show-more-height\")) {
\$(this).text(\"Weniger anzeigen\");
} else {
\$(this).text(\"Mehr anzeigen\");
}
\$(\".more-text-btn\").toggleClass(\"show-more-height\");
});
});
</script>
<script>
\tlet iframe = document.querySelector(\"#child-iframe\");
\tiframe.addEventListener('load', function() {
\t\tif(iframe.contentDocument.body.scrollHeight) {
\t\t let newheight = iframe.contentDocument.body.scrollHeight + 50 ;
\t\t\tiframe.style.height = newheight + 'px';
\t\t\tiframe.style.width = iframe.contentDocument.body.scrollWidth + 'px';
\t\t}
\t});\t
</script>
{% if page.product.extensions.netiProductCms and page.product.extensions.netiProductCms.getBelowProductDescriptionContent() %}
{% for content in page.product.extensions.netiProductCms.getBelowProductDescriptionContent() %}
<div id=\"technische\" class=\"is--neti-next-productdetailcms is--below-product_description {{ config('NetiNextProductDetailCms.config.belowDescriptionIndention') }}\" {% if config('NetiNextProductDetailCms.config.belowDescriptionInlineStyle') %}style=\"{{ config('NetiNextProductDetailCms.config.belowDescriptionInlineStyle') }}\"{% endif %}>
{{ content|raw }}
</div>
{% endfor %}
{% endif %}
{% if page.crossSellings|length > 0 %}
<div class=\"product-detail-tabs product-detail-cross-selling\">
{% sw_include '@Storefront/storefront/page/product-detail/cross-selling/tabs.html.twig' with {
crossSellings: page.crossSellings
} only %}
</div>
{% endif %}
{% endblock %}
{% endblock %}
</div>
{% endblock %}
{% endblock %}
", "@AmMacTrade/storefront/page/product-detail/index.html.twig", "/var/www/vhosts/devmt.de/httpdocs/shopware-ce/custom/plugins/AmMacTrade/src/Resources/views/storefront/page/product-detail/index.html.twig");
}
}