<?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;
/* @TrustedShopsEasyIntegrationS6/storefront/layout/meta.html.twig */
class __TwigTemplate_a25e5c2ee797732513376cb831126311 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'layout_head_javascript_tracking' => [$this, 'block_layout_head_javascript_tracking'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/layout/meta.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", "@TrustedShopsEasyIntegrationS6/storefront/layout/meta.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@TrustedShopsEasyIntegrationS6/storefront/layout/meta.html.twig"));
// line 3
$context["tsConfig"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "trustedShopsApp.config");
// line 4
$context["tsChannelId"] = (((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, true, false, 4), "id", [], "any", true, true, false, 4) && !(null === sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, true, false, 4), "id", [], "any", false, false, false, 4)))) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, true, false, 4), "id", [], "any", false, false, false, 4)) : (null));
// line 5
$context["activeLanguageIsoCode"] = (((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "header", [], "any", false, true, false, 5), "activeLanguage", [], "any", false, true, false, 5), "translationCode", [], "any", false, true, false, 5), "code", [], "any", true, true, false, 5) && !(null === sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "header", [], "any", false, true, false, 5), "activeLanguage", [], "any", false, true, false, 5), "translationCode", [], "any", false, true, false, 5), "code", [], "any", false, false, false, 5)))) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "header", [], "any", false, true, false, 5), "activeLanguage", [], "any", false, true, false, 5), "translationCode", [], "any", false, true, false, 5), "code", [], "any", false, false, false, 5)) : (null));
// line 6
$context["tsChannelRef"] = ((($context["tsChannelId"] ?? null) . ".") . ($context["activeLanguageIsoCode"] ?? null));
// line 2
$this->parent = $this->loadTemplate("@Storefront/storefront/layout/meta.html.twig", "@TrustedShopsEasyIntegrationS6/storefront/layout/meta.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 8
public function block_layout_head_javascript_tracking($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", "layout_head_javascript_tracking"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_javascript_tracking"));
// line 9
echo " ";
$this->displayParentBlock("layout_head_javascript_tracking", $context, $blocks);
echo "
";
// line 11
if ( !(null === ($context["tsChannelId"] ?? null))) {
// line 12
echo " ";
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["tsConfig"] ?? null), ($context["tsChannelId"] ?? null), [], "array", false, true, false, 12), ($context["activeLanguageIsoCode"] ?? null), [], "array", false, true, false, 12), "widgets", [], "any", true, true, false, 12) && !(null === sw_get_attribute($this->env, $this->source, (($__internal_compile_0 = (($__internal_compile_1 = ($context["tsConfig"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[($context["tsChannelId"] ?? null)] ?? null) : null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[($context["activeLanguageIsoCode"] ?? null)] ?? null) : null), "widgets", [], "any", false, false, false, 12)))) {
// line 13
echo " ";
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["tsConfig"] ?? null), ($context["tsChannelId"] ?? null), [], "array", false, true, false, 13), ($context["activeLanguageIsoCode"] ?? null), [], "array", false, true, false, 13), "widgets", [], "any", true, true, false, 13) && ((($__internal_compile_2 = ($context["expectedMapping"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[($context["tsChannelRef"] ?? null)] ?? null) : null) === sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, (($__internal_compile_3 = (($__internal_compile_4 = ($context["tsConfig"] ?? null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4[($context["tsChannelId"] ?? null)] ?? null) : null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3[($context["activeLanguageIsoCode"] ?? null)] ?? null) : null), "widgets", [], "any", false, false, false, 13), "eTrustedChannelRef", [], "any", false, false, false, 13)))) {
// line 14
echo " ";
$context["widgetConfig"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, (($__internal_compile_5 = (($__internal_compile_6 = ($context["tsConfig"] ?? null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6[($context["tsChannelId"] ?? null)] ?? null) : null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5[($context["activeLanguageIsoCode"] ?? null)] ?? null) : null), "widgets", [], "any", false, false, false, 14), "children", [], "any", false, false, false, 14), 0, [], "any", false, false, false, 14);
// line 15
echo " ";
$this->loadTemplate("@TrustedShopsEasyIntegrationS6/storefront/includes/script-assembler.html.twig", "@TrustedShopsEasyIntegrationS6/storefront/layout/meta.html.twig", 15)->display(twig_array_merge($context, ["scriptConfig" => // line 16
($context["widgetConfig"] ?? null)]));
// line 18
echo " ";
}
// line 19
echo " ";
}
// line 20
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@TrustedShopsEasyIntegrationS6/storefront/layout/meta.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 104 => 20, 101 => 19, 98 => 18, 96 => 16, 94 => 15, 91 => 14, 88 => 13, 85 => 12, 83 => 11, 77 => 9, 67 => 8, 56 => 2, 54 => 6, 52 => 5, 50 => 4, 48 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
{% set tsConfig = config('trustedShopsApp.config') %}
{% set tsChannelId = context.salesChannel.id ?? null %}
{% set activeLanguageIsoCode = page.header.activeLanguage.translationCode.code ?? null %}
{% set tsChannelRef = tsChannelId ~ '.' ~ activeLanguageIsoCode %}
{% block layout_head_javascript_tracking %}
{{ parent() }}
{% if tsChannelId is not null %}
{% if tsConfig[tsChannelId][activeLanguageIsoCode].widgets is defined and tsConfig[tsChannelId][activeLanguageIsoCode].widgets is not null %}
{% if tsConfig[tsChannelId][activeLanguageIsoCode].widgets is defined and expectedMapping[tsChannelRef] === tsConfig[tsChannelId][activeLanguageIsoCode].widgets.eTrustedChannelRef %}
{% set widgetConfig = tsConfig[tsChannelId][activeLanguageIsoCode].widgets.children.0 %}
{% sw_include '@Storefront/storefront/includes/script-assembler.html.twig' with {
scriptConfig: widgetConfig
} %}
{% endif %}
{% endif %}
{% endif %}
{% endblock %}", "@TrustedShopsEasyIntegrationS6/storefront/layout/meta.html.twig", "/var/customers/webs/fporzellan/htdocs/custom/apps/TrustedShopsEasyIntegrationS6/Resources/views/storefront/layout/meta.html.twig");
}
}