<?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/component/checkout/offcanvas-cart.html.twig */
class __TwigTemplate_29c3ba866f7b250f9f6ef325fedf276b09457fc2fbadd6939f60b9538bb17bba extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'component_offcanvas_cart_actions_cart' => [$this, 'block_component_offcanvas_cart_actions_cart'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/component/checkout/offcanvas-cart.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/component/checkout/offcanvas-cart.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/component/checkout/offcanvas-cart.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/component/checkout/offcanvas-cart.html.twig", "@SwagPayPal/storefront/component/checkout/offcanvas-cart.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_component_offcanvas_cart_actions_cart($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", "component_offcanvas_cart_actions_cart"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_offcanvas_cart_actions_cart"));
// line 4
echo " ";
$this->displayParentBlock("component_offcanvas_cart_actions_cart", $context, $blocks);
echo "
";
// line 7
echo " ";
$context["expressSettings"] = (($__internal_compile_0 = sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 7)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[twig_constant("Swag\\PayPal\\Checkout\\ExpressCheckout\\ExpressCheckoutSubscriber::PAYPAL_EXPRESS_CHECKOUT_BUTTON_DATA_EXTENSION_ID")] ?? null) : null);
// line 8
echo "
";
// line 9
if (sw_get_attribute($this->env, $this->source, ($context["expressSettings"] ?? null), "offCanvasEnabled", [], "any", false, false, false, 9)) {
// line 10
echo " ";
$this->loadTemplate("@SwagPayPal/storefront/component/ecs-spb-checkout/ecs-button.html.twig", "@SwagPayPal/storefront/component/checkout/offcanvas-cart.html.twig", 10)->display(twig_array_merge($context, ["button_class" => "btn-block"]));
// line 11
echo " ";
}
// line 12
echo "
";
// line 14
echo " ";
$context["installmentBanner"] = (($__internal_compile_1 = sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 14)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[twig_constant("Swag\\PayPal\\Installment\\Banner\\InstallmentBannerSubscriber::PAYPAL_INSTALLMENT_BANNER_DATA_EXTENSION_ID")] ?? null) : null);
// line 15
echo "
";
// line 16
if ( !(null === ($context["installmentBanner"] ?? null))) {
// line 17
echo " <div class=\"btn-block ml-1\"
data-swag-paypal-installment-banner=\"true\"
data-swag-pay-pal-installment-banner-options=\"";
// line 19
echo sw_escape_filter($this->env, $this->env->getFilter('json_encode')->getCallable()(($context["installmentBanner"] ?? null)), "html", null, true);
echo "\">
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SwagPayPal/storefront/component/checkout/offcanvas-cart.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 103 => 19, 99 => 17, 97 => 16, 94 => 15, 91 => 14, 88 => 12, 85 => 11, 82 => 10, 80 => 9, 77 => 8, 74 => 7, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/component/checkout/offcanvas-cart.html.twig' %}
{% block component_offcanvas_cart_actions_cart %}
{{ parent() }}
{# @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.offCanvasEnabled %}
{% sw_include '@SwagPayPal/storefront/component/ecs-spb-checkout/ecs-button.html.twig' with {button_class: 'btn-block'} %}
{% endif %}
{# @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=\"btn-block ml-1\"
data-swag-paypal-installment-banner=\"true\"
data-swag-pay-pal-installment-banner-options=\"{{ installmentBanner|json_encode }}\">
</div>
{% endif %}
{% endblock %}
", "@SwagPayPal/storefront/component/checkout/offcanvas-cart.html.twig", "/home/fasflpog/shopware/custom/plugins/SwagPayPal/src/Resources/views/storefront/component/checkout/offcanvas-cart.html.twig");
}
}