<?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;
/* @SmartsuppChat/storefront/base.html.twig */
class __TwigTemplate_c6f9bc0c0e1a7f55dc8ae3440f70ad1f7be405335f2de5ac321d2e7a36338b0a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'base_body_script' => [$this, 'block_base_body_script'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@TrustedShops/storefront/base.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", "@SmartsuppChat/storefront/base.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SmartsuppChat/storefront/base.html.twig"));
$this->parent = $this->loadTemplate("@TrustedShops/storefront/base.html.twig", "@SmartsuppChat/storefront/base.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_base_body_script($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", "base_body_script"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_body_script"));
// line 4
echo " ";
$this->displayParentBlock("base_body_script", $context, $blocks);
echo "
";
// line 6
$context["swCookies"] = (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 6), "smartsuppCookies", [], "any", false, false, false, 6), "key", [], "any", false, false, false, 6) == 1);
// line 7
echo " ";
$context["Key"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 7), "smartsuppConfiguration", [], "any", false, false, false, 7), "key", [], "any", false, false, false, 7);
// line 8
echo " ";
$context["hasKey"] = (array_key_exists("Key", $context) && (($context["Key"] ?? null) != ""));
// line 9
echo " ";
$context["Color"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 9), "smartsuppColor", [], "any", false, false, false, 9), "key", [], "any", false, false, false, 9);
// line 10
echo " ";
$context["hasColor"] = (array_key_exists("Color", $context) && (($context["Color"] ?? null) != ""));
// line 11
echo " ";
$context["Config"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 11), "smartsuppConfig", [], "any", false, false, false, 11), "key", [], "any", false, false, false, 11);
// line 12
echo " ";
$context["hasConfig"] = (array_key_exists("Config", $context) && (($context["Config"] ?? null) != ""));
// line 13
echo " ";
$context["Api"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 13), "smartsuppApi", [], "any", false, false, false, 13), "key", [], "any", false, false, false, 13);
// line 14
echo " ";
$context["hasApi"] = (array_key_exists("Api", $context) && (($context["Api"] ?? null) != ""));
// line 15
echo "
";
// line 16
if (($context["hasKey"] ?? null)) {
// line 17
echo " <script id=\"smartsupp_live_chat\" key=\"";
echo sw_escape_filter($this->env, ($context["Key"] ?? null), "html", null, true);
echo "\"";
if (($context["hasColor"] ?? null)) {
echo " color=\"";
echo sw_escape_filter($this->env, ($context["Color"] ?? null), "html", null, true);
echo "\"";
}
if (($context["hasConfig"] ?? null)) {
echo " config=\"";
echo sw_escape_filter($this->env, ($context["Config"] ?? null), "html", null, true);
echo "\"";
}
if (($context["hasApi"] ?? null)) {
echo " api=\"";
echo sw_escape_filter($this->env, ($context["Api"] ?? null), "html", null, true);
echo "\"";
}
echo ">
function getCookie(name) {
var cookieMatch = document.cookie.match(name + '=(.*?)(;|\$)');
return cookieMatch && decodeURI(cookieMatch[1]);
}
var ssCookieFcn = getCookie('cookieSmartsuppFunctional'),
ssCookieSts = getCookie('cookieSmartsuppStatistics'),
ssCookieMkt = getCookie('cookieSmartsuppMarketing')
";
// line 27
if (($context["swCookies"] ?? null)) {
// line 28
echo " if (ssCookieFcn != null) {
var _smartsupp = _smartsupp || {};
_smartsupp.key = '";
// line 30
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 30), "smartsuppConfiguration", [], "any", false, false, false, 30), "key", [], "any", false, false, false, 30), "html", null, true);
echo "';
_smartsupp.pluginVersion = '1.0.1';
_smartsupp.offsetY = 65;
window.smartsupp||(function(d) {
var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
s=d.getElementsByTagName('script')[0];c=d.createElement('script');
c.type='text/javascript';c.charset='utf-8';c.async=true;
c.src='//www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
})(document);
if (ssCookieSts != null) {
smartsupp('analyticsConsent', true);
} else {
smartsupp('analyticsConsent', false);
}
if (ssCookieMkt != null) {
smartsupp('marketingConsent', true);
} else {
smartsupp('marketingConsent', false);
}
";
// line 53
if (($context["hasColor"] ?? null)) {
// line 54
echo " _smartsupp.color = '";
echo sw_escape_filter($this->env, ($context["Color"] ?? null), "html", null, true);
echo "';
";
}
// line 56
echo "
";
// line 57
if (($context["hasConfig"] ?? null)) {
// line 58
echo " ";
echo sw_escape_filter($this->env, ($context["Config"] ?? null), "html", null, true);
echo "
";
}
// line 60
echo "
";
// line 61
if (($context["hasApi"] ?? null)) {
// line 62
echo " ";
echo sw_escape_filter($this->env, ($context["Api"] ?? null), "html", null, true);
echo "
";
}
// line 64
echo " }
";
} else {
// line 66
echo " var _smartsupp = _smartsupp || {};
_smartsupp.key = '";
// line 67
echo sw_escape_filter($this->env, ($context["Key"] ?? null), "html", null, true);
echo "';
_smartsupp.pluginVersion = '1.0.1';
_smartsupp.offsetY = 65;
";
// line 70
if (($context["hasColor"] ?? null)) {
// line 71
echo " _smartsupp.color = '";
echo sw_escape_filter($this->env, ($context["Color"] ?? null), "html", null, true);
echo "';
";
}
// line 73
echo "
window.smartsupp||(function(d) {
var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
s=d.getElementsByTagName('script')[0];c=d.createElement('script');
c.type='text/javascript';c.charset='utf-8';c.async=true;
c.src='//www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
})(document);
smartsupp('analyticsConsent', true);
smartsupp('marketingConsent', true);
";
// line 84
if (($context["hasConfig"] ?? null)) {
// line 85
echo " ";
echo sw_escape_filter($this->env, ($context["Config"] ?? null), "html", null, true);
echo "
";
}
// line 87
echo "
";
// line 88
if (($context["hasApi"] ?? null)) {
// line 89
echo " ";
echo sw_escape_filter($this->env, ($context["Api"] ?? null), "html", null, true);
echo "
";
}
// line 91
echo " ";
}
// line 92
echo " </script>
";
}
// line 94
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SmartsuppChat/storefront/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 257 => 94, 253 => 92, 250 => 91, 244 => 89, 242 => 88, 239 => 87, 233 => 85, 231 => 84, 218 => 73, 212 => 71, 210 => 70, 204 => 67, 201 => 66, 197 => 64, 191 => 62, 189 => 61, 186 => 60, 180 => 58, 178 => 57, 175 => 56, 169 => 54, 167 => 53, 141 => 30, 137 => 28, 135 => 27, 105 => 17, 103 => 16, 100 => 15, 97 => 14, 94 => 13, 91 => 12, 88 => 11, 85 => 10, 82 => 9, 79 => 8, 76 => 7, 74 => 6, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@@Storefront/storefront/base.html.twig' %}
{% block base_body_script %}
{{ parent() }}
{% set swCookies = page.extensions.smartsuppCookies.key == 1 %}
{% set Key = page.extensions.smartsuppConfiguration.key %}
{% set hasKey = Key is defined and Key != '' %}
{% set Color = page.extensions.smartsuppColor.key %}
{% set hasColor = Color is defined and Color != '' %}
{% set Config = page.extensions.smartsuppConfig.key %}
{% set hasConfig = Config is defined and Config != '' %}
{% set Api = page.extensions.smartsuppApi.key %}
{% set hasApi = Api is defined and Api != '' %}
{% if hasKey %}
<script id=\"smartsupp_live_chat\" key=\"{{ Key }}\"{% if hasColor %} color=\"{{ Color }}\"{% endif %}{% if hasConfig %} config=\"{{ Config }}\"{% endif %}{% if hasApi %} api=\"{{ Api }}\"{% endif %}>
function getCookie(name) {
var cookieMatch = document.cookie.match(name + '=(.*?)(;|\$)');
return cookieMatch && decodeURI(cookieMatch[1]);
}
var ssCookieFcn = getCookie('cookieSmartsuppFunctional'),
ssCookieSts = getCookie('cookieSmartsuppStatistics'),
ssCookieMkt = getCookie('cookieSmartsuppMarketing')
{% if swCookies %}
if (ssCookieFcn != null) {
var _smartsupp = _smartsupp || {};
_smartsupp.key = '{{ page.extensions.smartsuppConfiguration.key }}';
_smartsupp.pluginVersion = '1.0.1';
_smartsupp.offsetY = 65;
window.smartsupp||(function(d) {
var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
s=d.getElementsByTagName('script')[0];c=d.createElement('script');
c.type='text/javascript';c.charset='utf-8';c.async=true;
c.src='//www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
})(document);
if (ssCookieSts != null) {
smartsupp('analyticsConsent', true);
} else {
smartsupp('analyticsConsent', false);
}
if (ssCookieMkt != null) {
smartsupp('marketingConsent', true);
} else {
smartsupp('marketingConsent', false);
}
{% if hasColor %}
_smartsupp.color = '{{ Color }}';
{% endif %}
{% if hasConfig %}
{{ Config }}
{% endif %}
{% if hasApi %}
{{ Api }}
{% endif %}
}
{% else %}
var _smartsupp = _smartsupp || {};
_smartsupp.key = '{{ Key }}';
_smartsupp.pluginVersion = '1.0.1';
_smartsupp.offsetY = 65;
{% if hasColor %}
_smartsupp.color = '{{ Color }}';
{% endif %}
window.smartsupp||(function(d) {
var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
s=d.getElementsByTagName('script')[0];c=d.createElement('script');
c.type='text/javascript';c.charset='utf-8';c.async=true;
c.src='//www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
})(document);
smartsupp('analyticsConsent', true);
smartsupp('marketingConsent', true);
{% if hasConfig %}
{{ Config }}
{% endif %}
{% if hasApi %}
{{ Api }}
{% endif %}
{% endif %}
</script>
{% endif %}
{% endblock %}
", "@SmartsuppChat/storefront/base.html.twig", "/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/SmartsuppChat/src/Resources/views/storefront/base.html.twig");
}
}