<?php

/* AgentBundle:UserChat:view.html.twig */
class __TwigTemplate_5373a164e4913cd13665316ad272e0ee extends \Application\DeskPRO\Twig\Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "<script>
pageMeta.fragmentClass    = 'DeskPRO.Agent.PageFragment.Page.UserChat';
pageMeta.title            = ";
        // line 3
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_jsonencode_filter($this->getAttribute($_convo_, "subjectLine"));
        echo ";
pageMeta.url_fragment     = '";
        // line 4
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_escape_filter($this->env, $this->env->getExtension('deskpro_templating')->urlFragment("agent_userchat_view", array("conversation_id" => $this->getAttribute($_convo_, "id"))), "html", null, true);
        echo "';
pageMeta.conversation_id  = ";
        // line 5
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($_convo_, "id"), "html", null, true);
        echo ";
pageMeta.youName          = ";
        // line 6
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute($_app_, "user"), "display_name"));
        echo ";
pageMeta.youPictureUrl    = '";
        // line 7
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_app_, "user"), "getPictureUrl", array(0 => 25), "method"), "html", null, true);
        echo "';
pageMeta.tabIdClass       = 'user_chat_tab_";
        // line 8
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($_convo_, "id"), "html", null, true);
        echo "';
pageMeta.status           = '";
        // line 9
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($_convo_, "status"), "html", null, true);
        echo "';
pageMeta.ended_by         = '";
        // line 10
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($_convo_, "ended_by"), "html", null, true);
        echo "';
pageMeta.email            = ";
        // line 11
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_jsonencode_filter($this->getAttribute($_convo_, "person_email"));
        echo ";
pageMeta.convo            = ";
        // line 12
        if (isset($context["convo_api"])) { $_convo_api_ = $context["convo_api"]; } else { $_convo_api_ = null; }
        echo twig_jsonencode_filter($_convo_api_);
        echo ";
pageMeta.userPictureUrl   = '";
        // line 13
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($_convo_, "getPersonPictureUrl", array(), "method"), "html", null, true);
        echo "';

pageMeta.session_id = ";
        // line 15
        if (isset($context["session"])) { $_session_ = $context["session"]; } else { $_session_ = null; }
        echo twig_escape_filter($this->env, (($this->getAttribute($_session_, "id", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($_session_, "id"), 0)) : (0)), "html", null, true);
        echo ";
";
        // line 16
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if ($this->getAttribute($this->getAttribute($_convo_, "person"), "id")) {
            // line 17
            echo "pageMeta.viewPersonUrl = '";
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("agent_people_view", array("person_id" => $this->getAttribute($this->getAttribute($_convo_, "person"), "id"))), "html", null, true);
            echo "';
pageMeta.person_id = ";
            // line 18
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_convo_, "person"), "id"), "html", null, true);
            echo ";
";
        } else {
            // line 20
            echo "pageMeta.person_id = 0;
";
        }
        // line 22
        echo "
";
        // line 23
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if ($this->getAttribute($_convo_, "person")) {
            // line 24
            echo "\tpageMeta.chatTitle = '";
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_convo_, "person"), "display_name"), "html", null, true);
            echo " (";
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_convo_, "person"), "primary_email_address"), "html", null, true);
            echo ")';
";
        } else {
            // line 26
            echo "\tpageMeta.chatTitle = '";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.anonymous");
            echo "';
";
        }
        // line 28
        echo "
";
        // line 29
        $context["baseId"] = $this->env->getExtension('deskpro_templating')->elUid();
        // line 30
        echo "pageMeta.baseId = '";
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "';
</script>
<div class=\"userchat-page\">

<header class=\"page-header\">
\t<table cellspacing=\"titleline-layout\" width=\"100%\"><tr>
\t\t<td class=\"item\"><h4 class=\"id-number\">#";
        // line 36
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($_convo_, "id"), "html", null, true);
        echo "</h4></td>
\t\t<td width=\"100%\">
\t\t\t<div class=\"fadeaway-container-outer\">
\t\t\t\t<h1 class=\"fadeaway-container\">
\t\t\t\t\t<i class=\"fadeaway-pip\"></i>
\t\t\t\t\t<div class=\"fadeaway-content\" title=\"";
        // line 41
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($_convo_, "getSubjectLine", array(), "method"), "html", null, true);
        echo "\">
\t\t\t\t\t\t<div>";
        // line 42
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($_convo_, "getSubjectLine", array(), "method"), "html", null, true);
        echo "</div>
\t\t\t\t\t</div>
\t\t\t\t</h1>
\t\t\t</div>
\t\t</td>
\t</tr></table>
    <div class=\"clear\"></div>
    <div class=\"meta-line\">
\t\t<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr>
\t\t\t<td style=\"white-space: nowrap; vertical-align: middle;\" nowrap=\"nowrap\" width=\"100\">
\t\t\t\t\t";
        // line 52
        if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; }
        if ((!$this->getAttribute($_ticket_, "department"))) {
            $context["blank_option"] = true;
        }
        // line 53
        echo "\t\t\t\t\t";
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        $this->env->loadTemplate("AgentBundle:Common:select-department.html.twig")->display(array_merge($context, array("name" => "department_id", "blank_title" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.none"), "selected" => (($this->getAttribute($this->getAttribute($_convo_, "department", array(), "any", false, true), "id", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_convo_, "department", array(), "any", false, true), "id"), 0)) : (0)), "id" => ($_baseId_ . "_department_id"), "departments" => $this->getAttribute($this->getAttribute($_app_, "departments"), "getPersonDepartments", array(0 => $this->getAttribute($_app_, "user"), 1 => "chat", 2 => array(0 => (($this->getAttribute($this->getAttribute($_convo_, "department", array(), "any", false, true), "id", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_convo_, "department", array(), "any", false, true), "id"), 0)) : (0)))), "method"))));
        // line 60
        echo "\t\t\t</td>
\t\t\t<td style=\"vertical-align: middle; padding-left: 8px;\">
\t\t\t\t<div class=\"labels-line\">
\t\t\t\t\t<input
\t\t\t\t\t\ttype=\"hidden\"
\t\t\t\t\t\tid=\"";
        // line 65
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_labels_input\"
\t\t\t\t\t\tclass=\"dpe_select dpe_select_noborder\"
\t\t\t\t\t\tdata-select-width=\"auto\"
\t\t\t\t\t\tdata-placeholder=\"";
        // line 68
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.add_a_label");
        echo "\"
\t\t\t\t\t\tvalue=\"";
        // line 69
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute($_convo_, "labels"));
        foreach ($context['_seq'] as $context["_key"] => $context["label"]) {
            if (isset($context["label"])) { $_label_ = $context["label"]; } else { $_label_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_label_, "label"), "html", null, true);
            echo ",";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        echo "\"
\t\t\t\t\t/>
\t\t\t\t</div>
\t\t\t</td>
\t\t</tr></table>
        <div class=\"clear\"></div>
    </div>
</header>

<div id=\"";
        // line 78
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_chat_positioner\">

";
        // line 80
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        if (isset($context["convo_api"])) { $_convo_api_ = $context["convo_api"]; } else { $_convo_api_ = null; }
        echo $this->env->getExtension('deskpro_templating')->getWidgets($_baseId_, "chat", "header", "below", $_convo_api_);
        echo "

<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" class=\"people-box\">
    <tr>
        <td width=\"50%\" valign=\"top\" class=\"first\">
\t\t\t";
        // line 85
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        if (isset($context["convo_api"])) { $_convo_api_ = $context["convo_api"]; } else { $_convo_api_ = null; }
        echo $this->env->getExtension('deskpro_templating')->getWidgets($_baseId_, "chat", "people", "above", $_convo_api_);
        echo "
            <div class=\"profile-box-container\">
                <header>
 \t\t\t\t\t";
        // line 88
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo $this->env->getExtension('deskpro_templating')->getWidgetTabsHeader($_baseId_, "chat", "people", array(($_baseId_ . "_people_box_person") => ($this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.person") . (((!$this->getAttribute($_convo_, "person"))) ? (((" (" . $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.anonymous")) . ")")) : ("")))));
        // line 90
        echo "
                </header>
                <section id=\"";
        // line 92
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_people_box_person_container\">
                    <article id=\"";
        // line 93
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_people_box_person\">
                        <dl>
                            <dt></dt>
                            <dd style=\"padding:4px 11px 0 10px\">
                                ";
        // line 97
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if ($this->getAttribute($_convo_, "person")) {
            // line 98
            echo "                                    <a class=\"user-link clean-white as-popover preload\" data-route=\"person:";
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("agent_people_view", array("person_id" => $this->getAttribute($this->getAttribute($_convo_, "person"), "id"))), "html", null, true);
            echo "\" style=\"width: 100%; box-sizing: border-box; -moz-box-sizing: border-box;\">
                                        <span style=\"background-image: url('";
            // line 99
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_convo_, "person"), "getPictureUrl", array(0 => 20), "method"), "html", null, true);
            echo "');\">
                                            ";
            // line 100
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_convo_, "person"), "display_name"), "html", null, true);
            echo "
                                            <span class=\"email\"><b class=\"pemail-";
            // line 101
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_convo_, "person"), "id"), "html", null, true);
            echo "\" data-hide=\"@parent\">";
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_convo_, "person"), "email_address"), "html", null, true);
            echo "</b></span>
                                        </span>
                                    </a>
                                ";
        } else {
            // line 105
            echo "\t\t\t\t\t\t\t\t\t<a class=\"user-link clean-white anon\" style=\"width: 100%; box-sizing: border-box; -moz-box-sizing: border-box;\">
\t\t\t\t\t\t\t\t\t\t";
            // line 106
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            if ($this->getAttribute($_convo_, "person_email")) {
                // line 107
                echo "\t\t\t\t\t\t\t\t\t\t\t<span style=\"background-image: url('";
                if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
                echo twig_escape_filter($this->env, $this->env->getExtension('deskpro_templating')->gravatar($this->getAttribute($_convo_, "person_email"), 20), "html", null, true);
                echo "');\">
\t\t\t\t\t\t\t\t\t\t";
            } else {
                // line 109
                echo "\t\t\t\t\t\t\t\t\t\t\t<span style=\"background-image: url('";
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("serve_default_picture", array("s" => 20)), "html", null, true);
                echo "');\">
\t\t\t\t\t\t\t\t\t\t";
            }
            // line 111
            echo "\t\t\t\t\t\t\t\t\t\t<span style=\"background-image: url('";
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_convo_, "person"), "getPictureUrl", array(0 => 20), "method"), "html", null, true);
            echo "');\">
\t\t\t\t\t\t\t\t\t\t\t";
            // line 112
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            if ($this->getAttribute($_convo_, "person_name")) {
                // line 113
                echo "                                                ";
                if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_convo_, "person_name"), "html", null, true);
                echo "
                                            ";
            } else {
                // line 115
                echo "                                                ";
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.anonymous");
                echo "
                                            ";
            }
            // line 117
            echo "                                            <span class=\"email\"><b data-hide=\"@parent\">";
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            if ($this->getAttribute($_convo_, "person_email")) {
                if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_convo_, "person_email"), "html", null, true);
            } else {
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.chat.no_email");
            }
            echo "</b></span>
\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t";
        }
        // line 121
        echo "                                <div class=\"clear\"></div>
                            </dd>
                        </dl>

\t\t\t\t\t\t";
        // line 125
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if (isset($context["session"])) { $_session_ = $context["session"]; } else { $_session_ = null; }
        if (($this->getAttribute($_convo_, "person") && ($this->getAttribute($this->getAttribute($_convo_, "person"), "id") != $this->getAttribute($this->getAttribute($_session_, "person"), "id")))) {
            // line 126
            echo "\t\t\t\t\t\t\t<div style=\"font-size: 11px; margin: 0 0 2px 13px;\">
\t\t\t\t\t\t\t\t<strong style=\"color: #d00;\">";
            // line 127
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.chat.warning");
            echo "</strong>:
\t\t\t\t\t\t\t\t";
            // line 128
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.userchat.ident_unconfirmed");
            echo "
\t\t\t\t\t\t\t\t<span class=\"small-light-icon tipped\" data-tipped-options=\"maxWidth: 250\" title=\"";
            // line 129
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.chat.warning_email_address_not_unique");
            echo "\"></span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
        }
        // line 132
        echo "
\t\t\t\t\t\t<button id=\"";
        // line 133
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_create_ticket_btn2\" class=\"clean-white\" style=\"margin: 0 0 5px 11px; ";
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if ((($this->getAttribute($_convo_, "status") != "ended") && ($this->getAttribute($_convo_, "ended_by") != "timeout"))) {
            echo "display: none";
        } else {
            echo "display:block";
        }
        echo "\">";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.userchat.create_ticket");
        echo "</button>
                    </article>
\t\t\t\t\t";
        // line 135
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        if (isset($context["convo_api"])) { $_convo_api_ = $context["convo_api"]; } else { $_convo_api_ = null; }
        echo $this->env->getExtension('deskpro_templating')->getWidgetTabsBody($_baseId_, "chat", "people", "article", $_convo_api_);
        echo "
                </section>
            </div>
\t\t\t";
        // line 138
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        if (isset($context["convo_api"])) { $_convo_api_ = $context["convo_api"]; } else { $_convo_api_ = null; }
        echo $this->env->getExtension('deskpro_templating')->getWidgets($_baseId_, "chat", "people", "below", $_convo_api_);
        echo "
        </td>
        <td width=\"50%\" valign=\"top\" class=\"second\">
\t\t\t";
        // line 141
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        if (isset($context["convo_api"])) { $_convo_api_ = $context["convo_api"]; } else { $_convo_api_ = null; }
        echo $this->env->getExtension('deskpro_templating')->getWidgets($_baseId_, "chat", "assignments", "above", $_convo_api_);
        echo "
\t\t\t<div class=\"profile-box-container\">
\t\t\t\t<header>
\t\t\t\t\t<div class=\"controls\">
\t\t\t\t\t\t<span class=\"edit-gear\" id=\"";
        // line 145
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_assign_ob_trigger\"></span>
\t\t\t\t\t</div>
\t\t\t\t\t";
        // line 147
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo $this->env->getExtension('deskpro_templating')->getWidgetTabsHeader($_baseId_, "chat", "assignments", array(($_baseId_ . "_people_box_agent") => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.assignments")));
        // line 149
        echo "
\t\t\t\t</header>
\t\t\t\t<section id=\"";
        // line 151
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_people_box_agent_container\">
\t\t\t\t\t<article id=\"";
        // line 152
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_people_box_agent\">
\t\t\t\t\t\t<dl>
\t\t\t\t\t\t\t<dt class=\"agent-row\">";
        // line 154
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.assigned_agent");
        echo "</dt>
\t\t\t\t\t\t\t<dd class=\"agent-row\">
\t\t\t\t\t\t\t\t<a class=\"agent-link prop-agent-id\" id=\"";
        // line 156
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_assign_btn\" data-agent-id=\"";
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($_convo_, "agent", array(), "any", false, true), "id", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_convo_, "agent", array(), "any", false, true), "id"), 0)) : (0)), "html", null, true);
        echo "\" style=\"background-image: url('";
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_convo_, "agent"), "getPictureUrl", array(0 => 20), "method"), "html", null, true);
        echo "');\">";
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($_convo_, "agent", array(), "any", false, true), "display_name", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_convo_, "agent", array(), "any", false, true), "display_name"), $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.unassigned"))) : ($this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.unassigned"))), "html", null, true);
        echo "</a>
\t\t\t\t\t\t\t</dd>

\t\t\t\t\t\t\t<dt class=\"followers-row\" ";
        // line 159
        if (isset($context["agent_parts"])) { $_agent_parts_ = $context["agent_parts"]; } else { $_agent_parts_ = null; }
        if ((!twig_length_filter($this->env, $_agent_parts_))) {
            echo "style=\"display:none\"";
        }
        echo ">";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.chat.other_agents");
        echo "</dt>
\t\t\t\t\t\t\t<dd class=\"followers-row\" ";
        // line 160
        if (isset($context["agent_parts"])) { $_agent_parts_ = $context["agent_parts"]; } else { $_agent_parts_ = null; }
        if ((!twig_length_filter($this->env, $_agent_parts_))) {
            echo "style=\"display:none\"";
        }
        echo ">
\t\t\t\t\t\t\t\t<ul id=\"";
        // line 161
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_followers_list\" class=\"comma-list\">
\t\t\t\t\t\t\t\t\t";
        // line 162
        $context["has_others"] = false;
        // line 163
        echo "\t\t\t\t\t\t\t\t\t";
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute($_convo_, "participants"));
        foreach ($context['_seq'] as $context["_key"] => $context["part"]) {
            // line 164
            echo "\t\t\t\t\t\t\t\t\t\t";
            if (isset($context["part"])) { $_part_ = $context["part"]; } else { $_part_ = null; }
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            if (((!$this->getAttribute($_part_, "id")) == $this->getAttribute($_convo_, "id"))) {
                // line 165
                echo "\t\t\t\t\t\t\t\t\t\t\t";
                $context["has_others"] = true;
                // line 166
                echo "\t\t\t\t\t\t\t\t\t\t\t<li><span class=\"agent-link\" data-agent-id=\"";
                if (isset($context["part"])) { $_part_ = $context["part"]; } else { $_part_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_part_, "id"), "html", null, true);
                echo "\">";
                if (isset($context["part"])) { $_part_ = $context["part"]; } else { $_part_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_part_, "display_name"), "html", null, true);
                echo "</span></li>
\t\t\t\t\t\t\t\t\t\t";
            }
            // line 168
            echo "\t\t\t\t\t\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['part'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 169
        echo "\t\t\t\t\t\t\t\t\t";
        if (isset($context["has_others"])) { $_has_others_ = $context["has_others"]; } else { $_has_others_ = null; }
        if ((!$_has_others_)) {
            // line 170
            echo "\t\t\t\t\t\t\t\t\t\t<li>";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.chat.no_others");
            echo "</li>
\t\t\t\t\t\t\t\t\t";
        }
        // line 172
        echo "\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t</dd>
\t\t\t\t\t\t</dl>
\t\t\t\t\t</article>
\t\t\t\t\t";
        // line 176
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        if (isset($context["convo_api"])) { $_convo_api_ = $context["convo_api"]; } else { $_convo_api_ = null; }
        echo $this->env->getExtension('deskpro_templating')->getWidgetTabsBody($_baseId_, "chat", "assignments", "article", $_convo_api_);
        echo "
\t\t\t\t</section>
\t\t\t</div>
\t\t\t";
        // line 179
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        if (isset($context["convo_api"])) { $_convo_api_ = $context["convo_api"]; } else { $_convo_api_ = null; }
        echo $this->env->getExtension('deskpro_templating')->getWidgets($_baseId_, "chat", "assignments", "below", $_convo_api_);
        echo "
        </td>
    </tr>
</table>

";
        // line 184
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        if (isset($context["convo_api"])) { $_convo_api_ = $context["convo_api"]; } else { $_convo_api_ = null; }
        echo $this->env->getExtension('deskpro_templating')->getWidgets($_baseId_, "chat", "chat", "above", $_convo_api_);
        echo "

</div>

<div class=\"profile-box-container chat-box\" id=\"";
        // line 188
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_chat_view\">
\t<header>
\t\t<div class=\"controls\" id=\"";
        // line 190
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_field_edit_controls\" style=\"display: none\">
\t\t\t<div class=\"is-not-loading\">
\t\t\t\t<span class=\"edit-gear\" id=\"";
        // line 192
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_field_edit_start\"></span>
\t\t\t\t<button class=\"cancel\" id=\"";
        // line 193
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_field_edit_cancel\" style=\"display: none\">";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.cancel");
        echo "</button>
\t\t\t\t<button class=\"save\" id=\"";
        // line 194
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_field_edit_save\" style=\"display: none\">";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.save");
        echo "</button>
\t\t\t</div>
\t\t\t<span class=\"is-loading\">";
        // line 196
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.saving");
        echo "</span>
\t\t</div>
\t\t<nav data-element-handler=\"DeskPRO.ElementHandler.SimpleTabs\" id=\"";
        // line 198
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_main_tabs_nav\"><ul>
\t\t\t<li data-tab-for=\"#";
        // line 199
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_chat\">";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.chat");
        echo "</li>
\t\t\t<li data-tab-for=\"#";
        // line 200
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_fields_display_main_wrap\" id=\"";
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_fields_display_main_wrap_tab\" class=\"is-fields-tab\">";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.fields");
        echo "</li>
\t\t\t";
        // line 201
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if ($this->getAttribute($_convo_, "visitor")) {
            // line 202
            echo "\t\t\t\t<li data-tab-for=\"#";
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_session\">";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.userchat.visitor_info");
            echo "</li>
\t\t\t";
        }
        // line 204
        echo "\t\t\t";
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if (isset($context["block"])) { $_block_ = $context["block"]; } else { $_block_ = null; }
        if ((($this->getAttribute($_convo_, "status") == "open") || $_block_)) {
            // line 205
            echo "\t\t\t\t<li data-tab-for=\"#";
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_block\">";
            if (isset($context["block"])) { $_block_ = $context["block"]; } else { $_block_ = null; }
            if ($_block_) {
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.userchat.user_is_blocked");
            } else {
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.userchat.block_user");
            }
            echo "</li>
\t\t\t";
        }
        // line 207
        echo "\t\t</ul></nav>
\t</header>
\t<section>
\t\t<article id=\"";
        // line 210
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_chat\" class=\"chat-tab\">
\t\t\t<div class=\"messages chat-transcript ";
        // line 211
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if ((($this->getAttribute($_convo_, "status") == "ended") && ($this->getAttribute($_convo_, "ended_by") != "timeout"))) {
            echo "chat-ended";
        }
        echo "\" id=\"";
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_messages_box\">
\t\t\t\t";
        // line 212
        if (isset($context["convo_messages"])) { $_convo_messages_ = $context["convo_messages"]; } else { $_convo_messages_ = null; }
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable(twig_reverse_filter($this->env, $_convo_messages_));
        foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
            // line 213
            echo "\t\t\t\t\t<div class=\"row server-ack ";
            if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
            if ($this->getAttribute($_message_, "date_received")) {
                echo "user-ack";
            }
            echo " ";
            if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
            if ($this->getAttribute($this->getAttribute($_message_, "metadata"), "new_user_track")) {
                echo "user-track";
            }
            echo " ";
            if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            if ($this->getAttribute($_message_, "is_sys")) {
                echo "sys";
            } elseif (($this->getAttribute($this->getAttribute($_message_, "author"), "is_agent") && ($this->getAttribute($this->getAttribute($_message_, "author"), "id") != $this->getAttribute($this->getAttribute($_convo_, "person"), "id")))) {
                echo "agent";
            } else {
                echo "user";
            }
            echo " message-";
            if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_message_, "id"), "html", null, true);
            echo "\">
\t\t\t\t\t\t";
            // line 214
            if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
            if ($this->getAttribute($_message_, "is_sys")) {
                // line 215
                echo "\t\t\t\t\t\t\t<div class=\"message-content\">
\t\t\t\t\t\t\t\t<div class=\"message\">
\t\t\t\t\t\t\t\t\t";
                // line 217
                if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                if ($this->getAttribute($this->getAttribute($_message_, "metadata"), "phrase_id")) {
                    // line 218
                    echo "\t\t\t\t\t\t\t\t\t\t";
                    if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                    if ($this->getAttribute($_message_, "is_html")) {
                        // line 219
                        echo "\t\t\t\t\t\t\t\t\t\t\t";
                        if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, ("agent.userchat." . $this->getAttribute($this->getAttribute($_message_, "metadata"), "phrase_id")), $this->getAttribute($_message_, "metadata"), true);
                        echo "
\t\t\t\t\t\t\t\t\t\t";
                    } else {
                        // line 221
                        echo "\t\t\t\t\t\t\t\t\t\t\t";
                        if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, ("agent.userchat." . $this->getAttribute($this->getAttribute($_message_, "metadata"), "phrase_id")), $this->getAttribute($_message_, "metadata"));
                        echo "
\t\t\t\t\t\t\t\t\t\t";
                    }
                    // line 223
                    echo "\t\t\t\t\t\t\t\t\t";
                } elseif ($this->getAttribute($_message_, "is_html")) {
                    // line 224
                    echo "\t\t\t\t\t\t\t\t\t\t";
                    if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                    echo $this->getAttribute($_message_, "content");
                    echo "
\t\t\t\t\t\t\t\t\t";
                } else {
                    // line 226
                    echo "\t\t\t\t\t\t\t\t\t\t";
                    if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                    echo twig_escape_filter($this->env, $this->getAttribute($_message_, "content"), "html", null, true);
                    echo "
\t\t\t\t\t\t\t\t\t";
                }
                // line 228
                echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<time>";
                // line 229
                if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                echo twig_escape_filter($this->env, $this->env->getExtension('deskpro_templating')->userDate($context, $this->getAttribute($_message_, "date_created"), "time"), "html", null, true);
                echo "</time>
\t\t\t\t\t\t\t\t<div class=\"chat-clear\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
            } elseif (($this->getAttribute($_message_, "origin") == "agent")) {
                // line 233
                echo "\t\t\t\t\t\t\t<div class=\"message-content\">
\t\t\t\t\t\t\t\t<div class=\"avatar tipped\" title=\"";
                // line 234
                if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_message_, "getAuthorName", array(), "method"), "html", null, true);
                echo "\"><img src=\"";
                if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_message_, "getAuthorPictureUrl", array(0 => 25), "method"), "html", null, true);
                echo "\" /></div>
\t\t\t\t\t\t\t\t<div class=\"chatSend\">
\t\t\t\t\t\t\t\t\t<div class=\"chatMsgSend\">
\t\t\t\t\t\t\t\t\t\t";
                // line 237
                if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                if ($this->getAttribute($_message_, "is_html")) {
                    // line 238
                    echo "\t\t\t\t\t\t\t\t\t\t\t";
                    if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                    echo $this->getAttribute($_message_, "content");
                    echo "
\t\t\t\t\t\t\t\t\t\t";
                } else {
                    // line 240
                    echo "\t\t\t\t\t\t\t\t\t\t\t";
                    if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                    echo twig_escape_filter($this->env, $this->getAttribute($_message_, "content"), "html", null, true);
                    echo "
\t\t\t\t\t\t\t\t\t\t";
                }
                // line 242
                echo "\t\t\t\t\t\t\t\t\t\t<span class=\"bubbleLeft\"></span>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<time>";
                // line 245
                if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                echo twig_escape_filter($this->env, $this->env->getExtension('deskpro_templating')->userDate($context, $this->getAttribute($_message_, "date_created"), "time"), "html", null, true);
                echo "</time>
\t\t\t\t\t\t\t\t<span class=\"ack-icon\" ";
                // line 246
                if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                if ($this->getAttribute($_message_, "date_received")) {
                    echo "title=\"User received message at: ";
                    if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                    echo twig_escape_filter($this->env, $this->env->getExtension('deskpro_templating')->userDate($context, $this->getAttribute($_message_, "date_received"), "fulltime"), "html", null, true);
                    echo "\"";
                }
                echo "></span>
\t\t\t\t\t\t\t\t<div class=\"chat-clear\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
            } else {
                // line 250
                echo "\t\t\t\t\t\t\t<div class=\"message-content\">
\t\t\t\t\t\t\t\t<div class=\"avatar tipped\" title=\"";
                // line 251
                if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_message_, "getAuthorName", array(), "method"), "html", null, true);
                echo "\"><img src=\"";
                if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_message_, "getAuthorPictureUrl", array(0 => 25), "method"), "html", null, true);
                echo "\" /></div>
\t\t\t\t\t\t\t\t<div class=\"chatRecieve\">
\t\t\t\t\t\t\t\t\t<div class=\"chatMsgRecieve\">
\t\t\t\t\t\t\t\t\t\t";
                // line 254
                if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                if ($this->getAttribute($_message_, "is_html")) {
                    // line 255
                    echo "\t\t\t\t\t\t\t\t\t\t\t";
                    if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                    echo $this->getAttribute($_message_, "content");
                    echo "
\t\t\t\t\t\t\t\t\t\t";
                } else {
                    // line 257
                    echo "\t\t\t\t\t\t\t\t\t\t\t";
                    if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                    if ((twig_length_filter($this->env, $this->getAttribute($_message_, "content")) > 500)) {
                        // line 258
                        echo "\t\t\t\t\t\t\t\t\t\t\t\t";
                        if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                        echo twig_escape_filter($this->env, $this->env->getExtension('deskpro_templating')->strTruncate($this->getAttribute($_message_, "content"), 500, false), "html", null, true);
                        echo "
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"truncated-wrap\"><div class=\"truncated-btn\">&bull; &bull; &bull;</div><textarea class=\"orig-message\" style=\"display:none;\">";
                        // line 259
                        if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                        echo twig_escape_filter($this->env, $this->getAttribute($_message_, "content"), "html", null, true);
                        echo "</textarea></div>
\t\t\t\t\t\t\t\t\t\t\t";
                    } else {
                        // line 261
                        echo "\t\t\t\t\t\t\t\t\t\t\t\t";
                        if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                        echo $this->env->getExtension('deskpro_templating')->safeLinkUrls($this->getAttribute($_message_, "content"));
                        echo "
\t\t\t\t\t\t\t\t\t\t\t";
                    }
                    // line 263
                    echo "\t\t\t\t\t\t\t\t\t\t";
                }
                // line 264
                echo "\t\t\t\t\t\t\t\t\t\t<span class=\"bubbleRight\"></span>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<time>";
                // line 267
                if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
                echo twig_escape_filter($this->env, $this->env->getExtension('deskpro_templating')->userDate($context, $this->getAttribute($_message_, "date_created"), "time"), "html", null, true);
                echo "</time>
\t\t\t\t\t\t\t\t<div class=\"chat-clear\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
            }
            // line 271
            echo "\t\t\t\t\t</div>
\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 273
        echo "\t\t\t\t<div id=\"";
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_uploading_list\" class=\"uploading-list\">
\t\t\t\t\t<ul class=\"files\"></ul>
\t\t\t\t</div>
\t\t\t\t<div class=\"row user-typing\" style=\"display: none\" id=\"";
        // line 276
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_user_typing\">
\t\t\t\t\t<div class=\"message-content\">
\t\t\t\t\t\t<div class=\"chatRecieve\">
\t\t\t\t\t\t\t<div class=\"chatMsgRecieve\">
\t\t\t\t\t\t\t\t<label>";
        // line 280
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.chat.user_typing");
        echo ": </label>
\t\t\t\t\t\t\t\t<div class=\"prop-msg\"></div>
\t\t\t\t\t\t\t\t<span class=\"bubbleRight\"></span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"chatreply\" id=\"";
        // line 288
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_replybox\" style=\"";
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if ((($this->getAttribute($_convo_, "status") == "ended") && ($this->getAttribute($_convo_, "ended_by") != "timeout"))) {
            echo "display: none";
        }
        echo ";\">
\t\t\t\t<div class=\"input-wrap\">
\t\t\t\t\t<textarea placeholder=\"\" id=\"";
        // line 290
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_replybox_txt\" name=\"message\"></textarea>
\t\t\t\t\t<input type=\"hidden\" id=\"";
        // line 291
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_is_html_reply\" name=\"is_html_reply\" value=\"0\" />
\t\t\t\t\t<div class=\"drop-file-zone drop-file-zone-rte chat\"><h1>";
        // line 292
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.drop_here_to_insert_image");
        echo "</h1></div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</article>
\t\t<article id=\"";
        // line 296
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_fields_display_main_wrap\" style=\"display: none;\">
\t\t\t<div id=\"";
        // line 297
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_field_holders\">
\t\t\t\t";
        // line 298
        $this->env->loadTemplate("AgentBundle:UserChat:view-page-display-holders.html.twig")->display($context);
        // line 299
        echo "\t\t\t</div>
\t\t</article>
\t\t";
        // line 301
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if ($this->getAttribute($_convo_, "visitor")) {
            // line 302
            echo "\t\t\t<article id=\"";
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_session\" style=\"display: none;\">
\t\t\t\t<div class=\"data-display-table-wrap\">
\t\t\t\t\t<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" class=\"data-display-table\">
\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<th>";
            // line 307
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.ip_address");
            echo ":</th>
\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t";
            // line 309
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($_convo_, "visitor"), "last_track"), "ip_address"), "html", null, true);
            echo "
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<th>";
            // line 313
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.user_agent");
            echo ":</th>
\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t";
            // line 315
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($_convo_, "visitor"), "last_track"), "user_agent"), "html", null, true);
            echo "
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t";
            // line 318
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            if ($this->getAttribute($_convo_, "session")) {
                // line 319
                echo "\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t<th>";
                // line 320
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.usertrack.session_start_time");
                echo ":</th>
\t\t\t\t\t\t\t\t\t<td>";
                // line 321
                if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
                echo twig_escape_filter($this->env, $this->env->getExtension('deskpro_templating')->userDate($context, $this->getAttribute($this->getAttribute($_convo_, "session"), "date_last"), "fulltime"), "html", null, true);
                echo "</td>
\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t";
            }
            // line 324
            echo "\t\t\t\t\t\t\t";
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            if ($this->getAttribute($this->getAttribute($_convo_, "visitor"), "visit_track")) {
                // line 325
                echo "\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t<th>";
                // line 326
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.usertrack.session_landing_page");
                echo ":</th>
\t\t\t\t\t\t\t\t\t<td>";
                // line 327
                if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($_convo_, "visitor"), "visit_track"), "page_url"), "html", null, true);
                echo "</td>
\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t";
            }
            // line 330
            echo "\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<th>";
            // line 331
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.usertrack.initial_visit_time");
            echo ":</th>
\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t";
            // line 333
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            echo twig_escape_filter($this->env, $this->env->getExtension('deskpro_templating')->userDate($context, $this->getAttribute($this->getAttribute($_convo_, "visitor"), "date_last"), "fulltime"), "html", null, true);
            echo "
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t";
            // line 336
            if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
            if ($this->getAttribute($this->getAttribute($_convo_, "visitor"), "initial_track")) {
                // line 337
                echo "\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<th>";
                // line 338
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.usertrack.initial_landing_page");
                echo ":</th>
\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t";
                // line 340
                if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($_convo_, "visitor"), "initial_track"), "page_url"), "html", null, true);
                echo "
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t";
            }
            // line 344
            echo "\t\t\t\t\t\t</tbody>
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t</article>
\t\t";
        }
        // line 349
        echo "\t\t";
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if (isset($context["block"])) { $_block_ = $context["block"]; } else { $_block_ = null; }
        if ((($this->getAttribute($_convo_, "status") == "open") || $_block_)) {
            // line 350
            echo "\t\t\t<article id=\"";
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_block\" style=\"direction: none; padding: 15px;\">
\t\t\t\t";
            // line 351
            if (isset($context["block"])) { $_block_ = $context["block"]; } else { $_block_ = null; }
            if ($_block_) {
                // line 352
                echo "\t\t\t\t\t";
                if (isset($context["block"])) { $_block_ = $context["block"]; } else { $_block_ = null; }
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.userchat.agent_blocked_user_on", array("name" => $this->getAttribute($this->getAttribute($_block_, "by_person"), "display_name"), "date" => $this->env->getExtension('deskpro_templating')->userDate($context, $this->getAttribute($_block_, "date_created"), "fulltime")));
                echo "
\t\t\t\t\t";
                // line 353
                if (isset($context["block"])) { $_block_ = $context["block"]; } else { $_block_ = null; }
                if ($this->getAttribute($_block_, "reason")) {
                    echo "<div>";
                    if (isset($context["block"])) { $_block_ = $context["block"]; } else { $_block_ = null; }
                    echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.userchat.block_reason", array("reason" => $this->getAttribute($_block_, "reason")));
                    echo "</div>";
                }
                // line 354
                echo "
\t\t\t\t\t<br /><br />
\t\t\t\t\t<button class=\"clean-white\" id=\"";
                // line 356
                if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
                echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
                echo "_unblock_user\">";
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.userchat.unblock");
                echo "</button>
\t\t\t\t";
            } else {
                // line 358
                echo "\t\t\t\t\t";
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.userchat.block_title");
                echo "<br />
\t\t\t\t\t";
                // line 359
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.reason");
                echo ": <input type=\"text\" id=\"";
                if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
                echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
                echo "_block_reason\" value=\"\" style=\"width: 60%;\" /><br />
\t\t\t\t\t<label>
\t\t\t\t\t\t<input type=\"checkbox\" id=\"";
                // line 361
                if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
                echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
                echo "_block_ip\" /> ";
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.userchat.block_ip_address");
                echo "
\t\t\t\t\t\t<span class=\"small-light-icon tipped\" data-tipped-options=\"maxWidth: 250\" title=\"";
                // line 362
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.userchat.block_ip_address_info");
                echo "\"></span>
\t\t\t\t\t</label>

\t\t\t\t\t<br /><br />
\t\t\t\t\t<button class=\"clean-white\" id=\"";
                // line 366
                if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
                echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
                echo "_block_user\">";
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.userchat.block_user");
                echo "</button>
\t\t\t\t";
            }
            // line 368
            echo "\t\t\t</article>
\t\t";
        }
        // line 370
        echo "\t</section>
</div>

";
        // line 373
        $this->env->loadTemplate("AgentBundle:Common:attach-row-tmpl.html.twig")->display(array_merge($context, array("formname" => "attach[]")));
        // line 374
        echo "
<div class=\"optionbox reply-agent-team-ob with-footer\" id=\"";
        // line 375
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_agent_assign_ob\" data-assigned=\"";
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($_convo_, "agent", array(), "any", false, true), "id", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_convo_, "agent", array(), "any", false, true), "id"), "0")) : ("0")), "html", null, true);
        echo "\">
\t<header>
\t\t<h4>";
        // line 377
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.assignments");
        echo "</h4>
\t\t<span class=\"close close-trigger\"></span>
\t</header>
\t<div class=\"col\">
\t\t<section data-section-name=\"agents\">
\t\t\t<header>
\t\t\t\t<h3>";
        // line 383
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.assign_to");
        echo "</h3>
\t\t\t\t<input type=\"text\" class=\"filter-box\" placeholder=\"";
        // line 384
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.filter");
        echo "\" />
\t\t\t</header>
\t\t\t<ul>
\t\t\t\t<li class=\"me last-me ";
        // line 387
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if (($this->getAttribute($this->getAttribute($_convo_, "agent"), "id") == $this->getAttribute($this->getAttribute($_app_, "user"), "id"))) {
            echo "on";
        }
        echo "\">
\t\t\t\t\t<input type=\"radio\" name=\"";
        // line 388
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_agent\" value=\"";
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_app_, "user"), "id"), "html", null, true);
        echo "\" ";
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if (($this->getAttribute($this->getAttribute($_convo_, "agent"), "id") == $this->getAttribute($this->getAttribute($_app_, "user"), "id"))) {
            echo "checked=\"checked\"";
        }
        echo " />
\t\t\t\t\t<label><span class=\"agent-pic agent-label-";
        // line 389
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_app_, "user"), "id"), "html", null, true);
        echo "\" style=\"background-image: url(";
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_app_, "user"), "getPictureUrl", array(0 => 16), "method"), "html", null, true);
        echo ")\">";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.me");
        echo "</span></label>
\t\t\t\t</li>

\t\t\t\t<li>
\t\t\t\t\t<input type=\"radio\" name=\"";
        // line 393
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_agent\" value=\"0\" ";
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if ((!$this->getAttribute($_convo_, "agent"))) {
            echo "checked=\"checked\"";
        }
        echo "  />
\t\t\t\t\t<label><span class=\"agent-pic agent-label-0\">";
        // line 394
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.unassigned");
        echo "</span></label>
\t\t\t\t</li>

\t\t\t\t";
        // line 397
        if (isset($context["agents"])) { $_agents_ = $context["agents"]; } else { $_agents_ = null; }
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($_agents_);
        foreach ($context['_seq'] as $context["_key"] => $context["agent"]) {
            // line 398
            echo "\t\t\t\t";
            if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
            if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
            if (($this->getAttribute($_agent_, "id") != $this->getAttribute($this->getAttribute($_app_, "user"), "id"))) {
                // line 399
                echo "\t\t\t\t<li ";
                if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
                if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
                if (($this->getAttribute($this->getAttribute($_convo_, "agent"), "id") == $this->getAttribute($_agent_, "id"))) {
                    echo "class=\"on\"";
                }
                echo ">
\t\t\t\t\t<input type=\"radio\" name=\"";
                // line 400
                if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
                echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
                echo "_agent\" value=\"";
                if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_agent_, "id"), "html", null, true);
                echo "\" ";
                if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
                if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
                if (($this->getAttribute($this->getAttribute($_convo_, "agent"), "id") == $this->getAttribute($_agent_, "id"))) {
                    echo "checked=\"checked\"";
                }
                echo " />
\t\t\t\t\t<label><span class=\"agent-pic agent-label-";
                // line 401
                if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_agent_, "id"), "html", null, true);
                echo "\" style=\"background-image: url(";
                if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_agent_, "getPictureUrl", array(0 => 16), "method"), "html", null, true);
                echo ")\">";
                if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_agent_, "display_name"), "html", null, true);
                echo "</span></label>
\t\t\t\t\t<div class=\"bound-fade\"></div>
\t\t\t\t</li>
\t\t\t\t";
            }
            // line 405
            echo "\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['agent'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 406
        echo "\t\t\t</ul>
\t\t</section>
\t</div>

\t<div class=\"col\">
\t\t<section data-section-name=\"followers\">
\t\t\t<header>
\t\t\t\t<h3>";
        // line 413
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.chat.invite_others");
        echo "</h3>
\t\t\t\t<input type=\"text\" class=\"filter-box\" placeholder=\"";
        // line 414
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.filter");
        echo "\" />
\t\t\t</header>
\t\t\t<ul>
\t\t\t\t<li class=\"me last-me\">
\t\t\t\t\t<input type=\"checkbox\" name=\"";
        // line 418
        if (isset($context["bsaeId"])) { $_bsaeId_ = $context["bsaeId"]; } else { $_bsaeId_ = null; }
        echo twig_escape_filter($this->env, $_bsaeId_, "html", null, true);
        echo "_part\" value=\"";
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_app_, "user"), "id"), "html", null, true);
        echo "\" ";
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if (isset($context["participant_ids"])) { $_participant_ids_ = $context["participant_ids"]; } else { $_participant_ids_ = null; }
        if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
        if ((twig_in_filter($this->getAttribute($this->getAttribute($_app_, "user"), "id"), $_participant_ids_) && ($this->getAttribute($this->getAttribute($_convo_, "agent"), "id") != $this->getAttribute($this->getAttribute($_app_, "user"), "id")))) {
            echo "checked=\"checked\"";
        }
        echo " />
\t\t\t\t\t<label><span class=\"agent-pic agent-part-label-";
        // line 419
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_app_, "user"), "id"), "html", null, true);
        echo "\" style=\"background-image: url(";
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_app_, "user"), "getPictureUrl", array(0 => 16), "method"), "html", null, true);
        echo ")\">";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.me");
        echo "</span></label>
\t\t\t\t</li>

\t\t\t\t";
        // line 422
        if (isset($context["agents"])) { $_agents_ = $context["agents"]; } else { $_agents_ = null; }
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($_agents_);
        foreach ($context['_seq'] as $context["_key"] => $context["agent"]) {
            // line 423
            echo "\t\t\t\t";
            if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
            if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
            if (($this->getAttribute($_agent_, "id") != $this->getAttribute($this->getAttribute($_app_, "user"), "id"))) {
                // line 424
                echo "\t\t\t\t<li ";
                if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
                if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
                if (($this->getAttribute($this->getAttribute($_convo_, "participants"), $this->getAttribute($_agent_, "id"), array(), "array") && ($this->getAttribute($this->getAttribute($_convo_, "agent"), "id") != $this->getAttribute($_agent_, "id")))) {
                    echo "class=\"on\"";
                }
                echo ">
\t\t\t\t\t<input type=\"checkbox\" name=\"";
                // line 425
                if (isset($context["bsaeId"])) { $_bsaeId_ = $context["bsaeId"]; } else { $_bsaeId_ = null; }
                echo twig_escape_filter($this->env, $_bsaeId_, "html", null, true);
                echo "_part\" value=\"";
                if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_agent_, "id"), "html", null, true);
                echo "\" ";
                if (isset($context["convo"])) { $_convo_ = $context["convo"]; } else { $_convo_ = null; }
                if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
                if (($this->getAttribute($this->getAttribute($_convo_, "participants"), $this->getAttribute($_agent_, "id"), array(), "array") && ($this->getAttribute($this->getAttribute($_convo_, "agent"), "id") != $this->getAttribute($_agent_, "id")))) {
                    echo "checked=\"checked\"";
                }
                echo " />
\t\t\t\t\t<label><span class=\"agent-pic agent-part-label-";
                // line 426
                if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_agent_, "id"), "html", null, true);
                echo "\" style=\"background-image: url(";
                if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_agent_, "getPictureUrl", array(0 => 16), "method"), "html", null, true);
                echo ")\">";
                if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_agent_, "display_name"), "html", null, true);
                echo "</span></label>
\t\t\t\t\t<div class=\"bound-fade\"></div>
\t\t\t\t</li>
\t\t\t\t";
            }
            // line 430
            echo "\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['agent'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 431
        echo "\t\t\t</ul>
\t\t</section>
\t</div>
\t<br class=\"clear\" />
\t<footer>
\t\t<button class=\"save-trigger\">";
        // line 436
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.apply");
        echo "</button>
\t</footer>
</div>

<div id=\"";
        // line 440
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_closetab_prompt\" style=\"display:none;\">
\t<div class=\"confirm-overlay mass-actions-overlay\">
\t\t<div class=\"overlay-title\">
\t\t\t<h4>";
        // line 443
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.chat.title_leave_chat_prompt");
        echo "</h4>
\t\t</div>
\t\t<div class=\"overlay-content\">
\t\t\t";
        // line 446
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.chat.leave_chat_confirm");
        echo "
\t\t</div>
\t</div>
\t<div class=\"overlay-footer prop-footer\">
\t\t<button class=\"clean-white unassign-trigger\">";
        // line 450
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.chat.leave_unassign");
        echo "</button>
\t\t<button class=\"clean-white end-trigger\">";
        // line 451
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.chat.leave_end");
        echo "</button>
\t</div>
</div>

";
        // line 455
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        if (isset($context["convo_api"])) { $_convo_api_ = $context["convo_api"]; } else { $_convo_api_ = null; }
        echo $this->env->getExtension('deskpro_templating')->getWidgets($_baseId_, "chat", "", "", $_convo_api_);
        echo "

<div id=\"";
        // line 457
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_view_fulle_message_overlay\" style=\"display:none;\">
\t<div class=\"alert-overlay mass-actions-overlay\" style=\"width: 800px; height: 600px;\">
\t\t<div class=\"overlay-title\">
\t\t\t<span class=\"close-trigger\">";
        // line 460
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.dismiss");
        echo "</span>
\t\t\t<h4>";
        // line 461
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.userchat.full_message");
        echo "</h4>
\t\t</div>
\t\t<div class=\"overlay-content\">
\t\t\t<div style=\"max-height: 500px; overflow: auto;\" id=\"";
        // line 464
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_view_full_message_content\"></div>
\t\t</div>
\t</div>
</div>

</div>";
    }

    public function getTemplateName()
    {
        return "AgentBundle:UserChat:view.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  1455 => 464,  1424 => 451,  1407 => 443,  1366 => 426,  1333 => 422,  1295 => 413,  1280 => 405,  1233 => 397,  1227 => 394,  1217 => 393,  1204 => 389,  1151 => 374,  1118 => 361,  935 => 296,  994 => 192,  1071 => 285,  1058 => 344,  1011 => 199,  3091 => 919,  3079 => 909,  3072 => 905,  3067 => 904,  3063 => 903,  3057 => 900,  3048 => 897,  3039 => 893,  3036 => 892,  3034 => 891,  3026 => 886,  3016 => 879,  3009 => 876,  2999 => 872,  2990 => 866,  2984 => 864,  2978 => 861,  2974 => 860,  2965 => 854,  2959 => 851,  2949 => 844,  2942 => 840,  2932 => 833,  2926 => 830,  2920 => 826,  2916 => 824,  2908 => 823,  2903 => 822,  2899 => 821,  2892 => 819,  2889 => 818,  2884 => 816,  2877 => 812,  2868 => 807,  2852 => 805,  2847 => 804,  2837 => 803,  2834 => 802,  2832 => 801,  2822 => 800,  2814 => 799,  2806 => 798,  2795 => 796,  2790 => 795,  2782 => 794,  2775 => 793,  2771 => 792,  2767 => 791,  2761 => 790,  2749 => 782,  2741 => 778,  2731 => 773,  2718 => 763,  2710 => 758,  2704 => 755,  2700 => 754,  2691 => 749,  2678 => 741,  2665 => 737,  2662 => 736,  2656 => 732,  2654 => 731,  2648 => 730,  2642 => 729,  2639 => 728,  2635 => 727,  2619 => 723,  2611 => 720,  2607 => 718,  2599 => 714,  2589 => 711,  2582 => 709,  2574 => 705,  2569 => 704,  2561 => 701,  2557 => 700,  2549 => 696,  2544 => 695,  2539 => 693,  2536 => 692,  2532 => 691,  2524 => 687,  2519 => 686,  2514 => 684,  2511 => 683,  2507 => 682,  2494 => 677,  2489 => 675,  2486 => 674,  2477 => 670,  2470 => 668,  2458 => 665,  2455 => 664,  2442 => 658,  2437 => 657,  2432 => 655,  2429 => 654,  2425 => 653,  2417 => 649,  2412 => 648,  2407 => 646,  2404 => 645,  2400 => 644,  2395 => 641,  2382 => 637,  2373 => 635,  2368 => 633,  2365 => 632,  2361 => 631,  2356 => 628,  2349 => 626,  2343 => 624,  2337 => 623,  2334 => 622,  2329 => 620,  2326 => 619,  2322 => 618,  2313 => 614,  2306 => 612,  2300 => 610,  2294 => 609,  2291 => 608,  2286 => 606,  2283 => 605,  2279 => 604,  2276 => 603,  2264 => 599,  2259 => 597,  2246 => 592,  2241 => 591,  2217 => 587,  2214 => 586,  2200 => 585,  2197 => 584,  2193 => 583,  2170 => 581,  2166 => 580,  2160 => 578,  2154 => 577,  2137 => 575,  2103 => 570,  2093 => 568,  2081 => 567,  2070 => 566,  2065 => 563,  2051 => 561,  2046 => 560,  2020 => 556,  2014 => 555,  2010 => 554,  2003 => 553,  1989 => 550,  1982 => 546,  1974 => 541,  1962 => 539,  1955 => 537,  1945 => 534,  1939 => 533,  1928 => 528,  1921 => 527,  1877 => 522,  1873 => 521,  1868 => 520,  1864 => 518,  1852 => 514,  1846 => 512,  1831 => 508,  1828 => 507,  1824 => 506,  1806 => 498,  1796 => 495,  1775 => 487,  1769 => 484,  1762 => 482,  1748 => 475,  1743 => 473,  1727 => 469,  1703 => 460,  1699 => 458,  1697 => 457,  1691 => 456,  1687 => 455,  1683 => 453,  1675 => 451,  1670 => 450,  1655 => 445,  1650 => 444,  1633 => 436,  1627 => 433,  1597 => 422,  1590 => 419,  1578 => 414,  1569 => 411,  1561 => 408,  1553 => 403,  1543 => 399,  1524 => 397,  1519 => 396,  1515 => 395,  1505 => 393,  1502 => 392,  1480 => 390,  1475 => 389,  1470 => 388,  1462 => 385,  1451 => 381,  1435 => 379,  1428 => 378,  1378 => 368,  1354 => 363,  1344 => 359,  1287 => 352,  1259 => 348,  1041 => 273,  1346 => 4,  1327 => 1,  1283 => 295,  1278 => 292,  1237 => 279,  1230 => 277,  961 => 207,  922 => 182,  1293 => 478,  1271 => 290,  1256 => 347,  1170 => 326,  1166 => 258,  1054 => 221,  943 => 355,  869 => 223,  1399 => 568,  1387 => 370,  1358 => 364,  1334 => 553,  1316 => 529,  1298 => 481,  1249 => 495,  1120 => 314,  1117 => 245,  1093 => 354,  1073 => 235,  1394 => 446,  1385 => 442,  1382 => 441,  1369 => 433,  1363 => 365,  1360 => 431,  1350 => 429,  1305 => 523,  1281 => 351,  1277 => 403,  1265 => 398,  1255 => 396,  1247 => 393,  1202 => 270,  1162 => 365,  1136 => 461,  1132 => 366,  1078 => 335,  1025 => 205,  750 => 229,  1183 => 452,  1105 => 358,  1097 => 356,  1064 => 314,  1048 => 294,  953 => 249,  907 => 288,  864 => 374,  1326 => 406,  1306 => 418,  1300 => 409,  1219 => 413,  1199 => 374,  1186 => 380,  1141 => 318,  1138 => 251,  1135 => 439,  1098 => 322,  1067 => 283,  1017 => 327,  968 => 360,  875 => 263,  846 => 188,  788 => 242,  805 => 263,  801 => 145,  842 => 263,  832 => 333,  1038 => 212,  932 => 297,  831 => 244,  837 => 154,  790 => 304,  733 => 224,  666 => 214,  919 => 241,  873 => 271,  824 => 254,  762 => 225,  713 => 225,  697 => 197,  2739 => 1153,  2735 => 1152,  2732 => 1151,  2725 => 1146,  2712 => 1144,  2707 => 1143,  2692 => 1131,  2688 => 1130,  2683 => 1127,  2680 => 1126,  2677 => 1125,  2671 => 738,  2658 => 1119,  2653 => 1118,  2645 => 1113,  2641 => 1112,  2636 => 1109,  2632 => 726,  2629 => 1107,  2626 => 1106,  2606 => 1089,  2602 => 1088,  2598 => 1087,  2594 => 713,  2590 => 1085,  2586 => 710,  2572 => 1073,  2568 => 1072,  2564 => 702,  2560 => 1070,  2556 => 1069,  2552 => 1068,  2537 => 1056,  2533 => 1055,  2529 => 1054,  2525 => 1053,  2521 => 1052,  2503 => 1040,  2499 => 678,  2495 => 1038,  2491 => 1037,  2487 => 1036,  2483 => 1035,  2469 => 1024,  2465 => 1023,  2461 => 1022,  2457 => 1021,  2453 => 1020,  2449 => 1019,  2426 => 999,  2422 => 998,  2418 => 997,  2414 => 996,  2410 => 995,  2406 => 994,  2392 => 983,  2388 => 639,  2384 => 981,  2380 => 980,  2376 => 636,  2372 => 978,  2358 => 967,  2354 => 966,  2350 => 965,  2346 => 964,  2342 => 963,  2338 => 962,  2324 => 951,  2320 => 950,  2316 => 949,  2312 => 948,  2308 => 947,  2304 => 946,  2295 => 939,  2282 => 937,  2277 => 936,  2269 => 600,  2265 => 930,  2260 => 927,  2256 => 926,  2253 => 925,  2230 => 588,  2220 => 899,  2216 => 898,  2211 => 896,  2208 => 895,  2198 => 893,  2194 => 892,  2189 => 582,  2184 => 889,  2177 => 885,  2173 => 884,  2164 => 877,  2151 => 576,  2146 => 874,  2143 => 873,  2141 => 864,  2134 => 574,  2130 => 573,  2122 => 853,  2120 => 852,  2113 => 848,  2105 => 846,  2096 => 839,  2083 => 837,  2078 => 836,  2073 => 834,  2067 => 830,  2062 => 828,  2058 => 827,  2054 => 826,  2050 => 825,  2045 => 824,  2038 => 559,  2034 => 821,  2022 => 814,  2009 => 812,  1999 => 809,  1993 => 805,  1988 => 803,  1984 => 802,  1980 => 801,  1976 => 542,  1971 => 799,  1968 => 540,  1964 => 797,  1960 => 796,  1954 => 793,  1946 => 788,  1942 => 787,  1938 => 786,  1932 => 782,  1927 => 780,  1919 => 778,  1915 => 777,  1911 => 776,  1906 => 775,  1903 => 774,  1899 => 773,  1895 => 772,  1886 => 768,  1883 => 764,  1871 => 759,  1866 => 756,  1863 => 755,  1842 => 752,  1825 => 749,  1818 => 748,  1815 => 504,  1800 => 743,  1793 => 741,  1772 => 729,  1761 => 721,  1757 => 720,  1751 => 476,  1740 => 709,  1719 => 697,  1715 => 696,  1686 => 673,  1676 => 669,  1665 => 448,  1661 => 660,  1645 => 441,  1638 => 649,  1630 => 645,  1625 => 642,  1622 => 430,  1598 => 637,  1577 => 634,  1558 => 629,  1549 => 627,  1546 => 626,  1535 => 618,  1531 => 617,  1514 => 606,  1510 => 394,  1504 => 602,  1493 => 594,  1483 => 590,  1464 => 580,  1458 => 577,  1443 => 568,  1437 => 565,  1426 => 557,  1405 => 545,  1401 => 544,  1395 => 541,  1390 => 538,  1381 => 369,  1373 => 531,  1348 => 361,  1343 => 424,  1335 => 515,  1321 => 419,  1318 => 304,  1299 => 414,  1294 => 407,  1282 => 496,  1269 => 506,  1260 => 397,  1240 => 417,  1221 => 338,  1216 => 378,  1210 => 272,  1206 => 337,  1193 => 467,  1189 => 433,  1155 => 468,  1077 => 433,  1049 => 419,  1022 => 303,  1010 => 325,  1006 => 324,  988 => 398,  969 => 309,  965 => 253,  929 => 243,  896 => 280,  866 => 222,  862 => 334,  854 => 244,  844 => 259,  776 => 232,  1713 => 683,  1700 => 681,  1685 => 674,  1662 => 670,  1643 => 669,  1640 => 668,  1631 => 663,  1618 => 661,  1613 => 660,  1608 => 639,  1605 => 656,  1602 => 655,  1589 => 645,  1586 => 644,  1583 => 416,  1554 => 613,  1547 => 401,  1521 => 602,  1508 => 600,  1499 => 598,  1491 => 593,  1482 => 587,  1472 => 582,  1468 => 581,  1465 => 386,  1457 => 382,  1445 => 460,  1422 => 556,  1416 => 374,  1410 => 548,  1397 => 372,  1392 => 371,  1386 => 431,  1377 => 532,  1370 => 530,  1357 => 528,  1352 => 425,  1341 => 428,  1314 => 510,  1311 => 402,  1275 => 493,  1248 => 284,  1238 => 398,  1225 => 476,  1220 => 275,  1209 => 466,  1182 => 387,  1159 => 450,  1154 => 375,  1130 => 438,  1125 => 362,  1101 => 240,  1087 => 302,  1074 => 286,  1056 => 326,  1046 => 216,  1043 => 225,  1030 => 376,  1027 => 331,  999 => 321,  893 => 231,  881 => 267,  877 => 251,  847 => 158,  825 => 350,  766 => 251,  724 => 206,  1083 => 237,  1039 => 336,  995 => 320,  984 => 257,  977 => 313,  941 => 324,  905 => 363,  857 => 263,  705 => 215,  1365 => 556,  1359 => 545,  1349 => 539,  1336 => 427,  1331 => 424,  1323 => 420,  1319 => 356,  1312 => 355,  1284 => 512,  1272 => 401,  1268 => 350,  1261 => 288,  1251 => 285,  1245 => 345,  1231 => 341,  1207 => 271,  1197 => 267,  1180 => 484,  1173 => 371,  1169 => 259,  1163 => 377,  1157 => 421,  1147 => 415,  1143 => 252,  1109 => 440,  1059 => 7,  1051 => 325,  1044 => 215,  1021 => 204,  1015 => 308,  1009 => 357,  987 => 404,  973 => 361,  911 => 298,  855 => 219,  827 => 255,  821 => 266,  691 => 292,  576 => 167,  453 => 107,  1234 => 450,  1224 => 414,  1214 => 412,  1195 => 478,  1190 => 388,  1187 => 327,  1185 => 432,  1177 => 569,  1148 => 253,  1128 => 316,  1122 => 248,  1108 => 376,  1037 => 291,  991 => 351,  921 => 293,  878 => 355,  836 => 228,  730 => 223,  648 => 253,  933 => 185,  914 => 238,  909 => 323,  833 => 317,  783 => 193,  755 => 303,  737 => 241,  685 => 218,  539 => 147,  635 => 171,  582 => 153,  577 => 97,  609 => 202,  593 => 196,  497 => 130,  20 => 1,  774 => 238,  747 => 228,  736 => 290,  524 => 128,  469 => 135,  437 => 125,  546 => 171,  532 => 134,  485 => 138,  479 => 88,  537 => 160,  457 => 199,  947 => 299,  936 => 390,  924 => 350,  917 => 369,  906 => 81,  872 => 250,  860 => 264,  851 => 265,  796 => 144,  767 => 187,  578 => 193,  519 => 80,  852 => 331,  814 => 251,  739 => 211,  722 => 188,  565 => 183,  559 => 137,  471 => 136,  1853 => 842,  1849 => 753,  1839 => 510,  1810 => 820,  1803 => 819,  1799 => 496,  1782 => 489,  1778 => 488,  1770 => 807,  1749 => 795,  1738 => 793,  1728 => 789,  1721 => 788,  1717 => 787,  1709 => 693,  1705 => 781,  1688 => 675,  1681 => 452,  1677 => 768,  1667 => 449,  1656 => 762,  1648 => 655,  1644 => 756,  1636 => 750,  1624 => 744,  1617 => 429,  1606 => 738,  1588 => 732,  1570 => 726,  1545 => 719,  1534 => 606,  1527 => 713,  1509 => 707,  1500 => 701,  1496 => 700,  1489 => 593,  1474 => 688,  1456 => 682,  1449 => 461,  1438 => 457,  1431 => 455,  1420 => 450,  1413 => 446,  1404 => 663,  1400 => 440,  1383 => 540,  1379 => 557,  1356 => 632,  1351 => 362,  1338 => 423,  1332 => 407,  1315 => 613,  1302 => 522,  1289 => 406,  1276 => 468,  1263 => 349,  1244 => 453,  1241 => 343,  1236 => 594,  1218 => 448,  1215 => 577,  1191 => 373,  1181 => 561,  1171 => 445,  1158 => 567,  1114 => 330,  1104 => 465,  1062 => 388,  1042 => 337,  1024 => 330,  1014 => 265,  1000 => 411,  990 => 297,  980 => 277,  970 => 402,  918 => 290,  888 => 276,  834 => 257,  817 => 214,  765 => 297,  746 => 182,  502 => 166,  287 => 51,  1144 => 370,  1139 => 356,  1133 => 358,  1131 => 250,  1127 => 357,  1124 => 455,  1113 => 433,  1110 => 359,  1103 => 444,  1092 => 336,  1086 => 238,  1063 => 232,  1060 => 231,  1055 => 230,  1035 => 314,  1019 => 266,  1003 => 281,  996 => 406,  981 => 257,  959 => 293,  952 => 464,  930 => 148,  908 => 236,  900 => 178,  880 => 273,  867 => 258,  859 => 164,  848 => 235,  839 => 155,  828 => 150,  809 => 179,  803 => 372,  797 => 260,  779 => 314,  769 => 252,  740 => 226,  729 => 289,  703 => 297,  693 => 297,  688 => 113,  671 => 212,  667 => 272,  630 => 170,  626 => 169,  567 => 190,  557 => 150,  512 => 168,  380 => 133,  734 => 181,  701 => 282,  680 => 107,  674 => 177,  659 => 174,  653 => 274,  613 => 151,  602 => 170,  589 => 241,  569 => 187,  542 => 179,  529 => 143,  487 => 137,  475 => 188,  454 => 132,  368 => 136,  717 => 187,  684 => 290,  656 => 210,  647 => 271,  637 => 205,  618 => 241,  597 => 18,  522 => 170,  501 => 91,  340 => 94,  201 => 48,  383 => 102,  374 => 127,  292 => 141,  631 => 179,  616 => 252,  605 => 165,  596 => 164,  561 => 188,  504 => 276,  498 => 163,  491 => 162,  388 => 92,  330 => 115,  445 => 126,  439 => 101,  433 => 151,  413 => 246,  316 => 71,  296 => 103,  370 => 98,  395 => 135,  294 => 66,  273 => 168,  220 => 78,  492 => 138,  468 => 135,  456 => 134,  377 => 132,  319 => 95,  262 => 59,  250 => 79,  5659 => 53,  5653 => 52,  5642 => 51,  5628 => 48,  5623 => 47,  5617 => 46,  5606 => 45,  5588 => 42,  5579 => 41,  5570 => 40,  5561 => 39,  5552 => 38,  5543 => 37,  5534 => 36,  5525 => 35,  5516 => 34,  5507 => 33,  5498 => 32,  5489 => 31,  5486 => 30,  5482 => 29,  5478 => 28,  5467 => 27,  5450 => 24,  5442 => 23,  5434 => 22,  5428 => 21,  5421 => 20,  5407 => 19,  5403 => 4677,  5358 => 4636,  5231 => 4513,  5166 => 4452,  5063 => 4352,  5024 => 4316,  5014 => 4309,  4973 => 4271,  4941 => 4242,  4892 => 4196,  4827 => 4135,  4812 => 4124,  4774 => 4090,  4759 => 4078,  4748 => 4070,  4734 => 4060,  4679 => 4009,  4629 => 3963,  4615 => 3953,  4573 => 3915,  4561 => 3906,  4475 => 3824,  4410 => 3763,  4382 => 3739,  4368 => 3729,  4361 => 3726,  4353 => 3722,  4346 => 3719,  4338 => 3715,  4331 => 3712,  4302 => 3687,  4280 => 3669,  4257 => 3650,  4248 => 3645,  4223 => 3624,  4211 => 3616,  4175 => 3584,  4066 => 3478,  4062 => 3477,  4040 => 3458,  4034 => 3455,  4021 => 3445,  4015 => 3442,  4009 => 3439,  3967 => 3400,  3960 => 3396,  3866 => 3305,  3810 => 3252,  3709 => 3154,  3696 => 3145,  3688 => 3140,  3659 => 3115,  3650 => 3110,  3553 => 3017,  3548 => 3016,  3543 => 3015,  3538 => 3014,  3533 => 3013,  3528 => 3012,  3523 => 3011,  3518 => 3010,  3513 => 3009,  3508 => 3008,  3503 => 3007,  3498 => 3006,  3493 => 3005,  3488 => 3004,  3483 => 3003,  3478 => 3002,  3470 => 2998,  3447 => 2978,  3423 => 2958,  3370 => 2909,  3234 => 2776,  3148 => 2694,  3130 => 2679,  3124 => 2676,  3040 => 2596,  2963 => 2522,  2861 => 2424,  2853 => 2420,  2820 => 2391,  2803 => 2377,  2799 => 797,  2794 => 2375,  2649 => 2234,  2625 => 724,  2517 => 1051,  2498 => 2092,  2482 => 673,  2472 => 2072,  2464 => 666,  2450 => 662,  2446 => 2055,  2436 => 2049,  2428 => 2045,  2378 => 1998,  2303 => 1926,  2293 => 1919,  2252 => 594,  2224 => 1856,  2176 => 1811,  2114 => 1753,  2107 => 571,  2102 => 1749,  2086 => 1737,  2079 => 1734,  1967 => 1637,  1826 => 1502,  1819 => 1498,  1732 => 471,  1723 => 1408,  1695 => 680,  1672 => 1363,  1664 => 1359,  1611 => 1310,  1601 => 638,  1533 => 1238,  1526 => 1235,  1518 => 1230,  1511 => 1227,  1454 => 572,  1439 => 1161,  1417 => 1143,  1409 => 1139,  1308 => 526,  1301 => 1037,  1252 => 400,  1243 => 399,  1223 => 978,  1212 => 494,  1167 => 325,  1161 => 322,  1145 => 923,  1140 => 368,  1106 => 900,  1100 => 897,  983 => 298,  975 => 295,  956 => 292,  939 => 354,  902 => 257,  894 => 177,  879 => 337,  757 => 185,  735 => 168,  727 => 207,  702 => 214,  678 => 178,  670 => 181,  600 => 156,  528 => 172,  476 => 80,  447 => 150,  243 => 123,  780 => 140,  758 => 233,  742 => 191,  700 => 232,  655 => 104,  652 => 172,  638 => 168,  620 => 201,  587 => 155,  579 => 132,  535 => 146,  523 => 141,  516 => 143,  494 => 164,  480 => 134,  441 => 123,  428 => 121,  351 => 89,  347 => 88,  402 => 98,  268 => 98,  430 => 147,  411 => 141,  322 => 70,  289 => 78,  284 => 101,  255 => 66,  1150 => 447,  1134 => 538,  1129 => 435,  1126 => 443,  1121 => 434,  1116 => 331,  1089 => 239,  1084 => 337,  1081 => 429,  1075 => 299,  1072 => 333,  1069 => 332,  1065 => 349,  1061 => 352,  1053 => 295,  1050 => 340,  1047 => 274,  1033 => 290,  1029 => 304,  1026 => 287,  1004 => 369,  997 => 454,  989 => 318,  985 => 296,  978 => 313,  966 => 375,  963 => 292,  960 => 466,  951 => 301,  948 => 356,  944 => 298,  931 => 202,  925 => 242,  916 => 180,  913 => 324,  904 => 198,  899 => 306,  891 => 255,  885 => 336,  882 => 227,  870 => 280,  865 => 267,  829 => 209,  823 => 208,  820 => 149,  811 => 250,  800 => 340,  793 => 245,  786 => 194,  773 => 202,  764 => 198,  761 => 234,  743 => 297,  725 => 250,  720 => 189,  686 => 180,  673 => 190,  662 => 176,  649 => 272,  636 => 145,  632 => 204,  612 => 182,  584 => 178,  562 => 173,  472 => 114,  442 => 102,  438 => 152,  386 => 240,  373 => 67,  304 => 144,  270 => 87,  265 => 97,  477 => 137,  455 => 113,  422 => 118,  407 => 137,  399 => 112,  375 => 190,  364 => 83,  358 => 62,  349 => 130,  338 => 83,  327 => 75,  298 => 106,  249 => 39,  194 => 68,  142 => 47,  344 => 117,  295 => 105,  290 => 101,  266 => 86,  357 => 51,  334 => 163,  300 => 82,  286 => 71,  282 => 58,  279 => 100,  269 => 74,  254 => 118,  128 => 29,  237 => 62,  165 => 48,  122 => 26,  798 => 246,  770 => 313,  759 => 307,  748 => 243,  731 => 180,  721 => 205,  718 => 120,  708 => 185,  696 => 295,  617 => 258,  607 => 171,  590 => 245,  563 => 14,  553 => 145,  550 => 227,  540 => 146,  533 => 158,  507 => 141,  500 => 144,  493 => 196,  489 => 267,  464 => 116,  458 => 83,  452 => 151,  449 => 156,  434 => 124,  424 => 164,  415 => 96,  382 => 91,  372 => 138,  361 => 169,  356 => 125,  339 => 114,  302 => 80,  285 => 99,  258 => 67,  123 => 30,  108 => 37,  418 => 74,  404 => 155,  389 => 105,  354 => 121,  325 => 117,  321 => 75,  276 => 95,  252 => 92,  206 => 54,  110 => 36,  240 => 64,  224 => 33,  217 => 56,  186 => 47,  170 => 41,  100 => 22,  67 => 14,  14 => 1,  1096 => 425,  1090 => 398,  1088 => 321,  1085 => 353,  1066 => 233,  1034 => 210,  1031 => 221,  1018 => 286,  1013 => 326,  1007 => 370,  1002 => 193,  993 => 213,  986 => 212,  982 => 315,  976 => 276,  971 => 254,  964 => 307,  949 => 266,  946 => 290,  940 => 297,  937 => 245,  928 => 292,  926 => 318,  915 => 282,  912 => 281,  903 => 179,  898 => 233,  892 => 176,  889 => 337,  887 => 230,  884 => 79,  876 => 225,  874 => 193,  871 => 378,  863 => 345,  861 => 220,  850 => 261,  840 => 321,  815 => 204,  812 => 311,  808 => 310,  804 => 201,  799 => 306,  791 => 143,  787 => 316,  785 => 141,  771 => 237,  754 => 222,  751 => 215,  728 => 167,  723 => 221,  715 => 202,  711 => 174,  709 => 217,  706 => 183,  698 => 281,  692 => 161,  689 => 291,  681 => 192,  677 => 167,  675 => 285,  663 => 279,  661 => 211,  650 => 213,  644 => 166,  641 => 188,  633 => 265,  629 => 254,  622 => 202,  586 => 17,  575 => 176,  571 => 175,  566 => 251,  554 => 11,  551 => 135,  541 => 152,  536 => 222,  531 => 139,  511 => 142,  509 => 206,  506 => 188,  488 => 163,  483 => 201,  465 => 159,  463 => 134,  460 => 183,  450 => 110,  427 => 119,  419 => 98,  371 => 129,  362 => 126,  353 => 122,  337 => 154,  333 => 77,  309 => 145,  303 => 70,  299 => 69,  291 => 89,  272 => 75,  261 => 135,  256 => 31,  239 => 111,  235 => 75,  228 => 54,  218 => 53,  213 => 74,  200 => 51,  198 => 69,  159 => 56,  149 => 52,  146 => 51,  131 => 43,  116 => 25,  79 => 15,  74 => 12,  71 => 22,  64 => 13,  858 => 272,  843 => 270,  838 => 258,  819 => 313,  816 => 312,  807 => 212,  794 => 177,  781 => 240,  778 => 191,  775 => 82,  753 => 139,  749 => 191,  744 => 137,  726 => 126,  716 => 219,  712 => 218,  707 => 283,  682 => 170,  669 => 282,  664 => 163,  651 => 207,  646 => 189,  642 => 270,  625 => 209,  614 => 257,  608 => 150,  604 => 162,  601 => 161,  598 => 198,  592 => 242,  585 => 194,  572 => 146,  568 => 176,  564 => 157,  556 => 95,  548 => 180,  544 => 140,  527 => 170,  525 => 138,  515 => 133,  513 => 207,  505 => 145,  486 => 162,  481 => 161,  473 => 121,  467 => 157,  461 => 137,  443 => 128,  435 => 148,  432 => 98,  429 => 149,  410 => 138,  397 => 89,  394 => 88,  379 => 101,  341 => 77,  335 => 62,  318 => 42,  315 => 73,  312 => 104,  306 => 71,  280 => 68,  267 => 65,  253 => 130,  234 => 60,  229 => 60,  223 => 53,  219 => 51,  202 => 67,  192 => 93,  51 => 11,  2159 => 821,  2155 => 820,  2152 => 819,  2149 => 818,  2145 => 817,  2142 => 816,  2139 => 815,  2136 => 814,  2132 => 813,  2129 => 812,  2126 => 572,  2123 => 810,  2117 => 809,  2109 => 847,  2104 => 802,  2101 => 801,  2087 => 799,  2080 => 798,  2077 => 797,  2063 => 795,  2056 => 794,  2053 => 1712,  2042 => 823,  2037 => 789,  2031 => 788,  2028 => 818,  2024 => 786,  2021 => 785,  2008 => 776,  2004 => 811,  2001 => 1668,  1996 => 552,  1994 => 770,  1987 => 549,  1983 => 765,  1979 => 764,  1972 => 761,  1969 => 760,  1966 => 759,  1961 => 756,  1959 => 538,  1952 => 536,  1948 => 750,  1944 => 749,  1937 => 746,  1933 => 1606,  1930 => 744,  1925 => 741,  1923 => 779,  1916 => 526,  1912 => 735,  1908 => 525,  1901 => 524,  1897 => 730,  1894 => 729,  1889 => 523,  1887 => 725,  1880 => 721,  1876 => 720,  1872 => 719,  1865 => 716,  1861 => 517,  1858 => 714,  1855 => 515,  1850 => 710,  1841 => 708,  1835 => 509,  1829 => 706,  1827 => 831,  1820 => 505,  1816 => 700,  1809 => 697,  1804 => 744,  1801 => 695,  1798 => 694,  1795 => 742,  1789 => 491,  1776 => 687,  1771 => 686,  1768 => 685,  1766 => 806,  1759 => 672,  1755 => 478,  1750 => 668,  1745 => 667,  1742 => 794,  1739 => 665,  1736 => 708,  1730 => 705,  1720 => 688,  1716 => 467,  1711 => 655,  1708 => 654,  1698 => 652,  1694 => 651,  1689 => 649,  1682 => 672,  1678 => 644,  1671 => 641,  1666 => 640,  1663 => 639,  1660 => 447,  1657 => 446,  1651 => 656,  1641 => 631,  1637 => 667,  1632 => 628,  1629 => 627,  1619 => 625,  1615 => 624,  1610 => 622,  1603 => 618,  1599 => 651,  1592 => 614,  1587 => 613,  1584 => 635,  1581 => 731,  1576 => 608,  1574 => 412,  1567 => 410,  1563 => 630,  1559 => 601,  1552 => 628,  1548 => 597,  1542 => 593,  1529 => 605,  1525 => 614,  1516 => 708,  1512 => 583,  1503 => 599,  1490 => 574,  1486 => 694,  1477 => 567,  1473 => 566,  1467 => 687,  1460 => 557,  1447 => 569,  1442 => 554,  1427 => 542,  1423 => 377,  1418 => 538,  1415 => 537,  1412 => 536,  1406 => 532,  1393 => 436,  1388 => 537,  1380 => 430,  1376 => 436,  1371 => 645,  1367 => 366,  1364 => 518,  1361 => 523,  1355 => 543,  1342 => 624,  1337 => 510,  1328 => 552,  1324 => 550,  1317 => 403,  1313 => 499,  1310 => 300,  1304 => 504,  1291 => 477,  1286 => 406,  1279 => 486,  1274 => 508,  1270 => 483,  1266 => 401,  1262 => 490,  1257 => 500,  1254 => 286,  1250 => 346,  1246 => 420,  1239 => 389,  1235 => 498,  1232 => 472,  1226 => 340,  1213 => 273,  1208 => 445,  1201 => 334,  1196 => 464,  1192 => 384,  1188 => 456,  1184 => 263,  1179 => 430,  1176 => 384,  1172 => 383,  1168 => 451,  1164 => 450,  1160 => 256,  1153 => 320,  1149 => 373,  1146 => 319,  1137 => 57,  1123 => 407,  1119 => 352,  1115 => 424,  1111 => 310,  1107 => 242,  1102 => 402,  1099 => 438,  1095 => 399,  1091 => 418,  1082 => 289,  1079 => 352,  1076 => 351,  1070 => 350,  1057 => 350,  1052 => 220,  1045 => 338,  1040 => 213,  1036 => 283,  1032 => 333,  1028 => 417,  1023 => 409,  1020 => 311,  1016 => 266,  1012 => 372,  1005 => 263,  1001 => 304,  998 => 262,  992 => 319,  979 => 256,  974 => 255,  967 => 274,  962 => 294,  958 => 252,  954 => 302,  950 => 441,  945 => 298,  942 => 460,  938 => 264,  934 => 244,  927 => 183,  923 => 291,  920 => 369,  910 => 365,  901 => 234,  897 => 273,  890 => 286,  886 => 254,  883 => 353,  868 => 249,  856 => 163,  853 => 162,  849 => 308,  845 => 339,  841 => 249,  835 => 268,  830 => 333,  826 => 282,  822 => 281,  818 => 265,  813 => 181,  810 => 202,  806 => 261,  802 => 307,  795 => 202,  792 => 317,  789 => 206,  784 => 236,  782 => 300,  777 => 297,  772 => 190,  768 => 199,  763 => 199,  760 => 294,  756 => 192,  752 => 192,  745 => 212,  741 => 301,  738 => 190,  732 => 192,  719 => 288,  714 => 186,  710 => 284,  704 => 119,  699 => 183,  695 => 280,  683 => 156,  679 => 191,  668 => 191,  665 => 190,  658 => 277,  645 => 103,  640 => 172,  634 => 206,  628 => 184,  623 => 202,  619 => 174,  615 => 183,  611 => 166,  603 => 199,  599 => 250,  595 => 169,  580 => 240,  573 => 192,  560 => 231,  549 => 172,  543 => 148,  526 => 142,  521 => 144,  518 => 169,  510 => 154,  503 => 141,  499 => 165,  496 => 140,  484 => 161,  474 => 160,  470 => 131,  451 => 111,  446 => 129,  431 => 102,  425 => 120,  416 => 140,  412 => 95,  408 => 113,  403 => 138,  400 => 153,  396 => 110,  392 => 71,  385 => 131,  381 => 130,  367 => 128,  363 => 127,  359 => 124,  355 => 132,  350 => 121,  346 => 129,  343 => 69,  328 => 208,  324 => 91,  313 => 93,  307 => 103,  301 => 107,  288 => 88,  283 => 63,  271 => 86,  257 => 93,  251 => 59,  238 => 121,  233 => 61,  195 => 55,  191 => 45,  187 => 65,  183 => 53,  130 => 30,  88 => 18,  76 => 37,  115 => 30,  95 => 21,  694 => 196,  690 => 194,  687 => 210,  676 => 213,  672 => 153,  660 => 105,  657 => 268,  654 => 275,  643 => 169,  639 => 209,  627 => 164,  624 => 101,  621 => 220,  610 => 200,  606 => 252,  594 => 180,  591 => 170,  588 => 180,  583 => 153,  581 => 143,  574 => 162,  570 => 129,  558 => 13,  555 => 153,  552 => 184,  547 => 134,  545 => 220,  538 => 10,  534 => 176,  530 => 215,  520 => 232,  517 => 151,  514 => 140,  508 => 164,  495 => 204,  490 => 127,  482 => 124,  478 => 136,  466 => 138,  462 => 154,  459 => 114,  448 => 74,  444 => 154,  440 => 149,  436 => 100,  426 => 147,  423 => 59,  420 => 145,  409 => 157,  405 => 218,  401 => 135,  391 => 149,  387 => 68,  384 => 103,  378 => 89,  365 => 97,  360 => 126,  348 => 79,  336 => 117,  332 => 79,  329 => 102,  323 => 113,  310 => 109,  305 => 90,  277 => 89,  274 => 99,  263 => 161,  259 => 51,  247 => 65,  244 => 88,  241 => 57,  222 => 57,  210 => 65,  207 => 50,  204 => 47,  184 => 49,  181 => 40,  167 => 55,  157 => 38,  96 => 19,  421 => 119,  417 => 118,  414 => 109,  406 => 113,  398 => 152,  393 => 94,  390 => 132,  376 => 178,  369 => 126,  366 => 171,  352 => 131,  345 => 78,  342 => 85,  331 => 150,  326 => 86,  320 => 112,  317 => 112,  314 => 111,  311 => 67,  308 => 109,  297 => 51,  293 => 182,  281 => 50,  278 => 61,  275 => 71,  264 => 64,  260 => 62,  248 => 90,  245 => 64,  242 => 63,  231 => 71,  227 => 70,  215 => 64,  212 => 72,  209 => 72,  197 => 50,  177 => 57,  171 => 45,  161 => 74,  132 => 30,  121 => 49,  105 => 23,  99 => 20,  81 => 18,  77 => 26,  180 => 60,  176 => 48,  156 => 39,  143 => 39,  139 => 32,  118 => 37,  189 => 48,  185 => 52,  173 => 107,  166 => 47,  152 => 47,  174 => 53,  164 => 54,  154 => 33,  150 => 41,  137 => 39,  133 => 33,  127 => 26,  107 => 35,  102 => 24,  83 => 28,  78 => 15,  53 => 9,  23 => 3,  42 => 6,  138 => 49,  134 => 40,  109 => 24,  103 => 22,  97 => 23,  94 => 22,  84 => 16,  75 => 16,  69 => 11,  66 => 34,  54 => 13,  44 => 10,  230 => 57,  226 => 80,  203 => 52,  193 => 61,  188 => 44,  182 => 60,  178 => 45,  168 => 45,  163 => 42,  160 => 45,  155 => 42,  148 => 41,  145 => 35,  140 => 38,  136 => 34,  125 => 28,  120 => 30,  113 => 56,  101 => 24,  92 => 20,  89 => 34,  85 => 17,  73 => 13,  62 => 15,  59 => 11,  56 => 11,  41 => 9,  126 => 28,  119 => 26,  111 => 44,  106 => 23,  98 => 37,  93 => 18,  86 => 49,  70 => 18,  60 => 11,  28 => 4,  36 => 4,  114 => 28,  104 => 25,  91 => 21,  80 => 27,  63 => 11,  58 => 10,  40 => 8,  34 => 3,  45 => 7,  61 => 11,  55 => 12,  48 => 8,  39 => 17,  35 => 15,  31 => 2,  26 => 3,  21 => 2,  46 => 7,  29 => 5,  57 => 13,  50 => 10,  47 => 8,  38 => 6,  33 => 5,  49 => 8,  32 => 6,  246 => 80,  236 => 85,  232 => 61,  225 => 53,  221 => 54,  216 => 51,  214 => 53,  211 => 63,  208 => 53,  205 => 61,  199 => 47,  196 => 63,  190 => 43,  179 => 49,  175 => 51,  172 => 46,  169 => 52,  162 => 40,  158 => 39,  153 => 42,  151 => 37,  147 => 42,  144 => 45,  141 => 36,  135 => 35,  129 => 41,  124 => 34,  117 => 29,  112 => 27,  90 => 23,  87 => 17,  82 => 38,  72 => 13,  68 => 12,  65 => 17,  52 => 9,  43 => 7,  37 => 2,  30 => 2,  27 => 4,  25 => 9,  24 => 2,  22 => 2,  19 => 1,);
    }
}
