var/cache/dev_h90dfaab4b9218db9f54295f5d696836f/twig/51/515289f7b3d4156788e5497a20d98763cf9abecfb1773f2ad956ac90fb61a071.php line 61

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/account/newsletter.html.twig */
  16. class __TwigTemplate_83b5f3c9a32ee98a073382c1149127cf1f40a3b4bcc4eb870bbcdc08bf8782d6 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->parent false;
  25.         $this->blocks = [
  26.             'page_account_overview_newsletter_content_inner' => [$this'block_page_account_overview_newsletter_content_inner'],
  27.             'page_account_overview_newsletter_content_success' => [$this'block_page_account_overview_newsletter_content_success'],
  28.             'page_account_overview_newsletter_content_form' => [$this'block_page_account_overview_newsletter_content_form'],
  29.             'page_account_overview_newsletter_content_form_csrf' => [$this'block_page_account_overview_newsletter_content_form_csrf'],
  30.             'page_account_overview_newsletter_content_form_check_control' => [$this'block_page_account_overview_newsletter_content_form_check_control'],
  31.             'page_account_overview_newsletter_content_form_input' => [$this'block_page_account_overview_newsletter_content_form_input'],
  32.             'page_account_overview_newsletter_content_form_label' => [$this'block_page_account_overview_newsletter_content_form_label'],
  33.         ];
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/page/account/newsletter.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/page/account/newsletter.html.twig"));
  42.         // line 1
  43.         $this->displayBlock('page_account_overview_newsletter_content_inner'$context$blocks);
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     public function block_page_account_overview_newsletter_content_inner($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_inner"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_inner"));
  56.         // line 2
  57.         echo "
  58.     ";
  59.         // line 3
  60.         if ($this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\FeatureFlagExtension']->feature("FEATURE_NEXT_14001")) {
  61.             // line 4
  62.             echo "        ";
  63.             // line 5
  64.             echo "        ";
  65.             $context["success"] = sw_get_attribute($this->env$this->source, ($context["newsletterAccountPagelet"] ?? null), "success", [], "any"falsefalsefalse5);
  66.             // line 6
  67.             echo "        ";
  68.             $context["messages"] = sw_get_attribute($this->env$this->source, ($context["newsletterAccountPagelet"] ?? null), "messages", [], "any"falsefalsefalse6);
  69.             // line 7
  70.             echo "        ";
  71.             $context["customer"] = sw_get_attribute($this->env$this->source, ($context["newsletterAccountPagelet"] ?? null), "customer", [], "any"falsefalsefalse7);
  72.             // line 8
  73.             echo "    ";
  74.         }
  75.         // line 9
  76.         echo "
  77.     ";
  78.         // line 10
  79.         $this->displayBlock('page_account_overview_newsletter_content_success'$context$blocks);
  80.         // line 30
  81.         echo "
  82.     ";
  83.         // line 31
  84.         $context["formAutoSubmitOptions"] = ["useAjax" => true"ajaxContainerSelector" => ".js-newsletter-wrapper"];
  85.         // line 35
  86.         echo "
  87.     ";
  88.         // line 36
  89.         $this->displayBlock('page_account_overview_newsletter_content_form'$context$blocks);
  90.         
  91.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  92.         
  93.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  94.     }
  95.     // line 10
  96.     public function block_page_account_overview_newsletter_content_success($context, array $blocks = [])
  97.     {
  98.         $macros $this->macros;
  99.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  100.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_success"));
  101.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_success"));
  103.         // line 11
  104.         echo "        ";
  105.         if ($this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\FeatureFlagExtension']->feature("FEATURE_NEXT_14001")) {
  106.             // line 12
  107.             echo "            ";
  108.             if ((=== twig_compare(twig_length_filter($this->envsw_get_attribute($this->env$this->source, ($context["newsletterAccountPagelet"] ?? null), "messages", [], "any"falsefalsefalse12)), 0))) {
  109.                 // line 13
  110.                 echo "                <div class=\"newsletter-alerts\">
  111.                     ";
  112.                 // line 14
  113.                 $context['_parent'] = $context;
  114.                 $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->source, ($context["newsletterAccountPagelet"] ?? null), "messages", [], "any"falsefalsefalse14));
  115.                 $context['loop'] = [
  116.                   'parent' => $context['_parent'],
  117.                   'index0' => 0,
  118.                   'index'  => 1,
  119.                   'first'  => true,
  120.                 ];
  121.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  122.                     $length count($context['_seq']);
  123.                     $context['loop']['revindex0'] = $length 1;
  124.                     $context['loop']['revindex'] = $length;
  125.                     $context['loop']['length'] = $length;
  126.                     $context['loop']['last'] = === $length;
  127.                 }
  128.                 foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  129.                     // line 15
  130.                     echo "                        ";
  131.                     $this->loadTemplate("@Storefront/storefront/utilities/alert.html.twig""@Storefront/storefront/page/account/newsletter.html.twig"15)->display(twig_array_merge($context, ["type" => sw_get_attribute($this->env$this->source$context["message"], "type", [], "any"falsefalsefalse15), "content" => sw_get_attribute($this->env$this->source$context["message"], "text", [], "any"falsefalsefalse15)]));
  132.                     // line 16
  133.                     echo "                    ";
  134.                     ++$context['loop']['index0'];
  135.                     ++$context['loop']['index'];
  136.                     $context['loop']['first'] = false;
  137.                     if (isset($context['loop']['length'])) {
  138.                         --$context['loop']['revindex0'];
  139.                         --$context['loop']['revindex'];
  140.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  141.                     }
  142.                 }
  143.                 $_parent $context['_parent'];
  144.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  145.                 $context array_intersect_key($context$_parent) + $_parent;
  146.                 // line 17
  147.                 echo "                </div>
  148.             ";
  149.             }
  150.             // line 19
  151.             echo "        ";
  152.         } else {
  153.             // line 20
  154.             echo "            ";
  155.             if ( !(null === ($context["success"] ?? null))) {
  156.                 // line 21
  157.                 echo "                <div class=\"newsletter-alerts\">
  158.                     ";
  159.                 // line 22
  160.                 $context['_parent'] = $context;
  161.                 $context['_seq'] = twig_ensure_traversable(($context["messages"] ?? null));
  162.                 $context['loop'] = [
  163.                   'parent' => $context['_parent'],
  164.                   'index0' => 0,
  165.                   'index'  => 1,
  166.                   'first'  => true,
  167.                 ];
  168.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  169.                     $length count($context['_seq']);
  170.                     $context['loop']['revindex0'] = $length 1;
  171.                     $context['loop']['revindex'] = $length;
  172.                     $context['loop']['length'] = $length;
  173.                     $context['loop']['last'] = === $length;
  174.                 }
  175.                 foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  176.                     // line 23
  177.                     echo "                        ";
  178.                     $this->loadTemplate("@Storefront/storefront/utilities/alert.html.twig""@Storefront/storefront/page/account/newsletter.html.twig"23)->display(twig_array_merge($context, ["type" => sw_get_attribute($this->env$this->source$context["message"], "type", [], "any"falsefalsefalse23), "content" => sw_get_attribute($this->env$this->source$context["message"], "text", [], "any"falsefalsefalse23)]));
  179.                     // line 24
  180.                     echo "                    ";
  181.                     ++$context['loop']['index0'];
  182.                     ++$context['loop']['index'];
  183.                     $context['loop']['first'] = false;
  184.                     if (isset($context['loop']['length'])) {
  185.                         --$context['loop']['revindex0'];
  186.                         --$context['loop']['revindex'];
  187.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  188.                     }
  189.                 }
  190.                 $_parent $context['_parent'];
  191.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  192.                 $context array_intersect_key($context$_parent) + $_parent;
  193.                 // line 25
  194.                 echo "                </div>
  195.             ";
  196.             }
  197.             // line 27
  198.             echo "        ";
  199.         }
  200.         // line 28
  201.         echo "
  202.     ";
  203.         
  204.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  205.         
  206.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  207.     }
  208.     // line 36
  209.     public function block_page_account_overview_newsletter_content_form($context, array $blocks = [])
  210.     {
  211.         $macros $this->macros;
  212.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  213.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_form"));
  214.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  215.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_form"));
  216.         // line 37
  217.         echo "        <form name=\"newsletterRegister\"
  218.               method=\"post\"
  219.               action=\"";
  220.         // line 39
  221.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.account.newsletter");
  222.         echo "\"
  223.               data-form-auto-submit=\"true\"
  224.               data-form-auto-submit-options='";
  225.         // line 41
  226.         echo sw_escape_filter($this->env$this->env->getFilter('json_encode')->getCallable()(($context["formAutoSubmitOptions"] ?? null)), "html"nulltrue);
  227.         echo "'>
  228.             ";
  229.         // line 44
  230.         echo "            ";
  231.         $this->displayBlock('page_account_overview_newsletter_content_form_csrf'$context$blocks);
  232.         // line 47
  233.         echo "
  234.             ";
  235.         // line 48
  236.         $this->displayBlock('page_account_overview_newsletter_content_form_check_control'$context$blocks);
  237.         // line 80
  238.         echo "        </form>
  239.     ";
  240.         
  241.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  242.         
  243.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  244.     }
  245.     // line 44
  246.     public function block_page_account_overview_newsletter_content_form_csrf($context, array $blocks = [])
  247.     {
  248.         $macros $this->macros;
  249.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  250.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_form_csrf"));
  251.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  252.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_form_csrf"));
  253.         // line 45
  254.         echo "                ";
  255.         echo $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.account.newsletter");
  256.         echo "
  257.             ";
  258.         
  259.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  260.         
  261.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  262.     }
  263.     // line 48
  264.     public function block_page_account_overview_newsletter_content_form_check_control($context, array $blocks = [])
  265.     {
  266.         $macros $this->macros;
  267.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  268.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_form_check_control"));
  269.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  270.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_form_check_control"));
  271.         // line 49
  272.         echo "                <div class=\"";
  273.         echo sw_escape_filter($this->env, ($context["formCheckboxWrapperClass"] ?? null), "html"nulltrue);
  274.         echo "\">
  275.                     ";
  276.         // line 50
  277.         $this->displayBlock('page_account_overview_newsletter_content_form_input'$context$blocks);
  278.         // line 71
  279.         echo "
  280.                     ";
  281.         // line 72
  282.         $this->displayBlock('page_account_overview_newsletter_content_form_label'$context$blocks);
  283.         // line 78
  284.         echo "                </div>
  285.             ";
  286.         
  287.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  288.         
  289.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  290.     }
  291.     // line 50
  292.     public function block_page_account_overview_newsletter_content_form_input($context, array $blocks = [])
  293.     {
  294.         $macros $this->macros;
  295.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  296.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_form_input"));
  297.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  298.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_form_input"));
  299.         // line 51
  300.         echo "                        ";
  301.         $context["subscribe"] = twig_constant("Shopware\\Core\\Content\\Newsletter\\SalesChannel\\NewsletterSubscribeRoute::OPTION_SUBSCRIBE");
  302.         // line 52
  303.         echo "                        ";
  304.         $context["direct"] = twig_constant("Shopware\\Core\\Content\\Newsletter\\SalesChannel\\NewsletterSubscribeRoute::OPTION_DIRECT");
  305.         // line 53
  306.         echo "                        ";
  307.         $context["statusDirect"] = twig_constant("Shopware\\Core\\Content\\Newsletter\\SalesChannel\\NewsletterSubscribeRoute::STATUS_DIRECT");
  308.         // line 54
  309.         echo "                        ";
  310.         $context["statusOptIn"] = twig_constant("Shopware\\Core\\Content\\Newsletter\\SalesChannel\\NewsletterSubscribeRoute::STATUS_OPT_IN");
  311.         // line 55
  312.         echo "                        ";
  313.         $context["statusNotSet"] = twig_constant("Shopware\\Core\\Content\\Newsletter\\SalesChannel\\NewsletterSubscribeRoute::STATUS_NOT_SET");
  314.         // line 56
  315.         echo "                        ";
  316.         $context["status"] = false;
  317.         // line 57
  318.         echo "                        ";
  319.         if ((((=== twig_compare(sw_get_attribute($this->env$this->source, ($context["newsletterAccountPagelet"] ?? null), "newsletterStatus", [], "any"falsefalsefalse57), ($context["statusDirect"] ?? null))) || (=== twig_compare(sw_get_attribute($this->env$this->source, ($context["newsletterAccountPagelet"] ?? null), "newsletterStatus", [], "any"falsefalsefalse57), ($context["statusOptIn"] ?? null)))) || (=== twig_compare(sw_get_attribute($this->env$this->source, ($context["newsletterAccountPagelet"] ?? null), "newsletterStatus", [], "any"falsefalsefalse57), ($context["statusNotSet"] ?? null))))) {
  320.             // line 58
  321.             echo "                            ";
  322.             $context["status"] = true;
  323.             // line 59
  324.             echo "                        ";
  325.         }
  326.         // line 60
  327.         echo "                        ";
  328.         if ((=== twig_compare($this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\FeatureFlagExtension']->feature("FEATURE_NEXT_14001"), false))) {
  329.             // line 61
  330.             echo "                            ";
  331.             $context["status"] = sw_get_attribute($this->env$this->source, ($context["customer"] ?? null), "newsletter", [], "any"falsefalsefalse61);
  332.             // line 62
  333.             echo "                        ";
  334.         }
  335.         // line 63
  336.         echo "                        <input type=\"checkbox\"
  337.                                class=\"";
  338.         // line 64
  339.         echo sw_escape_filter($this->env, ($context["formCheckInputClass"] ?? null), "html"nulltrue);
  340.         echo "\"
  341.                                id=\"newsletterRegister\"
  342.                                name=\"option\"
  343.                                autocomplete=\"off\"
  344.                                value=\"subscribe\"
  345.                                ";
  346.         // line 69
  347.         if (($context["status"] ?? null)) {
  348.             echo "checked=\"checked\"";
  349.         }
  350.         echo ">
  351.                     ";
  352.         
  353.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  354.         
  355.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  356.     }
  357.     // line 72
  358.     public function block_page_account_overview_newsletter_content_form_label($context, array $blocks = [])
  359.     {
  360.         $macros $this->macros;
  361.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  362.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_form_label"));
  363.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  364.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_account_overview_newsletter_content_form_label"));
  365.         // line 73
  366.         echo "                        <label class=\"";
  367.         echo sw_escape_filter($this->env, ($context["formCheckLabelClass"] ?? null), "html"nulltrue);
  368.         echo " custom-control-label\"
  369.                                for=\"newsletterRegister\">
  370.                             ";
  371.         // line 75
  372.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("account.newsletterSettings", ["%shopname%" => $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.basicInformation.shopName")]));
  373.         echo "
  374.                         </label>
  375.                     ";
  376.         
  377.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  378.         
  379.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  380.     }
  381.     public function getTemplateName()
  382.     {
  383.         return "@Storefront/storefront/page/account/newsletter.html.twig";
  384.     }
  385.     public function getDebugInfo()
  386.     {
  387.         return array (  415 => 75,  409 => 73,  399 => 72,  385 => 69,  377 => 64,  374 => 63,  371 => 62,  368 => 61,  365 => 60,  362 => 59,  359 => 58,  356 => 57,  353 => 56,  350 => 55,  347 => 54,  344 => 53,  341 => 52,  338 => 51,  328 => 50,  317 => 78,  315 => 72,  312 => 71,  310 => 50,  305 => 49,  295 => 48,  282 => 45,  272 => 44,  261 => 80,  259 => 48,  256 => 47,  253 => 44,  248 => 41,  243 => 39,  239 => 37,  229 => 36,  218 => 28,  215 => 27,  211 => 25,  197 => 24,  194 => 23,  177 => 22,  174 => 21,  171 => 20,  168 => 19,  164 => 17,  150 => 16,  147 => 15,  130 => 14,  127 => 13,  124 => 12,  121 => 11,  111 => 10,  101 => 36,  98 => 35,  96 => 31,  93 => 30,  91 => 10,  88 => 9,  85 => 8,  82 => 7,  79 => 6,  76 => 5,  74 => 4,  72 => 3,  69 => 2,  50 => 1,);
  388.     }
  389.     public function getSourceContext()
  390.     {
  391.         return new Source("{% block page_account_overview_newsletter_content_inner %}
  392.     {% if feature('FEATURE_NEXT_14001') %}
  393.         {# @deprecated tag:v6.5.0 - variables success, messages and customer will be removed and found as properties of newsletterAccountPagelet #}
  394.         {% set success = newsletterAccountPagelet.success %}
  395.         {% set messages = newsletterAccountPagelet.messages %}
  396.         {% set customer = newsletterAccountPagelet.customer %}
  397.     {% endif %}
  398.     {% block page_account_overview_newsletter_content_success %}
  399.         {% if feature('FEATURE_NEXT_14001') %}
  400.             {% if newsletterAccountPagelet.messages|length > 0 %}
  401.                 <div class=\"newsletter-alerts\">
  402.                     {% for message in newsletterAccountPagelet.messages %}
  403.                         {% sw_include \"@Storefront/storefront/utilities/alert.html.twig\" with { 'type': message.type, 'content': message.text} %}
  404.                     {% endfor %}
  405.                 </div>
  406.             {% endif %}
  407.         {% else %}
  408.             {% if success is not null %}
  409.                 <div class=\"newsletter-alerts\">
  410.                     {% for message in messages %}
  411.                         {% sw_include \"@Storefront/storefront/utilities/alert.html.twig\" with { 'type': message.type, 'content': message.text} %}
  412.                     {% endfor %}
  413.                 </div>
  414.             {% endif %}
  415.         {% endif %}
  416.     {% endblock %}
  417.     {% set formAutoSubmitOptions = {
  418.         useAjax: true,
  419.         ajaxContainerSelector: '.js-newsletter-wrapper'
  420.     } %}
  421.     {% block page_account_overview_newsletter_content_form %}
  422.         <form name=\"newsletterRegister\"
  423.               method=\"post\"
  424.               action=\"{{ path(\"frontend.account.newsletter\") }}\"
  425.               data-form-auto-submit=\"true\"
  426.               data-form-auto-submit-options='{{ formAutoSubmitOptions|json_encode }}'>
  427.             {# @deprecated tag:v6.5.0 - Block page_account_overview_newsletter_content_form_csrf will be removed. #}
  428.             {% block page_account_overview_newsletter_content_form_csrf %}
  429.                 {{ sw_csrf('frontend.account.newsletter') }}
  430.             {% endblock %}
  431.             {% block page_account_overview_newsletter_content_form_check_control %}
  432.                 <div class=\"{{ formCheckboxWrapperClass }}\">
  433.                     {% block page_account_overview_newsletter_content_form_input %}
  434.                         {% set subscribe = constant('Shopware\\\\Core\\\\Content\\\\Newsletter\\\\SalesChannel\\\\NewsletterSubscribeRoute::OPTION_SUBSCRIBE') %}
  435.                         {% set direct = constant('Shopware\\\\Core\\\\Content\\\\Newsletter\\\\SalesChannel\\\\NewsletterSubscribeRoute::OPTION_DIRECT') %}
  436.                         {% set statusDirect = constant('Shopware\\\\Core\\\\Content\\\\Newsletter\\\\SalesChannel\\\\NewsletterSubscribeRoute::STATUS_DIRECT') %}
  437.                         {% set statusOptIn = constant('Shopware\\\\Core\\\\Content\\\\Newsletter\\\\SalesChannel\\\\NewsletterSubscribeRoute::STATUS_OPT_IN') %}
  438.                         {% set statusNotSet = constant('Shopware\\\\Core\\\\Content\\\\Newsletter\\\\SalesChannel\\\\NewsletterSubscribeRoute::STATUS_NOT_SET') %}
  439.                         {% set status = false %}
  440.                         {% if newsletterAccountPagelet.newsletterStatus == statusDirect or newsletterAccountPagelet.newsletterStatus == statusOptIn or newsletterAccountPagelet.newsletterStatus == statusNotSet %}
  441.                             {% set status = true %}
  442.                         {% endif %}
  443.                         {% if feature('FEATURE_NEXT_14001') == false %}
  444.                             {% set status = customer.newsletter %}
  445.                         {% endif %}
  446.                         <input type=\"checkbox\"
  447.                                class=\"{{ formCheckInputClass }}\"
  448.                                id=\"newsletterRegister\"
  449.                                name=\"option\"
  450.                                autocomplete=\"off\"
  451.                                value=\"subscribe\"
  452.                                {% if status %}checked=\"checked\"{% endif %}>
  453.                     {% endblock %}
  454.                     {% block page_account_overview_newsletter_content_form_label %}
  455.                         <label class=\"{{ formCheckLabelClass }} custom-control-label\"
  456.                                for=\"newsletterRegister\">
  457.                             {{ \"account.newsletterSettings\"|trans({'%shopname%': config('core.basicInformation.shopName')})|sw_sanitize }}
  458.                         </label>
  459.                     {% endblock %}
  460.                 </div>
  461.             {% endblock %}
  462.         </form>
  463.     {% endblock %}
  464. {% endblock %}
  465. ""@Storefront/storefront/page/account/newsletter.html.twig""/home/fasflpog/shopware/vendor/shopware/storefront/Resources/views/storefront/page/account/newsletter.html.twig");
  466.     }
  467. }