<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @SwagAmazonPay/storefront/page/account/register/index.html.twig */
class __TwigTemplate_badf8558e3b4c8899e371dbe9caf9481 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_account_register_advantages' => [$this, 'block_page_account_register_advantages'],
'page_checkout_address_login_swag_amazon_pay_card_body' => [$this, 'block_page_checkout_address_login_swag_amazon_pay_card_body'],
'component_account_login_swag_amazon_pay_button' => [$this, 'block_component_account_login_swag_amazon_pay_button'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/page/account/register/index.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SwagAmazonPay/storefront/page/account/register/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SwagAmazonPay/storefront/page/account/register/index.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/page/account/register/index.html.twig", "@SwagAmazonPay/storefront/page/account/register/index.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_page_account_register_advantages($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_account_register_advantages"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_account_register_advantages"));
// line 4
echo " ";
$context["amazonPayButton"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 4), "SwagAmazonPayButton", [], "any", false, false, false, 4);
// line 5
echo " ";
if ((($context["amazonPayButton"] ?? null) && !sw_get_attribute($this->env, $this->source, ($context["amazonPayButton"] ?? null), "hideButton", [], "any", false, false, false, 5))) {
// line 6
echo " <div class=\"card swag-amazon-pay-card\">
<div class=\"card-body\">
";
// line 8
$this->displayBlock('page_checkout_address_login_swag_amazon_pay_card_body', $context, $blocks);
// line 18
echo " </div>
</div>
";
}
// line 21
echo "
";
// line 22
$this->displayParentBlock("page_account_register_advantages", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 8
public function block_page_checkout_address_login_swag_amazon_pay_card_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_address_login_swag_amazon_pay_card_body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_address_login_swag_amazon_pay_card_body"));
// line 9
echo " <div class=\"card-title\">";
echo sw_escape_filter($this->env, twig_striptags($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SwagAmazonPay.register.headline")), "html", null, true);
echo "</div>
<p class=\"card-text\">";
// line 10
echo sw_escape_filter($this->env, twig_striptags($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SwagAmazonPay.register.text")), "html", null, true);
echo "</p>
";
// line 12
$this->displayBlock('component_account_login_swag_amazon_pay_button', $context, $blocks);
// line 17
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 12
public function block_component_account_login_swag_amazon_pay_button($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_account_login_swag_amazon_pay_button"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_account_login_swag_amazon_pay_button"));
// line 13
echo " ";
$this->loadTemplate("@SwagAmazonPay/storefront/component/swag-amazon-pay/amazon-login-button.html.twig", "@SwagAmazonPay/storefront/page/account/register/index.html.twig", 13)->display(twig_array_merge($context, ["identifier" => "account-login"]));
// line 16
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@SwagAmazonPay/storefront/page/account/register/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 147 => 16, 144 => 13, 134 => 12, 124 => 17, 122 => 12, 117 => 10, 112 => 9, 102 => 8, 90 => 22, 87 => 21, 82 => 18, 80 => 8, 76 => 6, 73 => 5, 70 => 4, 60 => 3, 37 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/account/register/index.html.twig' %}
{% block page_account_register_advantages %}
{% set amazonPayButton = page.extensions.SwagAmazonPayButton %}
{% if amazonPayButton and not amazonPayButton.hideButton %}
<div class=\"card swag-amazon-pay-card\">
<div class=\"card-body\">
{% block page_checkout_address_login_swag_amazon_pay_card_body %}
<div class=\"card-title\">{{ \"SwagAmazonPay.register.headline\"|trans|striptags }}</div>
<p class=\"card-text\">{{ \"SwagAmazonPay.register.text\"|trans|striptags }}</p>
{% block component_account_login_swag_amazon_pay_button %}
{% sw_include '@Storefront/storefront/component/swag-amazon-pay/amazon-login-button.html.twig' with {
'identifier': 'account-login'
} %}
{% endblock %}
{% endblock %}
</div>
</div>
{% endif %}
{{ parent() }}
{% endblock %}
", "@SwagAmazonPay/storefront/page/account/register/index.html.twig", "/var/customers/webs/kew/htdocs6/vendor/store.shopware.com/swagamazonpay/src/Resources/views/storefront/page/account/register/index.html.twig");
}
}