var/cache/dev_h7c987e168e0fffb75676c4822b2502a6/twig/e0/e02338ee73c60a6063078effaebfbc9625eefac5c9a1b2db83cf803951b61c0d.php line 75

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @AmMacTrade/storefront/page/product-detail/index.html.twig */
  16. class __TwigTemplate_c1f14c3f58ef9be62606f77dc46c43db extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'base_head' => [$this'block_base_head'],
  26.             'base_header' => [$this'block_base_header'],
  27.             'base_header_inner' => [$this'block_base_header_inner'],
  28.             'base_navigation' => [$this'block_base_navigation'],
  29.             'base_navigation_inner' => [$this'block_base_navigation_inner'],
  30.             'base_content' => [$this'block_base_content'],
  31.             'page_product_detail' => [$this'block_page_product_detail'],
  32.             'page_product_detail_tax_link' => [$this'block_page_product_detail_tax_link'],
  33.             'page_product_detail_inner' => [$this'block_page_product_detail_inner'],
  34.             'page_product_detail_content' => [$this'block_page_product_detail_content'],
  35.             'page_product_detail_headline' => [$this'block_page_product_detail_headline'],
  36.             'page_product_detail_main' => [$this'block_page_product_detail_main'],
  37.             'page_product_detail_media' => [$this'block_page_product_detail_media'],
  38.             'page_product_detail_buy' => [$this'block_page_product_detail_buy'],
  39.             'page_product_detail_tabs' => [$this'block_page_product_detail_tabs'],
  40.             'page_product_detail_cross_selling' => [$this'block_page_product_detail_cross_selling'],
  41.         ];
  42.     }
  43.     protected function doGetParent(array $context)
  44.     {
  45.         // line 2
  46.         return "@SwagCmsExtensions/storefront/base.html.twig";
  47.     }
  48.     protected function doDisplay(array $context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AmMacTrade/storefront/page/product-detail/index.html.twig"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AmMacTrade/storefront/page/product-detail/index.html.twig"));
  55.         $this->parent $this->loadTemplate("@SwagCmsExtensions/storefront/base.html.twig""@AmMacTrade/storefront/page/product-detail/index.html.twig"2);
  56.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.         
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  61.     }
  62.     // line 3
  63.     public function block_base_head($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_head"));
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_head"));
  70.         // line 4
  71.         echo "    ";
  72.         $this->loadTemplate("@SwagSocialShopping/storefront/page/product-detail/meta.html.twig""@AmMacTrade/storefront/page/product-detail/index.html.twig"4)->display($context);
  73.         
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  75.         
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  77.     }
  78.     // line 7
  79.     public function block_base_header($context, array $blocks = [])
  80.     {
  81.         $macros $this->macros;
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_header"));
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_header"));
  86.         // line 8
  87.         echo "<div class=\"header-main-wrapper\">
  88.     <header class=\"header-main\">
  89.         <div class=\"top-bar-container\">
  90.             <div class=\"container\">
  91.                 ";
  92.         // line 12
  93.         $this->loadTemplate("@AmMacTrade/storefront/layout/header/top-bar.html.twig""@AmMacTrade/storefront/page/product-detail/index.html.twig"12)->display($context);
  94.         // line 13
  95.         echo "            </div>
  96.         </div>
  97.         ";
  98.         // line 15
  99.         $this->displayBlock('base_header_inner'$context$blocks);
  100.         // line 20
  101.         echo "    </header>
  102. ";
  103.         
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  105.         
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  107.     }
  108.     // line 15
  109.     public function block_base_header_inner($context, array $blocks = [])
  110.     {
  111.         $macros $this->macros;
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_header_inner"));
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  115.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_header_inner"));
  116.         // line 16
  117.         echo "            <div class=\"container\">
  118.                 ";
  119.         // line 17
  120.         $this->loadTemplate("@NetzpShopmanager6/storefront/layout/header/header.html.twig""@AmMacTrade/storefront/page/product-detail/index.html.twig"17)->display($context);
  121.         // line 18
  122.         echo "            </div>
  123.         ";
  124.         
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  126.         
  127.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  128.     }
  129.     // line 23
  130.     public function block_base_navigation($context, array $blocks = [])
  131.     {
  132.         $macros $this->macros;
  133.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  134.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_navigation"));
  135.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_navigation"));
  137.         // line 24
  138.         echo "        <div class=\"nav-main\">
  139.             ";
  140.         // line 25
  141.         $this->displayBlock('base_navigation_inner'$context$blocks);
  142.         // line 28
  143.         echo "        </div>
  144.     </div>
  145. ";
  146.         
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  148.         
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  150.     }
  151.     // line 25
  152.     public function block_base_navigation_inner($context, array $blocks = [])
  153.     {
  154.         $macros $this->macros;
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_navigation_inner"));
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  158.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_navigation_inner"));
  159.         // line 26
  160.         echo "                ";
  161.         $this->loadTemplate("@AmMacTrade/storefront/layout/navigation/navigation.html.twig""@AmMacTrade/storefront/page/product-detail/index.html.twig"26)->display($context);
  162.         // line 27
  163.         echo "            ";
  164.         
  165.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  166.         
  167.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  168.     }
  169.     // line 50
  170.     public function block_base_content($context, array $blocks = [])
  171.     {
  172.         $macros $this->macros;
  173.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  174.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_content"));
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  176.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_content"));
  177.         // line 51
  178.         echo "    ";
  179.         $this->displayBlock('page_product_detail'$context$blocks);
  180.         
  181.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  182.         
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  184.     }
  185.     public function block_page_product_detail($context, array $blocks = [])
  186.     {
  187.         $macros $this->macros;
  188.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  189.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail"));
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  191.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail"));
  192.         // line 52
  193.         echo "
  194.         <div id=\"sticky-cart\">
  195.             <div class=\"container\">
  196.                 <div class=\"row\">
  197.                     <div class=\"col-lg-2 smll-none\">
  198.                         <div data-wi-id=\"wi-button-container\"></div>
  199.                         <div class=\"product-title\">
  200.                             ";
  201.         // line 60
  202.         echo "                        </div>
  203.                         ";
  204.         // line 65
  205.         echo "                    </div>
  206.                     ";
  207.         // line 66
  208.         $context["category"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse66), "navigation", [], "any"falsefalsefalse66), "active", [], "any"falsefalsefalse66);
  209.         // line 67
  210.         echo "                    <div class=\"col-lg-2 smll-none\">
  211.                     ";
  212.         // line 68
  213.         if (sw_get_attribute($this->env$this->source, (($__internal_compile_0 sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse68)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["amMactradeap1"] ?? null) : null), "get", [=> "keyApi"], "method"falsefalsefalse68)) {
  214.             // line 69
  215.             echo "                        <div class=\"stiky-cart-new-wrap
  216.                                                 ";
  217.             // line 70
  218.             if (($context["category"] ?? null)) {
  219.                 // line 71
  220.                 $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"falsefalsefalse71));
  221.                 // line 72
  222.                 $context['_parent'] = $context;
  223.                 $context['_seq'] = twig_ensure_traversable(($context["breadcrumbCategories"] ?? null));
  224.                 $context['loop'] = [
  225.                   'parent' => $context['_parent'],
  226.                   'index0' => 0,
  227.                   'index'  => 1,
  228.                   'first'  => true,
  229.                 ];
  230.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  231.                     $length count($context['_seq']);
  232.                     $context['loop']['revindex0'] = $length 1;
  233.                     $context['loop']['revindex'] = $length;
  234.                     $context['loop']['length'] = $length;
  235.                     $context['loop']['last'] = === $length;
  236.                 }
  237.                 foreach ($context['_seq'] as $context["_key"] => $context["breadcrumbCategory"]) {
  238.                     // line 73
  239.                     $context["key"] = sw_get_attribute($this->env$this->source$context["breadcrumbCategory"], "id", [], "any"falsefalsefalse73);
  240.                     // line 74
  241.                     $context["name"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["breadcrumbCategory"], "translated", [], "any"falsefalsefalse74), "name", [], "any"falsefalsefalse74);
  242.                     // line 75
  243.                     if ((sw_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse75) == 1)) {
  244.                         // line 76
  245.                         if ((($context["name"] ?? null) == "Zubehör")) {
  246.                             // line 77
  247.                             echo "d-none
  248. ";
  249.                         }
  250.                     }
  251.                     ++$context['loop']['index0'];
  252.                     ++$context['loop']['index'];
  253.                     $context['loop']['first'] = false;
  254.                     if (isset($context['loop']['length'])) {
  255.                         --$context['loop']['revindex0'];
  256.                         --$context['loop']['revindex'];
  257.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  258.                     }
  259.                 }
  260.                 $_parent $context['_parent'];
  261.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumbCategory'], $context['_parent'], $context['loop']);
  262.                 $context array_intersect_key($context$_parent) + $_parent;
  263.             }
  264.             // line 82
  265.             echo "                        \">
  266.                           <h3>Gutschrift für Ihr Altgerät</h3>
  267.                           <div class=\"price-mc\"><p>zw.</p><h2 class=\"price_range\"> 30 â‚¬ - 735* </h2> <p>
  268. ";
  269.             // line 86
  270.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, (($__internal_compile_1 sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse86)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["amMactradeap1"] ?? null) : null), "get", [=> "keyApiText"], "method"falsefalsefalse86), "html"nulltrue);
  271.             echo "
  272.                           </p></div>
  273.                           <a class=\"small-link\" target=\"_blank\" href=\"https://mactrade.kauft-an.de/mactrade_c/hilfe/\">Mehr Infos</a>
  274.                         </div>
  275.                         ";
  276.         }
  277.         // line 91
  278.         echo "                    </div>
  279.                     <div class=\"col-lg-12 col-xl-8 d-flex justify-content-lg-between  justify-content-xl-end align-items-center\">
  280.                         <div class=\"edu-information\">
  281.                             <div class=\"edu-price-container\">
  282.                              ";
  283.         // line 96
  284.         if (((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse96), "id", [], "any"falsefalsefalse96) != "45be9f42765d42e8ae1137d1812040f4") && (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse96), "id", [], "any"falsefalsefalse96) != "4faca3b6a7f149cea7ade06ee340ce19"))) {
  285.             // line 97
  286.             echo "                            
  287.                                 ";
  288.             // line 98
  289.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse98), "customFields", [], "any"falsefalsefalse98), "product_custom_fields_edu_discount", [], "any"falsefalsefalse98)) {
  290.                 // line 99
  291.                 echo "                                    ";
  292.                 $context["eduPrice"] = ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse99), "calculatedPrice", [], "any"falsefalsefalse99), "unitPrice", [], "any"falsefalsefalse99) / 100) * (100 sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse99), "customFields", [], "any"falsefalsefalse99), "product_custom_fields_edu_discount", [], "any"falsefalsefalse99)));
  293.                 // line 100
  294.                 echo "                                    EDU: ";
  295.                 echo sw_escape_filter($this->envtwig_number_format_filter($this->env, ($context["eduPrice"] ?? null), 2",""."), "html"nulltrue);
  296.                 echo " â‚¬ *
  297.                                 ";
  298.             }
  299.             // line 102
  300.             echo "                                ";
  301.         }
  302.         // line 103
  303.         echo "                                
  304.                                 ";
  305.         // line 104
  306.         if (((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse104), "id", [], "any"falsefalsefalse104) == "45be9f42765d42e8ae1137d1812040f4") || (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse104), "id", [], "any"falsefalsefalse104) == "4faca3b6a7f149cea7ade06ee340ce19"))) {
  307.             // line 105
  308.             echo "                                ";
  309.             $context["price"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse105), "calculatedPrices", [], "any"falsefalsefalse105), "first", [], "any"falsefalsefalse105);
  310.             // line 106
  311.             echo "                                
  312.                                                 ";
  313.             // line 107
  314.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse107), "customFields", [], "any"falsefalsefalse107), "product_custom_fields_edu_discount", [], "any"falsefalsefalse107)) {
  315.                 // line 108
  316.                 echo "                    ";
  317.                 $context["eduPrice"] = ((sw_get_attribute($this->env$this->source, ($context["price"] ?? null), "unitPrice", [], "any"falsefalsefalse108) / 100) * (100 sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse108), "customFields", [], "any"falsefalsefalse108), "product_custom_fields_edu_discount", [], "any"falsefalsefalse108)));
  318.                 // line 109
  319.                 echo "                    EDU: ";
  320.                 echo sw_escape_filter($this->envtwig_number_format_filter($this->env, ($context["eduPrice"] ?? null), 2",""."), "html"nulltrue);
  321.                 echo " â‚¬ *
  322.                 ";
  323.             }
  324.             // line 111
  325.             echo "                ";
  326.         }
  327.         // line 112
  328.         echo "                            </div>
  329.                             <div class=\"delivery-container\">
  330.                                 ";
  331.         // line 114
  332.         $this->loadTemplate("@MolliePayments/storefront/component/delivery-information.html.twig""@AmMacTrade/storefront/page/product-detail/index.html.twig"114)->display($context);
  333.         // line 115
  334.         echo "                            </div>
  335.                         </div>
  336.                         <div class=\"price-information\">
  337.                             <div class=\"price-container\">";
  338.         // line 118
  339.         $this->loadTemplate("@AmMacTrade/storefront/page/product-detail/buy-widget-price.html.twig""@AmMacTrade/storefront/page/product-detail/index.html.twig"118)->display($context);
  340.         echo "</div>
  341.                             <div class=\"tax-container\">
  342.                                 ";
  343.         // line 120
  344.         if ((sw_get_attribute($this->env$this->source, ($context["context"] ?? null), "taxState", [], "any"falsefalsefalse120) == "gross")) {
  345.             // line 121
  346.             echo "                                    ";
  347.             $context["taxText"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.grossTaxInformation"));
  348.             // line 122
  349.             echo "                                ";
  350.         } else {
  351.             // line 123
  352.             echo "                                    ";
  353.             $context["taxText"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.netTaxInformation"));
  354.             // line 124
  355.             echo "                                ";
  356.         }
  357.         // line 125
  358.         echo "
  359.                                 <p class=\"product-detail-tax\">
  360.                                     ";
  361.         // line 127
  362.         $this->displayBlock('page_product_detail_tax_link'$context$blocks);
  363.         // line 134
  364.         echo "                                </p>
  365.                             </div>
  366.                         </div>
  367.                         <div id=\"sticky-cart-form\">
  368.                             ";
  369.         // line 138
  370.         $this->loadTemplate("@SwagPayPal/storefront/page/product-detail/buy-widget-form.html.twig""@AmMacTrade/storefront/page/product-detail/index.html.twig"138)->display($context);
  371.         // line 139
  372.         echo "                        </div>
  373.                     </div>
  374.                 </div>
  375.             </div>
  376.         </div>
  377.         
  378.         ";
  379.         // line 160
  380.         echo "       
  381.         <div class=\"product-detail\"
  382.              itemscope
  383.              itemtype=\"https://schema.org/Product\">
  384.             ";
  385.         // line 166
  386.         $this->displayBlock('page_product_detail_inner'$context$blocks);
  387.         // line 493
  388.         echo "        </div>
  389.     ";
  390.         
  391.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  392.         
  393.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  394.     }
  395.     // line 127
  396.     public function block_page_product_detail_tax_link($context, array $blocks = [])
  397.     {
  398.         $macros $this->macros;
  399.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  400.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_tax_link"));
  401.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  402.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_tax_link"));
  403.         // line 128
  404.         echo "                                        <a class=\"product-detail-tax-link\"
  405.                                            href=\"/kundenservice/versandkosten/\"
  406.                                            title=\"";
  407.         // line 130
  408.         echo sw_escape_filter($this->env, ($context["taxText"] ?? null), "html"nulltrue);
  409.         echo "\" target=\"_blank\">
  410.                                             ";
  411.         // line 131
  412.         echo sw_escape_filter($this->env, ($context["taxText"] ?? null), "html"nulltrue);
  413.         echo "
  414.                                         </a>
  415.                                     ";
  416.         
  417.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  418.         
  419.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  420.     }
  421.     // line 166
  422.     public function block_page_product_detail_inner($context, array $blocks = [])
  423.     {
  424.         $macros $this->macros;
  425.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  426.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_inner"));
  427.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  428.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_inner"));
  429.         // line 167
  430.         echo "                ";
  431.         $this->displayBlock('page_product_detail_content'$context$blocks);
  432.         // line 265
  433.         echo "\t
  434.                 ";
  435.         // line 267
  436.         $this->displayBlock('page_product_detail_tabs'$context$blocks);
  437.         // line 377
  438.         echo "
  439.                 ";
  440.         // line 378
  441.         $this->displayBlock('page_product_detail_cross_selling'$context$blocks);
  442.         // line 492
  443.         echo "            ";
  444.         
  445.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  446.         
  447.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  448.     }
  449.     // line 167
  450.     public function block_page_product_detail_content($context, array $blocks = [])
  451.     {
  452.         $macros $this->macros;
  453.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  454.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_content"));
  455.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  456.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_content"));
  457.         // line 168
  458.         echo "                    <div class=\"product-detail-content\">
  459.                         ";
  460.         // line 169
  461.         $this->displayBlock('page_product_detail_headline'$context$blocks);
  462.         // line 216
  463.         echo "
  464.                         ";
  465.         // line 217
  466.         $context["mediaItems"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse217), "media", [], "any"falsefalsefalse217), "media", [], "any"falsefalsefalse217);
  467.         // line 218
  468.         echo "
  469.                         ";
  470.         // line 219
  471.         $this->displayBlock('page_product_detail_main'$context$blocks);
  472.         // line 263
  473.         echo "                    </div>
  474.                 ";
  475.         
  476.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  477.         
  478.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  479.     }
  480.     // line 169
  481.     public function block_page_product_detail_headline($context, array $blocks = [])
  482.     {
  483.         $macros $this->macros;
  484.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  485.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_headline"));
  486.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  487.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_headline"));
  488.         // line 170
  489.         echo "                            <div class=\"row align-items-start product-detail-headline\">
  490.                                 ";
  491.         // line 171
  492.         $this->loadTemplate("@AmMacTrade/storefront/page/product-detail/headline.html.twig""@AmMacTrade/storefront/page/product-detail/index.html.twig"171)->display($context);
  493.         // line 172
  494.         echo "
  495.                                 ";
  496.         // line 173
  497.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse173), "customFields", [], "any"falsefalsefalse173), "product_custom_fields_pdp_promobanner_macbook_air", [], "any"falsefalsefalse173) == true)) {
  498.             // line 174
  499.             echo "                                    <div class=\"product-detail-promotion-banderole\">
  500.                                         ";
  501.             // line 175
  502.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.macbook-air");
  503.             echo "
  504.                                     </div>
  505.                                 ";
  506.         } elseif ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 177
  507. ($context["page"] ?? null), "product", [], "any"falsefalsefalse177), "customFields", [], "any"falsefalsefalse177), "product_custom_fields_pdp_promobanner_macbook_pro13", [], "any"falsefalsefalse177) == true)) {
  508.             // line 178
  509.             echo "                                    <div class=\"product-detail-promotion-banderole\">
  510.                                         ";
  511.             // line 179
  512.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.macbook-pro13");
  513.             echo "
  514.                                     </div>
  515.                                 ";
  516.         } elseif ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 181
  517. ($context["page"] ?? null), "product", [], "any"falsefalsefalse181), "customFields", [], "any"falsefalsefalse181), "product_custom_fields_pdp_promobanner_macbook_pro14", [], "any"falsefalsefalse181) == true)) {
  518.             // line 182
  519.             echo "                                    <div class=\"product-detail-promotion-banderole\">
  520.                                         ";
  521.             // line 183
  522.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.macbook-pro14");
  523.             echo "
  524.                                     </div>
  525.                                 ";
  526.         } elseif ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 185
  527. ($context["page"] ?? null), "product", [], "any"falsefalsefalse185), "customFields", [], "any"falsefalsefalse185), "product_custom_fields_pdp_promobanner_macbook_pro_16", [], "any"falsefalsefalse185) == true)) {
  528.             // line 186
  529.             echo "                                    <div class=\"product-detail-promotion-banderole\">
  530.                                         ";
  531.             // line 187
  532.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.macbook-pro16");
  533.             echo "
  534.                                     </div>
  535.                                 ";
  536.         } elseif ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 189
  537. ($context["page"] ?? null), "product", [], "any"falsefalsefalse189), "customFields", [], "any"falsefalsefalse189), "product_custom_fields_pdp_promobanner_imac24", [], "any"falsefalsefalse189) == true)) {
  538.             // line 190
  539.             echo "                                    <div class=\"product-detail-promotion-banderole\">
  540.                                         ";
  541.             // line 191
  542.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.imac24");
  543.             echo "
  544.                                     </div>
  545.                                 ";
  546.         } elseif ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 193
  547. ($context["page"] ?? null), "product", [], "any"falsefalsefalse193), "customFields", [], "any"falsefalsefalse193), "product_custom_fields_pdp_promobanner_imac27", [], "any"falsefalsefalse193) == true)) {
  548.             // line 194
  549.             echo "                                    <div class=\"product-detail-promotion-banderole\">
  550.                                         ";
  551.             // line 195
  552.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.imac27");
  553.             echo "
  554.                                     </div>
  555.                                 ";
  556.         } elseif ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 197
  557. ($context["page"] ?? null), "product", [], "any"falsefalsefalse197), "customFields", [], "any"falsefalsefalse197), "product_custom_fields_pdp_promobanner_ipad", [], "any"falsefalsefalse197) == true)) {
  558.             // line 198
  559.             echo "                                    <div class=\"product-detail-promotion-banderole\">
  560.                                         ";
  561.             // line 199
  562.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.ipad");
  563.             echo "
  564.                                     </div>
  565.                                 ";
  566.         } elseif ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 201
  567. ($context["page"] ?? null), "product", [], "any"falsefalsefalse201), "customFields", [], "any"falsefalsefalse201), "product_custom_fields_pdp_promobanner_ipad_pro", [], "any"falsefalsefalse201) == true)) {
  568.             // line 202
  569.             echo "                                    <div class=\"product-detail-promotion-banderole\">
  570.                                         ";
  571.             // line 203
  572.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.ipad-pro");
  573.             echo "
  574.                                     </div>
  575.                                 ";
  576.         } elseif ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 205
  577. ($context["page"] ?? null), "product", [], "any"falsefalsefalse205), "customFields", [], "any"falsefalsefalse205), "product_custom_fields_pdp_promobanner_mac_mini", [], "any"falsefalsefalse205) == true)) {
  578.             // line 206
  579.             echo "                                    <div class=\"product-detail-promotion-banderole\">
  580.                                         ";
  581.             // line 207
  582.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.mac-mini");
  583.             echo "
  584.                                     </div>
  585.                                 ";
  586.         } elseif ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 209
  587. ($context["page"] ?? null), "product", [], "any"falsefalsefalse209), "customFields", [], "any"falsefalsefalse209), "product_custom_fields_pdp_promobanner_mac_studio", [], "any"falsefalsefalse209) == true)) {
  588.             // line 210
  589.             echo "                                    <div class=\"product-detail-promotion-banderole\">
  590.                                         ";
  591.             // line 211
  592.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.promotion-banner.mac-studio");
  593.             echo "
  594.                                     </div>
  595.                                 ";
  596.         }
  597.         // line 214
  598.         echo "                            </div>
  599.                         ";
  600.         
  601.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  602.         
  603.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  604.     }
  605.     // line 219
  606.     public function block_page_product_detail_main($context, array $blocks = [])
  607.     {
  608.         $macros $this->macros;
  609.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  610.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_main"));
  611.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  612.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_main"));
  613.         // line 220
  614.         echo "                            <div class=\"row product-detail-main\">
  615.                                 ";
  616.         // line 221
  617.         $this->displayBlock('page_product_detail_media'$context$blocks);
  618.         // line 255
  619.         echo "
  620.                                 ";
  621.         // line 256
  622.         $this->displayBlock('page_product_detail_buy'$context$blocks);
  623.         // line 261
  624.         echo "                            </div>
  625.                         ";
  626.         
  627.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  628.         
  629.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  630.     }
  631.     // line 221
  632.     public function block_page_product_detail_media($context, array $blocks = [])
  633.     {
  634.         $macros $this->macros;
  635.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  636.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_media"));
  637.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  638.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_media"));
  639.         // line 222
  640.         echo "                                    <div class=\"col-lg-6 product-detail-media\">
  641.                                         ";
  642.         // line 224
  643.         echo "                                        ";
  644.         if ((((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse224), "customFields", [], "any"falsefalsefalse224), "product_custom_fields_subscription", [], "any"falsefalsefalse224) == true) && (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse224), "customFields", [], "any"falsefalsefalse224), "product_custom_fields_subscription_productType", [], "any"falsefalsefalse224) != "ACCESSORY")) && (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse224), "customFields", [], "any"falsefalsefalse224), "product_custom_fields_subscription_monthlyPriceGross", [], "any"falsefalsefalse224) > 0))) {
  645.             // line 225
  646.             echo "                                            <div class=\"abo-badge\">
  647.                                                 <img src=\"";
  648.             // line 226
  649.             echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/badge_abo.svg""@AmMacTrade"), "html"nulltrue);
  650.             echo "\" alt=\"Abo\" height=\"50\" width=\"50\">
  651.                                             </div>
  652.                                         ";
  653.         }
  654.         // line 229
  655.         echo "                                        ";
  656.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse229), "customFields", [], "any"falsefalsefalse229), "product_custom_fields_batch_protect", [], "any"falsefalsefalse229) == true)) {
  657.             // line 230
  658.             echo "                                            <div class=\"protect-badge\">
  659.                                                 <a class=\"link-new-window\" href=\"/garantiepaket\">
  660.                                                     <img src=\"https://www.mactrade.de/media/a1/g0/f0/1644231456/stoerer-garantie.png\" alt=\"\">
  661.                                                 </a>
  662.                                             </div>
  663.                                         ";
  664.         }
  665.         // line 236
  666.         echo "                                        ";
  667.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse236), "media", [], "any"falsefalsefalse236)) {
  668.             // line 237
  669.             echo "                                            ";
  670.             $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
  671. ($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->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 248
  672. ($context["page"] ?? null), "product", [], "any"falsefalsefalse248), "translated", [], "any"falsefalsefalse248), "name", [], "any"falsefalsefalse248), "startIndexThumbnails" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 249
  673. ($context["page"] ?? null), "product", [], "any"falsefalsefalse249), "cover", [], "any"falsefalsefalse249), "position", [], "any"falsefalsefalse249), "startIndexSlider" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 250
  674. ($context["page"] ?? null), "product", [], "any"falsefalsefalse250), "cover", [], "any"falsefalsefalse250), "position", [], "any"falsefalsefalse250)]));
  675.             // line 252
  676.             echo "                                        ";
  677.         }
  678.         // line 253
  679.         echo "                                    </div>
  680.                                 ";
  681.         
  682.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  683.         
  684.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  685.     }
  686.     // line 256
  687.     public function block_page_product_detail_buy($context, array $blocks = [])
  688.     {
  689.         $macros $this->macros;
  690.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  691.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_buy"));
  692.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  693.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_buy"));
  694.         // line 257
  695.         echo "                                    <div class=\"col-lg-5 offset-lg-1 product-detail-buy\">
  696.                                         ";
  697.         // line 258
  698.         $this->loadTemplate("@CustomFieldAdd/storefront/page/product-detail/buy-widget.html.twig""@AmMacTrade/storefront/page/product-detail/index.html.twig"258)->display($context);
  699.         // line 259
  700.         echo "                                    </div>
  701.                                 ";
  702.         
  703.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  704.         
  705.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  706.     }
  707.     // line 267
  708.     public function block_page_product_detail_tabs($context, array $blocks = [])
  709.     {
  710.         $macros $this->macros;
  711.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  712.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_tabs"));
  713.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  714.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_tabs"));
  715.         // line 268
  716.         echo "
  717. ";
  718.         // line 270
  719.         echo "            
  720.             <div class=\"m1 menu\">
  721.             <div id=\"menu-center\">
  722.                 <ul>
  723.                     <li class=\"active\"><a href=\"#kombinierbare\">Kombinierbare Aktionen</a></li>
  724.                     <li><a href=\"#produktbeschreibung\">Produktbeschreibung</a></li>
  725.                     <li><a href=\"#technische\">Technische Daten</a></li>
  726.                 </ul>
  727.             </div>
  728.         </div>
  729.             
  730.             ";
  731.         // line 283
  732.         echo "
  733.             ";
  734.         // line 285
  735.         echo "              <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script>
  736.               <script>
  737.              
  738. let onScroll = function(event){
  739.     var scrollPos = \$(document).scrollTop();
  740.     \$('#menu-center a').each(function () {
  741.         var currLink = \$(this);
  742.         var refElement = \$(currLink.attr(\"href\"));
  743.         scrollPos += 150;
  744.         if (refElement.position().top <= scrollPos && refElement.position().top + refElement.height() > scrollPos) {
  745.             \$('#menu-center ul a').parent().removeClass(\"active\");
  746.             currLink.parent().addClass(\"active\");
  747.         }
  748.         else{
  749.             currLink.parent().removeClass(\"active\");
  750.         }
  751.     });
  752. }
  753.  \$(document).ready(function () {
  754.     \$(document).on(\"scroll.custom\", onScroll);
  755.     
  756.     //smoothscroll
  757.     \$('a[href^=\"#\"]').on('click', function (e) {
  758.         e.preventDefault();
  759.         \$(document).off(\"scroll.custom\");
  760.         
  761.         \$('a').each(function () {
  762.             \$(this).parent().removeClass('active');
  763.         })
  764.         \$(this).parent().addClass('active');
  765.       
  766.         var target = this.hash;
  767.        e.preventDefault();
  768.             var pos = \$(this).attr('href');
  769.             doScrolling(pos, 1000);
  770.         
  771.     });
  772. });
  773. function doScrolling(element, duration) {
  774.             var startingY = window.pageYOffset
  775.             var elementY = getElementY(element) + 70
  776.             var targetY = document.body.scrollHeight - elementY < window.innerHeight ? document.body.scrollHeight - window.innerHeight : elementY
  777.             var diff = (targetY - (130 + 85)) - startingY
  778.             var easing = function(t) {
  779.                 return t < .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1
  780.             }
  781.             var start
  782.             if (!diff)
  783.                 return
  784.             window.requestAnimationFrame(function step(timestamp) {
  785.                 if (!start)
  786.                     start = timestamp
  787.                 var time = timestamp - start
  788.                 var percent = Math.min(time / duration, 1)
  789.                 percent = easing(percent)
  790.                 window.scrollTo(0, startingY + diff * percent)
  791.                 if (time < duration) {
  792.                     window.requestAnimationFrame(step);
  793.                 } else {
  794.                     \$(element).parent().addClass(\"active\").siblings().removeClass(\"active\");
  795.                      \$(document).on(\"scroll.custom\", onScroll);
  796.                 }
  797.             })
  798.         }
  799.          function getElementY(query) {
  800.             return window.pageYOffset + document.querySelector(query).getBoundingClientRect().top
  801.         }
  802.               </script>
  803.               ";
  804.         // line 365
  805.         echo "\t<div class=\"product-detail-tabs tb-pd d-none\">
  806. \t\t";
  807.         // line 366
  808.         $this->loadTemplate("@AmMacTrade/storefront/page/product-detail/tabs.html.twig""@AmMacTrade/storefront/page/product-detail/index.html.twig"366)->display($context);
  809.         // line 367
  810.         echo "\t</div>
  811.                     <div class=\"product-detail-tabs\">
  812.                         ";
  813.         // line 370
  814.         $this->loadTemplate("@AmMacTrade/storefront/page/product-detail/tabs.html.twig""@AmMacTrade/storefront/page/product-detail/index.html.twig"370)->display($context);
  815.         // line 371
  816.         echo "                    </div>
  817.                     ";
  818.         // line 376
  819.         echo "                ";
  820.         
  821.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  822.         
  823.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  824.     }
  825.     // line 378
  826.     public function block_page_product_detail_cross_selling($context, array $blocks = [])
  827.     {
  828.         $macros $this->macros;
  829.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  830.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_cross_selling"));
  831.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  832.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_cross_selling"));
  833.         // line 379
  834.         echo "                      ";
  835.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse379), "extensions", [], "any"falsefalsefalse379), "netiProductCms", [], "any"falsefalsefalse379) && sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse379), "extensions", [], "any"falsefalsefalse379), "netiProductCms", [], "any"falsefalsefalse379), "getReplaceProductDetailDescriptionContent", [], "method"falsefalsefalse379))) {
  836.             // line 380
  837.             echo "            <div class=\"product-detail-description-text 6666666666\" itemprop=\"description\">
  838.                 ";
  839.             // line 381
  840.             $context['_parent'] = $context;
  841.             $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse381), "extensions", [], "any"falsefalsefalse381), "netiProductCms", [], "any"falsefalsefalse381), "getReplaceProductDetailDescriptionContent", [], "method"falsefalsefalse381));
  842.             foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
  843.                 // line 382
  844.                 echo "                    <div id=\"";
  845.                 if (twig_in_filter("Kombinierbare"$context["content"])) {
  846.                     echo "kombinierbare";
  847.                 }
  848.                 if (twig_in_filter("Technische"$context["content"])) {
  849.                     echo "technische";
  850.                 }
  851.                 echo "\" class=\"is--neti-next-productdetailcms is--replace-product_detail_description ";
  852.                 echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetiNextProductDetailCms.config.replaceProductDetailDescriptionIndention"), "html"nulltrue);
  853.                 echo "\" ";
  854.                 if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetiNextProductDetailCms.config.replaceProductDetailDescriptionInlineStyle")) {
  855.                     echo " style=\"";
  856.                     echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetiNextProductDetailCms.config.replaceProductDetailDescriptionInlineStyle"), "html"nulltrue);
  857.                     echo "\" ";
  858.                 }
  859.                 echo ">
  860.                         ";
  861.                 // line 383
  862.                 echo $context["content"];
  863.                 echo "
  864.                     </div>
  865.                 ";
  866.             }
  867.             $_parent $context['_parent'];
  868.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
  869.             $context array_intersect_key($context$_parent) + $_parent;
  870.             // line 386
  871.             echo "            </div>
  872.     ";
  873.         }
  874.         // line 388
  875.         echo "    
  876.      ";
  877.         // line 389
  878.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse389), "extensions", [], "any"falsefalsefalse389), "netiProductCms", [], "any"falsefalsefalse389) && sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse389), "extensions", [], "any"falsefalsefalse389), "netiProductCms", [], "any"falsefalsefalse389), "getAboveProductDetailDescriptionContent", [], "method"falsefalsefalse389))) {
  879.             // line 390
  880.             echo "        
  881.             ";
  882.             // line 391
  883.             $context['_parent'] = $context;
  884.             $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse391), "extensions", [], "any"falsefalsefalse391), "netiProductCms", [], "any"falsefalsefalse391), "getAboveProductDetailDescriptionContent", [], "method"falsefalsefalse391));
  885.             foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
  886.                 // line 392
  887.                 echo "                <div id=\"";
  888.                 if (twig_in_filter("Kombinierbare"$context["content"])) {
  889.                     echo "kombinierbare";
  890.                 }
  891.                 if (twig_in_filter("Technische"$context["content"])) {
  892.                     echo "technische";
  893.                 }
  894.                 echo "\" class=\"is--neti-next-productdetailcms is--above-product_detail_description ";
  895.                 echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetiNextProductDetailCms.config.aboveProductDetailDescriptionIndention"), "html"nulltrue);
  896.                 echo "\" ";
  897.                 if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetiNextProductDetailCms.config.aboveProductDetailDescriptionInlineStyle")) {
  898.                     echo " style=\"";
  899.                     echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetiNextProductDetailCms.config.aboveProductDetailDescriptionInlineStyle"), "html"nulltrue);
  900.                     echo "\" ";
  901.                 }
  902.                 echo ">
  903.                     ";
  904.                 // line 393
  905.                 echo $context["content"];
  906.                 echo "
  907.                 </div>
  908.             ";
  909.             }
  910.             $_parent $context['_parent'];
  911.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
  912.             $context array_intersect_key($context$_parent) + $_parent;
  913.             // line 396
  914.             echo "        
  915.     ";
  916.         }
  917.         // line 398
  918.         echo "    
  919.     ";
  920.         // line 399
  921.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse399), "extensions", [], "any"falsefalsefalse399), "netiProductCms", [], "any"falsefalsefalse399) && sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse399), "extensions", [], "any"falsefalsefalse399), "netiProductCms", [], "any"falsefalsefalse399), "getAboveProductDescriptionContent", [], "method"falsefalsefalse399))) {
  922.             // line 400
  923.             echo "            ";
  924.             $context['_parent'] = $context;
  925.             $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse400), "extensions", [], "any"falsefalsefalse400), "netiProductCms", [], "any"falsefalsefalse400), "getAboveProductDescriptionContent", [], "method"falsefalsefalse400));
  926.             foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
  927.                 // line 401
  928.                 echo "                <div id=\"";
  929.                 if (twig_in_filter("Kombinierbare"$context["content"])) {
  930.                     echo "kombinierbare";
  931.                 }
  932.                 if (twig_in_filter("Technische"$context["content"])) {
  933.                     echo "technische";
  934.                 }
  935.                 echo "\" class=\"is--neti-next-productdetailcms is--above-product_description ";
  936.                 echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetiNextProductDetailCms.config.aboveDescriptionIndention"), "html"nulltrue);
  937.                 echo "\" ";
  938.                 if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetiNextProductDetailCms.config.aboveDescriptionInlineStyle")) {
  939.                     echo " style=\"";
  940.                     echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetiNextProductDetailCms.config.aboveDescriptionInlineStyle"), "html"nulltrue);
  941.                     echo "\" ";
  942.                 }
  943.                 echo ">
  944.                     ";
  945.                 // line 402
  946.                 echo $context["content"];
  947.                 echo "
  948.                 </div>
  949.             ";
  950.             }
  951.             $_parent $context['_parent'];
  952.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
  953.             $context array_intersect_key($context$_parent) + $_parent;
  954.             // line 405
  955.             echo "        ";
  956.         }
  957.         // line 406
  958.         echo "        
  959.         
  960.         
  961. \t";
  962.         // line 409
  963.         if (twig_test_empty(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse409), "customFields", [], "any"falsefalsefalse409), "custom_pdp_content_file_path", [], "any"falsefalsefalse409))) {
  964.             // line 410
  965.             echo "<div id=\"produktbeschreibung\" >
  966. <div class=\"more-text-btn show-more-height\">
  967. <h3 class=\"d-flex justify-content-center\">";
  968.             // line 412
  969.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.descriptionTitle"));
  970.             echo " </h3>
  971. \t";
  972.             // line 413
  973.             echo sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse413), "translated", [], "any"falsefalsefalse413), "description", [], "any"falsefalsefalse413);
  974.             echo 
  975. </div>
  976. </div>
  977. \t";
  978.         }
  979.         // line 419
  980.         echo "\t";
  981.         if ( !twig_test_empty(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse419), "customFields", [], "any"falsefalsefalse419), "custom_pdp_content_file_path", [], "any"falsefalsefalse419))) {
  982.             // line 423
  983.             echo "                
  984.                 ";
  985.         }
  986.         // line 425
  987.         echo "\t";
  988.         if ( !twig_test_empty(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse425), "customFields", [], "any"falsefalsefalse425), "custom_pdp_content_file_path", [], "any"falsefalsefalse425))) {
  989.             // line 426
  990.             echo "\t
  991. \t<div id=\"produktbeschreibung\" class=\"is--neti-next-productdetailcms is--below-product_detail_description noindent\">
  992. \t
  993. \t <div class=\"more-text-btn show-more-height\">
  994. \t<h2 class=\"d-flex justify-content-center\"> ";
  995.             // line 430
  996.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.descriptionTitle"));
  997.             echo " </h2>
  998. \t
  999. \t<iframe frameborder=\"0\" id=\"child-iframe\" src=\"";
  1000.             // line 432
  1001.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse432), "customFields", [], "any"falsefalsefalse432), "custom_pdp_content_file_path", [], "any"falsefalsefalse432), "html"nulltrue);
  1002.             echo "\" name=\"iframe_a\" width=\"100%\" style=\"height: 8260px; width: 1360px;\"></iframe> 
  1003. \t ";
  1004.             // line 434
  1005.             echo "\t</div>
  1006. \t</div>
  1007. \t
  1008. \t
  1009. \t
  1010. \t";
  1011.         }
  1012.         // line 440
  1013.         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>
  1014.    <!--BEGIN > SCRIPTS:BASE -->
  1015.     <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\">&nbsp;</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>
  1016.     <!--END > SCRIPTS:BASE -->
  1017.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script>
  1018.          <script>
  1019.         \$(document).ready(function() {
  1020.             if(\$(\".more-text-btn\").hasClass(\"show-more-height\")) {
  1021.                 \$(\".more-text-btn\").removeClass(\"show-more-height\")
  1022.                 \$(\".mc-show-more\").html(\"Weniger anzeigen\");
  1023.             }
  1024.                 \$(\".mc-show-more\").click(function () {
  1025.                     if(\$(\".more-text-btn\").hasClass(\"show-more-height\")) {
  1026.                         \$(this).text(\"Weniger anzeigen\");
  1027.                     } else {
  1028.                         \$(this).text(\"Mehr anzeigen\");
  1029.                     }
  1030.                     \$(\".more-text-btn\").toggleClass(\"show-more-height\");
  1031.                 });
  1032.             });
  1033.     </script>
  1034.     
  1035.       <script>
  1036. \tlet iframe = document.querySelector(\"#child-iframe\");
  1037. \tiframe.addEventListener('load', function() {
  1038. \t\tif(iframe.contentDocument.body.scrollHeight) {
  1039. \t\t  let newheight = iframe.contentDocument.body.scrollHeight + 50 ;
  1040. \t\t\tiframe.style.height = newheight + 'px';
  1041. \t\t\tiframe.style.width = iframe.contentDocument.body.scrollWidth + 'px';
  1042. \t\t}
  1043. \t});\t
  1044. </script>
  1045. ";
  1046.         // line 475
  1047.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse475), "extensions", [], "any"falsefalsefalse475), "netiProductCms", [], "any"falsefalsefalse475) && sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse475), "extensions", [], "any"falsefalsefalse475), "netiProductCms", [], "any"falsefalsefalse475), "getBelowProductDescriptionContent", [], "method"falsefalsefalse475))) {
  1048.             // line 476
  1049.             echo "            ";
  1050.             $context['_parent'] = $context;
  1051.             $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "product", [], "any"falsefalsefalse476), "extensions", [], "any"falsefalsefalse476), "netiProductCms", [], "any"falsefalsefalse476), "getBelowProductDescriptionContent", [], "method"falsefalsefalse476));
  1052.             foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
  1053.                 // line 477
  1054.                 echo "                <div id=\"technische\" class=\"is--neti-next-productdetailcms is--below-product_description ";
  1055.                 echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetiNextProductDetailCms.config.belowDescriptionIndention"), "html"nulltrue);
  1056.                 echo "\" ";
  1057.                 if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetiNextProductDetailCms.config.belowDescriptionInlineStyle")) {
  1058.                     echo "style=\"";
  1059.                     echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"NetiNextProductDetailCms.config.belowDescriptionInlineStyle"), "html"nulltrue);
  1060.                     echo "\"";
  1061.                 }
  1062.                 echo ">
  1063.                     ";
  1064.                 // line 478
  1065.                 echo $context["content"];
  1066.                 echo "
  1067.                 </div>
  1068.             ";
  1069.             }
  1070.             $_parent $context['_parent'];
  1071.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
  1072.             $context array_intersect_key($context$_parent) + $_parent;
  1073.             // line 481
  1074.             echo "        ";
  1075.         }
  1076.         // line 482
  1077.         echo "         
  1078.                     ";
  1079.         // line 484
  1080.         if ((twig_length_filter($this->envsw_get_attribute($this->env$this->source, ($context["page"] ?? null), "crossSellings", [], "any"falsefalsefalse484)) > 0)) {
  1081.             // line 485
  1082.             echo "                        <div class=\"product-detail-tabs product-detail-cross-selling\">
  1083.                             ";
  1084.             // line 486
  1085.             $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
  1086. ($context["page"] ?? null), "crossSellings", [], "any"falsefalsefalse487)]));
  1087.             // line 489
  1088.             echo "                        </div>
  1089.                     ";
  1090.         }
  1091.         // line 491
  1092.         echo "                ";
  1093.         
  1094.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1095.         
  1096.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1097.     }
  1098.     public function getTemplateName()
  1099.     {
  1100.         return "@AmMacTrade/storefront/page/product-detail/index.html.twig";
  1101.     }
  1102.     public function isTraitable()
  1103.     {
  1104.         return false;
  1105.     }
  1106.     public function getDebugInfo()
  1107.     {
  1108.         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,);
  1109.     }
  1110.     public function getSourceContext()
  1111.     {
  1112.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  1113. {% block base_head %}
  1114.     {% sw_include '@Storefront/storefront/page/product-detail/meta.html.twig' %}
  1115. {% endblock %} 
  1116. {% block base_header %}
  1117. <div class=\"header-main-wrapper\">
  1118.     <header class=\"header-main\">
  1119.         <div class=\"top-bar-container\">
  1120.             <div class=\"container\">
  1121.                 {% sw_include '@Storefront/storefront/layout/header/top-bar.html.twig' %}
  1122.             </div>
  1123.         </div>
  1124.         {% block base_header_inner %}
  1125.             <div class=\"container\">
  1126.                 {% sw_include '@Storefront/storefront/layout/header/header.html.twig' %}
  1127.             </div>
  1128.         {% endblock %}
  1129.     </header>
  1130. {% endblock %}
  1131.   
  1132. {% block base_navigation %}
  1133.         <div class=\"nav-main\">
  1134.             {% block base_navigation_inner %}
  1135.                 {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  1136.             {% endblock %}
  1137.         </div>
  1138.     </div>
  1139. {% endblock %}
  1140. {#
  1141. {% block base_main_inner %}
  1142.     {% block page_product_detail_breadcrumb %}
  1143.         <div class=\"breadcrumb-container container-fluid\">
  1144.             <div class=\"breadcrumb product-breadcrumb container\">
  1145.                 {% sw_include '@Storefront/storefront/component/product/breadcrumb.html.twig' with {
  1146.                     navigationTree: page.header.navigation.tree,
  1147.                     categoryTree: page.product.categoryTree|last,
  1148.                     product: page.product
  1149.                 } only %}
  1150.             </div>
  1151.         </div>
  1152.     {% endblock %}
  1153.     {{ parent() }}
  1154. {% endblock %}
  1155. #}
  1156. {% block base_content %}
  1157.     {% block page_product_detail %}
  1158.         <div id=\"sticky-cart\">
  1159.             <div class=\"container\">
  1160.                 <div class=\"row\">
  1161.                     <div class=\"col-lg-2 smll-none\">
  1162.                         <div data-wi-id=\"wi-button-container\"></div>
  1163.                         <div class=\"product-title\">
  1164.                             {#{ page.product.translated.name }#}
  1165.                         </div>
  1166.                         {#
  1167.                         <div class=\"product-price\">
  1168.                             {% sw_include '@Storefront/storefront/page/product-detail/buy-widget-price.html.twig' %}
  1169.                         </div>#}
  1170.                     </div>
  1171.                     {% set category = page.header.navigation.active %}
  1172.                     <div class=\"col-lg-2 smll-none\">
  1173.                     {% if page.extensions['amMactradeap1'].get('keyApi') %}
  1174.                         <div class=\"stiky-cart-new-wrap
  1175.                                                 {% if category %}
  1176. {% set breadcrumbCategories = sw_breadcrumb_full(category, context.context) %}
  1177. {% for breadcrumbCategory in breadcrumbCategories %}
  1178. {% set key = breadcrumbCategory.id %}
  1179. {% set name = breadcrumbCategory.translated.name %}
  1180. {% if loop.index == 1 %}
  1181. {% if name == 'Zubehör' %}
  1182. d-none
  1183. {% endif %}
  1184. {% endif %}
  1185. {% endfor %}
  1186. {% endif %}
  1187.                         \">
  1188.                           <h3>Gutschrift für Ihr Altgerät</h3>
  1189.                           <div class=\"price-mc\"><p>zw.</p><h2 class=\"price_range\"> 30 â‚¬ - 735* </h2> <p>
  1190. {{ page.extensions['amMactradeap1'].get('keyApiText') }}
  1191.                           </p></div>
  1192.                           <a class=\"small-link\" target=\"_blank\" href=\"https://mactrade.kauft-an.de/mactrade_c/hilfe/\">Mehr Infos</a>
  1193.                         </div>
  1194.                         {% endif %}
  1195.                     </div>
  1196.                     <div class=\"col-lg-12 col-xl-8 d-flex justify-content-lg-between  justify-content-xl-end align-items-center\">
  1197.                         <div class=\"edu-information\">
  1198.                             <div class=\"edu-price-container\">
  1199.                              {% if context.salesChannel.id !='45be9f42765d42e8ae1137d1812040f4' && context.salesChannel.id !='4faca3b6a7f149cea7ade06ee340ce19' %}
  1200.                             
  1201.                                 {% if page.product.customFields.product_custom_fields_edu_discount %}
  1202.                                     {% set eduPrice = page.product.calculatedPrice.unitPrice / 100 * (100 - page.product.customFields.product_custom_fields_edu_discount) %}
  1203.                                     EDU: {{ eduPrice|number_format(2, ',', '.') }} â‚¬ *
  1204.                                 {% endif %}
  1205.                                 {% endif %}
  1206.                                 
  1207.                                 {% if context.salesChannel.id =='45be9f42765d42e8ae1137d1812040f4' || context.salesChannel.id =='4faca3b6a7f149cea7ade06ee340ce19' %}
  1208.                                 {% set price = page.product.calculatedPrices.first %}
  1209.                                 
  1210.                                                 {% if page.product.customFields.product_custom_fields_edu_discount %}
  1211.                     {% set eduPrice = price.unitPrice / 100 * (100 - page.product.customFields.product_custom_fields_edu_discount) %}
  1212.                     EDU: {{ eduPrice|number_format(2, ',', '.') }} â‚¬ *
  1213.                 {% endif %}
  1214.                 {% endif %}
  1215.                             </div>
  1216.                             <div class=\"delivery-container\">
  1217.                                 {% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
  1218.                             </div>
  1219.                         </div>
  1220.                         <div class=\"price-information\">
  1221.                             <div class=\"price-container\">{% sw_include '@Storefront/storefront/page/product-detail/buy-widget-price.html.twig' %}</div>
  1222.                             <div class=\"tax-container\">
  1223.                                 {% if context.taxState == \"gross\" %}
  1224.                                     {% set taxText = \"general.grossTaxInformation\"|trans|sw_sanitize %}
  1225.                                 {% else %}
  1226.                                     {% set taxText = \"general.netTaxInformation\"|trans|sw_sanitize %}
  1227.                                 {% endif %}
  1228.                                 <p class=\"product-detail-tax\">
  1229.                                     {% block page_product_detail_tax_link %}
  1230.                                         <a class=\"product-detail-tax-link\"
  1231.                                            href=\"/kundenservice/versandkosten/\"
  1232.                                            title=\"{{ taxText }}\" target=\"_blank\">
  1233.                                             {{ taxText }}
  1234.                                         </a>
  1235.                                     {% endblock %}
  1236.                                 </p>
  1237.                             </div>
  1238.                         </div>
  1239.                         <div id=\"sticky-cart-form\">
  1240.                             {% sw_include '@Storefront/storefront/page/product-detail/buy-widget-form.html.twig' %}
  1241.                         </div>
  1242.                     </div>
  1243.                 </div>
  1244.             </div>
  1245.         </div>
  1246.         
  1247.         {# {% if page.product.seoCategory.parentId == '08c95ea3cfc346cdadd32ee1d5f8a408' %}
  1248.             <div class=\"detail-banner\" data-category=\"{{ page.product.seoCategory.translated.name }}\" data-parent-category=\"{{ page.product.seoCategory.parentId }}\">
  1249.                 <div class=\"hidden-phone\">
  1250.                     <a href=\"/blackweek-mac\" target=\"_blank\">
  1251.                         <img src=\"https://www.mactrade.de/media/23/9b/ba/1637868262/BW_bannerproduktseite.webp\" alt=\"\">
  1252.                     </a>
  1253.                 </div>
  1254.                 <div class=\"hidden-tablet hidden-desktop\">
  1255.                     <a href=\"/blackweek-mac\" target=\"_blank\">
  1256.                         <img src=\"https://www.mactrade.de/media/92/42/82/1637868262/BW_bannerproduktseite_mobil.webp\" alt=\"\">
  1257.                     </a>
  1258.                 </div>
  1259.             </div>
  1260.         {% endif %} #}
  1261.        
  1262.         <div class=\"product-detail\"
  1263.              itemscope
  1264.              itemtype=\"https://schema.org/Product\">
  1265.             {% block page_product_detail_inner %}
  1266.                 {% block page_product_detail_content %}
  1267.                     <div class=\"product-detail-content\">
  1268.                         {% block page_product_detail_headline %}
  1269.                             <div class=\"row align-items-start product-detail-headline\">
  1270.                                 {% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
  1271.                                 {% if page.product.customFields.product_custom_fields_pdp_promobanner_macbook_air == true %}
  1272.                                     <div class=\"product-detail-promotion-banderole\">
  1273.                                         {{ \"detail.promotion-banner.macbook-air\"|trans|raw }}
  1274.                                     </div>
  1275.                                 {% elseif page.product.customFields.product_custom_fields_pdp_promobanner_macbook_pro13 == true %}
  1276.                                     <div class=\"product-detail-promotion-banderole\">
  1277.                                         {{ \"detail.promotion-banner.macbook-pro13\"|trans|raw }}
  1278.                                     </div>
  1279.                                 {% elseif page.product.customFields.product_custom_fields_pdp_promobanner_macbook_pro14 == true %}
  1280.                                     <div class=\"product-detail-promotion-banderole\">
  1281.                                         {{ \"detail.promotion-banner.macbook-pro14\"|trans|raw }}
  1282.                                     </div>
  1283.                                 {% elseif page.product.customFields.product_custom_fields_pdp_promobanner_macbook_pro_16 == true %}
  1284.                                     <div class=\"product-detail-promotion-banderole\">
  1285.                                         {{ \"detail.promotion-banner.macbook-pro16\"|trans|raw }}
  1286.                                     </div>
  1287.                                 {% elseif page.product.customFields.product_custom_fields_pdp_promobanner_imac24 == true %}
  1288.                                     <div class=\"product-detail-promotion-banderole\">
  1289.                                         {{ \"detail.promotion-banner.imac24\"|trans|raw }}
  1290.                                     </div>
  1291.                                 {% elseif page.product.customFields.product_custom_fields_pdp_promobanner_imac27 == true %}
  1292.                                     <div class=\"product-detail-promotion-banderole\">
  1293.                                         {{ \"detail.promotion-banner.imac27\"|trans|raw }}
  1294.                                     </div>
  1295.                                 {% elseif page.product.customFields.product_custom_fields_pdp_promobanner_ipad == true %}
  1296.                                     <div class=\"product-detail-promotion-banderole\">
  1297.                                         {{ \"detail.promotion-banner.ipad\"|trans|raw }}
  1298.                                     </div>
  1299.                                 {% elseif page.product.customFields.product_custom_fields_pdp_promobanner_ipad_pro == true %}
  1300.                                     <div class=\"product-detail-promotion-banderole\">
  1301.                                         {{ \"detail.promotion-banner.ipad-pro\"|trans|raw }}
  1302.                                     </div>
  1303.                                 {% elseif page.product.customFields.product_custom_fields_pdp_promobanner_mac_mini == true %}
  1304.                                     <div class=\"product-detail-promotion-banderole\">
  1305.                                         {{ \"detail.promotion-banner.mac-mini\"|trans|raw }}
  1306.                                     </div>
  1307.                                 {% elseif page.product.customFields.product_custom_fields_pdp_promobanner_mac_studio == true %}
  1308.                                     <div class=\"product-detail-promotion-banderole\">
  1309.                                         {{ \"detail.promotion-banner.mac-studio\"|trans|raw }}
  1310.                                     </div>
  1311.                                 {% endif %}
  1312.                             </div>
  1313.                         {% endblock %}
  1314.                         {% set mediaItems = page.product.media.media %}
  1315.                         {% block page_product_detail_main %}
  1316.                             <div class=\"row product-detail-main\">
  1317.                                 {% block page_product_detail_media %}
  1318.                                     <div class=\"col-lg-6 product-detail-media\">
  1319.                                         {#{% if page.product.customFields.product_custom_fields_subscription == true and page.product.restockTime <= 10 %}#}
  1320.                                         {% 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 %}
  1321.                                             <div class=\"abo-badge\">
  1322.                                                 <img src=\"{{ asset('assets/images/badge_abo.svg', \"@AmMacTrade\") }}\" alt=\"Abo\" height=\"50\" width=\"50\">
  1323.                                             </div>
  1324.                                         {% endif %}
  1325.                                         {% if page.product.customFields.product_custom_fields_batch_protect == true %}
  1326.                                             <div class=\"protect-badge\">
  1327.                                                 <a class=\"link-new-window\" href=\"/garantiepaket\">
  1328.                                                     <img src=\"https://www.mactrade.de/media/a1/g0/f0/1644231456/stoerer-garantie.png\" alt=\"\">
  1329.                                                 </a>
  1330.                                             </div>
  1331.                                         {% endif %}
  1332.                                         {% if page.product.media %}
  1333.                                             {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  1334.                                                 'mediaItems': mediaItems,
  1335.                                                 'zoom': true,
  1336.                                                 'zoomModal': true,
  1337.                                                 'displayMode': 'contain',
  1338.                                                 'gutter': 5,
  1339.                                                 'minHeight': '430px',
  1340.                                                 'navigationArrows': 'inside',
  1341.                                                 'navigationDots': 'inside',
  1342.                                                 'galleryPosition': 'left',
  1343.                                                 'isProduct': true,
  1344.                                                 'fallbackImageTitle': page.product.translated.name,
  1345.                                                 'startIndexThumbnails': page.product.cover.position,
  1346.                                                 'startIndexSlider': page.product.cover.position
  1347.                                             } %}
  1348.                                         {% endif %}
  1349.                                     </div>
  1350.                                 {% endblock %}
  1351.                                 {% block page_product_detail_buy %}
  1352.                                     <div class=\"col-lg-5 offset-lg-1 product-detail-buy\">
  1353.                                         {% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  1354.                                     </div>
  1355.                                 {% endblock %}
  1356.                             </div>
  1357.                         {% endblock %}
  1358.                     </div>
  1359.                 {% endblock %}
  1360. \t
  1361.                 {% block page_product_detail_tabs %}
  1362. {# start tabs #}
  1363.             
  1364.             <div class=\"m1 menu\">
  1365.             <div id=\"menu-center\">
  1366.                 <ul>
  1367.                     <li class=\"active\"><a href=\"#kombinierbare\">Kombinierbare Aktionen</a></li>
  1368.                     <li><a href=\"#produktbeschreibung\">Produktbeschreibung</a></li>
  1369.                     <li><a href=\"#technische\">Technische Daten</a></li>
  1370.                 </ul>
  1371.             </div>
  1372.         </div>
  1373.             
  1374.             {# end tabs #}
  1375.             {# start tab js #}
  1376.               <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script>
  1377.               <script>
  1378.              
  1379. let onScroll = function(event){
  1380.     var scrollPos = \$(document).scrollTop();
  1381.     \$('#menu-center a').each(function () {
  1382.         var currLink = \$(this);
  1383.         var refElement = \$(currLink.attr(\"href\"));
  1384.         scrollPos += 150;
  1385.         if (refElement.position().top <= scrollPos && refElement.position().top + refElement.height() > scrollPos) {
  1386.             \$('#menu-center ul a').parent().removeClass(\"active\");
  1387.             currLink.parent().addClass(\"active\");
  1388.         }
  1389.         else{
  1390.             currLink.parent().removeClass(\"active\");
  1391.         }
  1392.     });
  1393. }
  1394.  \$(document).ready(function () {
  1395.     \$(document).on(\"scroll.custom\", onScroll);
  1396.     
  1397.     //smoothscroll
  1398.     \$('a[href^=\"#\"]').on('click', function (e) {
  1399.         e.preventDefault();
  1400.         \$(document).off(\"scroll.custom\");
  1401.         
  1402.         \$('a').each(function () {
  1403.             \$(this).parent().removeClass('active');
  1404.         })
  1405.         \$(this).parent().addClass('active');
  1406.       
  1407.         var target = this.hash;
  1408.        e.preventDefault();
  1409.             var pos = \$(this).attr('href');
  1410.             doScrolling(pos, 1000);
  1411.         
  1412.     });
  1413. });
  1414. function doScrolling(element, duration) {
  1415.             var startingY = window.pageYOffset
  1416.             var elementY = getElementY(element) + 70
  1417.             var targetY = document.body.scrollHeight - elementY < window.innerHeight ? document.body.scrollHeight - window.innerHeight : elementY
  1418.             var diff = (targetY - (130 + 85)) - startingY
  1419.             var easing = function(t) {
  1420.                 return t < .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1
  1421.             }
  1422.             var start
  1423.             if (!diff)
  1424.                 return
  1425.             window.requestAnimationFrame(function step(timestamp) {
  1426.                 if (!start)
  1427.                     start = timestamp
  1428.                 var time = timestamp - start
  1429.                 var percent = Math.min(time / duration, 1)
  1430.                 percent = easing(percent)
  1431.                 window.scrollTo(0, startingY + diff * percent)
  1432.                 if (time < duration) {
  1433.                     window.requestAnimationFrame(step);
  1434.                 } else {
  1435.                     \$(element).parent().addClass(\"active\").siblings().removeClass(\"active\");
  1436.                      \$(document).on(\"scroll.custom\", onScroll);
  1437.                 }
  1438.             })
  1439.         }
  1440.          function getElementY(query) {
  1441.             return window.pageYOffset + document.querySelector(query).getBoundingClientRect().top
  1442.         }
  1443.               </script>
  1444.               {# end tab js #}
  1445. \t<div class=\"product-detail-tabs tb-pd d-none\">
  1446. \t\t{% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
  1447. \t</div>
  1448.                     <div class=\"product-detail-tabs\">
  1449.                         {% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
  1450.                     </div>
  1451.                     {#<div class=\"product-detail-tabs properties\">
  1452.                         {% sw_include '@Storefront/storefront/page/product-detail/tabs-properties.html.twig' %}
  1453.                     </div>#}
  1454.                 {% endblock %}
  1455.                 {% block page_product_detail_cross_selling %}
  1456.                       {% if page.product.extensions.netiProductCms and page.product.extensions.netiProductCms.getReplaceProductDetailDescriptionContent() %}
  1457.             <div class=\"product-detail-description-text 6666666666\" itemprop=\"description\">
  1458.                 {% for content in page.product.extensions.netiProductCms.getReplaceProductDetailDescriptionContent() %}
  1459.                     <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 %}>
  1460.                         {{ content|raw }}
  1461.                     </div>
  1462.                 {% endfor %}
  1463.             </div>
  1464.     {% endif %}
  1465.     
  1466.      {% if page.product.extensions.netiProductCms and page.product.extensions.netiProductCms.getAboveProductDetailDescriptionContent() %}
  1467.         
  1468.             {% for content in page.product.extensions.netiProductCms.getAboveProductDetailDescriptionContent() %}
  1469.                 <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 %}>
  1470.                     {{ content|raw }}
  1471.                 </div>
  1472.             {% endfor %}
  1473.         
  1474.     {% endif %}
  1475.     
  1476.     {% if page.product.extensions.netiProductCms and page.product.extensions.netiProductCms.getAboveProductDescriptionContent() %}
  1477.             {% for content in page.product.extensions.netiProductCms.getAboveProductDescriptionContent() %}
  1478.                 <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 %}>
  1479.                     {{ content|raw }}
  1480.                 </div>
  1481.             {% endfor %}
  1482.         {% endif %}
  1483.         
  1484.         
  1485.         
  1486. \t{% if page.product.customFields.custom_pdp_content_file_path is empty  %}
  1487. <div id=\"produktbeschreibung\" >
  1488. <div class=\"more-text-btn show-more-height\">
  1489. <h3 class=\"d-flex justify-content-center\">{{ \"detail.descriptionTitle\"|trans|sw_sanitize }} </h3>
  1490. \t{{ page.product.translated.description|raw }} 
  1491. </div>
  1492. </div>
  1493. \t{% endif %}
  1494. \t{% if page.product.customFields.custom_pdp_content_file_path is not empty  %}
  1495. {#<div class=\"h3 product-detail-description-title\">
  1496.                     {{ \"detail.descriptionTitle\"|trans|sw_sanitize }} \"{{ page.product.translated.name }}\"
  1497.                 </div> #}
  1498.                 
  1499.                 {% endif %}
  1500. \t{% if page.product.customFields.custom_pdp_content_file_path is not empty  %}
  1501. \t
  1502. \t<div id=\"produktbeschreibung\" class=\"is--neti-next-productdetailcms is--below-product_detail_description noindent\">
  1503. \t
  1504. \t <div class=\"more-text-btn show-more-height\">
  1505. \t<h2 class=\"d-flex justify-content-center\"> {{ \"detail.descriptionTitle\"|trans|sw_sanitize }} </h2>
  1506. \t
  1507. \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> 
  1508. \t {# {{ productpdp|raw }}  #}
  1509. \t</div>
  1510. \t</div>
  1511. \t
  1512. \t
  1513. \t
  1514. \t{% endif %}
  1515. \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>
  1516.    <!--BEGIN > SCRIPTS:BASE -->
  1517.     <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\">&nbsp;</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>
  1518.     <!--END > SCRIPTS:BASE -->
  1519.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script>
  1520.          <script>
  1521.         \$(document).ready(function() {
  1522.             if(\$(\".more-text-btn\").hasClass(\"show-more-height\")) {
  1523.                 \$(\".more-text-btn\").removeClass(\"show-more-height\")
  1524.                 \$(\".mc-show-more\").html(\"Weniger anzeigen\");
  1525.             }
  1526.                 \$(\".mc-show-more\").click(function () {
  1527.                     if(\$(\".more-text-btn\").hasClass(\"show-more-height\")) {
  1528.                         \$(this).text(\"Weniger anzeigen\");
  1529.                     } else {
  1530.                         \$(this).text(\"Mehr anzeigen\");
  1531.                     }
  1532.                     \$(\".more-text-btn\").toggleClass(\"show-more-height\");
  1533.                 });
  1534.             });
  1535.     </script>
  1536.     
  1537.       <script>
  1538. \tlet iframe = document.querySelector(\"#child-iframe\");
  1539. \tiframe.addEventListener('load', function() {
  1540. \t\tif(iframe.contentDocument.body.scrollHeight) {
  1541. \t\t  let newheight = iframe.contentDocument.body.scrollHeight + 50 ;
  1542. \t\t\tiframe.style.height = newheight + 'px';
  1543. \t\t\tiframe.style.width = iframe.contentDocument.body.scrollWidth + 'px';
  1544. \t\t}
  1545. \t});\t
  1546. </script>
  1547. {% if page.product.extensions.netiProductCms and page.product.extensions.netiProductCms.getBelowProductDescriptionContent() %}
  1548.             {% for content in page.product.extensions.netiProductCms.getBelowProductDescriptionContent() %}
  1549.                 <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 %}>
  1550.                     {{ content|raw }}
  1551.                 </div>
  1552.             {% endfor %}
  1553.         {% endif %}
  1554.          
  1555.                     {% if page.crossSellings|length > 0 %}
  1556.                         <div class=\"product-detail-tabs product-detail-cross-selling\">
  1557.                             {% sw_include '@Storefront/storefront/page/product-detail/cross-selling/tabs.html.twig' with {
  1558.                                 crossSellings: page.crossSellings
  1559.                             } only %}
  1560.                         </div>
  1561.                     {% endif %}
  1562.                 {% endblock %}
  1563.             {% endblock %}
  1564.         </div>
  1565.     {% endblock %}
  1566. {% endblock %}
  1567. ""@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");
  1568.     }
  1569. }