<?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;
/* @MomoLoginRedirectSW6/storefront/base.html.twig */
class __TwigTemplate_202e6629dec561d79815d9700945896a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'base_cookie_permission' => [$this, 'block_base_cookie_permission'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@IntediaDoofinderSW6/storefront/base.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", "@MomoLoginRedirectSW6/storefront/base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@MomoLoginRedirectSW6/storefront/base.html.twig"));
$this->parent = $this->loadTemplate("@IntediaDoofinderSW6/storefront/base.html.twig", "@MomoLoginRedirectSW6/storefront/base.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_base_cookie_permission($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", "base_cookie_permission"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_cookie_permission"));
// line 4
echo " ";
$this->displayParentBlock("base_cookie_permission", $context, $blocks);
echo "
";
// line 6
$context["momoLoginRedirectCookieName"] = twig_constant("Momocode\\MomoLoginRedirectSW6\\Storefront\\Framework\\Cookie\\CookieProviderDecorator::LOGIN_REDIRECT_COOKIE_KEY");
// line 9
echo "
";
// line 10
$context["momoLoginRedirectDebugLoggingActive"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "MomoLoginRedirectSW6.config.debugLoggingActive");
// line 11
echo "
";
// line 12
$context["momoLoginRedirectCookieData"] = ["route" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 13
($context["app"] ?? null), "request", [], "any", false, false, false, 13), "attributes", [], "any", false, false, false, 13), "get", [0 => "_route"], "method", false, false, false, 13), "routeParams" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 14
($context["app"] ?? null), "request", [], "any", false, true, false, 14), "attributes", [], "any", false, true, false, 14), "get", [0 => "_route_params"], "method", true, true, false, 14)) ? (_twig_default_filter(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 14), "attributes", [], "any", false, true, false, 14), "get", [0 => "_route_params"], "method", false, false, false, 14), [])) : ([])), "queryParams" => ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 15
($context["app"] ?? null), "request", [], "any", false, true, false, 15), "query", [], "any", false, true, false, 15), "all", [], "any", true, true, false, 15)) ? (_twig_default_filter(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 15), "query", [], "any", false, true, false, 15), "all", [], "any", false, false, false, 15), [])) : ([]))];
// line 17
echo "
<div data-momo-login-redirect=\"true\"
data-cookie-group=\"";
// line 19
echo sw_escape_filter($this->env, $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "MomoLoginRedirectSW6.config.cookieGroup"), "html", null, true);
echo "\"
data-cookie-name=\"";
// line 20
echo sw_escape_filter($this->env, ($context["momoLoginRedirectCookieName"] ?? null), "html", null, true);
echo "\"
data-cookie-data=\"";
// line 21
echo sw_escape_filter($this->env, $this->env->getFilter('json_encode')->getCallable()(($context["momoLoginRedirectCookieData"] ?? null)), "html", null, true);
echo "\"
data-debug-logging-active=\"";
// line 22
echo ((($context["momoLoginRedirectDebugLoggingActive"] ?? null)) ? ("true") : ("false"));
echo "\"
></div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@MomoLoginRedirectSW6/storefront/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 105 => 22, 101 => 21, 97 => 20, 93 => 19, 89 => 17, 87 => 15, 86 => 14, 85 => 13, 84 => 12, 81 => 11, 79 => 10, 76 => 9, 74 => 6, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% block base_cookie_permission %}
{{ parent() }}
{% set momoLoginRedirectCookieName = constant(
'Momocode\\\\MomoLoginRedirectSW6\\\\Storefront\\\\Framework\\\\Cookie\\\\CookieProviderDecorator::LOGIN_REDIRECT_COOKIE_KEY'
) %}
{% set momoLoginRedirectDebugLoggingActive = config('MomoLoginRedirectSW6.config.debugLoggingActive') %}
{% set momoLoginRedirectCookieData = {
'route': app.request.attributes.get('_route'),
'routeParams': app.request.attributes.get('_route_params')|default([]),
'queryParams': app.request.query.all|default([]),
} %}
<div data-momo-login-redirect=\"true\"
data-cookie-group=\"{{ config('MomoLoginRedirectSW6.config.cookieGroup') }}\"
data-cookie-name=\"{{ momoLoginRedirectCookieName }}\"
data-cookie-data=\"{{ momoLoginRedirectCookieData|json_encode }}\"
data-debug-logging-active=\"{{ momoLoginRedirectDebugLoggingActive ? 'true' : 'false' }}\"
></div>
{% endblock %}", "@MomoLoginRedirectSW6/storefront/base.html.twig", "/var/www/share/efb-elektronik.dev.mc.emzcustomers.de/shopware6/custom/plugins/MomoLoginRedirectSW6/src/Resources/views/storefront/base.html.twig");
}
}