<?php

/* AgentBundle:Ticket:newticket.html.twig */
class __TwigTemplate_8c5e7f30834c1049afde5768888683bf 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
        $context["agentui"] = $this->env->loadTemplate("AgentBundle:Common:agent-macros.html.twig");
        // line 2
        echo "<script>
pageMeta.fragmentClass = 'DeskPRO.Agent.PageFragment.Page.NewTicket';
pageMeta.title = '";
        // line 4
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.new_ticket");
        echo "';
pageMeta.ticket_id = 0;

pageMeta.labelsAutocompleteUrl        = '";
        // line 7
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("agent_ajax_labels_autocomplete", array("label_type" => "ticket")), "html", null, true);
        echo "';
pageMeta.uploadAttachUrl              = '";
        // line 8
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("agent_accept_upload"), "html", null, true);
        echo "';

pageMeta.auto_start_bill = ";
        // line 10
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if ($this->getAttribute($_app_, "getSetting", array(0 => "core_tickets.billing_auto_timer_new"), "method")) {
            echo "true";
        } else {
            echo "false";
        }
        echo ";

";
        // line 12
        $context["baseId"] = $this->env->getExtension('deskpro_templating')->elUid();
        // line 13
        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>
";
        // line 15
        if (isset($context["agentui"])) { $_agentui_ = $context["agentui"]; } else { $_agentui_ = null; }
        echo $_agentui_->getscroll_containers("page-new-ticket page-new-content");
        echo "

<a class=\"tab-anchor\" href=\"#\">&nbsp;</a>

<form id=\"";
        // line 19
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_newticket\" class=\"keybound-submit\">

<input type=\"hidden\" name=\"for_comment_type\" id=\"";
        // line 21
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_for_comment_type\" value=\"\" />
<input type=\"hidden\" name=\"for_comment_id\" id=\"";
        // line 22
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_for_comment_id\" value=\"\" />
<input type=\"hidden\" name=\"for_chat_id\" id=\"";
        // line 23
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_for_chat_id\" value=\"\" />
<input type=\"hidden\" name=\"parent_ticket_id\" id=\"";
        // line 24
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_parent_ticket_id\" value=\"";
        if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; }
        echo twig_escape_filter($this->env, (($this->getAttribute($_ticket_, "id", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($_ticket_, "id"), "0")) : ("0")), "html", null, true);
        echo "\" />
<input type=\"hidden\" id=\"";
        // line 25
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_action\" name=\"options[action]\" value=\"\" />

<div class=\"pending-info comment\" style=\"display: none;\">
\t<i class=\"reset\"></i>
\t<h3>";
        // line 29
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.creating_a_ticket_for");
        echo ": <span id=\"";
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_comment_title\"></span></h3>
\t<div class=\"pending-item pending-ticket\">
\t\t<div class=\"about\">";
        // line 31
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.commented_on");
        echo ": <a data-route=\"\" class=\"with-route ticket-link\" id=\"";
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_comment_object_link\"></a></div>
\t\t<div class=\"post-action\">
\t\t\t<select name=\"comment_action\" id=\"";
        // line 33
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_comment_action\">
\t\t\t\t<option value=\"delete\">";
        // line 34
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.delete");
        echo "</option>
\t\t\t\t<option value=\"approve\">";
        // line 35
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.approve");
        echo "</option>
\t\t\t</select>
\t\t\t";
        // line 37
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.coment_after_ticket_created");
        echo "
\t\t</div>
\t</div>
</div>

<div class=\"errors-section\" id=\"";
        // line 42
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_error_section\" style=\"display: none;\">
\t<div style=\"display:none;\" class=\"error-message subject\">&bull; ";
        // line 43
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.please_enter_subject");
        echo "</div>
\t<div style=\"display:none;\" class=\"error-message person_id person_no_user\">&bull; ";
        // line 44
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.please_choose_or_create_user");
        echo "</div>
\t<div style=\"display:none;\" class=\"error-message person_email_address\">&bull; ";
        // line 45
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.error_email_address");
        echo "</div>
\t<div style=\"display:none;\" class=\"error-message person_email_address_gateway\">&bull; ";
        // line 46
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.email_is_ticket_account");
        echo "</div>
\t<div style=\"display:none;\" class=\"error-message department_id\">&bull; ";
        // line 47
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.select_a_department");
        echo "</div>
\t<div style=\"display:none;\" class=\"error-message message\">&bull; ";
        // line 48
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.enter_a_message");
        echo "</div>
\t<div style=\"display:none;\" class=\"error-message person_disabled\">&bull; ";
        // line 49
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.user_is_disabled");
        echo "</div>
\t<div style=\"display:none;\" class=\"error-message free\" id=\"";
        // line 50
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_freemessage\"></div>
</div>

<div class=\"pending-info chat\" style=\"display: none; padding: 7px; background: #FFFEFE; border-bottom: 1px solid #9CA7B1; font-size: 11px;\">
\t";
        // line 54
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.linking_with_chat");
        echo " <span id=\"";
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_chat_title\"></span>
</div>

<div class=\"profile-box-container reply-box-wrap\" style=\"position: relative\">
\t<header>
\t\t<div class=\"controls\">
\t\t\t<button class=\"switch-user\" id=\"";
        // line 60
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_switch_user\" style=\"display: none\">";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.change_user");
        echo "</button>
\t\t</div>
\t\t<nav data-element-handler=\"DeskPRO.ElementHandler.SimpleTabs\"><ul>
\t\t\t<li data-tab-for=\"#";
        // line 63
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_user_section\">";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.user");
        echo "</li>
\t\t\t<li data-tab-for=\"#";
        // line 64
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_cc_section\">";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.ccs");
        echo "</li>
\t\t</ul></nav>
\t</header>
\t<section id=\"";
        // line 67
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_user_section\" class=\"user-section\">
\t\t<div id=\"";
        // line 68
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_choose_user\" style=\"padding: 10px\">
\t\t\t<div
\t\t\t\tid=\"";
        // line 70
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_user_searchbox\"
\t\t\t\tdata-element-handler=\"DeskPRO.Agent.ElementHandler.PersonSearchBox\"
\t\t\t\tdata-search-url=\"";
        // line 72
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("agent_peoplesearch_performquick", array("format" => "json", "limit" => 10, "start_with" => "a", "with_agents" => 1)), "html", null, true);
        echo "\"
\t\t\t\tdata-highlight-term=\"1\"
\t\t\t\tdata-touch-focus=\"1\"
\t\t\t\tdata-search-param=\"term\"
\t\t\t\tdata-position-bound=\"#";
        // line 76
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_userselect\"
\t\t\t>
\t\t\t\t<input type=\"text\" name=\"newticket[person_input_choice]\" id=\"";
        // line 78
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_userselect\" class=\"select-user term\" placeholder=\"";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.choose_person_for_ticket");
        echo "\" />
\t\t\t\t<input type=\"hidden\" name=\"newticket[person][id]\" value=\"";
        // line 79
        if (isset($context["person"])) { $_person_ = $context["person"]; } else { $_person_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($_person_, "id"), "html", null, true);
        echo "\" class=\"person-id\" id=\"";
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_person_id\" />

\t\t\t\t<script type=\"text/x-deskpro-tmpl\" class=\"user-row-tpl\">
\t\t\t\t\t<li>
\t\t\t\t\t\t<a>
\t\t\t\t\t\t<span class=\"user-name\"></span>
\t\t\t\t\t\t<address>&lt;<span class=\"user-email\"></span>&gt;</address>
\t\t\t\t\t\t<div class=\"bound-fade\"></div>
\t\t\t\t\t</a></li>
\t\t\t\t</script>
\t\t\t\t<div class=\"person-search-box\" style=\"display: none\">
\t\t\t\t\t<section>
\t\t\t\t\t\t<ul class=\"results-list\">

\t\t\t\t\t\t</ul>
\t\t\t\t\t\t<footer>
\t\t\t\t\t\t\t<span class=\"create-user\">";
        // line 95
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.create_a_new_person");
        echo "</span>
\t\t\t\t\t\t</footer>
\t\t\t\t\t</section>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<div id=\"";
        // line 101
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_user_choice\">

\t\t</div>
\t</section>
\t<section id=\"";
        // line 105
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_cc_section\" style=\"padding: 10px; display: none;\">
\t\t<div class=\"cc-input\">
\t\t\t<div
\t\t\t\tid=\"";
        // line 108
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_user_ccbox\"
\t\t\t\tdata-element-handler=\"DeskPRO.Agent.ElementHandler.PersonSearchBox\"
\t\t\t\tdata-search-url=\"";
        // line 110
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("agent_peoplesearch_performquick", array("format" => "json", "limit" => 10, "start_with" => "a")), "html", null, true);
        echo "\"
\t\t\t\tdata-highlight-term=\"1\"
\t\t\t\tdata-touch-focus=\"1\"
\t\t\t\tdata-search-param=\"term\"
\t\t\t\tdata-position-bound=\"#";
        // line 114
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_userccselect\"
\t\t\t>
\t\t\t\t<input type=\"text\" id=\"";
        // line 116
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_userccselect\" class=\"cc-user term\" placeholder=\"";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.search_for_people_to_add");
        echo "\" />

\t\t\t\t<script type=\"text/x-deskpro-tmpl\" class=\"user-row-tpl\">
\t\t\t\t\t<li>
\t\t\t\t\t\t<a>
\t\t\t\t\t\t<span class=\"user-name\"></span>
\t\t\t\t\t\t<address>&lt;<span class=\"user-email\"></span>&gt;</address>
\t\t\t\t\t\t<div class=\"bound-fade\"></div>
\t\t\t\t\t</a></li>
\t\t\t\t</script>
\t\t\t\t<div class=\"person-search-box\" style=\"display: none\">
\t\t\t\t\t<section>
\t\t\t\t\t\t<ul class=\"results-list\">

\t\t\t\t\t\t</ul>
\t\t\t\t\t\t<footer>
\t\t\t\t\t\t\t<span class=\"create-user\">";
        // line 132
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.create_a_new_person");
        echo "</span>
\t\t\t\t\t\t</footer>
\t\t\t\t\t</section>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<ul id=\"";
        // line 138
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_cc_list\" class=\"cc-list\"></ul>
\t</section>
</div>

<div class=\"profile-box-container reply-box-wrap\" style=\"position: relative\">
\t<header>
\t\t<h4>";
        // line 144
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.properties");
        echo "</h4>
\t</header>
\t<section class=\"ticketreply\">
\t\t<article id=\"";
        // line 147
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_headerbox_box_props\" class=\"headerbox\">
\t\t\t<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" class=\"field-holders-table\" id=\"";
        // line 148
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_fields_container\">
\t\t\t\t<tbody>
\t\t\t\t\t<th width=\"80\">";
        // line 150
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.department");
        echo "</th>
\t\t\t\t\t<td>
\t\t\t\t\t\t";
        // line 152
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; }
        $this->env->loadTemplate("AgentBundle:Common:select-department.html.twig")->display(array_merge($context, array("name" => "newticket[department_id]", "id" => ($_baseId_ . "_dep"), "departments" => $this->getAttribute($this->getAttribute($_app_, "departments"), "getPersonDepartments", array(0 => $this->getAttribute($_app_, "user"), 1 => "tickets", 2 => array(), 3 => "assign"), "method"), "selected" => $this->getAttribute($_ticket_, "department_id"), "with_blank" => true)));
        // line 159
        echo "\t\t\t\t\t</td>
\t\t\t\t</tbody>

\t\t\t\t";
        // line 162
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if ($this->getAttribute($_app_, "getSetting", array(0 => "core.use_ticket_category"), "method")) {
            // line 163
            echo "\t\t\t\t\t<tbody class=\"col fieldprop ticket-field item-on ticket_category inline-field\" style=\"display: none;\">
\t\t\t\t\t\t<th>";
            // line 164
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.category");
            echo "</th>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t";
            // line 167
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            if (isset($context["ticket_options"])) { $_ticket_options_ = $context["ticket_options"]; } else { $_ticket_options_ = null; }
            if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; }
            $this->env->loadTemplate("AgentBundle:Common:select-category.html.twig")->display(array_merge($context, array("name" => "newticket[category_id]", "id" => ($_baseId_ . "_cat"), "categories" => $this->getAttribute($_ticket_options_, "ticket_categories_hierarchy"), "selected" => $this->getAttribute($_ticket_, "category_id"), "with_blank" => true)));
            // line 174
            echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tbody>
\t\t\t\t";
        }
        // line 178
        echo "
\t\t\t\t";
        // line 179
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if ($this->getAttribute($_app_, "getSetting", array(0 => "core.use_ticket_priority"), "method")) {
            // line 180
            echo "\t\t\t\t\t<tbody class=\"col fieldprop ticket-field item-on ticket_priority inline-field\" style=\"display: none;\">
\t\t\t\t\t\t<th>";
            // line 181
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.priority");
            echo "</th>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
            // line 183
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; }
            if (isset($context["ticket_options"])) { $_ticket_options_ = $context["ticket_options"]; } else { $_ticket_options_ = null; }
            $this->env->loadTemplate("AgentBundle:Common:select-priority.html.twig")->display(array_merge($context, array("name" => "newticket[priority_id]", "id" => ($_baseId_ . "_pri"), "add_classname" => "ticket_priority", "selected" => $this->getAttribute($_ticket_, "priority_id"), "priorities" => $this->getAttribute($_ticket_options_, "ticket_priorities"), "with_blank" => true)));
            // line 191
            echo "\t\t\t\t\t\t</td>
\t\t\t\t\t</tbody>
\t\t\t\t";
        }
        // line 194
        echo "
\t\t\t\t";
        // line 195
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if ($this->getAttribute($_app_, "getSetting", array(0 => "core.use_ticket_workflow"), "method")) {
            // line 196
            echo "\t\t\t\t\t<tbody class=\"col fieldprop ticket-field item-on ticket_workflow inline-field\" style=\"clear:both;display: none;\">
\t\t\t\t\t\t<th>";
            // line 197
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.workflow");
            echo "</th>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
            // line 199
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; }
            if (isset($context["ticket_options"])) { $_ticket_options_ = $context["ticket_options"]; } else { $_ticket_options_ = null; }
            $this->env->loadTemplate("AgentBundle:Common:select-workflow.html.twig")->display(array_merge($context, array("name" => "newticket[workflow_id]", "id" => ($_baseId_ . "_work"), "add_classname" => "ticket_workflow", "selected" => $this->getAttribute($_ticket_, "workflow_id"), "workflows" => $this->getAttribute($_ticket_options_, "ticket_workflows"), "with_blank" => true)));
            // line 207
            echo "\t\t\t\t\t\t</td>
\t\t\t\t\t</tbody>
\t\t\t\t";
        }
        // line 210
        echo "
\t\t\t\t";
        // line 211
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if ($this->getAttribute($_app_, "getSetting", array(0 => "core.use_product"), "method")) {
            // line 212
            echo "\t\t\t\t\t<tbody class=\"col fieldprop ticket-field item-on ticket_product inline-field\" style=\"clear:both;display: none;\">
\t\t\t\t\t\t<th>";
            // line 213
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.product");
            echo "</th>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
            // line 215
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            if (isset($context["ticket_options"])) { $_ticket_options_ = $context["ticket_options"]; } else { $_ticket_options_ = null; }
            if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; }
            $this->env->loadTemplate("AgentBundle:Common:select-product.html.twig")->display(array_merge($context, array("name" => "newticket[product_id]", "id" => ($_baseId_ . "_prod"), "add_classname" => "ticket_product", "products" => $this->getAttribute($_ticket_options_, "products_hierarchy"), "selected" => $this->getAttribute($_ticket_, "product_id"), "with_blank" => true)));
            // line 223
            echo "\t\t\t\t\t\t</td>
\t\t\t\t\t</tbody>
\t\t\t\t";
        }
        // line 226
        echo "
\t\t\t\t";
        // line 227
        if (isset($context["custom_fields"])) { $_custom_fields_ = $context["custom_fields"]; } else { $_custom_fields_ = null; }
        if ($_custom_fields_) {
            // line 228
            echo "\t\t\t\t\t";
            if (isset($context["custom_fields"])) { $_custom_fields_ = $context["custom_fields"]; } else { $_custom_fields_ = null; }
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($_custom_fields_);
            foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
                if (isset($context["f"])) { $_f_ = $context["f"]; } else { $_f_ = null; }
                if (($this->getAttribute($this->getAttribute($_f_, "field_def"), "getTypeName", array(), "method") != "hidden")) {
                    // line 229
                    echo "\t\t\t\t\t\t<tbody class=\"col fieldprop ticket-field item-on ticket-field-";
                    if (isset($context["f"])) { $_f_ = $context["f"]; } else { $_f_ = null; }
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_f_, "field_def"), "id"), "html", null, true);
                    echo " item-on-";
                    if (isset($context["f"])) { $_f_ = $context["f"]; } else { $_f_ = null; }
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_f_, "field_def"), "id"), "html", null, true);
                    echo " inline-field\" style=\"clear:both;display: none;\">
\t\t\t\t\t\t\t<th>";
                    // line 230
                    if (isset($context["f"])) { $_f_ = $context["f"]; } else { $_f_ = null; }
                    echo twig_escape_filter($this->env, $this->getAttribute($_f_, "title"), "html", null, true);
                    echo "</th>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t";
                    // line 232
                    if (isset($context["f"])) { $_f_ = $context["f"]; } else { $_f_ = null; }
                    echo $this->env->getExtension('deskpro_templating')->renderCustomFieldForm($_f_);
                    echo "
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tbody>
\t\t\t\t\t";
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 236
            echo "\t\t\t\t";
        }
        // line 237
        echo "\t\t\t</table>
\t\t</article>
\t</section>
</div>

";
        // line 242
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if (($this->getAttribute($_app_, "getSetting", array(0 => "core_tickets.enable_billing"), "method") && $this->getAttribute($_app_, "getSetting", array(0 => "core_tickets.billing_on_new"), "method"))) {
            // line 243
            echo "<div class=\"profile-box-container reply-box-wrap\" style=\"position: relative\">
\t<header>
\t\t<h4>";
            // line 245
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.billing");
            echo "</h4>
\t</header>
\t<section class=\"ticketreply\">
\t\t<article id=\"";
            // line 248
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_headerbox_box_billing\" class=\"headerbox\">
\t\t\t<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" class=\"field-holders-table billing-form\" id=\"";
            // line 249
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_billing_form\">
\t\t\t<tr>
\t\t\t\t<th width=\"80\">";
            // line 251
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.billing_charge");
            echo "</th>
\t\t\t\t<td>
\t\t\t\t\t<ul class=\"billing-types\">
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<label><input type=\"radio\" name=\"";
            // line 255
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_billing_type\" value=\"amount\" />";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.billing_amount");
            echo ":</label>
\t\t\t\t\t\t\t<input type=\"text\" id=\"";
            // line 256
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_billing_amount\" name=\"newticket[billing_amount]\" size=\"7\" placeholder=\"0.00\" class=\"billing-form-amount\" /> ";
            if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_app_, "getSetting", array(0 => "core_tickets.billing_currency"), "method"), "html", null, true);
            echo "
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<label><input type=\"radio\" name=\"";
            // line 259
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_billing_type\" value=\"time\" checked=\"checked\" />";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.billing_time");
            echo ":</label>
\t\t\t\t\t\t\t<span id=\"";
            // line 260
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_billing_inputs\" class=\"billing-form-time\">
\t\t\t\t\t\t\t\t<input type=\"text\" id=\"";
            // line 261
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_billing_hours\" name=\"newticket[billing_hours]\" size=\"2\" placeholder=\"H\" />:<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 "_billing_minutes\" name=\"newticket[billing_minutes]\" size=\"2\" placeholder=\"M\" maxlength=\"2\" />:<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 "_billing_seconds\" name=\"newticket[billing_seconds]\" size=\"2\" placeholder=\"S\" maxlength=\"2\" />
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t<span class=\"billing-form-buttons\">
\t\t\t\t\t\t\t\t<button class=\"clean-white\" id=\"";
            // line 264
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_billing_start\">";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.start");
            echo "</button>
\t\t\t\t\t\t\t\t<button class=\"clean-white\" id=\"";
            // line 265
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_billing_stop\">";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.pause");
            echo "</button>
\t\t\t\t\t\t\t\t<button class=\"clean-white\" id=\"";
            // line 266
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_billing_reset\">";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.reset");
            echo "</button>
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<input type=\"hidden\" id=\"";
            // line 269
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_billing_type_hidden\" name=\"newticket[billing_type]\" value=\"time\" />
\t\t\t\t\t</ul>
\t\t\t\t</td>
\t\t\t</tr>
\t\t\t<tr>
\t\t\t\t<th>";
            // line 274
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.comment");
            echo "</th>
\t\t\t\t<td><input type=\"text\" id=\"";
            // line 275
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_billing_comment\" name=\"newticket[billing_comment]\" style=\"width: 98%\" maxlength=\"255\" /></td>
\t\t\t</tr>
\t\t\t</table>
\t\t</article>
\t</section>
</div>
";
        }
        // line 282
        echo "
<div class=\"profile-box-container reply-box-wrap\" style=\"position: relative\" id=\"";
        // line 283
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_message_box\">
\t<div class=\"ticket-sending-overlay\" style=\"display: none\">
\t\t<strong>";
        // line 285
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.sending_your_message");
        echo "</strong>
\t</div>
\t<header>
\t\t<h4>";
        // line 288
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.ticket");
        echo "</h4>
\t</header>
\t<section class=\"ticketreply\">
\t\t<article>
\t\t\t<section>
\t\t\t\t<div class=\"option-rows\">
\t\t\t\t\t<ul id=\"";
        // line 294
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_option_rows\">
\t\t\t\t\t\t<li class=\"with-select2\">
\t\t\t\t\t\t\t<label>
\t\t\t\t\t\t\t\t<span class=\"expander\" data-target=\"#";
        // line 297
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_cc_row\">+/-</span>
\t\t\t\t\t\t\t\t";
        // line 298
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.agent");
        echo ":
\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t";
        // line 301
        if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; }
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if ((($this->getAttribute($this->getAttribute($_ticket_, "agent"), "id") == $this->getAttribute($this->getAttribute($_app_, "user"), "id")) || (!$this->getAttribute($_ticket_, "agent")))) {
            if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
            $context["agent_id"] = $this->getAttribute($this->getAttribute($_app_, "user"), "id");
            // line 302
            echo "\t\t\t\t\t\t\t\t";
        } else {
            if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; }
            $context["agent_id"] = $this->getAttribute($this->getAttribute($_ticket_, "agent"), "id");
        }
        // line 303
        echo "
\t\t\t\t\t\t\t\t<select name=\"newticket[agent_id]\" class=\"dpe_select\" data-style-type=\"icons\" data-select-icon-size=\"22\">
\t\t\t\t\t\t\t\t\t<option ";
        // line 305
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if ((!$this->getAttribute($_app_, "getSetting", array(0 => "core_tickets.new_assign"), "method"))) {
            echo "selected=\"selected\"";
        }
        echo " value=\"0\">";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.unassigned");
        echo "</option>
\t\t\t\t\t\t\t\t\t";
        // line 306
        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 307
            echo "\t\t\t\t\t\t\t\t\t\t<option ";
            if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
            if (isset($context["agent_id"])) { $_agent_id_ = $context["agent_id"]; } else { $_agent_id_ = null; }
            if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
            if ((($this->getAttribute($_agent_, "id") == $_agent_id_) && ($this->getAttribute($_app_, "getSetting", array(0 => "core_tickets.new_assign"), "method") == "assign"))) {
                echo "selected=\"selected\"";
            }
            echo " data-icon=\"";
            if (isset($context["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_agent_, "getPictureUrl", array(0 => 20), "method"), "html", null, true);
            echo "\" 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["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_agent_, "display_name"), "html", null, true);
            echo "</option>
\t\t\t\t\t\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 309
        echo "\t\t\t\t\t\t\t\t</select>

\t\t\t\t\t\t\t\t";
        // line 311
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($_app_, "agent_teams"), "getTeamNames", array(), "method"))) {
            // line 312
            echo "\t\t\t\t\t\t\t\t\t<select name=\"newticket[agent_team_id]\" id=\"";
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_agent_team_sel\" class=\"dpe_select x\" data-select-nogrouptitle=\"1\">
\t\t\t\t\t\t\t\t\t\t<option value=\"0\" ";
            // line 313
            if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
            if ((!$this->getAttribute($_app_, "getSetting", array(0 => "core_tickets.new_assignteam"), "method"))) {
                echo "selected=\"selected\"";
            }
            echo ">";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.none");
            echo "</option>
\t\t\t\t\t\t\t\t\t\t";
            // line 314
            if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
            if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($_app_, "user"), "getAgent", array(), "method"), "getTeams", array(), "method"))) {
                // line 315
                echo "\t\t\t\t\t\t\t\t\t\t<optgroup label=\"";
                echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.your_teams");
                echo "\">
\t\t\t\t\t\t\t\t\t\t\t";
                // line 316
                if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
                $context['_parent'] = (array) $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute($_app_, "user"), "getAgent", array(), "method"), "getTeams", array(), "method"));
                foreach ($context['_seq'] as $context["_key"] => $context["team"]) {
                    // line 317
                    echo "\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
                    if (isset($context["team"])) { $_team_ = $context["team"]; } else { $_team_ = null; }
                    echo twig_escape_filter($this->env, $this->getAttribute($_team_, "id"), "html", null, true);
                    echo "\" ";
                    if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
                    if (isset($context["team"])) { $_team_ = $context["team"]; } else { $_team_ = null; }
                    if ((($this->getAttribute($_app_, "getSetting", array(0 => "core_tickets.new_assignteam"), "method") == "assign") && (($this->getAttribute($this->getAttribute($_app_, "user"), "getPref", array(0 => "agent.ticket_default_team_id"), "method") == $this->getAttribute($_team_, "id")) || (!$this->getAttribute($this->getAttribute($_app_, "user"), "getPref", array(0 => "agent.ticket_default_team_id"), "method"))))) {
                        echo "selected=\"selected\"";
                    }
                    echo ">";
                    if (isset($context["team"])) { $_team_ = $context["team"]; } else { $_team_ = null; }
                    echo twig_escape_filter($this->env, $this->getAttribute($_team_, "name"), "html", null, true);
                    echo "</option>
\t\t\t\t\t\t\t\t\t\t\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['team'], $context['_parent'], $context['loop']);
                $context = array_merge($_parent, array_intersect_key($context, $_parent));
                // line 319
                echo "\t\t\t\t\t\t\t\t\t\t</optgroup>
\t\t\t\t\t\t\t\t\t\t";
            }
            // line 321
            echo "
\t\t\t\t\t\t\t\t\t\t";
            // line 322
            if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_app_, "agent_teams"), "getTeamNames", array(), "method"));
            foreach ($context['_seq'] as $context["id"] => $context["name"]) {
                // line 323
                echo "\t\t\t\t\t\t\t\t\t\t\t";
                if (isset($context["id"])) { $_id_ = $context["id"]; } else { $_id_ = null; }
                if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
                if (!twig_in_filter($_id_, $this->getAttribute($this->getAttribute($this->getAttribute($_app_, "user"), "getAgent", array(), "method"), "getTeamIds", array(), "method"))) {
                    // line 324
                    echo "\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
                    if (isset($context["id"])) { $_id_ = $context["id"]; } else { $_id_ = null; }
                    echo twig_escape_filter($this->env, $_id_, "html", null, true);
                    echo "\">";
                    if (isset($context["name"])) { $_name_ = $context["name"]; } else { $_name_ = null; }
                    echo twig_escape_filter($this->env, $_name_, "html", null, true);
                    echo "</option>
\t\t\t\t\t\t\t\t\t\t\t";
                }
                // line 326
                echo "\t\t\t\t\t\t\t\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['id'], $context['name'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 327
            echo "\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t";
        }
        // line 329
        echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li id=\"";
        // line 331
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_cc_row\" class=\"cc-row is-hidden\" style=\"display: none;\">
\t\t\t\t\t\t\t<label style=\"padding-top: 6px;\">";
        // line 332
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.followers");
        echo ":</label>
\t\t\t\t\t\t\t<div style=\"margin-left: 65px;\">
\t\t\t\t\t\t\t\t<select name=\"add_followers[]\" id=\"";
        // line 334
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_followers_sel\" class=\"dpe_select dpe_select_noborder\" multiple=\"multiple\" data-style-type=\"icons\" data-select-width=\"auto\" data-select-icon-size=\"16\" data-placeholder=\"";
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.add_follower");
        echo "\">
\t\t\t\t\t\t\t\t\t";
        // line 335
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_app_, "agents"), "getAgents", array(), "method"));
        foreach ($context['_seq'] as $context["_key"] => $context["agent"]) {
            // line 336
            echo "\t\t\t\t\t\t\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 337
                echo "\t\t\t\t\t\t\t\t\t\t\t<option data-icon=\"";
                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 "\" 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["agent"])) { $_agent_ = $context["agent"]; } else { $_agent_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_agent_, "display_name"), "html", null, true);
                echo "</option>
\t\t\t\t\t\t\t\t\t\t";
            }
            // line 339
            echo "\t\t\t\t\t\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 340
        echo "\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li id=\"";
        // line 343
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_actions_row\" class=\"actions-row\" style=\"display: none;\">
\t\t\t\t\t\t\t<label><span>";
        // line 344
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.actions");
        echo "</span></label>
\t\t\t\t\t\t\t<ul></ul>
\t\t\t\t\t\t\t<br class=\"clear\"/>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t";
        // line 348
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if ($this->getAttribute($this->getAttribute($_app_, "getDataService", array(0 => "TicketMessageTemplate"), "method"), "getTitles", array(), "method")) {
            // line 349
            echo "\t\t\t\t\t\t<li class=\"with-select2\" id=\"";
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_message_template_holder_row\">
\t\t\t\t\t\t\t<label>";
            // line 350
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.template");
            echo ":</label>
\t\t\t\t\t\t\t<div id=\"";
            // line 351
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_message_template_holder\" style=\"visibility: hidden;\">
\t\t\t\t\t\t\t\t<div style=\"display: none\">
\t\t\t\t\t\t\t\t\t<select id=\"";
            // line 353
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_message_template_orig\">
\t\t\t\t\t\t\t\t\t\t<option value=\"0\">";
            // line 354
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.blank");
            echo "</option>
\t\t\t\t\t\t\t\t\t\t";
            // line 355
            if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_app_, "getDataService", array(0 => "TicketMessageTemplate"), "method"), "getAll", array(), "method"));
            foreach ($context['_seq'] as $context["_key"] => $context["tpl"]) {
                // line 356
                echo "\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
                if (isset($context["tpl"])) { $_tpl_ = $context["tpl"]; } else { $_tpl_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_tpl_, "id"), "html", null, true);
                echo "\" class=\"department_";
                if (isset($context["tpl"])) { $_tpl_ = $context["tpl"]; } else { $_tpl_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_tpl_, "department_id"), "html", null, true);
                echo "\">";
                if (isset($context["tpl"])) { $_tpl_ = $context["tpl"]; } else { $_tpl_ = null; }
                echo twig_escape_filter($this->env, (($this->getAttribute($_tpl_, "title", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($_tpl_, "title"), ("Untitled #" . $this->getAttribute($_tpl_, "id")))) : (("Untitled #" . $this->getAttribute($_tpl_, "id")))), "html", null, true);
                echo "</option>
\t\t\t\t\t\t\t\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tpl'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 358
            echo "\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<select id=\"";
            // line 360
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_message_template\" name=\"using_template\">
\t\t\t\t\t\t\t\t\t<option value=\"0\">";
            // line 361
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.blank");
            echo "</option>
\t\t\t\t\t\t\t\t\t";
            // line 362
            if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_app_, "getDataService", array(0 => "TicketMessageTemplate"), "method"), "getAll", array(), "method"));
            foreach ($context['_seq'] as $context["_key"] => $context["tpl"]) {
                // line 363
                echo "\t\t\t\t\t\t\t\t\t\t<option value=\"";
                if (isset($context["tpl"])) { $_tpl_ = $context["tpl"]; } else { $_tpl_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_tpl_, "id"), "html", null, true);
                echo "\" class=\"department_";
                if (isset($context["tpl"])) { $_tpl_ = $context["tpl"]; } else { $_tpl_ = null; }
                echo twig_escape_filter($this->env, $this->getAttribute($_tpl_, "department_id"), "html", null, true);
                echo "\">";
                if (isset($context["tpl"])) { $_tpl_ = $context["tpl"]; } else { $_tpl_ = null; }
                echo twig_escape_filter($this->env, (($this->getAttribute($_tpl_, "title", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($_tpl_, "title"), ("Untitled #" . $this->getAttribute($_tpl_, "id")))) : (("Untitled #" . $this->getAttribute($_tpl_, "id")))), "html", null, true);
                echo "</option>
\t\t\t\t\t\t\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tpl'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 365
            echo "\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t";
        }
        // line 369
        echo "\t\t\t\t\t\t<li class=\"subject-row\">
\t\t\t\t\t\t\t<label>";
        // line 370
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.subject");
        echo ":</label>
\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"newticket[subject]\" class=\"subject\" id=\"";
        // line 372
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_subject\" value=\"";
        if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; }
        if ($this->getAttribute($_ticket_, "id")) {
            if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "subject"), "html", null, true);
        }
        echo "\" />
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li id=\"";
        // line 375
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_attach_row\" class=\"attach-row is-hidden\" style=\"display: none\">
\t\t\t\t\t\t\t<label><span>";
        // line 376
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.attachments");
        echo "</span></label>
\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t<ul class=\"files\"></ul>
\t\t\t\t\t\t\t\t<br class=\"clear\"/>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</li>
\t\t\t\t\t</ul>
\t\t\t\t\t<div class=\"drop-file-zone\"><h1>";
        // line 383
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.drop_here_to_attach");
        echo "</h1></div>
\t\t\t\t</div>
\t\t\t\t<div class=\"input-wrap unreset\">
\t\t\t\t\t<textarea id=\"";
        // line 386
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_message\" name=\"newticket[message]\">";
        if (isset($context["message"])) { $_message_ = $context["message"]; } else { $_message_ = null; }
        echo twig_escape_filter($this->env, $this->getAttribute($_message_, "getMessageHtml", array(), "method"), "html", null, true);
        echo "</textarea>
\t\t\t\t\t<textarea id=\"";
        // line 387
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_signature_value\" class=\"signature-value\" style=\"display: none;\">";
        if (isset($context["agent_signature"])) { $_agent_signature_ = $context["agent_signature"]; } else { $_agent_signature_ = null; }
        echo twig_escape_filter($this->env, $_agent_signature_, "html", null, true);
        echo "</textarea>
\t\t\t\t\t<textarea id=\"";
        // line 388
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_signature_value_html\" class=\"signature-value-html\" style=\"display: none;\">";
        if (isset($context["agent_signature_html"])) { $_agent_signature_html_ = $context["agent_signature_html"]; } else { $_agent_signature_html_ = null; }
        echo twig_escape_filter($this->env, $_agent_signature_html_, "html", null, true);
        echo "</textarea>
\t\t\t\t\t<input type=\"hidden\" id=\"";
        // line 389
        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=\"newticket[is_html_reply]\" value=\"0\" />
\t\t\t\t\t<div class=\"drop-file-zone drop-file-zone-rte\"><h1>";
        // line 390
        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</section>
\t\t</article>
\t</section>
\t<footer id=\"";
        // line 395
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_message_footer\">
\t\t<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr>
\t\t\t<td valign=\"middle\" style=\"vertical-align: middle;\">
\t\t\t\t<div id=\"";
        // line 398
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_send_btn\">
\t\t\t\t\t<div class=\"dp-btn-group dp-dropup\" id=\"";
        // line 399
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_reply_btn_group\">
\t\t\t\t\t\t<a class=\"dp-btn dp-btn-primary submit-trigger\">
\t\t\t\t\t\t\t<i class=\"icon-share-alt\"></i>&nbsp;
\t\t\t\t\t\t\t";
        // line 402
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if (($this->getAttribute($_app_, "getSetting", array(0 => "core_tickets.new_status"), "method") == "awaiting_user")) {
            // line 403
            echo "\t\t\t\t\t\t\t\t<span id=\"";
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_reply_as_type\" data-type=\"awaiting_user\">";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.send_reply_as_x", array("status" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.status_awaiting_user")));
            echo "</span>
\t\t\t\t\t\t\t";
        } elseif (($this->getAttribute($_app_, "getSetting", array(0 => "core_tickets.new_status"), "method") == "awaiting_agent")) {
            // line 405
            echo "\t\t\t\t\t\t\t\t<span id=\"";
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_reply_as_type\" data-type=\"awaiting_agent\">";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.send_reply_as_x", array("status" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.status_awaiting_agent")));
            echo "</span>
\t\t\t\t\t\t\t";
        } elseif (($this->getAttribute($_app_, "getSetting", array(0 => "core_tickets.new_status"), "method") == "resolved")) {
            // line 407
            echo "\t\t\t\t\t\t\t\t<span id=\"";
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_reply_as_type\" data-type=\"resolved\">";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.send_reply_as_x", array("status" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.status_resolved")));
            echo "</span>
\t\t\t\t\t\t\t";
        } else {
            // line 409
            echo "\t\t\t\t\t\t\t\t<span id=\"";
            if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
            echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
            echo "_reply_as_type\" data-type=\"awaiting_user\">";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.send_reply_as_x", array("status" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.status_awaiting_user")));
            echo "</span>
\t\t\t\t\t\t\t";
        }
        // line 411
        echo "\t\t\t\t\t\t</a>
\t\t\t\t\t\t<a class=\"dp-btn dp-btn-primary dp-dropdown-toggle status-menu-trigger\"><span class=\"dp-caret dp-caret-up\"></span></a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div id=\"";
        // line 415
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_send_loading\" style=\"display: none;\">
\t\t\t\t\t<span class=\"flat-spinner\"></span>
\t\t\t\t</div>
\t\t\t</td><td valign=\"middle\" style=\"vertical-align: middle;\">
\t\t\t\t<div style=\"padding-top: 1px; line-height: 100%; margin-left: 10px; float:left;\">
\t\t\t\t\t<label class=\"hide-note\">
\t\t\t\t\t\t<input type=\"checkbox\" name=\"options[notify_user]\" ";
        // line 421
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if (isset($context["ticket"])) { $_ticket_ = $context["ticket"]; } else { $_ticket_ = null; }
        if (($this->getAttribute($_app_, "getSetting", array(0 => "core_tickets.new_default_send_user_notify"), "method") || $this->getAttribute($_ticket_, "id"))) {
            echo "checked=\"checked\"";
        }
        echo " />
\t\t\t\t\t\t<span class=\"opt-label-text\">
\t\t\t\t\t\t\t";
        // line 423
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.email_user");
        echo "
\t\t\t\t\t\t\t<span class=\"small-light-icon tipped\" data-tipped-options=\"maxWidth: 250\" title=\"";
        // line 424
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.email_user_newticket_info");
        echo "\"></span>
\t\t\t\t\t\t</span>
\t\t\t\t\t</label>
\t\t\t\t</div>
\t\t\t\t<div style=\"padding-top: 1px; line-height: 100%; margin-left: 10px; float:left;\">
\t\t\t\t\t<label>
\t\t\t\t\t\t<input type=\"checkbox\" id=\"";
        // line 430
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_opt_open_tab\" name=\"options[open_tab]\" checked=\"checked\" />
\t\t\t\t\t\t<span class=\"opt-label-text\">
\t\t\t\t\t\t\t";
        // line 432
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.open_tab");
        echo "
\t\t\t\t\t\t\t<span class=\"small-light-icon tipped\" data-tipped-options=\"maxWidth: 250\" title=\"";
        // line 433
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.open_tab_info");
        echo "\"></span>
\t\t\t\t\t\t</span>
\t\t\t\t\t</label>
\t\t\t\t</div>
\t\t\t</td>
\t\t</tr></table>
\t</footer>
</div>

<div class=\"dp-menu replybox\" id=\"";
        // line 442
        if (isset($context["baseId"])) { $_baseId_ = $context["baseId"]; } else { $_baseId_ = null; }
        echo twig_escape_filter($this->env, $_baseId_, "html", null, true);
        echo "_status_menu\" style=\"min-width: 225px;\">
\t<section>
\t\t<div class=\"dp-menu-area small\">
\t\t\t<input type=\"text\" class=\"label-input macro-filter\" placeholder=\"";
        // line 445
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.apply_a_macro");
        echo "\" />
\t\t\t<ul class=\"macro-list\">
\t\t\t\t";
        // line 447
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute($_app_, "user"), "getHelper", array(0 => "Agent"), "method"), "getMacros", array(), "method"));
        foreach ($context['_seq'] as $context["_key"] => $context["macro"]) {
            // line 448
            echo "\t\t\t\t\t<li class=\"res-ticketmacro-";
            if (isset($context["macro"])) { $_macro_ = $context["macro"]; } else { $_macro_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_macro_, "id"), "html", null, true);
            echo "\" data-type=\"macro:";
            if (isset($context["macro"])) { $_macro_ = $context["macro"]; } else { $_macro_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_macro_, "id"), "html", null, true);
            echo "\" data-label=\"";
            if (isset($context["macro"])) { $_macro_ = $context["macro"]; } else { $_macro_ = null; }
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.send_newticket_and_apply_x", array("name" => $this->getAttribute($_macro_, "title")));
            echo "\" data-get-macro-url=\"";
            if (isset($context["macro"])) { $_macro_ = $context["macro"]; } else { $_macro_ = null; }
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("agent_ticket_ajax_get_macro", array("ticket_id" => "0", "macro_id" => $this->getAttribute($_macro_, "id"), "macro_reply_context" => 1)), "html", null, true);
            echo "\">
\t\t\t\t\t\t<div class=\"on-icon\"><i class=\"icon-ok\"></i></div>
\t\t\t\t\t\t<span class=\"macro-title\">";
            // line 450
            if (isset($context["macro"])) { $_macro_ = $context["macro"]; } else { $_macro_ = null; }
            echo twig_escape_filter($this->env, $this->getAttribute($_macro_, "title"), "html", null, true);
            echo "</span>
\t\t\t\t\t</li>
\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['macro'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 453
        echo "\t\t\t</ul>
\t\t</div>
\t</section>
\t<section>
\t\t<div class=\"dp-menu-area dp-menu-area-primary\">
\t\t\t<label>";
        // line 458
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.newticket_and_set_status");
        echo "</label>
\t\t\t<ul>
\t\t\t\t<li data-type=\"awaiting_user\" data-label=\"";
        // line 460
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.send_reply_as_x", array("status" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.status_awaiting_user")));
        echo "\">
\t\t\t\t\t<div class=\"on-icon\"><i class=\"icon-ok\"></i></div>
\t\t\t\t\t";
        // line 462
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.kbd_awaiting_user");
        echo "
\t\t\t\t</li>
\t\t\t\t<li data-type=\"awaiting_agent\" data-label=\"";
        // line 464
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.send_reply_as_x", array("status" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.status_awaiting_agent")));
        echo "\">
\t\t\t\t\t<div class=\"on-icon\"><i class=\"icon-ok\"></i></div>
\t\t\t\t\t";
        // line 466
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.kbd_awaiting_agent");
        echo "
\t\t\t\t</li>
\t\t\t\t<li data-type=\"resolved\" data-label=\"";
        // line 468
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.send_reply_as_x", array("status" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.status_resolved")));
        echo "\">
\t\t\t\t\t<div class=\"on-icon\"><i class=\"icon-ok\"></i></div>
\t\t\t\t\t";
        // line 470
        echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.tickets.kbd_resolved");
        echo "
\t\t\t\t</li>
\t\t\t</ul>
\t\t</div>
\t</section>
</div>

";
        // line 477
        $this->env->loadTemplate("AgentBundle:Common:attach-row-tmpl.html.twig")->display(array_merge($context, array("formname" => "newticket[attach][]")));
        // line 478
        echo "
</form>

";
        // line 481
        if (isset($context["agentui"])) { $_agentui_ = $context["agentui"]; } else { $_agentui_ = null; }
        echo $_agentui_->getscroll_containers_end();
    }

    public function getTemplateName()
    {
        return "AgentBundle:Ticket:newticket.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  1293 => 478,  1271 => 466,  1256 => 460,  1170 => 424,  1166 => 423,  1054 => 387,  943 => 355,  869 => 335,  1399 => 568,  1387 => 560,  1358 => 555,  1334 => 553,  1316 => 529,  1298 => 481,  1249 => 495,  1120 => 453,  1117 => 452,  1093 => 440,  1073 => 432,  1394 => 446,  1385 => 442,  1382 => 441,  1369 => 433,  1363 => 432,  1360 => 431,  1350 => 429,  1305 => 523,  1281 => 470,  1277 => 403,  1265 => 398,  1255 => 396,  1247 => 393,  1202 => 375,  1162 => 365,  1136 => 461,  1132 => 409,  1078 => 335,  1025 => 375,  750 => 228,  1183 => 452,  1105 => 403,  1097 => 341,  1064 => 330,  1048 => 421,  953 => 290,  907 => 277,  864 => 374,  1326 => 406,  1306 => 401,  1300 => 409,  1219 => 413,  1199 => 374,  1186 => 380,  1141 => 411,  1138 => 361,  1135 => 439,  1098 => 339,  1067 => 322,  1017 => 313,  968 => 360,  875 => 263,  846 => 276,  788 => 315,  805 => 263,  801 => 262,  842 => 263,  832 => 333,  1038 => 319,  932 => 297,  831 => 244,  837 => 239,  790 => 278,  733 => 210,  666 => 263,  919 => 314,  873 => 349,  824 => 67,  762 => 247,  713 => 242,  697 => 281,  2739 => 1153,  2735 => 1152,  2732 => 1151,  2725 => 1146,  2712 => 1144,  2707 => 1143,  2692 => 1131,  2688 => 1130,  2683 => 1127,  2680 => 1126,  2677 => 1125,  2671 => 1121,  2658 => 1119,  2653 => 1118,  2645 => 1113,  2641 => 1112,  2636 => 1109,  2632 => 1108,  2629 => 1107,  2626 => 1106,  2606 => 1089,  2602 => 1088,  2598 => 1087,  2594 => 1086,  2590 => 1085,  2586 => 1084,  2572 => 1073,  2568 => 1072,  2564 => 1071,  2560 => 1070,  2556 => 1069,  2552 => 1068,  2537 => 1056,  2533 => 1055,  2529 => 1054,  2525 => 1053,  2521 => 1052,  2503 => 1040,  2499 => 1039,  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 => 982,  2384 => 981,  2380 => 980,  2376 => 979,  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 => 931,  2265 => 930,  2260 => 927,  2256 => 926,  2253 => 925,  2230 => 901,  2220 => 899,  2216 => 898,  2211 => 896,  2208 => 895,  2198 => 893,  2194 => 892,  2189 => 890,  2184 => 889,  2177 => 885,  2173 => 884,  2164 => 877,  2151 => 875,  2146 => 874,  2143 => 873,  2141 => 864,  2134 => 860,  2130 => 859,  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 => 822,  2034 => 821,  2022 => 814,  2009 => 812,  1999 => 809,  1993 => 805,  1988 => 803,  1984 => 802,  1980 => 801,  1976 => 800,  1971 => 799,  1968 => 798,  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 => 747,  1800 => 743,  1793 => 741,  1772 => 729,  1761 => 721,  1757 => 720,  1751 => 717,  1740 => 709,  1719 => 697,  1715 => 696,  1686 => 673,  1676 => 669,  1665 => 661,  1661 => 660,  1645 => 651,  1638 => 649,  1630 => 645,  1625 => 642,  1622 => 641,  1598 => 637,  1577 => 634,  1558 => 629,  1549 => 627,  1546 => 626,  1535 => 618,  1531 => 617,  1514 => 606,  1510 => 605,  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 => 533,  1373 => 531,  1348 => 521,  1343 => 409,  1335 => 515,  1321 => 510,  1318 => 549,  1299 => 503,  1294 => 407,  1282 => 496,  1269 => 506,  1260 => 397,  1240 => 417,  1221 => 484,  1216 => 378,  1210 => 474,  1206 => 473,  1193 => 467,  1189 => 433,  1155 => 468,  1077 => 433,  1049 => 419,  1022 => 312,  1010 => 405,  1006 => 404,  988 => 398,  969 => 392,  965 => 399,  929 => 296,  896 => 358,  866 => 278,  862 => 334,  854 => 254,  844 => 327,  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 => 643,  1554 => 613,  1547 => 608,  1521 => 602,  1508 => 600,  1499 => 598,  1491 => 593,  1482 => 587,  1472 => 582,  1468 => 581,  1465 => 579,  1457 => 573,  1445 => 566,  1422 => 556,  1416 => 553,  1410 => 548,  1397 => 546,  1392 => 545,  1386 => 541,  1377 => 532,  1370 => 530,  1357 => 528,  1352 => 554,  1341 => 428,  1314 => 510,  1311 => 402,  1275 => 493,  1248 => 484,  1238 => 488,  1225 => 476,  1220 => 475,  1209 => 466,  1182 => 475,  1159 => 450,  1154 => 368,  1130 => 438,  1125 => 437,  1101 => 426,  1087 => 420,  1074 => 428,  1056 => 326,  1046 => 386,  1043 => 417,  1030 => 376,  1027 => 412,  999 => 384,  893 => 357,  881 => 267,  877 => 283,  847 => 343,  825 => 350,  766 => 251,  724 => 237,  1083 => 395,  1039 => 315,  995 => 399,  984 => 350,  977 => 362,  941 => 324,  905 => 363,  857 => 332,  705 => 233,  1365 => 556,  1359 => 545,  1349 => 539,  1336 => 427,  1331 => 424,  1323 => 420,  1319 => 530,  1312 => 505,  1284 => 512,  1272 => 401,  1268 => 509,  1261 => 462,  1251 => 458,  1245 => 483,  1231 => 496,  1207 => 376,  1197 => 491,  1180 => 484,  1173 => 371,  1169 => 472,  1163 => 470,  1157 => 421,  1147 => 415,  1143 => 440,  1109 => 440,  1059 => 423,  1051 => 325,  1044 => 424,  1021 => 391,  1015 => 308,  1009 => 357,  987 => 404,  973 => 361,  911 => 298,  855 => 72,  827 => 68,  821 => 66,  691 => 233,  576 => 171,  453 => 168,  1234 => 450,  1224 => 414,  1214 => 412,  1195 => 478,  1190 => 591,  1187 => 372,  1185 => 432,  1177 => 569,  1148 => 464,  1128 => 352,  1122 => 350,  1108 => 376,  1037 => 478,  991 => 351,  921 => 293,  878 => 355,  836 => 262,  730 => 251,  648 => 253,  933 => 84,  914 => 133,  909 => 323,  833 => 284,  783 => 306,  755 => 303,  737 => 241,  685 => 225,  539 => 200,  635 => 249,  582 => 225,  577 => 238,  609 => 202,  593 => 199,  497 => 228,  20 => 1,  774 => 257,  747 => 298,  736 => 265,  524 => 223,  469 => 156,  437 => 149,  546 => 201,  532 => 236,  485 => 158,  479 => 157,  537 => 160,  457 => 199,  947 => 361,  936 => 390,  924 => 350,  917 => 369,  906 => 81,  872 => 317,  860 => 314,  851 => 265,  796 => 330,  767 => 328,  578 => 292,  519 => 167,  852 => 331,  814 => 319,  739 => 296,  722 => 226,  565 => 183,  559 => 68,  471 => 125,  1853 => 842,  1849 => 753,  1839 => 751,  1810 => 820,  1803 => 819,  1799 => 818,  1782 => 733,  1778 => 732,  1770 => 807,  1749 => 795,  1738 => 793,  1728 => 789,  1721 => 788,  1717 => 787,  1709 => 693,  1705 => 781,  1688 => 675,  1681 => 769,  1677 => 768,  1667 => 671,  1656 => 762,  1648 => 655,  1644 => 756,  1636 => 750,  1624 => 744,  1617 => 743,  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 => 681,  1438 => 676,  1431 => 675,  1420 => 670,  1413 => 669,  1404 => 663,  1400 => 662,  1383 => 540,  1379 => 557,  1356 => 632,  1351 => 631,  1338 => 621,  1332 => 407,  1315 => 613,  1302 => 522,  1289 => 406,  1276 => 468,  1263 => 395,  1244 => 453,  1241 => 595,  1236 => 594,  1218 => 448,  1215 => 577,  1191 => 373,  1181 => 561,  1171 => 445,  1158 => 567,  1114 => 405,  1104 => 465,  1062 => 388,  1042 => 316,  1024 => 395,  1014 => 406,  1000 => 411,  990 => 406,  980 => 393,  970 => 402,  918 => 349,  888 => 80,  834 => 274,  817 => 243,  765 => 297,  746 => 52,  502 => 187,  287 => 101,  1144 => 463,  1139 => 356,  1133 => 358,  1131 => 399,  1127 => 357,  1124 => 455,  1113 => 433,  1110 => 347,  1103 => 444,  1092 => 336,  1086 => 520,  1063 => 387,  1060 => 425,  1055 => 423,  1035 => 314,  1019 => 330,  1003 => 401,  996 => 406,  981 => 257,  959 => 387,  952 => 464,  930 => 148,  908 => 344,  900 => 366,  880 => 276,  867 => 258,  859 => 294,  848 => 329,  839 => 275,  828 => 324,  809 => 264,  803 => 372,  797 => 260,  779 => 314,  769 => 252,  740 => 78,  729 => 306,  703 => 238,  693 => 297,  688 => 232,  671 => 285,  667 => 232,  630 => 247,  626 => 222,  567 => 194,  557 => 179,  512 => 141,  380 => 2,  734 => 307,  701 => 244,  680 => 205,  674 => 270,  659 => 217,  653 => 248,  613 => 217,  602 => 261,  589 => 223,  569 => 222,  542 => 242,  529 => 171,  487 => 148,  475 => 155,  454 => 145,  368 => 137,  717 => 362,  684 => 281,  656 => 215,  647 => 274,  637 => 218,  618 => 241,  597 => 260,  522 => 156,  501 => 163,  340 => 100,  201 => 70,  383 => 105,  374 => 115,  292 => 106,  631 => 208,  616 => 283,  605 => 193,  596 => 188,  561 => 181,  504 => 164,  498 => 162,  491 => 226,  388 => 98,  330 => 123,  445 => 163,  439 => 178,  433 => 183,  413 => 174,  316 => 113,  296 => 115,  370 => 147,  395 => 121,  294 => 106,  273 => 100,  220 => 67,  492 => 129,  468 => 124,  456 => 138,  377 => 247,  319 => 79,  262 => 92,  250 => 78,  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 => 2376,  2794 => 2375,  2649 => 2234,  2625 => 2213,  2517 => 1051,  2498 => 2092,  2482 => 2079,  2472 => 2072,  2464 => 2067,  2450 => 2056,  2446 => 2055,  2436 => 2049,  2428 => 2045,  2378 => 1998,  2303 => 1926,  2293 => 1919,  2252 => 1881,  2224 => 1856,  2176 => 1811,  2114 => 1753,  2107 => 1750,  2102 => 1749,  2086 => 1737,  2079 => 1734,  1967 => 1637,  1826 => 1502,  1819 => 1498,  1732 => 1414,  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 => 999,  1243 => 994,  1223 => 978,  1212 => 494,  1167 => 366,  1161 => 933,  1145 => 923,  1140 => 462,  1106 => 900,  1100 => 897,  983 => 298,  975 => 404,  956 => 292,  939 => 354,  902 => 274,  894 => 364,  879 => 337,  757 => 309,  735 => 295,  727 => 293,  702 => 216,  678 => 149,  670 => 204,  600 => 233,  528 => 187,  476 => 213,  447 => 150,  243 => 85,  780 => 261,  758 => 229,  742 => 261,  700 => 232,  655 => 202,  652 => 214,  638 => 269,  620 => 216,  587 => 210,  579 => 190,  535 => 237,  523 => 169,  516 => 220,  494 => 227,  480 => 198,  441 => 138,  428 => 181,  351 => 123,  347 => 122,  402 => 164,  268 => 71,  430 => 118,  411 => 124,  322 => 80,  289 => 101,  284 => 74,  255 => 66,  1150 => 447,  1134 => 538,  1129 => 435,  1126 => 443,  1121 => 434,  1116 => 348,  1089 => 430,  1084 => 337,  1081 => 429,  1075 => 390,  1072 => 333,  1069 => 332,  1065 => 440,  1061 => 352,  1053 => 349,  1050 => 373,  1047 => 428,  1033 => 413,  1029 => 335,  1026 => 418,  1004 => 369,  997 => 454,  989 => 300,  985 => 395,  978 => 313,  966 => 375,  963 => 292,  960 => 466,  951 => 301,  948 => 356,  944 => 298,  931 => 387,  925 => 352,  916 => 290,  913 => 324,  904 => 322,  899 => 306,  891 => 382,  885 => 336,  882 => 301,  870 => 280,  865 => 296,  829 => 336,  823 => 323,  820 => 348,  811 => 319,  800 => 340,  793 => 266,  786 => 329,  773 => 231,  764 => 312,  761 => 311,  743 => 297,  725 => 250,  720 => 305,  686 => 294,  673 => 184,  662 => 282,  649 => 324,  636 => 198,  632 => 245,  612 => 203,  584 => 240,  562 => 164,  472 => 145,  442 => 40,  438 => 191,  386 => 152,  373 => 109,  304 => 108,  270 => 56,  265 => 99,  477 => 172,  455 => 152,  422 => 179,  407 => 120,  399 => 163,  375 => 148,  364 => 144,  358 => 99,  349 => 137,  338 => 135,  327 => 122,  298 => 91,  249 => 95,  194 => 81,  142 => 42,  344 => 121,  295 => 80,  290 => 106,  266 => 68,  357 => 114,  334 => 135,  300 => 118,  286 => 105,  282 => 103,  279 => 70,  269 => 98,  254 => 48,  128 => 40,  237 => 72,  165 => 58,  122 => 24,  798 => 319,  770 => 313,  759 => 307,  748 => 243,  731 => 294,  721 => 251,  718 => 235,  708 => 218,  696 => 236,  617 => 202,  607 => 213,  590 => 259,  563 => 212,  553 => 177,  550 => 231,  540 => 161,  533 => 182,  507 => 213,  500 => 171,  493 => 160,  489 => 178,  464 => 170,  458 => 139,  452 => 197,  449 => 196,  434 => 133,  424 => 157,  415 => 183,  382 => 132,  372 => 131,  361 => 100,  356 => 124,  339 => 120,  302 => 74,  285 => 104,  258 => 67,  123 => 34,  108 => 28,  418 => 142,  404 => 113,  389 => 106,  354 => 138,  325 => 115,  321 => 89,  276 => 100,  252 => 122,  206 => 84,  110 => 24,  240 => 84,  224 => 58,  217 => 40,  186 => 62,  170 => 28,  100 => 38,  67 => 19,  14 => 1,  1096 => 425,  1090 => 398,  1088 => 435,  1085 => 456,  1066 => 409,  1034 => 282,  1031 => 281,  1018 => 416,  1013 => 405,  1007 => 370,  1002 => 403,  993 => 301,  986 => 264,  982 => 363,  976 => 399,  971 => 376,  964 => 358,  949 => 289,  946 => 288,  940 => 384,  937 => 374,  928 => 351,  926 => 318,  915 => 348,  912 => 82,  903 => 343,  898 => 340,  892 => 339,  889 => 337,  887 => 302,  884 => 79,  876 => 380,  874 => 336,  871 => 378,  863 => 345,  861 => 274,  850 => 291,  840 => 406,  815 => 321,  812 => 297,  808 => 323,  804 => 314,  799 => 312,  791 => 259,  787 => 316,  785 => 262,  771 => 284,  754 => 222,  751 => 303,  728 => 239,  723 => 252,  715 => 250,  711 => 234,  709 => 246,  706 => 302,  698 => 298,  692 => 227,  689 => 229,  681 => 230,  677 => 288,  675 => 278,  663 => 237,  661 => 263,  650 => 213,  644 => 224,  641 => 220,  633 => 197,  629 => 266,  622 => 265,  586 => 175,  575 => 189,  571 => 187,  566 => 251,  554 => 232,  551 => 190,  541 => 176,  536 => 179,  531 => 159,  511 => 208,  509 => 165,  506 => 188,  488 => 200,  483 => 149,  465 => 191,  463 => 153,  460 => 152,  450 => 182,  427 => 155,  419 => 178,  371 => 76,  362 => 144,  353 => 98,  337 => 102,  333 => 124,  309 => 84,  303 => 81,  299 => 108,  291 => 103,  272 => 99,  261 => 96,  256 => 97,  239 => 94,  235 => 94,  228 => 79,  218 => 87,  213 => 74,  200 => 52,  198 => 71,  159 => 46,  149 => 57,  146 => 34,  131 => 51,  116 => 32,  79 => 16,  74 => 45,  71 => 18,  64 => 13,  858 => 255,  843 => 359,  838 => 326,  819 => 269,  816 => 319,  807 => 240,  794 => 259,  781 => 327,  778 => 311,  775 => 82,  753 => 54,  749 => 53,  744 => 79,  726 => 254,  716 => 303,  712 => 286,  707 => 283,  682 => 279,  669 => 268,  664 => 231,  651 => 275,  646 => 181,  642 => 255,  625 => 209,  614 => 280,  608 => 194,  604 => 201,  601 => 166,  598 => 199,  592 => 212,  585 => 222,  572 => 201,  568 => 176,  564 => 235,  556 => 219,  548 => 152,  544 => 229,  527 => 170,  525 => 195,  515 => 138,  513 => 154,  505 => 229,  486 => 223,  481 => 215,  473 => 212,  467 => 210,  461 => 184,  443 => 194,  435 => 177,  432 => 147,  429 => 158,  410 => 143,  397 => 136,  394 => 109,  379 => 106,  341 => 135,  335 => 118,  318 => 113,  315 => 170,  312 => 115,  306 => 113,  280 => 95,  267 => 92,  253 => 96,  234 => 89,  229 => 91,  223 => 55,  219 => 54,  202 => 82,  192 => 64,  51 => 10,  2159 => 821,  2155 => 820,  2152 => 819,  2149 => 818,  2145 => 817,  2142 => 816,  2139 => 815,  2136 => 814,  2132 => 813,  2129 => 812,  2126 => 811,  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 => 771,  1994 => 770,  1987 => 766,  1983 => 765,  1979 => 764,  1972 => 761,  1969 => 760,  1966 => 759,  1961 => 756,  1959 => 755,  1952 => 751,  1948 => 750,  1944 => 749,  1937 => 746,  1933 => 1606,  1930 => 744,  1925 => 741,  1923 => 779,  1916 => 736,  1912 => 735,  1908 => 734,  1901 => 731,  1897 => 730,  1894 => 729,  1889 => 769,  1887 => 725,  1880 => 721,  1876 => 720,  1872 => 719,  1865 => 716,  1861 => 715,  1858 => 714,  1855 => 713,  1850 => 710,  1841 => 708,  1835 => 836,  1829 => 706,  1827 => 831,  1820 => 701,  1816 => 700,  1809 => 697,  1804 => 744,  1801 => 695,  1798 => 694,  1795 => 742,  1789 => 814,  1776 => 687,  1771 => 686,  1768 => 685,  1766 => 806,  1759 => 672,  1755 => 671,  1750 => 668,  1745 => 667,  1742 => 794,  1739 => 665,  1736 => 708,  1730 => 705,  1720 => 688,  1716 => 657,  1711 => 655,  1708 => 654,  1698 => 652,  1694 => 651,  1689 => 649,  1682 => 672,  1678 => 644,  1671 => 641,  1666 => 640,  1663 => 639,  1660 => 763,  1657 => 659,  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 => 633,  1567 => 603,  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 => 541,  1418 => 538,  1415 => 537,  1412 => 536,  1406 => 532,  1393 => 564,  1388 => 537,  1380 => 539,  1376 => 436,  1371 => 645,  1367 => 527,  1364 => 518,  1361 => 523,  1355 => 543,  1342 => 624,  1337 => 510,  1328 => 552,  1324 => 550,  1317 => 403,  1313 => 499,  1310 => 526,  1304 => 504,  1291 => 477,  1286 => 405,  1279 => 486,  1274 => 508,  1270 => 483,  1266 => 464,  1262 => 490,  1257 => 500,  1254 => 482,  1250 => 394,  1246 => 420,  1239 => 389,  1235 => 498,  1232 => 472,  1226 => 383,  1213 => 447,  1208 => 445,  1201 => 442,  1196 => 464,  1192 => 384,  1188 => 456,  1184 => 379,  1179 => 430,  1176 => 461,  1172 => 367,  1168 => 451,  1164 => 450,  1160 => 469,  1153 => 566,  1149 => 359,  1146 => 64,  1137 => 57,  1123 => 407,  1119 => 352,  1115 => 424,  1111 => 377,  1107 => 346,  1102 => 402,  1099 => 438,  1095 => 399,  1091 => 418,  1082 => 329,  1079 => 502,  1076 => 411,  1070 => 389,  1057 => 350,  1052 => 406,  1045 => 382,  1040 => 383,  1036 => 283,  1032 => 360,  1028 => 417,  1023 => 409,  1020 => 311,  1016 => 266,  1012 => 372,  1005 => 273,  1001 => 304,  998 => 365,  992 => 821,  979 => 400,  974 => 256,  967 => 391,  962 => 294,  958 => 383,  954 => 334,  950 => 441,  945 => 376,  942 => 460,  938 => 375,  934 => 353,  927 => 147,  923 => 386,  920 => 369,  910 => 365,  901 => 340,  897 => 273,  890 => 286,  886 => 270,  883 => 353,  868 => 407,  856 => 293,  853 => 341,  849 => 308,  845 => 339,  841 => 249,  835 => 335,  830 => 333,  826 => 282,  822 => 281,  818 => 322,  813 => 242,  810 => 344,  806 => 270,  802 => 338,  795 => 241,  792 => 317,  789 => 238,  784 => 236,  782 => 315,  777 => 275,  772 => 254,  768 => 228,  763 => 343,  760 => 305,  756 => 255,  752 => 299,  745 => 302,  741 => 301,  738 => 254,  732 => 216,  719 => 288,  714 => 300,  710 => 302,  704 => 301,  699 => 279,  695 => 228,  683 => 271,  679 => 248,  668 => 277,  665 => 283,  658 => 26,  645 => 253,  640 => 273,  634 => 206,  628 => 214,  623 => 217,  619 => 78,  615 => 264,  611 => 282,  603 => 231,  599 => 229,  595 => 213,  580 => 256,  573 => 255,  560 => 249,  549 => 245,  543 => 175,  526 => 170,  521 => 222,  518 => 194,  510 => 154,  503 => 133,  499 => 209,  496 => 202,  484 => 128,  474 => 171,  470 => 211,  451 => 135,  446 => 195,  431 => 118,  425 => 180,  416 => 168,  412 => 117,  408 => 167,  403 => 123,  400 => 122,  396 => 162,  392 => 143,  385 => 97,  381 => 150,  367 => 112,  363 => 102,  359 => 125,  355 => 132,  350 => 143,  346 => 137,  343 => 127,  328 => 116,  324 => 118,  313 => 112,  307 => 111,  301 => 119,  288 => 105,  283 => 88,  271 => 69,  257 => 79,  251 => 92,  238 => 93,  233 => 92,  195 => 60,  191 => 82,  187 => 63,  183 => 54,  130 => 38,  88 => 24,  76 => 29,  115 => 58,  95 => 47,  694 => 230,  690 => 211,  687 => 210,  676 => 223,  672 => 221,  660 => 203,  657 => 233,  654 => 275,  643 => 209,  639 => 209,  627 => 244,  624 => 205,  621 => 220,  610 => 236,  606 => 234,  594 => 180,  591 => 206,  588 => 271,  583 => 192,  581 => 206,  574 => 180,  570 => 169,  558 => 197,  555 => 248,  552 => 171,  547 => 188,  545 => 243,  538 => 174,  534 => 189,  530 => 213,  520 => 232,  517 => 210,  514 => 230,  508 => 207,  495 => 150,  490 => 159,  482 => 174,  478 => 175,  466 => 149,  462 => 207,  459 => 156,  448 => 143,  444 => 149,  440 => 130,  436 => 176,  426 => 172,  423 => 142,  420 => 141,  409 => 140,  405 => 218,  401 => 138,  391 => 159,  387 => 133,  384 => 141,  378 => 131,  365 => 72,  360 => 125,  348 => 97,  336 => 94,  332 => 129,  329 => 119,  323 => 116,  310 => 110,  305 => 111,  277 => 102,  274 => 94,  263 => 105,  259 => 66,  247 => 84,  244 => 76,  241 => 62,  222 => 76,  210 => 85,  207 => 49,  204 => 63,  184 => 71,  181 => 77,  167 => 48,  157 => 49,  96 => 25,  421 => 143,  417 => 150,  414 => 145,  406 => 139,  398 => 159,  393 => 99,  390 => 134,  376 => 78,  369 => 148,  366 => 127,  352 => 135,  345 => 132,  342 => 122,  331 => 112,  326 => 131,  320 => 114,  317 => 114,  314 => 86,  311 => 123,  308 => 111,  297 => 105,  293 => 104,  281 => 101,  278 => 58,  275 => 103,  264 => 92,  260 => 98,  248 => 99,  245 => 63,  242 => 83,  231 => 70,  227 => 76,  215 => 86,  212 => 77,  209 => 73,  197 => 53,  177 => 60,  171 => 49,  161 => 46,  132 => 61,  121 => 45,  105 => 38,  99 => 51,  81 => 43,  77 => 16,  180 => 58,  176 => 44,  156 => 52,  143 => 62,  139 => 45,  118 => 38,  189 => 80,  185 => 79,  173 => 76,  166 => 31,  152 => 40,  174 => 59,  164 => 74,  154 => 41,  150 => 68,  137 => 44,  133 => 43,  127 => 44,  107 => 66,  102 => 23,  83 => 23,  78 => 22,  53 => 13,  23 => 3,  42 => 6,  138 => 36,  134 => 37,  109 => 42,  103 => 26,  97 => 22,  94 => 21,  84 => 17,  75 => 24,  69 => 24,  66 => 17,  54 => 12,  44 => 11,  230 => 80,  226 => 43,  203 => 75,  193 => 67,  188 => 75,  182 => 46,  178 => 71,  168 => 75,  163 => 47,  160 => 72,  155 => 45,  148 => 63,  145 => 52,  140 => 46,  136 => 63,  125 => 34,  120 => 33,  113 => 45,  101 => 37,  92 => 19,  89 => 18,  85 => 21,  73 => 21,  62 => 21,  59 => 15,  56 => 15,  41 => 9,  126 => 33,  119 => 59,  111 => 52,  106 => 41,  98 => 63,  93 => 25,  86 => 54,  70 => 16,  60 => 22,  28 => 6,  36 => 9,  114 => 31,  104 => 29,  91 => 34,  80 => 16,  63 => 16,  58 => 12,  40 => 10,  34 => 7,  45 => 13,  61 => 14,  55 => 18,  48 => 12,  39 => 9,  35 => 8,  31 => 7,  26 => 4,  21 => 2,  46 => 10,  29 => 6,  57 => 16,  50 => 12,  47 => 11,  38 => 10,  33 => 3,  49 => 11,  32 => 8,  246 => 94,  236 => 83,  232 => 91,  225 => 68,  221 => 78,  216 => 53,  214 => 74,  211 => 64,  208 => 40,  205 => 72,  199 => 48,  196 => 77,  190 => 71,  179 => 54,  175 => 50,  172 => 70,  169 => 60,  162 => 48,  158 => 47,  153 => 69,  151 => 44,  147 => 43,  144 => 46,  141 => 65,  135 => 39,  129 => 35,  124 => 35,  117 => 32,  112 => 31,  90 => 31,  87 => 29,  82 => 31,  72 => 18,  68 => 12,  65 => 30,  52 => 13,  43 => 9,  37 => 8,  30 => 7,  27 => 3,  25 => 4,  24 => 4,  22 => 1,  19 => 1,);
    }
}
