<?php

/* DeskPRO:Common:people-search-criteria.html.twig */
class __TwigTemplate_397e6a5af99ec47e9eb61021da342e0d 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
        if (isset($context["id"])) { $_id_ = $context["id"]; } else { $_id_ = null; }
        if (isset($context["classname"])) { $_classname_ = $context["classname"]; } else { $_classname_ = null; }
        if (($_id_ || $_classname_)) {
            // line 2
            echo "\t";
            // line 3
            echo "\t<div ";
            if (isset($context["id"])) { $_id_ = $context["id"]; } else { $_id_ = null; }
            if ($_id_) {
                echo "id=\"";
                if (isset($context["id"])) { $_id_ = $context["id"]; } else { $_id_ = null; }
                echo twig_escape_filter($this->env, $_id_, "html", null, true);
                echo "\"";
            }
            echo " class=\"";
            if (isset($context["classname"])) { $_classname_ = $context["classname"]; } else { $_classname_ = null; }
            echo twig_escape_filter($this->env, $_classname_, "html", null, true);
            echo "\" style=\"display:none\">
\t<div class=\"row\">
\t\t<div class=\"term\">
\t\t\t<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" class=\"term-table\"><tbody><tr>
\t\t\t\t<td style=\"vertical-align: middle; text-align: center;\" width=\"11\"><div class=\"builder-remove\">-</div></td>
\t\t\t\t<td class=\"builder-controls\" style=\"vertical-align: middle;\">
\t\t\t\t\t<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\"><tbody><tr>
\t\t\t\t\t\t<td style=\"vertical-align: middle;\" width=\"10\" nowrap=\"nowrap\"><div class=\"builder-type-choice\"></div></td>
\t\t\t\t\t\t<td style=\"vertical-align: middle;\" width=\"10\" nowrap=\"nowrap\"><div class=\"builder-op\"></div></td>
\t\t\t\t\t\t<td style=\"vertical-align: middle;\"><div class=\"builder-options\"></div></td>
\t\t\t\t\t</tr></tbody></table>
\t\t\t\t</td>
\t\t\t</tr></tbody></table>
\t\t</div>
\t</div>
\t<div class=\"builder-type-choice\" title=\"";
            // line 18
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.choose_criteria");
            echo "\" data-rule-type=\"\">
\t</div>
";
        }
        // line 21
        echo "
";
        // line 22
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (!twig_in_filter("person_name", $_no_show_fields_)) {
            // line 23
            echo "<div class=\"builder-type\" title=\"";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.name");
            echo "\" ";
            if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
            if ($_with_rule_group_) {
                echo "data-rule-group=\"Person\"";
            }
            echo " data-rule-type=\"person_name\" data-term-type=\"GenericInputTerm\" data-term-triggers=\"name\">
\t<div class=\"builder-op\">
\t\t<select name=\"op\">
\t\t\t<option value=\"is\">";
            // line 26
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is");
            echo "</option>
\t\t\t<option value=\"contains\">";
            // line 27
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.contains");
            echo "</option>
\t\t\t<option value=\"notcontains\">";
            // line 28
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.does_not_contain");
            echo "</option>
\t\t</select>
\t</div>
\t<div class=\"builder-options\">
\t\t<input type=\"text\" name=\"name\" value=\"\" />
\t</div>
</div>
";
        }
        // line 36
        echo "
";
        // line 37
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if ((!twig_in_filter("person_field", $_no_show_fields_) && $this->getAttribute($this->getAttribute($_app_, "getPersonFieldManager"), "getFields", array(), "method"))) {
            // line 38
            echo "\t";
            $context["op_lang"] = array("is" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is"), "not" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_not"), "contains" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.contains"), "notcontains" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.does_not_contain"), "gt" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_greater_than"), "lt" => $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_less_than"));
            // line 39
            echo "\t";
            if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_app_, "getPersonFieldManager", array(), "method"), "getDisplayArray", array(), "method"));
            foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
                // line 40
                echo "\t";
                if (isset($context["field"])) { $_field_ = $context["field"]; } else { $_field_ = null; }
                if (isset($context["search_context"])) { $_search_context_ = $context["search_context"]; } else { $_search_context_ = null; }
                if ($this->getAttribute($this->getAttribute($_field_, "field_def"), "getFilterCapabilities", array(0 => $_search_context_), "method")) {
                    // line 41
                    echo "\t<div class=\"builder-type\" title=\"";
                    if (isset($context["field"])) { $_field_ = $context["field"]; } else { $_field_ = null; }
                    echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.field_name", array("field" => $this->getAttribute($this->getAttribute($_field_, "field_def"), "title")));
                    echo "\" ";
                    if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
                    if ($_with_rule_group_) {
                        echo "data-rule-group=\"Person Fields\"";
                    }
                    echo " data-rule-type=\"person_field[";
                    if (isset($context["field"])) { $_field_ = $context["field"]; } else { $_field_ = null; }
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_field_, "field_def"), "id"), "html", null, true);
                    echo "]\">
\t\t<div class=\"builder-op\">
\t\t\t<select name=\"op\">
\t\t\t\t";
                    // line 44
                    if (isset($context["search_context"])) { $_search_context_ = $context["search_context"]; } else { $_search_context_ = null; }
                    if (($_search_context_ == "filter")) {
                        // line 45
                        echo "\t\t\t\t\t";
                        if (isset($context["field"])) { $_field_ = $context["field"]; } else { $_field_ = null; }
                        if (isset($context["search_context"])) { $_search_context_ = $context["search_context"]; } else { $_search_context_ = null; }
                        $context['_parent'] = (array) $context;
                        $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_field_, "field_def"), "getFilterCapabilities", array(0 => $_search_context_), "method"));
                        foreach ($context['_seq'] as $context["_key"] => $context["op"]) {
                            // line 46
                            echo "\t\t\t\t\t\t<option value=\"";
                            if (isset($context["op"])) { $_op_ = $context["op"]; } else { $_op_ = null; }
                            echo twig_escape_filter($this->env, $_op_, "html", null, true);
                            echo "\">";
                            if (isset($context["op_lang"])) { $_op_lang_ = $context["op_lang"]; } else { $_op_lang_ = null; }
                            if (isset($context["op"])) { $_op_ = $context["op"]; } else { $_op_ = null; }
                            echo twig_escape_filter($this->env, $this->getAttribute($_op_lang_, $_op_, array(), "array"), "html", null, true);
                            echo "</option>
\t\t\t\t\t";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['op'], $context['_parent'], $context['loop']);
                        $context = array_merge($_parent, array_intersect_key($context, $_parent));
                        // line 48
                        echo "\t\t\t\t";
                    } else {
                        // line 49
                        echo "\t\t\t\t\t";
                        if (isset($context["field"])) { $_field_ = $context["field"]; } else { $_field_ = null; }
                        if (isset($context["search_context"])) { $_search_context_ = $context["search_context"]; } else { $_search_context_ = null; }
                        $context['_parent'] = (array) $context;
                        $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_field_, "field_def"), "getSearchCapabilities", array(0 => $_search_context_), "method"));
                        foreach ($context['_seq'] as $context["_key"] => $context["op"]) {
                            // line 50
                            echo "\t\t\t\t\t\t<option value=\"";
                            if (isset($context["op"])) { $_op_ = $context["op"]; } else { $_op_ = null; }
                            echo twig_escape_filter($this->env, $_op_, "html", null, true);
                            echo "\">";
                            if (isset($context["op_lang"])) { $_op_lang_ = $context["op_lang"]; } else { $_op_lang_ = null; }
                            if (isset($context["op"])) { $_op_ = $context["op"]; } else { $_op_ = null; }
                            echo twig_escape_filter($this->env, $this->getAttribute($_op_lang_, $_op_, array(), "array"), "html", null, true);
                            echo "</option>
\t\t\t\t\t";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['op'], $context['_parent'], $context['loop']);
                        $context = array_merge($_parent, array_intersect_key($context, $_parent));
                        // line 52
                        echo "\t\t\t\t";
                    }
                    // line 53
                    echo "\t\t\t</select>
\t\t</div>
\t\t<div class=\"builder-options\">
\t\t\t";
                    // line 56
                    if (isset($context["field"])) { $_field_ = $context["field"]; } else { $_field_ = null; }
                    echo $this->env->getExtension('form')->renderWidget($this->getAttribute($_field_, "formView"));
                    echo "
\t\t</div>
\t</div>
\t";
                }
                // line 60
                echo "\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
        }
        // line 62
        echo "
";
        // line 63
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (!twig_in_filter("person_email", $_no_show_fields_)) {
            // line 64
            echo "<div class=\"builder-type\" title=\"";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.email_address");
            echo "\" ";
            if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
            if ($_with_rule_group_) {
                echo "data-rule-group=\"Person\"";
            }
            echo " data-rule-type=\"person_email\" data-term-type=\"GenericInputTerm\" data-term-triggers=\"email,emailaddress\">
\t<div class=\"builder-op\">
\t\t<select name=\"op\">
\t\t\t<option value=\"contains\">";
            // line 67
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.contains");
            echo "</option>
\t\t\t<option value=\"notcontains\">";
            // line 68
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.does_not_contain");
            echo "</option>
\t\t\t<option value=\"is\">";
            // line 69
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_exactly");
            echo "</option>
\t\t</select>
\t</div>
\t<div class=\"builder-options\">
\t\t<input type=\"text\" name=\"email\" value=\"\" />
\t</div>
</div>
";
        }
        // line 77
        echo "
";
        // line 78
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (!twig_in_filter("person_email_domain", $_no_show_fields_)) {
            // line 79
            echo "<div class=\"builder-type\" title=\"";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.email_domain");
            echo "\" ";
            if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
            if ($_with_rule_group_) {
                echo "data-rule-group=\"Person\"";
            }
            echo " data-rule-type=\"person_email_domain\" data-term-type=\"GenericInputTerm\" data-term-triggers=\"emaildomain\">
\t<div class=\"builder-op\">
\t\t<select name=\"op\">
\t\t\t<option value=\"is\">";
            // line 82
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is");
            echo "</option>
\t\t\t<option value=\"not\">";
            // line 83
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_not");
            echo "</option>
\t\t</select>
\t</div>
\t<div class=\"builder-options\">
\t\t<input type=\"text\" name=\"email_domain\" value=\"\" />
\t</div>
</div>
";
        }
        // line 91
        echo "
";
        // line 92
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (isset($context["term_options"])) { $_term_options_ = $context["term_options"]; } else { $_term_options_ = null; }
        if ((!twig_in_filter("person_organization", $_no_show_fields_) && $this->getAttribute($_term_options_, "organizations"))) {
            // line 93
            echo "<div class=\"builder-type\" title=\"";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.organization");
            echo "\" ";
            if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
            if ($_with_rule_group_) {
                echo "data-rule-group=\"Person\"";
            }
            echo " data-term-type=\"GenericMenuTerm\" data-term-triggers=\"org,organization,company\" data-rule-type=\"person_organization\">
\t<div class=\"builder-op\">
\t\t<select name=\"op\">
\t\t\t<option value=\"is\">";
            // line 96
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is");
            echo "</option>
\t\t\t<option value=\"not\">";
            // line 97
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_not");
            echo "</option>
\t\t</select>
\t</div>
\t<div class=\"builder-options\">
\t\t<select name=\"organization\">
\t\t\t";
            // line 102
            if (isset($context["term_options"])) { $_term_options_ = $context["term_options"]; } else { $_term_options_ = null; }
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($_term_options_, "organizations"));
            foreach ($context['_seq'] as $context["id"] => $context["title"]) {
                // line 103
                echo "\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["title"])) { $_title_ = $context["title"]; } else { $_title_ = null; }
                echo twig_escape_filter($this->env, $_title_, "html", null, true);
                echo "</option>
\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['id'], $context['title'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 105
            echo "\t\t</select>
\t</div>
</div>
";
        }
        // line 109
        echo "
";
        // line 110
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (isset($context["term_options"])) { $_term_options_ = $context["term_options"]; } else { $_term_options_ = null; }
        if ((!twig_in_filter("person_usergroup", $_no_show_fields_) && $this->getAttribute($_term_options_, "usergroups"))) {
            // line 111
            echo "<div class=\"builder-type\" title=\"";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.usergroup");
            echo "\" ";
            if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
            if ($_with_rule_group_) {
                echo "data-rule-group=\"Person\"";
            }
            echo " data-term-type=\"GenericMenuTerm\" data-rule-type=\"person_usergroup\" data-term-triggers=\"usergroup,group\">
\t<div class=\"builder-op\">
\t\t<select name=\"op\">
\t\t\t<option value=\"is\">";
            // line 114
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is");
            echo "</option>
\t\t\t<option value=\"not\">";
            // line 115
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_not");
            echo "</option>
\t\t</select>
\t</div>
\t<div class=\"builder-options\">
\t\t<select name=\"usergroup\">
\t\t\t";
            // line 120
            if (isset($context["term_options"])) { $_term_options_ = $context["term_options"]; } else { $_term_options_ = null; }
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($_term_options_, "usergroups"));
            foreach ($context['_seq'] as $context["id"] => $context["title"]) {
                // line 121
                echo "\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["title"])) { $_title_ = $context["title"]; } else { $_title_ = null; }
                echo twig_escape_filter($this->env, $_title_, "html", null, true);
                echo "</option>
\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['id'], $context['title'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 123
            echo "\t\t</select>
\t</div>
</div>
";
        }
        // line 127
        echo "
";
        // line 128
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (isset($context["app"])) { $_app_ = $context["app"]; } else { $_app_ = null; }
        if ((!twig_in_filter("person_username", $_no_show_fields_) && $this->getAttribute($this->getAttribute($_app_, "getUsersourceManager", array(), "method"), "getUsersources", array(), "method"))) {
            // line 129
            echo "<div class=\"builder-type\" title=\"Username\" ";
            if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
            if ($_with_rule_group_) {
                echo "data-rule-group=\"Person\"";
            }
            echo " data-rule-type=\"person_username\" data-term-type=\"GenericInputTerm\" data-term-triggers=\"username\">
\t<div class=\"builder-op\">
\t\t<select name=\"op\">
\t\t\t<option value=\"contains\">";
            // line 132
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.contains");
            echo "</option>
\t\t\t<option value=\"notcontains\">";
            // line 133
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.does_not_contain");
            echo "</option>
\t\t\t<option value=\"is\">";
            // line 134
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_exactly");
            echo "</option>
\t\t</select>
\t</div>
\t<div class=\"builder-options\">
\t\t<input type=\"text\" name=\"username\" value=\"\" />
\t</div>
</div>
";
        }
        // line 142
        echo "
";
        // line 143
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (!twig_in_filter("person_id", $_no_show_fields_)) {
            // line 144
            echo "\t<div class=\"builder-type\" title=\"Person ID\" ";
            if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
            if ($_with_rule_group_) {
                echo "data-rule-group=\"Person\"";
            }
            echo " data-rule-type=\"person_id\" data-term-type=\"GenericInputTerm\" data-term-triggers=\"id\">
\t\t<div class=\"builder-op\">
\t\t\t<select name=\"op\">
\t\t\t\t<option value=\"is\">";
            // line 147
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is");
            echo "</option>
\t\t\t\t<option value=\"not\">";
            // line 148
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_not");
            echo "</option>
\t\t\t\t<option value=\"gte\">";
            // line 149
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.greater_than");
            echo "</option>
\t\t\t\t<option value=\"lte\">";
            // line 150
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.less_than");
            echo "</option>
\t\t\t</select>
\t\t</div>
\t\t<div class=\"builder-options\">
\t\t\t<input type=\"text\" name=\"person_id\" value=\"\" />
\t\t</div>
\t</div>
";
        }
        // line 158
        echo "
";
        // line 159
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (isset($context["term_options"])) { $_term_options_ = $context["term_options"]; } else { $_term_options_ = null; }
        if ((!twig_in_filter("person_language", $_no_show_fields_) && $this->getAttribute($_term_options_, "languages"))) {
            // line 160
            echo "<div class=\"builder-type\" title=\"";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.language");
            echo "\" ";
            if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
            if ($_with_rule_group_) {
                echo "data-rule-group=\"Person\"";
            }
            echo " data-term-type=\"GenericMenuTerm\" data-rule-type=\"person_language\" data-term-triggers=\"lang,language\">
\t<div class=\"builder-op\">
\t\t<select name=\"op\">
\t\t\t<option value=\"is\">";
            // line 163
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is");
            echo "</option>
\t\t\t<option value=\"not\">";
            // line 164
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_not");
            echo "</option>
\t\t</select>
\t</div>
\t<div class=\"builder-options\">
\t\t<select name=\"language\">
\t\t\t";
            // line 169
            if (isset($context["term_options"])) { $_term_options_ = $context["term_options"]; } else { $_term_options_ = null; }
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($_term_options_, "languages"));
            foreach ($context['_seq'] as $context["id"] => $context["title"]) {
                // line 170
                echo "\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["title"])) { $_title_ = $context["title"]; } else { $_title_ = null; }
                echo twig_escape_filter($this->env, $_title_, "html", null, true);
                echo "</option>
\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['id'], $context['title'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 172
            echo "\t\t</select>
\t</div>
</div>
";
        }
        // line 176
        echo "
";
        // line 177
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (!twig_in_filter("person_date_created", $_no_show_fields_)) {
            // line 178
            echo "<div class=\"builder-type\" title=\"Date of profile creation\" ";
            if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
            if ($_with_rule_group_) {
                echo "data-rule-group=\"Person\"";
            }
            echo " data-rule-type=\"person_date_created\" data-rule-handler=\"DeskPRO.Agent.RuleBuilder.DateTerm\" data-term-triggers=\"created\">
\t<div class=\"builder-op\">
\t\t<select name=\"op\" class=\"builder-op\">
\t\t\t<option value=\"lte\">";
            // line 181
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.before");
            echo "</option>
\t\t\t<option value=\"gte\">";
            // line 182
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.after");
            echo "</option>
\t\t\t<option value=\"between\">";
            // line 183
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.between");
            echo "</option>
\t\t</select>
\t</div>
\t<div class=\"builder-options\">
\t\t";
            // line 187
            $this->env->loadTemplate("DeskPRO:Common:rulebuilder-date-options.html.twig")->display($context);
            // line 188
            echo "\t</div>
</div>
";
        }
        // line 191
        echo "
";
        // line 192
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (!twig_in_filter("person_label", $_no_show_fields_)) {
            // line 193
            echo "<div class=\"builder-type\" title=\"";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.labels");
            echo "\" ";
            if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
            if ($_with_rule_group_) {
                echo "data-rule-group=\"Person\"";
            }
            echo " data-rule-type=\"person_label\" data-rule-handler=\"DeskPRO.Agent.RuleBuilder.LabelsTerm\" data-term-triggers=\"label,labelled,labels\">
\t<div class=\"builder-op\">
\t\t<select name=\"op\" class=\"op\">
\t\t\t<option value=\"is\">";
            // line 196
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is");
            echo "</option>
\t\t\t<option value=\"not\">";
            // line 197
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_not");
            echo "</option>
\t\t</select>
\t</div>
\t<div class=\"builder-options\">
\t\t";
            // line 201
            $this->env->loadTemplate("DeskPRO:Common:rulebuilder-labels-options.html.twig")->display($context);
            // line 202
            echo "\t</div>
</div>
";
        }
        // line 205
        echo "
";
        // line 206
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (!twig_in_filter("person_contact_phone", $_no_show_fields_)) {
            // line 207
            echo "<div class=\"builder-type\" title=\"";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.contact_phone");
            echo "\" ";
            if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
            if ($_with_rule_group_) {
                echo "data-rule-group=\"Person\"";
            }
            echo " data-rule-type=\"person_contact_phone\" data-term-type=\"GenericInputTerm\" data-term-triggers=\"phone\">
\t<div class=\"builder-op\">
\t\t<select name=\"op\">
\t\t\t<option value=\"contains\">";
            // line 210
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is");
            echo "</option>
\t\t\t<option value=\"notcontains\">";
            // line 211
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_not");
            echo "</option>
\t\t</select>
\t</div>
\t<div class=\"builder-options\">
\t\t<input type=\"text\" name=\"phone\" value=\"\" />
\t</div>
</div>
";
        }
        // line 219
        echo "
";
        // line 220
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (!twig_in_filter("person_contact_address", $_no_show_fields_)) {
            // line 221
            echo "<div class=\"builder-type\" title=\"";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.contact_address");
            echo "\" ";
            if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
            if ($_with_rule_group_) {
                echo "data-rule-group=\"Person\"";
            }
            echo " data-rule-type=\"person_contact_address\" data-term-type=\"GenericInputTerm\" data-term-triggers=\"address\">
\t<div class=\"builder-op\">
\t\t<select name=\"op\">
\t\t\t<option value=\"contains\">";
            // line 224
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is");
            echo "</option>
\t\t\t<option value=\"notcontains\">";
            // line 225
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_not");
            echo "</option>
\t\t</select>
\t</div>
\t<div class=\"builder-options\">
\t\t<input type=\"text\" name=\"address\" value=\"\" />
\t</div>
</div>
";
        }
        // line 233
        echo "
";
        // line 234
        if (isset($context["no_show_fields"])) { $_no_show_fields_ = $context["no_show_fields"]; } else { $_no_show_fields_ = null; }
        if (!twig_in_filter("person_contact_im", $_no_show_fields_)) {
            // line 235
            echo "<div class=\"builder-type\" title=\"";
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.contact_instant_messaging");
            echo "\" ";
            if (isset($context["with_rule_group"])) { $_with_rule_group_ = $context["with_rule_group"]; } else { $_with_rule_group_ = null; }
            if ($_with_rule_group_) {
                echo "data-rule-group=\"Person\"";
            }
            echo " data-rule-type=\"person_contact_im\" data-term-type=\"GenericInputTerm\" data-term-triggers=\"messenger\">
\t<div class=\"builder-op\">
\t\t<select name=\"op\">
\t\t\t<option value=\"contains\">";
            // line 238
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is");
            echo "</option>
\t\t\t<option value=\"notcontains\">";
            // line 239
            echo $this->env->getExtension('deskpro_templating')->getPhrase($context, "agent.general.is_not");
            echo "</option>
\t\t</select>
\t</div>
\t<div class=\"builder-options\">
\t\t<input type=\"text\" name=\"im\" value=\"\" />
\t</div>
</div>
";
        }
        // line 247
        echo "
";
        // line 248
        if (isset($context["id"])) { $_id_ = $context["id"]; } else { $_id_ = null; }
        if (isset($context["classname"])) { $_classname_ = $context["classname"]; } else { $_classname_ = null; }
        if (($_id_ || $_classname_)) {
            // line 249
            echo "\t</div>
";
        }
    }

    public function getTemplateName()
    {
        return "DeskPRO:Common:people-search-criteria.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  694 => 249,  690 => 248,  687 => 247,  676 => 239,  672 => 238,  660 => 235,  657 => 234,  654 => 233,  643 => 225,  639 => 224,  627 => 221,  624 => 220,  621 => 219,  610 => 211,  606 => 210,  594 => 207,  591 => 206,  588 => 205,  583 => 202,  581 => 201,  574 => 197,  570 => 196,  558 => 193,  555 => 192,  552 => 191,  547 => 188,  545 => 187,  538 => 183,  534 => 182,  530 => 181,  520 => 178,  517 => 177,  514 => 176,  508 => 172,  495 => 170,  490 => 169,  482 => 164,  478 => 163,  466 => 160,  462 => 159,  459 => 158,  448 => 150,  444 => 149,  440 => 148,  436 => 147,  426 => 144,  423 => 143,  420 => 142,  409 => 134,  405 => 133,  401 => 132,  391 => 129,  387 => 128,  384 => 127,  378 => 123,  365 => 121,  360 => 120,  348 => 114,  336 => 111,  332 => 110,  329 => 109,  323 => 105,  310 => 103,  305 => 102,  277 => 92,  274 => 91,  263 => 83,  259 => 82,  247 => 79,  244 => 78,  241 => 77,  222 => 67,  210 => 64,  207 => 63,  204 => 62,  184 => 53,  181 => 52,  167 => 50,  157 => 48,  96 => 36,  421 => 153,  417 => 152,  414 => 151,  406 => 148,  398 => 144,  393 => 141,  390 => 140,  376 => 138,  369 => 137,  366 => 136,  352 => 115,  345 => 133,  342 => 132,  331 => 129,  326 => 128,  320 => 127,  317 => 126,  314 => 125,  311 => 124,  308 => 123,  297 => 97,  293 => 96,  281 => 93,  278 => 110,  275 => 109,  264 => 101,  260 => 100,  248 => 97,  245 => 96,  242 => 95,  231 => 87,  227 => 86,  215 => 83,  212 => 82,  209 => 81,  197 => 60,  177 => 67,  171 => 65,  161 => 60,  132 => 50,  121 => 42,  105 => 38,  99 => 37,  81 => 27,  77 => 26,  180 => 76,  176 => 75,  156 => 64,  143 => 46,  139 => 56,  118 => 44,  189 => 56,  185 => 69,  173 => 63,  166 => 68,  152 => 62,  174 => 66,  164 => 63,  154 => 56,  150 => 55,  137 => 48,  133 => 44,  127 => 47,  107 => 36,  102 => 37,  83 => 31,  78 => 30,  53 => 18,  23 => 2,  42 => 6,  138 => 52,  134 => 39,  109 => 34,  103 => 38,  97 => 29,  94 => 33,  84 => 25,  75 => 20,  69 => 17,  66 => 24,  54 => 11,  44 => 21,  230 => 69,  226 => 68,  203 => 78,  193 => 71,  188 => 67,  182 => 63,  178 => 71,  168 => 64,  163 => 61,  160 => 49,  155 => 55,  148 => 56,  145 => 50,  140 => 46,  136 => 45,  125 => 45,  120 => 39,  113 => 39,  101 => 33,  92 => 32,  89 => 27,  85 => 28,  73 => 19,  62 => 22,  59 => 21,  56 => 13,  41 => 8,  126 => 24,  119 => 36,  111 => 20,  106 => 39,  98 => 32,  93 => 17,  86 => 14,  70 => 25,  60 => 8,  28 => 8,  36 => 5,  114 => 21,  104 => 19,  91 => 16,  80 => 15,  63 => 15,  58 => 12,  40 => 8,  34 => 14,  45 => 7,  61 => 12,  55 => 6,  48 => 7,  39 => 16,  35 => 4,  31 => 6,  26 => 4,  21 => 1,  46 => 6,  29 => 3,  57 => 9,  50 => 10,  47 => 6,  38 => 5,  33 => 4,  49 => 10,  32 => 4,  246 => 90,  236 => 84,  232 => 82,  225 => 78,  221 => 77,  216 => 79,  214 => 73,  211 => 78,  208 => 77,  205 => 70,  199 => 77,  196 => 71,  190 => 61,  179 => 66,  175 => 64,  172 => 54,  169 => 53,  162 => 67,  158 => 57,  153 => 45,  151 => 44,  147 => 42,  144 => 41,  141 => 49,  135 => 51,  129 => 52,  124 => 37,  117 => 41,  112 => 40,  90 => 16,  87 => 26,  82 => 24,  72 => 22,  68 => 18,  65 => 23,  52 => 11,  43 => 13,  37 => 5,  30 => 3,  27 => 3,  25 => 3,  24 => 2,  22 => 2,  19 => 1,);
    }
}
