var/cache/dev_h00fd8923ecf393ec0b25403e00167bec/twig/27/27ee71901f1e7cc1581f2c3f4c80a42c70b0af527a268ae77f749cef86f8c811.php line 102

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. /* @Storefront/storefront/page/product-detail/review/review.html.twig */
  16. class __TwigTemplate_66b0b83333c5856f43fb3abf51b82656 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.             'utilities_offcanvas_content' => [$this'block_utilities_offcanvas_content'],
  26.             'page_product_detail_review_container' => [$this'block_page_product_detail_review_container'],
  27.             'page_product_detail_review_tab_pane' => [$this'block_page_product_detail_review_tab_pane'],
  28.             'page_product_detail_review_aside' => [$this'block_page_product_detail_review_aside'],
  29.             'page_product_detail_review_widget_container' => [$this'block_page_product_detail_review_widget_container'],
  30.             'page_product_detail_review_main' => [$this'block_page_product_detail_review_main'],
  31.             'page_product_detail_review_alert' => [$this'block_page_product_detail_review_alert'],
  32.             'page_product_detail_review_form_container' => [$this'block_page_product_detail_review_form_container'],
  33.             'page_product_detail_review_list_container' => [$this'block_page_product_detail_review_list_container'],
  34.             'page_product_detail_review_list' => [$this'block_page_product_detail_review_list'],
  35.             'page_product_detail_review_list_actions' => [$this'block_page_product_detail_review_list_actions'],
  36.             'page_product_detail_review_list_action_language' => [$this'block_page_product_detail_review_list_action_language'],
  37.             'page_product_detail_review_list_action_language_csrf' => [$this'block_page_product_detail_review_list_action_language_csrf'],
  38.             'page_product_detail_review_list_action_sortby' => [$this'block_page_product_detail_review_list_action_sortby'],
  39.             'page_product_detail_review_list_action_sortby_form' => [$this'block_page_product_detail_review_list_action_sortby_form'],
  40.             'page_product_detail_review_list_action_sortby_form_csrf' => [$this'block_page_product_detail_review_list_action_sortby_form_csrf'],
  41.             'page_product_detail_review_list_action_sortby_label' => [$this'block_page_product_detail_review_list_action_sortby_label'],
  42.             'page_product_detail_review_list_action_sortby_select' => [$this'block_page_product_detail_review_list_action_sortby_select'],
  43.             'page_product_detail_review_list_content' => [$this'block_page_product_detail_review_list_content'],
  44.             'page_product_detail_review_list_paging' => [$this'block_page_product_detail_review_list_paging'],
  45.             'page_product_detail_review_list_paging_form' => [$this'block_page_product_detail_review_list_paging_form'],
  46.             'page_product_detail_review_list_paging_csrf' => [$this'block_page_product_detail_review_list_paging_csrf'],
  47.             'page_product_detail_review_list_empty' => [$this'block_page_product_detail_review_list_empty'],
  48.         ];
  49.     }
  50.     protected function doGetParent(array $context)
  51.     {
  52.         // line 2
  53.         return "@Storefront/storefront/utilities/offcanvas.html.twig";
  54.     }
  55.     protected function doDisplay(array $context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/page/product-detail/review/review.html.twig"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/page/product-detail/review/review.html.twig"));
  62.         $this->parent $this->loadTemplate("@Storefront/storefront/utilities/offcanvas.html.twig""@Storefront/storefront/page/product-detail/review/review.html.twig"2);
  63.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.         
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68.     }
  69.     // line 3
  70.     public function block_utilities_offcanvas_content($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_content"));
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_content"));
  77.         // line 4
  78.         echo "\t";
  79.         $this->displayBlock('page_product_detail_review_container'$context$blocks);
  80.         
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  82.         
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  84.     }
  85.     public function block_page_product_detail_review_container($context, array $blocks = [])
  86.     {
  87.         $macros $this->macros;
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_container"));
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_container"));
  92.         // line 5
  93.         echo "
  94. \t\t";
  95.         // line 7
  96.         echo "\t\t";
  97.         $context["reviewsPerListPage"] = 10;
  98.         // line 8
  99.         echo "
  100. \t\t";
  101.         // line 10
  102.         echo "\t\t";
  103.         $context["currentListPage"] = 1;
  104.         // line 11
  105.         echo "
  106.         ";
  107.         // line 12
  108.         $context["productReviewCount"] = sw_get_attribute($this->env$this->source, ($context["reviews"] ?? null), "totalReviews", [], "any"falsefalsefalse12);
  109.         // line 13
  110.         echo "
  111. \t\t";
  112.         // line 14
  113.         if ((($context["productReviewCount"] ?? null) > 0)) {
  114.             // line 15
  115.             echo "            ";
  116.             $context["productAvgRating"] = twig_round(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["reviews"] ?? null), "matrix", [], "any"falsefalsefalse15), "averageRating", [], "any"falsefalsefalse15), 2"common");
  117.             // line 16
  118.             echo "\t\t";
  119.         }
  120.         // line 17
  121.         echo "
  122. \t\t";
  123.         // line 19
  124.         echo "\t\t";
  125.         $context["foreignReviewsCount"] = 150;
  126.         // line 20
  127.         echo "
  128. \t\t<div class=\"product-detail-review tab-pane-container\">
  129. \t\t\t";
  130.         // line 22
  131.         $this->displayBlock('page_product_detail_review_tab_pane'$context$blocks);
  132.         // line 277
  133.         echo "\t\t</div>
  134. \t";
  135.         
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  137.         
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139.     }
  140.     // line 22
  141.     public function block_page_product_detail_review_tab_pane($context, array $blocks = [])
  142.     {
  143.         $macros $this->macros;
  144.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  145.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_tab_pane"));
  146.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_tab_pane"));
  148.         // line 23
  149.         echo "                <div class=\"row product-detail-review-content js-review-container\">
  150. \t\t\t\t\t";
  151.         // line 24
  152.         $this->displayBlock('page_product_detail_review_aside'$context$blocks);
  153.         // line 31
  154.         echo "
  155. \t\t\t\t\t";
  156.         // line 32
  157.         $this->displayBlock('page_product_detail_review_main'$context$blocks);
  158.         // line 275
  159.         echo "\t\t\t\t</div>
  160. \t\t\t";
  161.         
  162.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  163.         
  164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  165.     }
  166.     // line 24
  167.     public function block_page_product_detail_review_aside($context, array $blocks = [])
  168.     {
  169.         $macros $this->macros;
  170.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  171.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_aside"));
  172.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  173.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_aside"));
  174.         // line 25
  175.         echo "\t\t\t\t\t\t<div class=\"col-sm-4\">
  176. \t\t\t\t\t\t\t";
  177.         // line 26
  178.         $this->displayBlock('page_product_detail_review_widget_container'$context$blocks);
  179.         // line 29
  180.         echo "\t\t\t\t\t\t</div>
  181. \t\t\t\t\t";
  182.         
  183.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  184.         
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  186.     }
  187.     // line 26
  188.     public function block_page_product_detail_review_widget_container($context, array $blocks = [])
  189.     {
  190.         $macros $this->macros;
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_widget_container"));
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_widget_container"));
  195.         // line 27
  196.         echo "\t\t\t\t\t\t\t\t";
  197.         $this->loadTemplate("@Storefront/storefront/page/product-detail/review/review-widget.html.twig""@Storefront/storefront/page/product-detail/review/review.html.twig"27)->display($context);
  198.         // line 28
  199.         echo "\t\t\t\t\t\t\t";
  200.         
  201.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  202.         
  203.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  204.     }
  205.     // line 32
  206.     public function block_page_product_detail_review_main($context, array $blocks = [])
  207.     {
  208.         $macros $this->macros;
  209.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  210.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_main"));
  211.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  212.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_main"));
  213.         // line 33
  214.         echo "\t\t\t\t\t\t<div class=\"col product-detail-review-main js-review-content\">
  215. \t\t\t\t\t\t\t";
  216.         // line 34
  217.         $this->displayBlock('page_product_detail_review_alert'$context$blocks);
  218.         // line 52
  219.         echo "
  220. \t\t\t\t\t\t\t";
  221.         // line 53
  222.         $this->displayBlock('page_product_detail_review_form_container'$context$blocks);
  223.         // line 67
  224.         echo "
  225. \t\t\t\t\t\t\t";
  226.         // line 68
  227.         $this->displayBlock('page_product_detail_review_list_container'$context$blocks);
  228.         // line 273
  229.         echo "\t\t\t\t\t\t</div>
  230. \t\t\t\t\t";
  231.         
  232.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  233.         
  234.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  235.     }
  236.     // line 34
  237.     public function block_page_product_detail_review_alert($context, array $blocks = [])
  238.     {
  239.         $macros $this->macros;
  240.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  241.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_alert"));
  242.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  243.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_alert"));
  244.         // line 35
  245.         echo "\t\t\t\t\t\t\t\t";
  246.         if ((($context["ratingSuccess"] ?? null) == 1)) {
  247.             // line 36
  248.             echo "\t\t\t\t\t\t\t\t\t";
  249.             $this->loadTemplate("@Storefront/storefront/utilities/alert.html.twig""@Storefront/storefront/page/product-detail/review/review.html.twig"36)->display(twig_array_merge($context, ["type" => "success""content" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewFormSuccessAlert"))]));
  250.             // line 40
  251.             echo "                                ";
  252.         } elseif ((($context["ratingSuccess"] ?? null) == 2)) {
  253.             // line 41
  254.             echo "                                    ";
  255.             $this->loadTemplate("@Storefront/storefront/utilities/alert.html.twig""@Storefront/storefront/page/product-detail/review/review.html.twig"41)->display(twig_array_merge($context, ["type" => "success""content" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewFormSuccessUpdateAlert"))]));
  256.             // line 45
  257.             echo "\t\t\t\t\t\t\t\t";
  258.         } elseif ((($context["ratingSuccess"] ?? null) ==  -1)) {
  259.             // line 46
  260.             echo "\t\t\t\t\t\t\t\t\t";
  261.             $this->loadTemplate("@Storefront/storefront/utilities/alert.html.twig""@Storefront/storefront/page/product-detail/review/review.html.twig"46)->display(twig_array_merge($context, ["type" => "danger""content" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewFormErrorAlert"))]));
  262.             // line 50
  263.             echo "\t\t\t\t\t\t\t\t";
  264.         }
  265.         // line 51
  266.         echo "\t\t\t\t\t\t\t";
  267.         
  268.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  269.         
  270.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  271.     }
  272.     // line 53
  273.     public function block_page_product_detail_review_form_container($context, array $blocks = [])
  274.     {
  275.         $macros $this->macros;
  276.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  277.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_form_container"));
  278.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  279.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_form_container"));
  280.         // line 54
  281.         echo "\t\t\t\t\t\t\t\t<div class=\"collapse multi-collapse";
  282.         if ((($context["ratingSuccess"] ?? null) ==  -1)) {
  283.             echo " show";
  284.         }
  285.         echo "\"
  286. \t\t\t\t\t\t\t\t\t id=\"review-form\">
  287. \t\t\t\t\t\t\t\t\t";
  288.         // line 56
  289.         if ((sw_get_attribute($this->env$this->source, ($context["context"] ?? null), "customer", [], "any"falsefalsefalse56) &&  !sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "customer", [], "any"falsefalsefalse56), "guest", [], "any"falsefalsefalse56))) {
  290.             // line 57
  291.             echo "\t\t\t\t\t\t\t\t\t\t<div class=\"product-detail-review-form\">
  292. \t\t\t\t\t\t\t\t\t\t\t";
  293.             // line 58
  294.             $this->loadTemplate("@Storefront/storefront/page/product-detail/review/review-form.html.twig""@Storefront/storefront/page/product-detail/review/review.html.twig"58)->display($context);
  295.             // line 59
  296.             echo "\t\t\t\t\t\t\t\t\t\t</div>
  297. \t\t\t\t\t\t\t\t\t";
  298.         } else {
  299.             // line 61
  300.             echo "\t\t\t\t\t\t\t\t\t\t<div class=\"product-detail-review-login\">
  301. \t\t\t\t\t\t\t\t\t\t\t";
  302.             // line 62
  303.             $this->loadTemplate("@Storefront/storefront/page/product-detail/review/review-login.html.twig""@Storefront/storefront/page/product-detail/review/review.html.twig"62)->display($context);
  304.             // line 63
  305.             echo "\t\t\t\t\t\t\t\t\t\t</div>
  306. \t\t\t\t\t\t\t\t\t";
  307.         }
  308.         // line 65
  309.         echo "\t\t\t\t\t\t\t\t</div>
  310. \t\t\t\t\t\t\t";
  311.         
  312.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  313.         
  314.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  315.     }
  316.     // line 68
  317.     public function block_page_product_detail_review_list_container($context, array $blocks = [])
  318.     {
  319.         $macros $this->macros;
  320.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  321.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_container"));
  322.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  323.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_container"));
  324.         // line 69
  325.         echo "\t\t\t\t\t\t\t\t<div id=\"review-list\"
  326. \t\t\t\t\t\t\t\t\t class=\"collapse multi-collapse product-detail-review-list";
  327.         // line 70
  328.         if ((($context["ratingSuccess"] ?? null) !=  -1)) {
  329.             echo " show";
  330.         }
  331.         echo "\">
  332.                                     ";
  333.         // line 72
  334.         $this->displayBlock('page_product_detail_review_list'$context$blocks);
  335.         // line 262
  336.         echo "
  337.                                     ";
  338.         // line 263
  339.         if ((($context["productReviewCount"] ?? null) <= 0)) {
  340.             // line 264
  341.             echo "                                        ";
  342.             $this->displayBlock('page_product_detail_review_list_empty'$context$blocks);
  343.             // line 270
  344.             echo "                                    ";
  345.         }
  346.         // line 271
  347.         echo "\t\t\t\t\t\t\t\t</div>
  348. \t\t\t\t\t\t\t";
  349.         
  350.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  351.         
  352.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  353.     }
  354.     // line 72
  355.     public function block_page_product_detail_review_list($context, array $blocks = [])
  356.     {
  357.         $macros $this->macros;
  358.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  359.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list"));
  360.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  361.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list"));
  362.         // line 73
  363.         echo "                                        ";
  364.         $this->displayBlock('page_product_detail_review_list_actions'$context$blocks);
  365.         // line 201
  366.         echo "
  367.                                         ";
  368.         // line 202
  369.         $this->displayBlock('page_product_detail_review_list_content'$context$blocks);
  370.         // line 209
  371.         echo "
  372.                                         ";
  373.         // line 210
  374.         $this->displayBlock('page_product_detail_review_list_paging'$context$blocks);
  375.         // line 261
  376.         echo "                                    ";
  377.         
  378.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  379.         
  380.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  381.     }
  382.     // line 73
  383.     public function block_page_product_detail_review_list_actions($context, array $blocks = [])
  384.     {
  385.         $macros $this->macros;
  386.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  387.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_actions"));
  388.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  389.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_actions"));
  390.         // line 74
  391.         echo "                                            <div class=\"row align-items-center product-detail-review-actions\">
  392.                                                 ";
  393.         // line 75
  394.         $context["formAjaxSubmitOptions"] = ["replaceSelectors" => [=> ".js-review-container"], "submitOnChange" => true];
  395.         // line 79
  396.         echo "
  397.                                                 ";
  398.         // line 80
  399.         $this->displayBlock('page_product_detail_review_list_action_language'$context$blocks);
  400.         // line 119
  401.         echo "
  402.                                                 ";
  403.         // line 120
  404.         $this->displayBlock('page_product_detail_review_list_action_sortby'$context$blocks);
  405.         // line 182
  406.         echo "                                            </div>
  407.                                             <hr/>
  408.                                             ";
  409.         // line 187
  410.         echo "                                            ";
  411.         $context["listReviewsCount"] = (($context["productReviewCount"] ?? null) - ($context["foreignReviewsCount"] ?? null));
  412.         // line 188
  413.         echo "                                            ";
  414.         // line 189
  415.         echo "                                            ";
  416.         if ((($context["listReviewsCount"] ?? null) < 0)) {
  417.             // line 190
  418.             echo "                                                ";
  419.             $context["listReviewsCount"] = 0;
  420.             // line 191
  421.             echo "                                            ";
  422.         }
  423.         // line 192
  424.         echo "
  425.                                             <p class=\"text-right product-detail-review-counter\">
  426.                                                 ";
  427.         // line 194
  428.         if (((($context["listReviewsCount"] ?? null) > 1) && (($context["listReviewsCount"] ?? null) > ($context["reviewsPerListPage"] ?? null)))) {
  429.             // line 195
  430.             echo "                                                    <small><strong>";
  431.             echo sw_escape_filter($this->env, ($context["currentListPage"] ?? null), "html"nulltrue);
  432.             echo "</strong> - <strong>";
  433.             echo sw_escape_filter($this->env, ($context["reviewsPerListPage"] ?? null), "html"nulltrue);
  434.             echo "</strong> ";
  435.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewCountBefore"));
  436.             echo " <strong>";
  437.             echo sw_escape_filter($this->env, ($context["listReviewsCount"] ?? null), "html"nulltrue);
  438.             echo "</strong> ";
  439.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewCountAfter", ["%count%" => ($context["listReviewsCount"] ?? null)]));
  440.             echo "</small>
  441.                                                 ";
  442.         } elseif ((        // line 196
  443. ($context["listReviewsCount"] ?? null) > 0)) {
  444.             echo " ";
  445.             // line 197
  446.             echo "                                                    <small><strong>";
  447.             echo sw_escape_filter($this->env, ($context["listReviewsCount"] ?? null), "html"nulltrue);
  448.             echo "</strong> ";
  449.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewCountAfter", ["%count%" => ($context["listReviewsCount"] ?? null)]));
  450.             echo "</small>
  451.                                                 ";
  452.         }
  453.         // line 199
  454.         echo "                                            </p>
  455.                                         ";
  456.         
  457.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  458.         
  459.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  460.     }
  461.     // line 80
  462.     public function block_page_product_detail_review_list_action_language($context, array $blocks = [])
  463.     {
  464.         $macros $this->macros;
  465.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  466.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_action_language"));
  467.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  468.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_action_language"));
  469.         // line 81
  470.         echo "                                                    <div class=\"col product-detail-review-language\">
  471.                                                         ";
  472.         // line 82
  473.         if ((($context["foreignReviewsCount"] ?? null) > 0)) {
  474.             // line 83
  475.             echo "                                                            <form class=\"product-detail-review-language-form\"
  476.                                                                   action=\"";
  477.             // line 84
  478.             echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.product.reviews", ["productId" => sw_get_attribute($this->env$this->source, ($context["reviews"] ?? null), "productId", [], "any"falsefalsefalse84), "parentId" => sw_get_attribute($this->env$this->source, ($context["reviews"] ?? null), "parentId", [], "any"falsefalsefalse84)]), "html"nulltrue);
  479.             echo "\"
  480.                                                                   method=\"post\"
  481.                                                                   data-form-ajax-submit=\"true\"
  482.                                                                   data-form-ajax-submit-options='";
  483.             // line 87
  484.             echo sw_escape_filter($this->env$this->env->getFilter('json_encode')->getCallable()(($context["formAjaxSubmitOptions"] ?? null)), "html"nulltrue);
  485.             echo "'>
  486.                                                                 ";
  487.             // line 90
  488.             echo "                                                                ";
  489.             $this->displayBlock('page_product_detail_review_list_action_language_csrf'$context$blocks);
  490.             // line 93
  491.             echo "
  492.                                                                 ";
  493.             // line 94
  494.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse94), "get", [=> "limit"], "method"falsefalsefalse94)) {
  495.                 // line 95
  496.                 echo "                                                                    <input type=\"hidden\" name=\"limit\" value=\"";
  497.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse95), "get", [=> "limit"], "method"falsefalsefalse95), "html"nulltrue);
  498.                 echo "\">
  499.                                                                 ";
  500.             }
  501.             // line 97
  502.             echo "
  503.                                                                 ";
  504.             // line 98
  505.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse98), "get", [=> "sort"], "method"falsefalsefalse98)) {
  506.                 // line 99
  507.                 echo "                                                                    <input type=\"hidden\" name=\"sort\" value=\"";
  508.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse99), "get", [=> "sort"], "method"falsefalsefalse99), "html"nulltrue);
  509.                 echo "\">
  510.                                                                 ";
  511.             }
  512.             // line 101
  513.             echo "
  514.                                                                 <div class=\"";
  515.             // line 102
  516.             echo sw_escape_filter($this->env, ($context["formSwitchWrapperClass"] ?? null), "html"nulltrue);
  517.             echo "\">
  518.                                                                     ";
  519.             // line 104
  520.             echo "                                                                    <input type=\"checkbox\"
  521.                                                                            class=\"";
  522.             // line 105
  523.             echo sw_escape_filter($this->env, ($context["formCheckInputClass"] ?? null), "html"nulltrue);
  524.             echo "\"
  525.                                                                            id=\"showForeignReviews\"
  526.                                                                            value=\"filter-language\"
  527.                                                                            name=\"language\"
  528.                                                                            ";
  529.             // line 109
  530.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse109), "get", [=> "language"], "method"falsefalsefalse109)) {
  531.                 echo "checked=\"checked\"";
  532.             }
  533.             echo ">
  534.                                                                     <label class=\"custom-control-label form-label\"
  535.                                                                            for=\"showForeignReviews\">
  536.                                                                         <small>";
  537.             // line 112
  538.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewLanguageFilterLabel"));
  539.             echo "</small>
  540.                                                                     </label>
  541.                                                                 </div>
  542.                                                             </form>
  543.                                                         ";
  544.         }
  545.         // line 117
  546.         echo "                                                    </div>
  547.                                                 ";
  548.         
  549.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  550.         
  551.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  552.     }
  553.     // line 90
  554.     public function block_page_product_detail_review_list_action_language_csrf($context, array $blocks = [])
  555.     {
  556.         $macros $this->macros;
  557.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  558.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_action_language_csrf"));
  559.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  560.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_action_language_csrf"));
  561.         // line 91
  562.         echo "                                                                    ";
  563.         echo $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.product.reviews");
  564.         echo "
  565.                                                                 ";
  566.         
  567.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  568.         
  569.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  570.     }
  571.     // line 120
  572.     public function block_page_product_detail_review_list_action_sortby($context, array $blocks = [])
  573.     {
  574.         $macros $this->macros;
  575.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  576.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_action_sortby"));
  577.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  578.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_action_sortby"));
  579.         // line 121
  580.         echo "                                                    ";
  581.         if ((($context["productReviewCount"] ?? null) > 0)) {
  582.             // line 122
  583.             echo "                                                        <div class=\"col-12 col-md-auto product-detail-review-sortby\">
  584.                                                             ";
  585.             // line 123
  586.             $context["formAjaxSubmitOptions"] = ["replaceSelectors" => [=> ".js-review-info"=> ".js-review-teaser"=> ".js-review-content"], "submitOnChange" => true];
  587.             // line 131
  588.             echo "
  589.                                                             ";
  590.             // line 132
  591.             $this->displayBlock('page_product_detail_review_list_action_sortby_form'$context$blocks);
  592.             // line 179
  593.             echo "                                                        </div>
  594.                                                     ";
  595.         }
  596.         // line 181
  597.         echo "                                                ";
  598.         
  599.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  600.         
  601.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  602.     }
  603.     // line 132
  604.     public function block_page_product_detail_review_list_action_sortby_form($context, array $blocks = [])
  605.     {
  606.         $macros $this->macros;
  607.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  608.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_action_sortby_form"));
  609.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  610.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_action_sortby_form"));
  611.         // line 133
  612.         echo "                                                                <form class=\"form-inline product-detail-review-sortby-form\"
  613.                                                                       action=\"";
  614.         // line 134
  615.         echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.product.reviews", ["productId" => sw_get_attribute($this->env$this->source, ($context["reviews"] ?? null), "productId", [], "any"falsefalsefalse134), "parentId" => sw_get_attribute($this->env$this->source, ($context["reviews"] ?? null), "parentId", [], "any"falsefalsefalse134)]), "html"nulltrue);
  616.         echo "\"
  617.                                                                       method=\"post\"
  618.                                                                       data-form-ajax-submit=\"true\"
  619.                                                                       data-form-ajax-submit-options='";
  620.         // line 137
  621.         echo sw_escape_filter($this->env$this->env->getFilter('json_encode')->getCallable()(($context["formAjaxSubmitOptions"] ?? null)), "html"nulltrue);
  622.         echo "'>
  623.                                                                     ";
  624.         // line 140
  625.         echo "                                                                    ";
  626.         $this->displayBlock('page_product_detail_review_list_action_sortby_form_csrf'$context$blocks);
  627.         // line 143
  628.         echo "
  629.                                                                     ";
  630.         // line 144
  631.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse144), "get", [=> "limit"], "method"falsefalsefalse144)) {
  632.             // line 145
  633.             echo "                                                                        <input type=\"hidden\" name=\"limit\" value=\"";
  634.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse145), "get", [=> "limit"], "method"falsefalsefalse145), "html"nulltrue);
  635.             echo "\">
  636.                                                                     ";
  637.         }
  638.         // line 147
  639.         echo "
  640.                                                                     ";
  641.         // line 148
  642.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse148), "get", [=> "language"], "method"falsefalsefalse148)) {
  643.             // line 149
  644.             echo "                                                                        <input type=\"hidden\" name=\"language\" value=\"";
  645.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse149), "get", [=> "language"], "method"falsefalsefalse149), "html"nulltrue);
  646.             echo "\">
  647.                                                                     ";
  648.         }
  649.         // line 151
  650.         echo "
  651.                                                                     ";
  652.         // line 152
  653.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse152), "get", [=> "points"], "method"falsefalsefalse152)) {
  654.             // line 153
  655.             echo "                                                                        ";
  656.             $context['_parent'] = $context;
  657.             $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse153), "get", [=> "points"], "method"falsefalsefalse153));
  658.             foreach ($context['_seq'] as $context["_key"] => $context["points"]) {
  659.                 // line 154
  660.                 echo "                                                                            <input type=\"hidden\" name=\"points[]\" value=\"";
  661.                 echo sw_escape_filter($this->env$context["points"], "html"nulltrue);
  662.                 echo "\">
  663.                                                                         ";
  664.             }
  665.             $_parent $context['_parent'];
  666.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['points'], $context['_parent'], $context['loop']);
  667.             $context array_intersect_key($context$_parent) + $_parent;
  668.             // line 156
  669.             echo "                                                                    ";
  670.         }
  671.         // line 157
  672.         echo "
  673.                                                                     ";
  674.         // line 158
  675.         $this->displayBlock('page_product_detail_review_list_action_sortby_label'$context$blocks);
  676.         // line 164
  677.         echo "
  678.                                                                     ";
  679.         // line 165
  680.         $this->displayBlock('page_product_detail_review_list_action_sortby_select'$context$blocks);
  681.         // line 177
  682.         echo "                                                                </form>
  683.                                                             ";
  684.         
  685.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  686.         
  687.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  688.     }
  689.     // line 140
  690.     public function block_page_product_detail_review_list_action_sortby_form_csrf($context, array $blocks = [])
  691.     {
  692.         $macros $this->macros;
  693.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  694.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_action_sortby_form_csrf"));
  695.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  696.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_action_sortby_form_csrf"));
  697.         // line 141
  698.         echo "                                                                        ";
  699.         echo $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.product.reviews");
  700.         echo "
  701.                                                                     ";
  702.         
  703.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  704.         
  705.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  706.     }
  707.     // line 158
  708.     public function block_page_product_detail_review_list_action_sortby_label($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_review_list_action_sortby_label"));
  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_review_list_action_sortby_label"));
  715.         // line 159
  716.         echo "                                                                        <label class=\"form-label product-detail-review-sortby-label\"
  717.                                                                                for=\"reviewsSortby\">
  718.                                                                             <small>";
  719.         // line 161
  720.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewSortLabel"));
  721.         echo "</small>
  722.                                                                         </label>
  723.                                                                     ";
  724.         
  725.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  726.         
  727.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  728.     }
  729.     // line 165
  730.     public function block_page_product_detail_review_list_action_sortby_select($context, array $blocks = [])
  731.     {
  732.         $macros $this->macros;
  733.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  734.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_action_sortby_select"));
  735.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  736.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_action_sortby_select"));
  737.         // line 166
  738.         echo "                                                                        <select class=\"";
  739.         echo sw_escape_filter($this->env, ($context["formSelectClass"] ?? null), "html"nulltrue);
  740.         echo " ";
  741.         echo sw_escape_filter($this->env, ($context["formSelectClass"] ?? null), "html"nulltrue);
  742.         echo "-sm\"
  743.                                                                                 name=\"sort\"
  744.                                                                                 id=\"reviewsSortby\">
  745.                                                                             <option value=\"createdAt\"";
  746.         // line 169
  747.         if ((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["reviews"] ?? null), "criteria", [], "any"falsefalsefalse169), "sorting", [], "any"falsefalsefalse169), 0, [], "any"falsefalsefalse169), "field", [], "any"falsefalsefalse169) == "createdAt")) {
  748.             echo " selected";
  749.         }
  750.         echo ">
  751.                                                                                 ";
  752.         // line 170
  753.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewSortNewLabel"));
  754.         echo "
  755.                                                                             </option>
  756.                                                                             <option value=\"points\"";
  757.         // line 172
  758.         if ((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["reviews"] ?? null), "criteria", [], "any"falsefalsefalse172), "sorting", [], "any"falsefalsefalse172), 0, [], "any"falsefalsefalse172), "field", [], "any"falsefalsefalse172) == "points")) {
  759.             echo " selected";
  760.         }
  761.         echo ">
  762.                                                                                 ";
  763.         // line 173
  764.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewSortTopRatedLabel"));
  765.         echo "
  766.                                                                             </option>
  767.                                                                         </select>
  768.                                                                     ";
  769.         
  770.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  771.         
  772.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  773.     }
  774.     // line 202
  775.     public function block_page_product_detail_review_list_content($context, array $blocks = [])
  776.     {
  777.         $macros $this->macros;
  778.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  779.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_content"));
  780.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  781.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_content"));
  782.         // line 203
  783.         echo "                                            ";
  784.         $context['_parent'] = $context;
  785.         $context['_seq'] = twig_ensure_traversable(($context["reviews"] ?? null));
  786.         $context['loop'] = [
  787.           'parent' => $context['_parent'],
  788.           'index0' => 0,
  789.           'index'  => 1,
  790.           'first'  => true,
  791.         ];
  792.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  793.             $length count($context['_seq']);
  794.             $context['loop']['revindex0'] = $length 1;
  795.             $context['loop']['revindex'] = $length;
  796.             $context['loop']['length'] = $length;
  797.             $context['loop']['last'] = === $length;
  798.         }
  799.         foreach ($context['_seq'] as $context["_key"] => $context["review"]) {
  800.             // line 204
  801.             echo "                                                <div class=\"product-detail-review-list-content\">
  802.                                                     ";
  803.             // line 205
  804.             $this->loadTemplate("@Storefront/storefront/page/product-detail/review/review-item.html.twig""@Storefront/storefront/page/product-detail/review/review.html.twig"205)->display($context);
  805.             // line 206
  806.             echo "                                                </div>
  807.                                             ";
  808.             ++$context['loop']['index0'];
  809.             ++$context['loop']['index'];
  810.             $context['loop']['first'] = false;
  811.             if (isset($context['loop']['length'])) {
  812.                 --$context['loop']['revindex0'];
  813.                 --$context['loop']['revindex'];
  814.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  815.             }
  816.         }
  817.         $_parent $context['_parent'];
  818.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['review'], $context['_parent'], $context['loop']);
  819.         $context array_intersect_key($context$_parent) + $_parent;
  820.         // line 208
  821.         echo "                                        ";
  822.         
  823.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  824.         
  825.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  826.     }
  827.     // line 210
  828.     public function block_page_product_detail_review_list_paging($context, array $blocks = [])
  829.     {
  830.         $macros $this->macros;
  831.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  832.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_paging"));
  833.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  834.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_paging"));
  835.         // line 211
  836.         echo "                                            ";
  837.         $context["criteria"] = sw_get_attribute($this->env$this->source, ($context["reviews"] ?? null), "criteria", [], "any"falsefalsefalse211);
  838.         // line 212
  839.         echo "                                            ";
  840.         $context["totalPages"] = twig_round((($context["productReviewCount"] ?? null) / sw_get_attribute($this->env$this->source, ($context["criteria"] ?? null), "limit", [], "any"falsefalsefalse212)), 0"ceil");
  841.         // line 213
  842.         echo "
  843.                                             ";
  844.         // line 214
  845.         if ((($context["totalPages"] ?? null) > 1)) {
  846.             // line 215
  847.             echo "                                                ";
  848.             $context["formAjaxSubmitOptions"] = ["replaceSelectors" => ".js-review-container""submitOnChange" => true];
  849.             // line 219
  850.             echo "
  851.                                                 ";
  852.             // line 220
  853.             $this->displayBlock('page_product_detail_review_list_paging_form'$context$blocks);
  854.             // line 259
  855.             echo "                                            ";
  856.         }
  857.         // line 260
  858.         echo "                                        ";
  859.         
  860.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  861.         
  862.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  863.     }
  864.     // line 220
  865.     public function block_page_product_detail_review_list_paging_form($context, array $blocks = [])
  866.     {
  867.         $macros $this->macros;
  868.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  869.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_paging_form"));
  870.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  871.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_paging_form"));
  872.         // line 221
  873.         echo "                                                    <div class=\"product-detail-review-pagination\">
  874.                                                         <form class=\"product-detail-review-pagination-form\"
  875.                                                               action=\"";
  876.         // line 223
  877.         echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.product.reviews", ["productId" => sw_get_attribute($this->env$this->source, ($context["reviews"] ?? null), "productId", [], "any"falsefalsefalse223), "parentId" => sw_get_attribute($this->env$this->source, ($context["reviews"] ?? null), "parentId", [], "any"falsefalsefalse223)]), "html"nulltrue);
  878.         echo "\"
  879.                                                               method=\"post\"
  880.                                                               data-form-ajax-submit=\"true\"
  881.                                                               data-form-ajax-submit-options='";
  882.         // line 226
  883.         echo sw_escape_filter($this->env$this->env->getFilter('json_encode')->getCallable()(($context["formAjaxSubmitOptions"] ?? null)), "html"nulltrue);
  884.         echo "'>
  885.                                                             ";
  886.         // line 229
  887.         echo "                                                            ";
  888.         $this->displayBlock('page_product_detail_review_list_paging_csrf'$context$blocks);
  889.         // line 232
  890.         echo "
  891.                                                             ";
  892.         // line 233
  893.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse233), "get", [=> "limit"], "method"falsefalsefalse233)) {
  894.             // line 234
  895.             echo "                                                                <input type=\"hidden\" name=\"limit\" value=\"";
  896.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse234), "get", [=> "limit"], "method"falsefalsefalse234), "html"nulltrue);
  897.             echo "\">
  898.                                                             ";
  899.         }
  900.         // line 236
  901.         echo "
  902.                                                             ";
  903.         // line 237
  904.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse237), "get", [=> "language"], "method"falsefalsefalse237)) {
  905.             // line 238
  906.             echo "                                                                <input type=\"hidden\" name=\"language\" value=\"";
  907.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse238), "get", [=> "language"], "method"falsefalsefalse238), "html"nulltrue);
  908.             echo "\">
  909.                                                             ";
  910.         }
  911.         // line 240
  912.         echo "
  913.                                                             ";
  914.         // line 241
  915.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse241), "get", [=> "sort"], "method"falsefalsefalse241)) {
  916.             // line 242
  917.             echo "                                                                <input type=\"hidden\" name=\"sort\" value=\"";
  918.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse242), "get", [=> "sort"], "method"falsefalsefalse242), "html"nulltrue);
  919.             echo "\">
  920.                                                             ";
  921.         }
  922.         // line 244
  923.         echo "
  924.                                                             ";
  925.         // line 245
  926.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse245), "get", [=> "points"], "method"falsefalsefalse245)) {
  927.             // line 246
  928.             echo "                                                                ";
  929.             $context['_parent'] = $context;
  930.             $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse246), "get", [=> "points"], "method"falsefalsefalse246));
  931.             foreach ($context['_seq'] as $context["_key"] => $context["points"]) {
  932.                 // line 247
  933.                 echo "                                                                    <input type=\"hidden\" name=\"points[]\" value=\"";
  934.                 echo sw_escape_filter($this->env$context["points"], "html"nulltrue);
  935.                 echo "\">
  936.                                                                 ";
  937.             }
  938.             $_parent $context['_parent'];
  939.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['points'], $context['_parent'], $context['loop']);
  940.             $context array_intersect_key($context$_parent) + $_parent;
  941.             // line 249
  942.             echo "                                                            ";
  943.         }
  944.         // line 250
  945.         echo "
  946.                                                             ";
  947.         // line 251
  948.         $this->loadTemplate("@Storefront/storefront/component/pagination.html.twig""@Storefront/storefront/page/product-detail/review/review.html.twig"251)->display(twig_array_merge($context, ["entities" =>         // line 252
  949. ($context["reviews"] ?? null), "criteria" =>         // line 253
  950. ($context["criteria"] ?? null), "total" =>         // line 254
  951. ($context["productReviewCount"] ?? null)]));
  952.         // line 256
  953.         echo "                                                        </form>
  954.                                                     </div>
  955.                                                 ";
  956.         
  957.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  958.         
  959.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  960.     }
  961.     // line 229
  962.     public function block_page_product_detail_review_list_paging_csrf($context, array $blocks = [])
  963.     {
  964.         $macros $this->macros;
  965.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  966.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_paging_csrf"));
  967.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  968.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_paging_csrf"));
  969.         // line 230
  970.         echo "                                                                ";
  971.         echo $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.product.reviews");
  972.         echo "
  973.                                                             ";
  974.         
  975.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  976.         
  977.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  978.     }
  979.     // line 264
  980.     public function block_page_product_detail_review_list_empty($context, array $blocks = [])
  981.     {
  982.         $macros $this->macros;
  983.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  984.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_empty"));
  985.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  986.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_review_list_empty"));
  987.         // line 265
  988.         echo "                                            ";
  989.         $this->loadTemplate("@Storefront/storefront/utilities/alert.html.twig""@Storefront/storefront/page/product-detail/review/review.html.twig"265)->display(twig_array_merge($context, ["type" => "info""content" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewListEmpty"))]));
  990.         // line 269
  991.         echo "                                        ";
  992.         
  993.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  994.         
  995.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  996.     }
  997.     public function getTemplateName()
  998.     {
  999.         return "@Storefront/storefront/page/product-detail/review/review.html.twig";
  1000.     }
  1001.     public function isTraitable()
  1002.     {
  1003.         return false;
  1004.     }
  1005.     public function getDebugInfo()
  1006.     {
  1007.         return array (  1119 => 269,  1116 => 265,  1106 => 264,  1093 => 230,  1083 => 229,  1071 => 256,  1069 => 254,  1068 => 253,  1067 => 252,  1066 => 251,  1063 => 250,  1060 => 249,  1051 => 247,  1046 => 246,  1044 => 245,  1041 => 244,  1035 => 242,  1033 => 241,  1030 => 240,  1024 => 238,  1022 => 237,  1019 => 236,  1013 => 234,  1011 => 233,  1008 => 232,  1005 => 229,  1000 => 226,  994 => 223,  990 => 221,  980 => 220,  970 => 260,  967 => 259,  965 => 220,  962 => 219,  959 => 215,  957 => 214,  954 => 213,  951 => 212,  948 => 211,  938 => 210,  928 => 208,  913 => 206,  911 => 205,  908 => 204,  890 => 203,  880 => 202,  866 => 173,  860 => 172,  855 => 170,  849 => 169,  840 => 166,  830 => 165,  817 => 161,  813 => 159,  803 => 158,  790 => 141,  780 => 140,  769 => 177,  767 => 165,  764 => 164,  762 => 158,  759 => 157,  756 => 156,  747 => 154,  742 => 153,  740 => 152,  737 => 151,  731 => 149,  729 => 148,  726 => 147,  720 => 145,  718 => 144,  715 => 143,  712 => 140,  707 => 137,  701 => 134,  698 => 133,  688 => 132,  678 => 181,  674 => 179,  672 => 132,  669 => 131,  667 => 123,  664 => 122,  661 => 121,  651 => 120,  638 => 91,  628 => 90,  617 => 117,  609 => 112,  601 => 109,  594 => 105,  591 => 104,  587 => 102,  584 => 101,  578 => 99,  576 => 98,  573 => 97,  567 => 95,  565 => 94,  562 => 93,  559 => 90,  554 => 87,  548 => 84,  545 => 83,  543 => 82,  540 => 81,  530 => 80,  519 => 199,  511 => 197,  508 => 196,  495 => 195,  493 => 194,  489 => 192,  486 => 191,  483 => 190,  480 => 189,  478 => 188,  475 => 187,  469 => 182,  467 => 120,  464 => 119,  462 => 80,  459 => 79,  457 => 75,  454 => 74,  444 => 73,  434 => 261,  432 => 210,  429 => 209,  427 => 202,  424 => 201,  421 => 73,  411 => 72,  400 => 271,  397 => 270,  394 => 264,  392 => 263,  389 => 262,  387 => 72,  380 => 70,  377 => 69,  367 => 68,  356 => 65,  352 => 63,  350 => 62,  347 => 61,  343 => 59,  341 => 58,  338 => 57,  336 => 56,  328 => 54,  318 => 53,  308 => 51,  305 => 50,  302 => 46,  299 => 45,  296 => 41,  293 => 40,  290 => 36,  287 => 35,  277 => 34,  266 => 273,  264 => 68,  261 => 67,  259 => 53,  256 => 52,  254 => 34,  251 => 33,  241 => 32,  231 => 28,  228 => 27,  218 => 26,  207 => 29,  205 => 26,  202 => 25,  192 => 24,  181 => 275,  179 => 32,  176 => 31,  174 => 24,  171 => 23,  161 => 22,  150 => 277,  148 => 22,  144 => 20,  141 => 19,  138 => 17,  135 => 16,  132 => 15,  130 => 14,  127 => 13,  125 => 12,  122 => 11,  119 => 10,  116 => 8,  113 => 7,  110 => 5,  90 => 4,  80 => 3,  57 => 2,);
  1008.     }
  1009.     public function getSourceContext()
  1010.     {
  1011.         return new Source("{% sw_extends '@Storefront/storefront/utilities/offcanvas.html.twig' %}
  1012. {% block utilities_offcanvas_content %}
  1013. \t{% block page_product_detail_review_container %}
  1014. \t\t{# TODO NEXT-16993 - replace items per list config value #}
  1015. \t\t{% set reviewsPerListPage = 10 %}
  1016. \t\t{# TODO NEXT-16994 - replace current list page value #}
  1017. \t\t{% set currentListPage = 1 %}
  1018.         {% set productReviewCount = reviews.totalReviews %}
  1019. \t\t{% if productReviewCount > 0 %}
  1020.             {% set productAvgRating = reviews.matrix.averageRating|round(2, 'common')  %}
  1021. \t\t{% endif %}
  1022. \t\t{# TODO NEXT-16994 - replace language flag #}
  1023. \t\t{% set foreignReviewsCount = 150 %}
  1024. \t\t<div class=\"product-detail-review tab-pane-container\">
  1025. \t\t\t{% block page_product_detail_review_tab_pane %}
  1026.                 <div class=\"row product-detail-review-content js-review-container\">
  1027. \t\t\t\t\t{% block page_product_detail_review_aside %}
  1028. \t\t\t\t\t\t<div class=\"col-sm-4\">
  1029. \t\t\t\t\t\t\t{% block page_product_detail_review_widget_container %}
  1030. \t\t\t\t\t\t\t\t{% sw_include '@Storefront/storefront/page/product-detail/review/review-widget.html.twig' %}
  1031. \t\t\t\t\t\t\t{% endblock %}
  1032. \t\t\t\t\t\t</div>
  1033. \t\t\t\t\t{% endblock %}
  1034. \t\t\t\t\t{% block page_product_detail_review_main %}
  1035. \t\t\t\t\t\t<div class=\"col product-detail-review-main js-review-content\">
  1036. \t\t\t\t\t\t\t{% block page_product_detail_review_alert %}
  1037. \t\t\t\t\t\t\t\t{% if ratingSuccess == 1 %}
  1038. \t\t\t\t\t\t\t\t\t{% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  1039. \t\t\t\t\t\t\t\t\t\ttype: \"success\",
  1040. \t\t\t\t\t\t\t\t\t\tcontent: \"detail.reviewFormSuccessAlert\"|trans|sw_sanitize
  1041. \t\t\t\t\t\t\t\t\t} %}
  1042.                                 {% elseif ratingSuccess == 2  %}
  1043.                                     {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  1044.                                         type: \"success\",
  1045.                                         content: \"detail.reviewFormSuccessUpdateAlert\"|trans|sw_sanitize
  1046.                                     } %}
  1047. \t\t\t\t\t\t\t\t{% elseif ratingSuccess == -1  %}
  1048. \t\t\t\t\t\t\t\t\t{% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  1049. \t\t\t\t\t\t\t\t\t\ttype: \"danger\",
  1050. \t\t\t\t\t\t\t\t\t\tcontent: \"detail.reviewFormErrorAlert\"|trans|sw_sanitize
  1051. \t\t\t\t\t\t\t\t\t} %}
  1052. \t\t\t\t\t\t\t\t{% endif %}
  1053. \t\t\t\t\t\t\t{% endblock %}
  1054. \t\t\t\t\t\t\t{% block page_product_detail_review_form_container %}
  1055. \t\t\t\t\t\t\t\t<div class=\"collapse multi-collapse{% if ratingSuccess == -1 %} show{% endif %}\"
  1056. \t\t\t\t\t\t\t\t\t id=\"review-form\">
  1057. \t\t\t\t\t\t\t\t\t{% if context.customer and not context.customer.guest %}
  1058. \t\t\t\t\t\t\t\t\t\t<div class=\"product-detail-review-form\">
  1059. \t\t\t\t\t\t\t\t\t\t\t{% sw_include '@Storefront/storefront/page/product-detail/review/review-form.html.twig' %}
  1060. \t\t\t\t\t\t\t\t\t\t</div>
  1061. \t\t\t\t\t\t\t\t\t{% else %}
  1062. \t\t\t\t\t\t\t\t\t\t<div class=\"product-detail-review-login\">
  1063. \t\t\t\t\t\t\t\t\t\t\t{% sw_include '@Storefront/storefront/page/product-detail/review/review-login.html.twig' %}
  1064. \t\t\t\t\t\t\t\t\t\t</div>
  1065. \t\t\t\t\t\t\t\t\t{% endif %}
  1066. \t\t\t\t\t\t\t\t</div>
  1067. \t\t\t\t\t\t\t{% endblock %}
  1068. \t\t\t\t\t\t\t{% block page_product_detail_review_list_container %}
  1069. \t\t\t\t\t\t\t\t<div id=\"review-list\"
  1070. \t\t\t\t\t\t\t\t\t class=\"collapse multi-collapse product-detail-review-list{% if ratingSuccess != -1 %} show{% endif %}\">
  1071.                                     {% block page_product_detail_review_list %}
  1072.                                         {% block page_product_detail_review_list_actions %}
  1073.                                             <div class=\"row align-items-center product-detail-review-actions\">
  1074.                                                 {% set formAjaxSubmitOptions = {
  1075.                                                     replaceSelectors: [\".js-review-container\"],
  1076.                                                     submitOnChange: true
  1077.                                                 } %}
  1078.                                                 {% block page_product_detail_review_list_action_language %}
  1079.                                                     <div class=\"col product-detail-review-language\">
  1080.                                                         {% if foreignReviewsCount > 0 %}
  1081.                                                             <form class=\"product-detail-review-language-form\"
  1082.                                                                   action=\"{{ path('frontend.product.reviews', { productId: reviews.productId, parentId: reviews.parentId }) }}\"
  1083.                                                                   method=\"post\"
  1084.                                                                   data-form-ajax-submit=\"true\"
  1085.                                                                   data-form-ajax-submit-options='{{ formAjaxSubmitOptions|json_encode }}'>
  1086.                                                                 {# @deprecated tag:v6.5.0 - Block page_product_detail_review_list_action_language_csrf will be removed. #}
  1087.                                                                 {% block page_product_detail_review_list_action_language_csrf %}
  1088.                                                                     {{ sw_csrf('frontend.product.reviews') }}
  1089.                                                                 {% endblock %}
  1090.                                                                 {% if app.request.get('limit') %}
  1091.                                                                     <input type=\"hidden\" name=\"limit\" value=\"{{ app.request.get('limit') }}\">
  1092.                                                                 {% endif %}
  1093.                                                                 {% if app.request.get('sort') %}
  1094.                                                                     <input type=\"hidden\" name=\"sort\" value=\"{{ app.request.get('sort') }}\">
  1095.                                                                 {% endif %}
  1096.                                                                 <div class=\"{{ formSwitchWrapperClass }}\">
  1097.                                                                     {# TODO NEXT-16994 - set checked and disabled state #}
  1098.                                                                     <input type=\"checkbox\"
  1099.                                                                            class=\"{{ formCheckInputClass }}\"
  1100.                                                                            id=\"showForeignReviews\"
  1101.                                                                            value=\"filter-language\"
  1102.                                                                            name=\"language\"
  1103.                                                                            {% if app.request.get('language') %}checked=\"checked\"{% endif %}>
  1104.                                                                     <label class=\"custom-control-label form-label\"
  1105.                                                                            for=\"showForeignReviews\">
  1106.                                                                         <small>{{ \"detail.reviewLanguageFilterLabel\"|trans|sw_sanitize }}</small>
  1107.                                                                     </label>
  1108.                                                                 </div>
  1109.                                                             </form>
  1110.                                                         {% endif %}
  1111.                                                     </div>
  1112.                                                 {% endblock %}
  1113.                                                 {% block page_product_detail_review_list_action_sortby %}
  1114.                                                     {% if productReviewCount > 0 %}
  1115.                                                         <div class=\"col-12 col-md-auto product-detail-review-sortby\">
  1116.                                                             {% set formAjaxSubmitOptions = {
  1117.                                                                 replaceSelectors: [
  1118.                                                                     \".js-review-info\",
  1119.                                                                     \".js-review-teaser\",
  1120.                                                                     \".js-review-content\"
  1121.                                                                 ],
  1122.                                                                 submitOnChange: true
  1123.                                                             } %}
  1124.                                                             {% block page_product_detail_review_list_action_sortby_form %}
  1125.                                                                 <form class=\"form-inline product-detail-review-sortby-form\"
  1126.                                                                       action=\"{{ path('frontend.product.reviews', { productId: reviews.productId, parentId: reviews.parentId }) }}\"
  1127.                                                                       method=\"post\"
  1128.                                                                       data-form-ajax-submit=\"true\"
  1129.                                                                       data-form-ajax-submit-options='{{ formAjaxSubmitOptions|json_encode }}'>
  1130.                                                                     {# @deprecated tag:v6.5.0 - Block page_product_detail_review_list_action_sortby_form_csrf will be removed. #}
  1131.                                                                     {% block page_product_detail_review_list_action_sortby_form_csrf %}
  1132.                                                                         {{ sw_csrf('frontend.product.reviews') }}
  1133.                                                                     {% endblock %}
  1134.                                                                     {% if app.request.get('limit') %}
  1135.                                                                         <input type=\"hidden\" name=\"limit\" value=\"{{ app.request.get('limit') }}\">
  1136.                                                                     {% endif %}
  1137.                                                                     {% if app.request.get('language') %}
  1138.                                                                         <input type=\"hidden\" name=\"language\" value=\"{{ app.request.get('language') }}\">
  1139.                                                                     {% endif %}
  1140.                                                                     {% if app.request.get('points') %}
  1141.                                                                         {% for points in app.request.get('points') %}
  1142.                                                                             <input type=\"hidden\" name=\"points[]\" value=\"{{ points }}\">
  1143.                                                                         {% endfor %}
  1144.                                                                     {% endif %}
  1145.                                                                     {% block page_product_detail_review_list_action_sortby_label %}
  1146.                                                                         <label class=\"form-label product-detail-review-sortby-label\"
  1147.                                                                                for=\"reviewsSortby\">
  1148.                                                                             <small>{{ \"detail.reviewSortLabel\"|trans|sw_sanitize }}</small>
  1149.                                                                         </label>
  1150.                                                                     {% endblock %}
  1151.                                                                     {% block page_product_detail_review_list_action_sortby_select %}
  1152.                                                                         <select class=\"{{ formSelectClass }} {{ formSelectClass }}-sm\"
  1153.                                                                                 name=\"sort\"
  1154.                                                                                 id=\"reviewsSortby\">
  1155.                                                                             <option value=\"createdAt\"{% if reviews.criteria.sorting.0.field == 'createdAt' %} selected{% endif %}>
  1156.                                                                                 {{ \"detail.reviewSortNewLabel\"|trans|sw_sanitize }}
  1157.                                                                             </option>
  1158.                                                                             <option value=\"points\"{% if reviews.criteria.sorting.0.field== 'points' %} selected{% endif %}>
  1159.                                                                                 {{ \"detail.reviewSortTopRatedLabel\"|trans|sw_sanitize }}
  1160.                                                                             </option>
  1161.                                                                         </select>
  1162.                                                                     {% endblock %}
  1163.                                                                 </form>
  1164.                                                             {% endblock %}
  1165.                                                         </div>
  1166.                                                     {% endif %}
  1167.                                                 {% endblock %}
  1168.                                             </div>
  1169.                                             <hr/>
  1170.                                             {# TODO NEXT-16994 - calculate reviews in current language in list #}
  1171.                                             {% set listReviewsCount = productReviewCount - foreignReviewsCount %}
  1172.                                             {# TODO NEXT-16994 - fix if reviews in foreign language are more than in customer language #}
  1173.                                             {% if listReviewsCount < 0 %}
  1174.                                                 {% set listReviewsCount = 0 %}
  1175.                                             {% endif %}
  1176.                                             <p class=\"text-right product-detail-review-counter\">
  1177.                                                 {% if (listReviewsCount > 1 and listReviewsCount > reviewsPerListPage) %}
  1178.                                                     <small><strong>{{ currentListPage }}</strong> - <strong>{{ reviewsPerListPage }}</strong> {{ \"detail.reviewCountBefore\"|trans|sw_sanitize }} <strong>{{ listReviewsCount }}</strong> {{ \"detail.reviewCountAfter\"|trans({'%count%': listReviewsCount })|sw_sanitize }}</small>
  1179.                                                 {% elseif listReviewsCount > 0 %} {# TODO (NEXT-16994) fix detail.reviewCountAfter snippet for listReviewsCount = 0#}
  1180.                                                     <small><strong>{{ listReviewsCount }}</strong> {{ \"detail.reviewCountAfter\"|trans({'%count%': listReviewsCount })|sw_sanitize }}</small>
  1181.                                                 {% endif %}
  1182.                                             </p>
  1183.                                         {% endblock %}
  1184.                                         {% block page_product_detail_review_list_content %}
  1185.                                             {% for review in reviews %}
  1186.                                                 <div class=\"product-detail-review-list-content\">
  1187.                                                     {% sw_include '@Storefront/storefront/page/product-detail/review/review-item.html.twig' %}
  1188.                                                 </div>
  1189.                                             {% endfor %}
  1190.                                         {% endblock %}
  1191.                                         {% block page_product_detail_review_list_paging %}
  1192.                                             {% set criteria = reviews.criteria %}
  1193.                                             {% set totalPages = (productReviewCount/criteria.limit)|round(0,'ceil') %}
  1194.                                             {% if totalPages > 1 %}
  1195.                                                 {% set formAjaxSubmitOptions = {
  1196.                                                     replaceSelectors: \".js-review-container\",
  1197.                                                     submitOnChange: true
  1198.                                                 } %}
  1199.                                                 {% block page_product_detail_review_list_paging_form %}
  1200.                                                     <div class=\"product-detail-review-pagination\">
  1201.                                                         <form class=\"product-detail-review-pagination-form\"
  1202.                                                               action=\"{{ path('frontend.product.reviews', { productId: reviews.productId, parentId: reviews.parentId }) }}\"
  1203.                                                               method=\"post\"
  1204.                                                               data-form-ajax-submit=\"true\"
  1205.                                                               data-form-ajax-submit-options='{{ formAjaxSubmitOptions|json_encode }}'>
  1206.                                                             {# @deprecated tag:v6.5.0 - Block page_product_detail_review_list_paging_csrf will be removed. #}
  1207.                                                             {% block page_product_detail_review_list_paging_csrf %}
  1208.                                                                 {{ sw_csrf('frontend.product.reviews') }}
  1209.                                                             {% endblock %}
  1210.                                                             {% if app.request.get('limit') %}
  1211.                                                                 <input type=\"hidden\" name=\"limit\" value=\"{{ app.request.get('limit') }}\">
  1212.                                                             {% endif %}
  1213.                                                             {% if app.request.get('language') %}
  1214.                                                                 <input type=\"hidden\" name=\"language\" value=\"{{ app.request.get('language') }}\">
  1215.                                                             {% endif %}
  1216.                                                             {% if app.request.get('sort') %}
  1217.                                                                 <input type=\"hidden\" name=\"sort\" value=\"{{ app.request.get('sort') }}\">
  1218.                                                             {% endif %}
  1219.                                                             {% if app.request.get('points') %}
  1220.                                                                 {% for points in app.request.get('points') %}
  1221.                                                                     <input type=\"hidden\" name=\"points[]\" value=\"{{ points }}\">
  1222.                                                                 {% endfor %}
  1223.                                                             {% endif %}
  1224.                                                             {% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
  1225.                                                                 entities: reviews,
  1226.                                                                 criteria: criteria,
  1227.                                                                 total: productReviewCount,
  1228.                                                             }  %}
  1229.                                                         </form>
  1230.                                                     </div>
  1231.                                                 {% endblock %}
  1232.                                             {% endif %}
  1233.                                         {% endblock %}
  1234.                                     {% endblock %}
  1235.                                     {% if productReviewCount <= 0 %}
  1236.                                         {% block page_product_detail_review_list_empty %}
  1237.                                             {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  1238.                                                 type: \"info\",
  1239.                                                 content: \"detail.reviewListEmpty\"|trans|sw_sanitize
  1240.                                             } %}
  1241.                                         {% endblock %}
  1242.                                     {% endif %}
  1243. \t\t\t\t\t\t\t\t</div>
  1244. \t\t\t\t\t\t\t{% endblock %}
  1245. \t\t\t\t\t\t</div>
  1246. \t\t\t\t\t{% endblock %}
  1247. \t\t\t\t</div>
  1248. \t\t\t{% endblock %}
  1249. \t\t</div>
  1250. \t{% endblock %}
  1251. {% endblock %}
  1252. ""@Storefront/storefront/page/product-detail/review/review.html.twig""/var/www/shopware6/vendor/shopware/storefront/Resources/views/storefront/page/product-detail/review/review.html.twig");
  1253.     }
  1254. }