<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* OroFilterBundle:Filter:layout.js.twig */
class __TwigTemplate_9f75d0d4d3f6950f09324ab6fc9e9a786565f20a3d72b9c0e34b323d859fbdac extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
            'oro_type_text_filter_js' => [$this, 'block_oro_type_text_filter_js'],
            'oro_type_number_filter_js' => [$this, 'block_oro_type_number_filter_js'],
            'oro_type_date_range_filter_js' => [$this, 'block_oro_type_date_range_filter_js'],
            'oro_type_datetime_range_filter_js' => [$this, 'block_oro_type_datetime_range_filter_js'],
            'oro_type_select_filter_js' => [$this, 'block_oro_type_select_filter_js'],
            'oro_type_selectrow_filter_js' => [$this, 'block_oro_type_selectrow_filter_js'],
            'oro_type_multiselect_filter_js' => [$this, 'block_oro_type_multiselect_filter_js'],
            'oro_type_choice_filter_js' => [$this, 'block_oro_type_choice_filter_js'],
            'oro_type_entity_filter_js' => [$this, 'block_oro_type_entity_filter_js'],
            'oro_type_boolean_filter_js' => [$this, 'block_oro_type_boolean_filter_js'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        $this->displayBlock('oro_type_text_filter_js', $context, $blocks);
        // line 9
        echo "
";
        // line 10
        $this->displayBlock('oro_type_number_filter_js', $context, $blocks);
        // line 19
        echo "
";
        // line 20
        $this->displayBlock('oro_type_date_range_filter_js', $context, $blocks);
        // line 29
        echo "
";
        // line 30
        $this->displayBlock('oro_type_datetime_range_filter_js', $context, $blocks);
        // line 39
        echo "
";
        // line 40
        $this->displayBlock('oro_type_select_filter_js', $context, $blocks);
        // line 49
        echo "
";
        // line 50
        $this->displayBlock('oro_type_selectrow_filter_js', $context, $blocks);
        // line 58
        echo "
";
        // line 59
        $this->displayBlock('oro_type_multiselect_filter_js', $context, $blocks);
        // line 67
        echo "
";
        // line 68
        $this->displayBlock('oro_type_choice_filter_js', $context, $blocks);
        // line 75
        echo "
";
        // line 76
        $this->displayBlock('oro_type_entity_filter_js', $context, $blocks);
        // line 79
        echo "
";
        // line 80
        $this->displayBlock('oro_type_boolean_filter_js', $context, $blocks);
    }

    // line 1
    public function block_oro_type_text_filter_js($context, array $blocks = [])
    {
        // line 2
        echo "    new (ChoiceFilter.extend({
        'name':    ";
        // line 3
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "name", []));
        echo ",
        'label':   ";
        // line 4
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "label", []));
        echo ",
        'enabled': ";
        // line 5
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "show_filter", []));
        echo ",
        'choices': ";
        // line 6
        echo twig_jsonencode_filter($this->env->getExtension('Oro\Bundle\FilterBundle\Twig\RenderLayoutExtension')->getChoices($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "children", []), "type", []), "vars", []), "choices", [])));
        echo "
    }))
";
    }

    // line 10
    public function block_oro_type_number_filter_js($context, array $blocks = [])
    {
        // line 11
        echo "    new (NumberFilter.extend({
        'name':    ";
        // line 12
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "name", []));
        echo ",
        'label':   ";
        // line 13
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "label", []));
        echo ",
        'enabled': ";
        // line 14
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "show_filter", []));
        echo ",
        'choices': ";
        // line 15
        echo twig_jsonencode_filter($this->env->getExtension('Oro\Bundle\FilterBundle\Twig\RenderLayoutExtension')->getChoices($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "children", []), "type", []), "vars", []), "choices", [])));
        echo ",
        'formatterOptions': ";
        // line 16
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "formatter_options", []));
        echo "
    }))
";
    }

    // line 20
    public function block_oro_type_date_range_filter_js($context, array $blocks = [])
    {
        // line 21
        echo "    new (DateFilter.extend({
        'name':    ";
        // line 22
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "name", []));
        echo ",
        'label':   ";
        // line 23
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "label", []));
        echo ",
        'enabled': ";
        // line 24
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "show_filter", []));
        echo ",
        'choices': ";
        // line 25
        echo twig_jsonencode_filter($this->env->getExtension('Oro\Bundle\FilterBundle\Twig\RenderLayoutExtension')->getChoices($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "children", []), "type", []), "vars", []), "choices", [])));
        echo ",
        'typeValues': ";
        // line 26
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "type_values", []));
        echo "
    }))
";
    }

    // line 30
    public function block_oro_type_datetime_range_filter_js($context, array $blocks = [])
    {
        // line 31
        echo "    new (DatetimeFilter.extend({
        'name':    ";
        // line 32
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "name", []));
        echo ",
        'label':   ";
        // line 33
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "label", []));
        echo ",
        'enabled': ";
        // line 34
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "show_filter", []));
        echo ",
        'choices': ";
        // line 35
        echo twig_jsonencode_filter($this->env->getExtension('Oro\Bundle\FilterBundle\Twig\RenderLayoutExtension')->getChoices($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "children", []), "type", []), "vars", []), "choices", [])));
        echo ",
        'typeValues': ";
        // line 36
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "type_values", []));
        echo "
    }))
";
    }

    // line 40
    public function block_oro_type_select_filter_js($context, array $blocks = [])
    {
        // line 41
        echo "    new (SelectFilter.extend({
        'name':             ";
        // line 42
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "name", []));
        echo ",
        'label':            ";
        // line 43
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "label", []));
        echo ",
        'enabled':          ";
        // line 44
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "show_filter", []));
        echo ",
        'populateDefault':  ";
        // line 45
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "populate_default", []));
        echo ",
        'choices':          ";
        // line 46
        echo twig_jsonencode_filter($this->env->getExtension('Oro\Bundle\FilterBundle\Twig\RenderLayoutExtension')->getChoices($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "children", []), "value", []), "vars", []), "choices", [])));
        echo "
    }))
";
    }

    // line 50
    public function block_oro_type_selectrow_filter_js($context, array $blocks = [])
    {
        // line 51
        echo "    new (SelectRowFilter.extend({
        'name':    ";
        // line 52
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "name", []));
        echo ",
        'label':   ";
        // line 53
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "label", []));
        echo ",
        'enabled': ";
        // line 54
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "show_filter", []));
        echo ",
        'choices': ";
        // line 55
        echo twig_jsonencode_filter($this->env->getExtension('Oro\Bundle\FilterBundle\Twig\RenderLayoutExtension')->getChoices($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "children", []), "value", []), "vars", []), "choices", [])));
        echo "
    }))
";
    }

    // line 59
    public function block_oro_type_multiselect_filter_js($context, array $blocks = [])
    {
        // line 60
        echo "    new (MultiSelectFilter.extend({
        'name':    ";
        // line 61
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "name", []));
        echo ",
        'label':   ";
        // line 62
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "label", []));
        echo ",
        'enabled': ";
        // line 63
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "show_filter", []));
        echo ",
        'choices': ";
        // line 64
        echo twig_jsonencode_filter($this->env->getExtension('Oro\Bundle\FilterBundle\Twig\RenderLayoutExtension')->getChoices($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "children", []), "value", []), "vars", []), "choices", [])));
        echo "
    }))
";
    }

    // line 68
    public function block_oro_type_choice_filter_js($context, array $blocks = [])
    {
        // line 69
        echo "    ";
        if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "children", []), "value", []), "vars", []), "multiple", [])) {
            // line 70
            echo "        ";
            $this->displayBlock("oro_type_multiselect_filter_js", $context, $blocks);
            echo "
    ";
        } else {
            // line 72
            echo "        ";
            $this->displayBlock("oro_type_select_filter_js", $context, $blocks);
            echo "
    ";
        }
    }

    // line 76
    public function block_oro_type_entity_filter_js($context, array $blocks = [])
    {
        // line 77
        echo "    ";
        $this->displayBlock("oro_type_choice_filter_js", $context, $blocks);
        echo "
";
    }

    // line 80
    public function block_oro_type_boolean_filter_js($context, array $blocks = [])
    {
        // line 81
        echo "    new (SelectFilter.extend({
        'name':    ";
        // line 82
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "name", []));
        echo ",
        'label':   ";
        // line 83
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "label", []));
        echo ",
        'enabled': ";
        // line 84
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "vars", []), "show_filter", []));
        echo ",
        'choices': ";
        // line 85
        echo twig_jsonencode_filter($this->env->getExtension('Oro\Bundle\FilterBundle\Twig\RenderLayoutExtension')->getChoices($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["formView"] ?? null), "children", []), "value", []), "vars", []), "choices", [])));
        echo ",
        'contextSearch': false
    }))
";
    }

    public function getTemplateName()
    {
        return "OroFilterBundle:Filter:layout.js.twig";
    }

    public function getDebugInfo()
    {
        return array (  328 => 85,  324 => 84,  320 => 83,  316 => 82,  313 => 81,  310 => 80,  303 => 77,  300 => 76,  292 => 72,  286 => 70,  283 => 69,  280 => 68,  273 => 64,  269 => 63,  265 => 62,  261 => 61,  258 => 60,  255 => 59,  248 => 55,  244 => 54,  240 => 53,  236 => 52,  233 => 51,  230 => 50,  223 => 46,  219 => 45,  215 => 44,  211 => 43,  207 => 42,  204 => 41,  201 => 40,  194 => 36,  190 => 35,  186 => 34,  182 => 33,  178 => 32,  175 => 31,  172 => 30,  165 => 26,  161 => 25,  157 => 24,  153 => 23,  149 => 22,  146 => 21,  143 => 20,  136 => 16,  132 => 15,  128 => 14,  124 => 13,  120 => 12,  117 => 11,  114 => 10,  107 => 6,  103 => 5,  99 => 4,  95 => 3,  92 => 2,  89 => 1,  85 => 80,  82 => 79,  80 => 76,  77 => 75,  75 => 68,  72 => 67,  70 => 59,  67 => 58,  65 => 50,  62 => 49,  60 => 40,  57 => 39,  55 => 30,  52 => 29,  50 => 20,  47 => 19,  45 => 10,  42 => 9,  40 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("", "OroFilterBundle:Filter:layout.js.twig", "/var/www/html/vendor/akeneo/pim-community-dev/src/Oro/Bundle/FilterBundle/Resources/views/Filter/layout.js.twig");
    }
}
