<?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;
/* @NewsletterSendinblue/storefront/layout/meta.html.twig */
class __TwigTemplate_1ea446a2dc25235825f2670fe5a551a178d202605ed2db90179dfdb7e33462e1 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NewsletterSendinblue/storefront/layout/meta.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NewsletterSendinblue/storefront/layout/meta.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/layout/meta.html.twig", "@NewsletterSendinblue/storefront/layout/meta.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_layout_head_javascript_tracking($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", "layout_head_javascript_tracking"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_javascript_tracking"));
// line 4
echo " ";
$this->displayParentBlock("layout_head_javascript_tracking", $context, $blocks);
echo "
";
// line 6
if ((0 === twig_compare(($context["sendinblueIsPageTrackingEnabled"] ?? null), true))) {
// line 7
echo " <script type=\"text/javascript\">(function() {window.sib = {equeue: [], client_key: \"";
echo sw_escape_filter($this->env, ($context["sendinblueMAKey"] ?? null), "html", null, true);
echo "\"};";
if ( !twig_test_empty(($context["sendinblueUserEmail"] ?? null))) {
echo "window.sib.email_id = '";
echo sw_escape_filter($this->env, ($context["sendinblueUserEmail"] ?? null), "html", null, true);
echo "';";
}
echo "window.sendinblue = {};for (var j = ['track', 'identify', 'trackLink', 'page'], i = 0; i < j.length; i++) {(function(k) {window.sendinblue[k] = function() {var arg = Array.prototype.slice.call(arguments);(window.sib[k] || function() {var t = {};t[k] = arg;window.sib.equeue.push(t);})(arg[0], arg[1], arg[2]);};})(j[i]);}var n = document.createElement(\"script\"), i = document.getElementsByTagName(\"script\")[0];n.type = \"text/javascript\", n.id = \"sendinblue-js\", n.async = !0, n.src = \"https://sibautomation.com/sa.js?key=\" + window.sib.client_key, i.parentNode.insertBefore(n, i), window.sendinblue.page();})();</script>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@NewsletterSendinblue/storefront/layout/meta.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 76 => 7, 74 => 6, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
{% block layout_head_javascript_tracking %}
{{ parent() }}
{% if sendinblueIsPageTrackingEnabled == true %}
<script type=\"text/javascript\">(function() {window.sib = {equeue: [], client_key: \"{{ sendinblueMAKey }}\"};{% if sendinblueUserEmail is not empty %}window.sib.email_id = '{{ sendinblueUserEmail }}';{% endif %}window.sendinblue = {};for (var j = ['track', 'identify', 'trackLink', 'page'], i = 0; i < j.length; i++) {(function(k) {window.sendinblue[k] = function() {var arg = Array.prototype.slice.call(arguments);(window.sib[k] || function() {var t = {};t[k] = arg;window.sib.equeue.push(t);})(arg[0], arg[1], arg[2]);};})(j[i]);}var n = document.createElement(\"script\"), i = document.getElementsByTagName(\"script\")[0];n.type = \"text/javascript\", n.id = \"sendinblue-js\", n.async = !0, n.src = \"https://sibautomation.com/sa.js?key=\" + window.sib.client_key, i.parentNode.insertBefore(n, i), window.sendinblue.page();})();</script>
{% endif %}
{% endblock %}
", "@NewsletterSendinblue/storefront/layout/meta.html.twig", "/var/customers/webs/iab/htdocs/custom/plugins/NewsletterSendinblue/src/Resources/views/storefront/layout/meta.html.twig");
}
}