<?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;
/* @SwagPayPal/storefront/page/checkout/cart/index.html.twig */
class __TwigTemplate_424c3c6902f426f6d18b6791d4dedfa27fa32aa97e7ca2da3266910676091cbc extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_checkout_cart_table_items' => [$this, 'block_page_checkout_cart_table_items'],
'page_checkout_cart_table_items_paypal_installment_banner' => [$this, 'block_page_checkout_cart_table_items_paypal_installment_banner'],
'page_checkout_aside_actions' => [$this, 'block_page_checkout_aside_actions'],
'page_checkout_aside_actions_paypal_express_button' => [$this, 'block_page_checkout_aside_actions_paypal_express_button'],
'page_checkout_aside_actions_paypal_installment_banner' => [$this, 'block_page_checkout_aside_actions_paypal_installment_banner'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@MolliePayments/storefront/page/checkout/cart/index.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SwagPayPal/storefront/page/checkout/cart/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SwagPayPal/storefront/page/checkout/cart/index.html.twig"));
$this->parent = $this->loadTemplate("@MolliePayments/storefront/page/checkout/cart/index.html.twig", "@SwagPayPal/storefront/page/checkout/cart/index.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_page_checkout_cart_table_items($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_cart_table_items"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_cart_table_items"));
// line 4
echo " ";
$this->displayParentBlock("page_checkout_cart_table_items", $context, $blocks);
echo "
";
// line 6
$this->displayBlock('page_checkout_cart_table_items_paypal_installment_banner', $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function block_page_checkout_cart_table_items_paypal_installment_banner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_cart_table_items_paypal_installment_banner"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_cart_table_items_paypal_installment_banner"));
// line 7
echo " ";
// line 8
echo " ";
$context["installmentBanner"] = (($__internal_compile_0 = sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 8)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[twig_constant("Swag\\PayPal\\Installment\\Banner\\InstallmentBannerSubscriber::PAYPAL_INSTALLMENT_BANNER_DATA_CART_PAGE_EXTENSION_ID")] ?? null) : null);
// line 9
echo "
";
// line 10
if ( !(null === ($context["installmentBanner"] ?? null))) {
// line 11
echo " <div class=\"form-row\">
<div class=\"col\"
data-swag-paypal-installment-banner=\"true\"
data-swag-pay-pal-installment-banner-options=\"";
// line 14
echo sw_escape_filter($this->env, call_user_func_array($this->env->getFilter('json_encode')->getCallable(), [($context["installmentBanner"] ?? null)]), "html", null, true);
echo "\">
</div>
</div>
";
}
// line 18
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 21
public function block_page_checkout_aside_actions($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_aside_actions"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_aside_actions"));
// line 22
echo " ";
$this->displayParentBlock("page_checkout_aside_actions", $context, $blocks);
echo "
";
// line 24
$this->displayBlock('page_checkout_aside_actions_paypal_express_button', $context, $blocks);
// line 32
echo "
";
// line 33
$this->displayBlock('page_checkout_aside_actions_paypal_installment_banner', $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 24
public function block_page_checkout_aside_actions_paypal_express_button($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_aside_actions_paypal_express_button"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_aside_actions_paypal_express_button"));
// line 25
echo " ";
// line 26
echo " ";
$context["expressSettings"] = (($__internal_compile_1 = sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 26)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[twig_constant("Swag\\PayPal\\Checkout\\ExpressCheckout\\ExpressCheckoutSubscriber::PAYPAL_EXPRESS_CHECKOUT_BUTTON_DATA_EXTENSION_ID")] ?? null) : null);
// line 27
echo "
";
// line 28
if (sw_get_attribute($this->env, $this->source, ($context["expressSettings"] ?? null), "cartEnabled", [], "any", false, false, false, 28)) {
// line 29
echo " ";
$this->loadTemplate("@SwagPayPal/storefront/component/ecs-spb-checkout/ecs-button.html.twig", "@SwagPayPal/storefront/page/checkout/cart/index.html.twig", 29)->display(twig_array_merge($context, ["button_class" => "checkout-aside-action"]));
// line 30
echo " ";
}
// line 31
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 33
public function block_page_checkout_aside_actions_paypal_installment_banner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_aside_actions_paypal_installment_banner"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_aside_actions_paypal_installment_banner"));
// line 34
echo " ";
// line 35
echo " ";
$context["installmentBanner"] = (($__internal_compile_2 = sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 35)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[twig_constant("Swag\\PayPal\\Installment\\Banner\\InstallmentBannerSubscriber::PAYPAL_INSTALLMENT_BANNER_DATA_EXTENSION_ID")] ?? null) : null);
// line 36
echo "
";
// line 37
if ( !(null === ($context["installmentBanner"] ?? null))) {
// line 38
echo " <div class=\"checkout-aside-action\"
data-swag-paypal-installment-banner=\"true\"
data-swag-pay-pal-installment-banner-options=\"";
// line 40
echo sw_escape_filter($this->env, call_user_func_array($this->env->getFilter('json_encode')->getCallable(), [($context["installmentBanner"] ?? null)]), "html", null, true);
echo "\">
</div>
";
}
// line 43
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SwagPayPal/storefront/page/checkout/cart/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 226 => 43, 220 => 40, 216 => 38, 214 => 37, 211 => 36, 208 => 35, 206 => 34, 196 => 33, 186 => 31, 183 => 30, 180 => 29, 178 => 28, 175 => 27, 172 => 26, 170 => 25, 160 => 24, 150 => 33, 147 => 32, 145 => 24, 139 => 22, 129 => 21, 119 => 18, 112 => 14, 107 => 11, 105 => 10, 102 => 9, 99 => 8, 97 => 7, 78 => 6, 72 => 4, 62 => 3, 39 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/checkout/cart/index.html.twig' %}
{% block page_checkout_cart_table_items %}
{{ parent() }}
{% block page_checkout_cart_table_items_paypal_installment_banner %}
{# @var \\Swag\\PayPal\\Installment\\Banner\\BannerData installmentBanner #}
{% set installmentBanner = page.extensions[constant('Swag\\\\PayPal\\\\Installment\\\\Banner\\\\InstallmentBannerSubscriber::PAYPAL_INSTALLMENT_BANNER_DATA_CART_PAGE_EXTENSION_ID')] %}
{% if installmentBanner is not null %}
<div class=\"form-row\">
<div class=\"col\"
data-swag-paypal-installment-banner=\"true\"
data-swag-pay-pal-installment-banner-options=\"{{ installmentBanner|json_encode }}\">
</div>
</div>
{% endif %}
{% endblock %}
{% endblock %}
{% block page_checkout_aside_actions %}
{{ parent() }}
{% block page_checkout_aside_actions_paypal_express_button %}
{# @var \\Swag\\PayPal\\Checkout\\ExpressCheckout\\ExpressCheckoutButtonData expressSettings #}
{% set expressSettings = page.extensions[constant('Swag\\\\PayPal\\\\Checkout\\\\ExpressCheckout\\\\ExpressCheckoutSubscriber::PAYPAL_EXPRESS_CHECKOUT_BUTTON_DATA_EXTENSION_ID')] %}
{% if expressSettings.cartEnabled %}
{% sw_include '@SwagPayPal/storefront/component/ecs-spb-checkout/ecs-button.html.twig' with {button_class: 'checkout-aside-action'} %}
{% endif %}
{% endblock %}
{% block page_checkout_aside_actions_paypal_installment_banner %}
{# @var \\Swag\\PayPal\\Installment\\Banner\\BannerData installmentBanner #}
{% set installmentBanner = page.extensions[constant('Swag\\\\PayPal\\\\Installment\\\\Banner\\\\InstallmentBannerSubscriber::PAYPAL_INSTALLMENT_BANNER_DATA_EXTENSION_ID')] %}
{% if installmentBanner is not null %}
<div class=\"checkout-aside-action\"
data-swag-paypal-installment-banner=\"true\"
data-swag-pay-pal-installment-banner-options=\"{{ installmentBanner|json_encode }}\">
</div>
{% endif %}
{% endblock %}
{% endblock %}
", "@SwagPayPal/storefront/page/checkout/cart/index.html.twig", "/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/SwagPayPal/src/Resources/views/storefront/page/checkout/cart/index.html.twig");
}
}