<?php
use Twig\Environment;
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;
/* @Web/SVGIconsCode/chat.html.twig */
class __TwigTemplate_a886f1d35993055d8c8b431b1bae82538fc9e98945e7a66f16eea5554c936f83 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Web/SVGIconsCode/chat.html.twig"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Web/SVGIconsCode/chat.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Web/SVGIconsCode/chat.html.twig"));
// line 1
$context["userEmail"] = (($this->extensions['WebBundle\Twig\AppExtension']->isLogged()) ? (twig_get_attribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 1, $this->source); })()), "email", [], "any", false, false, false, 1)) : (""));
// line 2
$context["hideNotifications"] = false;
// line 3
if (twig_in_filter("@tile.expert", (isset($context["userEmail"]) || array_key_exists("userEmail", $context) ? $context["userEmail"] : (function () { throw new RuntimeError('Variable "userEmail" does not exist.', 3, $this->source); })()))) {
// line 4
echo "\t";
$context["hideNotifications"] = true;
}
// line 6
$context["isRTWidget"] = $this->extensions['WebBundle\Twig\AppExtension']->useRTWidget();
// line 7
$context["redCircleClass"] = "";
// line 8
echo "<svg
version=\"1.1\" id=\"chat-icon\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"
width=\"40\" height=\"30\" x=\"0px\" y=\"0px\" viewBox=\"0 0 41.1 28.8\" xml:space=\"preserve\"
";
// line 11
if ((isset($context["userEmail"]) || array_key_exists("userEmail", $context) ? $context["userEmail"] : (function () { throw new RuntimeError('Variable "userEmail" does not exist.', 11, $this->source); })())) {
echo "data-user-email=\"";
echo twig_escape_filter($this->env, (isset($context["userEmail"]) || array_key_exists("userEmail", $context) ? $context["userEmail"] : (function () { throw new RuntimeError('Variable "userEmail" does not exist.', 11, $this->source); })()), "html", null, true);
echo "\"";
}
// line 12
echo " ";
$context["unreadMessagesNumber"] = 0;
// line 13
echo " ";
if ((( !(isset($context["hideNotifications"]) || array_key_exists("hideNotifications", $context) ? $context["hideNotifications"] : (function () { throw new RuntimeError('Variable "hideNotifications" does not exist.', 13, $this->source); })()) && array_key_exists("unreadAll", $context)) && ((isset($context["unreadAll"]) || array_key_exists("unreadAll", $context) ? $context["unreadAll"] : (function () { throw new RuntimeError('Variable "unreadAll" does not exist.', 13, $this->source); })()) > 0))) {
// line 14
echo " \t";
if (((isset($context["unreadAll"]) || array_key_exists("unreadAll", $context) ? $context["unreadAll"] : (function () { throw new RuntimeError('Variable "unreadAll" does not exist.', 14, $this->source); })()) > 99)) {
// line 15
echo " \t\t";
$context["unreadMessagesNumber"] = "99+";
// line 16
echo " \t";
} else {
// line 17
echo " \t\t";
$context["unreadMessagesNumber"] = (isset($context["unreadAll"]) || array_key_exists("unreadAll", $context) ? $context["unreadAll"] : (function () { throw new RuntimeError('Variable "unreadAll" does not exist.', 17, $this->source); })());
// line 18
echo " \t";
}
// line 19
echo " \t";
$context["redCircleClass"] = " red-circle";
// line 20
echo " \tdata-new-messages-number=\"";
echo twig_escape_filter($this->env, (isset($context["unreadAll"]) || array_key_exists("unreadAll", $context) ? $context["unreadAll"] : (function () { throw new RuntimeError('Variable "unreadAll" does not exist.', 20, $this->source); })()), "html", null, true);
echo "\"
";
}
// line 22
echo " class=\"chat-btn";
echo twig_escape_filter($this->env, (isset($context["redCircleClass"]) || array_key_exists("redCircleClass", $context) ? $context["redCircleClass"] : (function () { throw new RuntimeError('Variable "redCircleClass" does not exist.', 22, $this->source); })()), "html", null, true);
echo "\"
>
<path class=\"chat-icon-el-0\" d=\"M1.2,15.9c0,2.7,1.7,5.2,4.6,6.9l0,0c0,1.9-0.8,4.1-1.5,4.9c3,0,6.1-1.5,7.6-2.9h1.5c6.7,0,12.2-4,12.2-8.8
s-5.4-8.8-12.2-8.8S1.2,11,1.2,15.9\" />
<circle class=\"chat-icon-el-1\" cx=\"31.3\" cy=\"9.8\" r=\"9.8\"/>
<circle class=\"chat-icon-el-2\" id=\"chat-icon-circle\" cx=\"31.2\" cy=\"9.8\" r=\"8.3\" />
<g>
<path class=\"chat-icon-el-4\" d=\"M7.4,17.4l-0.1,0.9c-0.4,0.1-0.8,0.1-1.1,0.1c-0.9,0-1.6-0.3-2.1-0.8s-0.7-1.1-0.7-1.8c0-0.7,0.3-1.4,0.8-2
S5.4,13,6.3,13c0.3,0,0.6,0,0.9,0.1l-0.2,1c-0.3-0.1-0.6-0.2-0.9-0.2c-0.5,0-0.9,0.2-1.2,0.5c-0.3,0.3-0.4,0.8-0.4,1.2
c0,0.5,0.2,0.9,0.5,1.3c0.3,0.4,0.8,0.6,1.3,0.6C6.6,17.6,7,17.5,7.4,17.4z\" />
<path class=\"chat-icon-el-4\" d=\"M12.4,18.4h-1.1c0-0.9,0-1.6,0-2.3h-2c0,0.6,0,1.3,0,2.3H8.2c0-0.9,0.1-1.8,0.1-2.7c0-0.9,0-1.8-0.1-2.5h1.1
c0,0.7,0,1.4,0,2.1h2c0-0.6,0-1.3,0-2.1h1.1c0,0.7-0.1,1.5-0.1,2.5S12.3,17.6,12.4,18.4z\" />
<path class=\"chat-icon-el-4\" d=\"M18.1,18.4h-1.3c0-0.2-0.1-0.7-0.4-1.5h-1.8c-0.3,0.8-0.4,1.3-0.4,1.5H13c0-0.1,0.3-1,0.9-2.6
c0.6-1.6,0.9-2.5,0.9-2.6h1.5c0,0.2,0.3,1,0.8,2.6C17.8,17.4,18.1,18.2,18.1,18.4z M16.2,16.1c-0.5-1.4-0.7-2.1-0.7-2.2h-0.1
c0,0.1-0.2,0.8-0.7,2.2H16.2z\" />
<path class=\"chat-icon-el-4\" d=\"M22.1,13.2v0.9c-0.5,0-1-0.1-1.5-0.1c0,0.5,0,1.1,0,1.7c0,1,0,1.9,0,2.7h-1.1c0-0.8,0.1-1.8,0.1-2.7
c0-0.6,0-1.2,0-1.7c-0.4,0-0.9,0-1.5,0.1v-0.9C18.1,13.2,22.1,13.2,22.1,13.2z\" />
</g>
<text class=\"chat-status-off chat-icon-text\" transform=\"translate(25, 13)\">off</text>
<text class=\"chat-status-on chat-icon-text\" transform=\"translate(26, 12)\">on</text>
";
// line 42
$context["numTextTransformClass"] = " single-digit-unread-count";
// line 43
echo " ";
if (((isset($context["unreadMessagesNumber"]) || array_key_exists("unreadMessagesNumber", $context) ? $context["unreadMessagesNumber"] : (function () { throw new RuntimeError('Variable "unreadMessagesNumber" does not exist.', 43, $this->source); })()) == "99+")) {
// line 44
echo " ";
$context["numTextTransformClass"] = " multiple-digits-unread-count";
// line 45
echo " ";
} elseif (((isset($context["unreadMessagesNumber"]) || array_key_exists("unreadMessagesNumber", $context) ? $context["unreadMessagesNumber"] : (function () { throw new RuntimeError('Variable "unreadMessagesNumber" does not exist.', 45, $this->source); })()) > 9)) {
// line 46
echo " ";
$context["numTextTransformClass"] = " double-digits-unread-count";
// line 47
echo " ";
}
// line 48
echo " <text
id=\"chat-messages-count\"
class=\"chat-icon-text chat-btn-msgs-count";
// line 50
echo twig_escape_filter($this->env, (isset($context["numTextTransformClass"]) || array_key_exists("numTextTransformClass", $context) ? $context["numTextTransformClass"] : (function () { throw new RuntimeError('Variable "numTextTransformClass" does not exist.', 50, $this->source); })()), "html", null, true);
echo "\"
textLength=\"10px\"
>
";
// line 53
echo twig_escape_filter($this->env, (isset($context["unreadMessagesNumber"]) || array_key_exists("unreadMessagesNumber", $context) ? $context["unreadMessagesNumber"] : (function () { throw new RuntimeError('Variable "unreadMessagesNumber" does not exist.', 53, $this->source); })()), "html", null, true);
echo "
</text>
</svg>
";
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@Web/SVGIconsCode/chat.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 152 => 53, 146 => 50, 142 => 48, 139 => 47, 136 => 46, 133 => 45, 130 => 44, 127 => 43, 125 => 42, 101 => 22, 95 => 20, 92 => 19, 89 => 18, 86 => 17, 83 => 16, 80 => 15, 77 => 14, 74 => 13, 71 => 12, 65 => 11, 60 => 8, 58 => 7, 56 => 6, 52 => 4, 50 => 3, 48 => 2, 46 => 1,);
}
public function getSourceContext()
{
return new Source("{% set userEmail = isLogged() ? user.email : '' %}
{% set hideNotifications = false %}
{% if '@tile.expert' in userEmail %}
\t{% set hideNotifications = true %}
{% endif %}
{% set isRTWidget = useRTWidget() %}
{% set redCircleClass = '' %}
<svg
version=\"1.1\" id=\"chat-icon\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"
width=\"40\" height=\"30\" x=\"0px\" y=\"0px\" viewBox=\"0 0 41.1 28.8\" xml:space=\"preserve\"
{% if userEmail %}data-user-email=\"{{ userEmail }}\"{% endif %}
{% set unreadMessagesNumber = 0 %}
{% if not hideNotifications and unreadAll is defined and unreadAll > 0 %}
\t{% if unreadAll > 99 %}
\t\t{% set unreadMessagesNumber = '99+' %}
\t{% else %}
\t\t{% set unreadMessagesNumber = unreadAll %}
\t{% endif %}
\t{% set redCircleClass = ' red-circle' %}
\tdata-new-messages-number=\"{{ unreadAll }}\"
{% endif %}
class=\"chat-btn{{ redCircleClass }}\"
>
<path class=\"chat-icon-el-0\" d=\"M1.2,15.9c0,2.7,1.7,5.2,4.6,6.9l0,0c0,1.9-0.8,4.1-1.5,4.9c3,0,6.1-1.5,7.6-2.9h1.5c6.7,0,12.2-4,12.2-8.8
s-5.4-8.8-12.2-8.8S1.2,11,1.2,15.9\" />
<circle class=\"chat-icon-el-1\" cx=\"31.3\" cy=\"9.8\" r=\"9.8\"/>
<circle class=\"chat-icon-el-2\" id=\"chat-icon-circle\" cx=\"31.2\" cy=\"9.8\" r=\"8.3\" />
<g>
<path class=\"chat-icon-el-4\" d=\"M7.4,17.4l-0.1,0.9c-0.4,0.1-0.8,0.1-1.1,0.1c-0.9,0-1.6-0.3-2.1-0.8s-0.7-1.1-0.7-1.8c0-0.7,0.3-1.4,0.8-2
S5.4,13,6.3,13c0.3,0,0.6,0,0.9,0.1l-0.2,1c-0.3-0.1-0.6-0.2-0.9-0.2c-0.5,0-0.9,0.2-1.2,0.5c-0.3,0.3-0.4,0.8-0.4,1.2
c0,0.5,0.2,0.9,0.5,1.3c0.3,0.4,0.8,0.6,1.3,0.6C6.6,17.6,7,17.5,7.4,17.4z\" />
<path class=\"chat-icon-el-4\" d=\"M12.4,18.4h-1.1c0-0.9,0-1.6,0-2.3h-2c0,0.6,0,1.3,0,2.3H8.2c0-0.9,0.1-1.8,0.1-2.7c0-0.9,0-1.8-0.1-2.5h1.1
c0,0.7,0,1.4,0,2.1h2c0-0.6,0-1.3,0-2.1h1.1c0,0.7-0.1,1.5-0.1,2.5S12.3,17.6,12.4,18.4z\" />
<path class=\"chat-icon-el-4\" d=\"M18.1,18.4h-1.3c0-0.2-0.1-0.7-0.4-1.5h-1.8c-0.3,0.8-0.4,1.3-0.4,1.5H13c0-0.1,0.3-1,0.9-2.6
c0.6-1.6,0.9-2.5,0.9-2.6h1.5c0,0.2,0.3,1,0.8,2.6C17.8,17.4,18.1,18.2,18.1,18.4z M16.2,16.1c-0.5-1.4-0.7-2.1-0.7-2.2h-0.1
c0,0.1-0.2,0.8-0.7,2.2H16.2z\" />
<path class=\"chat-icon-el-4\" d=\"M22.1,13.2v0.9c-0.5,0-1-0.1-1.5-0.1c0,0.5,0,1.1,0,1.7c0,1,0,1.9,0,2.7h-1.1c0-0.8,0.1-1.8,0.1-2.7
c0-0.6,0-1.2,0-1.7c-0.4,0-0.9,0-1.5,0.1v-0.9C18.1,13.2,22.1,13.2,22.1,13.2z\" />
</g>
<text class=\"chat-status-off chat-icon-text\" transform=\"translate(25, 13)\">off</text>
<text class=\"chat-status-on chat-icon-text\" transform=\"translate(26, 12)\">on</text>
{% set numTextTransformClass = ' single-digit-unread-count' %}
{% if unreadMessagesNumber == '99+' %}
{% set numTextTransformClass = ' multiple-digits-unread-count' %}
{% elseif unreadMessagesNumber > 9 %}
{% set numTextTransformClass = ' double-digits-unread-count' %}
{% endif %}
<text
id=\"chat-messages-count\"
class=\"chat-icon-text chat-btn-msgs-count{{ numTextTransformClass }}\"
textLength=\"10px\"
>
{{ unreadMessagesNumber }}
</text>
</svg>
", "@Web/SVGIconsCode/chat.html.twig", "/var/www/dev5.tile.expert/src/WebBundle/Resources/views/SVGIconsCode/chat.html.twig");
}
}