<?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;

/* PimUIBundle:Form:pim-fields.html.twig */
class __TwigTemplate_cba55e0cb63cc9a69a02f4891c948df6c8ed494a28def3ec283b6df91e1d6c07 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->blocks = [
            'widget_container_attributes' => [$this, 'block_widget_container_attributes'],
            'date_widget' => [$this, 'block_date_widget'],
            'choice_widget_expanded' => [$this, 'block_choice_widget_expanded'],
            'choice_widget_options' => [$this, 'block_choice_widget_options'],
            'choice_widget_option_attributes' => [$this, 'block_choice_widget_option_attributes'],
            'form_start' => [$this, 'block_form_start'],
            'form_end' => [$this, 'block_form_end'],
            'form_row_field' => [$this, 'block_form_row_field'],
            'form_row' => [$this, 'block_form_row'],
            'form_label' => [$this, 'block_form_label'],
            'form_info' => [$this, 'block_form_info'],
            'form_errors' => [$this, 'block_form_errors'],
            'pim_translatable_field_row' => [$this, 'block_pim_translatable_field_row'],
            'pim_enrich_media_row' => [$this, 'block_pim_enrich_media_row'],
            'widget_attributes' => [$this, 'block_widget_attributes'],
            'switch_widget' => [$this, 'block_switch_widget'],
            'pim_ajax_entity_row' => [$this, 'block_pim_ajax_entity_row'],
            'pim_ajax_reference_data_row' => [$this, 'block_pim_ajax_reference_data_row'],
            'pim_date_widget' => [$this, 'block_pim_date_widget'],
            'pim_number_widget' => [$this, 'block_pim_number_widget'],
            'oro_acl_privilege_widget' => [$this, 'block_oro_acl_privilege_widget'],
            'oro_acl_permission_widget' => [$this, 'block_oro_acl_permission_widget'],
            'oro_acl_permission_collection_widget' => [$this, 'block_oro_acl_permission_collection_widget'],
            'pim_acl_access_level_selector_widget' => [$this, 'block_pim_acl_access_level_selector_widget'],
            'oro_acl_label_widget' => [$this, 'block_oro_acl_label_widget'],
            'pim_async_select_widget' => [$this, 'block_pim_async_select_widget'],
            'select_family_type_row' => [$this, 'block_select_family_type_row'],
            'form_widget_simple' => [$this, 'block_form_widget_simple'],
            'textarea_widget' => [$this, 'block_textarea_widget'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "form_div_layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->parent = $this->loadTemplate("form_div_layout.html.twig", "PimUIBundle:Form:pim-fields.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_widget_container_attributes($context, array $blocks = [])
    {
        // line 4
        echo "    ";
        if ((twig_length_filter($this->env, ($context["errors"] ?? null)) > 0)) {
            // line 5
            echo "        ";
            $context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => (($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (($this->getAttribute(($context["attr"] ?? null), "class", []) . " error")) : ("error"))]);
            // line 6
            echo "    ";
        }
        // line 7
        echo "    ";
        $this->displayParentBlock("widget_container_attributes", $context, $blocks);
        echo "
";
    }

    // line 10
    public function block_date_widget($context, array $blocks = [])
    {
        // line 11
        echo "    ";
        ob_start(function () { return ''; });
        // line 12
        echo "        ";
        $context["type"] = "text";
        // line 13
        echo "        ";
        if ((($context["widget"] ?? null) == "single_text")) {
            // line 14
            echo "            ";
            $this->displayBlock("form_widget_simple", $context, $blocks);
            echo "
        ";
        } else {
            // line 16
            echo "            <div ";
            $this->displayBlock("widget_container_attributes", $context, $blocks);
            echo ">
                ";
            // line 17
            echo twig_replace_filter(($context["date_pattern"] ?? null), ["{{ year }}" =>             // line 18
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "year", []), 'widget'), "{{ month }}" =>             // line 19
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "month", []), 'widget'), "{{ day }}" =>             // line 20
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "day", []), 'widget')]);
            // line 21
            echo "
            </div>
        ";
        }
        // line 24
        echo "    ";
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 27
    public function block_choice_widget_expanded($context, array $blocks = [])
    {
        // line 28
        echo "    ";
        ob_start(function () { return ''; });
        // line 29
        echo "        ";
        $context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => (($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (($this->getAttribute(($context["attr"] ?? null), "class", []) . " horizontal")) : ("horizontal"))]);
        // line 30
        echo "        ";
        $context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => ($this->getAttribute(($context["attr"] ?? null), "class", []) . " validate-group")]);
        // line 31
        echo "        ";
        $context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => ($this->getAttribute(($context["attr"] ?? null), "class", []) . " AknChoicesField")]);
        // line 32
        echo "        <div ";
        $this->displayBlock("widget_container_attributes", $context, $blocks);
        echo ">
            ";
        // line 33
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
            // line 34
            echo "                <div class=\"AknChoicesField-choiceItem\">
                    ";
            // line 35
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
            echo "
                    ";
            // line 36
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'label');
            echo "
                </div>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 39
        echo "        </div>
    ";
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 43
    public function block_choice_widget_options($context, array $blocks = [])
    {
        // line 44
        echo "    ";
        ob_start(function () { return ''; });
        // line 45
        echo "        ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["options"] ?? null));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["group_label"] => $context["choice"]) {
            // line 46
            echo "            ";
            if (twig_test_iterable($context["choice"])) {
                // line 47
                echo "                <optgroup label=\"";
                echo twig_escape_filter($this->env, (((($context["choice_translation_domain"] ?? null) === false)) ? ($context["group_label"]) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($context["group_label"], [], ($context["choice_translation_domain"] ?? null)))), "html", null, true);
                echo "\">
                    ";
                // line 48
                $context["options"] = $context["choice"];
                // line 49
                echo "                    ";
                $this->displayBlock("choice_widget_options", $context, $blocks);
                echo "
                </optgroup>
            ";
            } else {
                // line 52
                echo "                ";
                $context["label"] = (((($context["choice_translation_domain"] ?? null) === false)) ? ($this->getAttribute($context["choice"], "label", [])) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute($context["choice"], "label", []), [], ($context["choice_translation_domain"] ?? null))));
                // line 53
                echo "                <option ";
                $this->displayBlock("choice_widget_option_attributes", $context, $blocks);
                echo " value=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["choice"], "value", []), "html", null, true);
                echo "\"";
                if (Symfony\Bridge\Twig\Extension\twig_is_selected_choice($context["choice"], ($context["value"] ?? null))) {
                    echo " selected=\"selected\"";
                }
                echo ">";
                if (($this->getAttribute(($context["configs"] ?? null), "is_safe", [], "any", true, true) && $this->getAttribute(($context["configs"] ?? null), "is_safe", []))) {
                    echo ($context["label"] ?? null);
                } else {
                    echo twig_escape_filter($this->env, ($context["label"] ?? null), "html", null, true);
                }
                echo "</option>
            ";
            }
            // line 55
            echo "        ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['group_label'], $context['choice'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 56
        echo "    ";
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 59
    public function block_choice_widget_option_attributes($context, array $blocks = [])
    {
        // line 60
        echo "    ";
        ob_start(function () { return ''; });
        // line 61
        echo "        ";
        if (($this->getAttribute($this->getAttribute(($context["choice"] ?? null), "label", [], "any", false, true), "attr", [], "any", true, true) && (twig_length_filter($this->env, $this->getAttribute($this->getAttribute(($context["choice"] ?? null), "label", []), "attr", [])) > 0))) {
            // line 62
            echo "            ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["choice"] ?? null), "label", []), "attr", []));
            foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
                echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
                echo "=\"";
                echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
                echo "\" ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 63
            echo "        ";
        }
        // line 64
        echo "    ";
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 67
    public function block_form_start($context, array $blocks = [])
    {
        // line 68
        ob_start(function () { return ''; });
        // line 69
        echo "    ";
        $context["method"] = twig_upper_filter($this->env, ($context["method"] ?? null));
        // line 70
        echo "    ";
        if (twig_in_filter(($context["method"] ?? null), [0 => "GET", 1 => "POST"])) {
            // line 71
            echo "        ";
            $context["form_method"] = ($context["method"] ?? null);
            // line 72
            echo "    ";
        } else {
            // line 73
            echo "        ";
            $context["form_method"] = "POST";
            // line 74
            echo "    ";
        }
        // line 75
        echo "    ";
        $context["formClass"] = (((isset($context["class"]) || array_key_exists("class", $context))) ? (($context["class"] ?? null)) : ("form-horizontal"));
        // line 76
        echo "    ";
        if ($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) {
            // line 77
            echo "        ";
            $context["class"] = (($this->getAttribute(($context["attr"] ?? null), "class", []) . " ") . ($context["formClass"] ?? null));
            // line 78
            echo "    ";
        } else {
            // line 79
            echo "        ";
            $context["class"] = ($context["formClass"] ?? null);
            // line 80
            echo "    ";
        }
        // line 81
        echo "    ";
        $context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => ($context["class"] ?? null)]);
        // line 82
        echo "    <form id=\"";
        echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
        echo "\" method=\"";
        echo twig_escape_filter($this->env, twig_lower_filter($this->env, ($context["form_method"] ?? null)), "html", null, true);
        echo "\" action=\"";
        echo twig_escape_filter($this->env, ($context["action"] ?? null), "html", null, true);
        echo "\"";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
        foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
            echo " ";
            echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
            echo "=\"";
            echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
            echo "\"";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        if (($context["multipart"] ?? null)) {
            echo " enctype=\"multipart/form-data\"";
        }
        echo ">
    ";
        // line 83
        if ((($context["form_method"] ?? null) != ($context["method"] ?? null))) {
            // line 84
            echo "        <input type=\"hidden\" name=\"_method\" value=\"";
            echo twig_escape_filter($this->env, ($context["method"] ?? null), "html", null, true);
            echo "\" />
    ";
        }
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 89
    public function block_form_end($context, array $blocks = [])
    {
        // line 90
        ob_start(function () { return ''; });
        // line 91
        echo "    ";
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "_token", []), 'row');
        echo "
</form>
";
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 96
    public function block_form_row_field($context, array $blocks = [])
    {
        // line 97
        echo "    <div class=\"AknFieldContainer";
        if ($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) {
            echo " ";
            echo twig_escape_filter($this->env, $this->getAttribute(($context["attr"] ?? null), "class", []), "html", null, true);
        }
        echo "\">
        <div class=\"AknFieldContainer-header\">
            ";
        // line 99
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["label_attr" => twig_array_merge(($context["label_attr"] ?? null), ["class" => "AknFieldContainer-label control-label"])]);
        echo "
        </div>
        <div class=\"AknFieldContainer-inputContainer field-input";
        // line 101
        if ((twig_length_filter($this->env, ($context["errors"] ?? null)) > 0)) {
            echo " validation-error";
        }
        echo "\">
            ";
        // line 102
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        echo "
            ";
        // line 103
        if ((twig_length_filter($this->env, $this->getAttribute(($context["form"] ?? null), "children", [])) == 0)) {
            // line 104
            echo "                ";
            $this->displayBlock("form_info", $context, $blocks);
            echo "
            ";
        }
        // line 106
        echo "        </div>
    </div>
";
    }

    // line 110
    public function block_form_row($context, array $blocks = [])
    {
        // line 111
        echo "    ";
        ob_start(function () { return ''; });
        // line 112
        echo "        ";
        $this->displayBlock("form_row_field", $context, $blocks);
        echo "
    ";
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 116
    public function block_form_label($context, array $blocks = [])
    {
        // line 117
        ob_start(function () { return ''; });
        // line 118
        echo "    ";
        if ( !(($context["label"] ?? null) === false)) {
            // line 119
            echo "        ";
            $context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")) . " AknFieldContainer-label"))]);
            // line 120
            echo "        ";
            if ( !($context["compound"] ?? null)) {
                // line 121
                echo "            ";
                $context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["for" => ($context["id"] ?? null)]);
                // line 122
                echo "        ";
            }
            // line 123
            echo "        ";
            if (($context["required"] ?? null)) {
                // line 124
                echo "            ";
                $context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter(($this->getAttribute(($context["label_attr"] ?? null), "class", []) . " required"))]);
                // line 125
                echo "        ";
            }
            // line 126
            echo "        ";
            if (twig_test_empty(($context["label"] ?? null))) {
                // line 127
                echo "            ";
                $context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? null));
                // line 128
                echo "        ";
            }
            // line 129
            echo "        ";
            $context["isRadioLabel"] = ((($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "parent", [], "any", false, true), "vars", [], "any", false, true), "expanded", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "parent", [], "any", false, true), "vars", [], "any", false, true), "expanded", []), false)) : (false)) && (isset($context["checked"]) || array_key_exists("checked", $context)));
            // line 130
            echo "        ";
            $context["label"] = $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["label"] ?? null), [], ($context["translation_domain"] ?? null));
            // line 131
            echo "        ";
            if (($this->getAttribute(($context["label_attr"] ?? null), "truncate", [], "any", true, true) && $this->getAttribute(($context["label_attr"] ?? null), "truncate", []))) {
                // line 132
                echo "            ";
                $context["label_attr"] = twig_array_merge(["title" => ($context["label"] ?? null)], ($context["label_attr"] ?? null));
                // line 133
                echo "            ";
                $context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => ((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (($this->getAttribute(($context["label_attr"] ?? null), "class", []) . " ")) : ("")) . "truncate")]);
                // line 134
                echo "        ";
            }
            // line 135
            echo "        <label";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["label_attr"] ?? null));
            foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
                if (($context["attrname"] != "truncate")) {
                    echo " ";
                    echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
                    echo "=\"";
                    echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
                    echo "\"";
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            echo ">
            ";
            // line 136
            if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "parent", [], "any", false, true), "vars", [], "any", false, true), "mode", [], "any", true, true) && ("comparison" == $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "parent", []), "vars", []), "mode", [])))) {
                // line 137
                echo "                <input type=\"checkbox\" class=\"comparisonSelection exclude\" />
            ";
            } else {
                // line 139
                echo "                ";
                echo twig_escape_filter($this->env, ($context["label"] ?? null), "html", null, true);
                if ((($context["required"] ?? null) &&  !($context["isRadioLabel"] ?? null))) {
                    echo " <em>";
                    echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("required"), "html", null, true);
                    echo "</em>";
                }
                // line 140
                echo "            ";
            }
            // line 141
            echo "        </label>
    ";
        }
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 146
    public function block_form_info($context, array $blocks = [])
    {
        // line 147
        echo "    ";
        ob_start(function () { return ''; });
        // line 148
        echo "        ";
        if (( !(isset($context["type"]) || array_key_exists("type", $context)) || (($context["type"] ?? null) != "hidden"))) {
            // line 149
            echo "            <div class=\"AknFieldContainer-iconsContainer icons-container\">
                ";
            // line 150
            if ((isset($context["help"]) || array_key_exists("help", $context))) {
                // line 151
                echo "                    <i class=\"AknIconButton icon-info-sign\" data-toggle=\"tooltip\" data-placement=\"right\" data-original-title=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["help"] ?? null)), "html", null, true);
                echo "\"></i>
                ";
            }
            // line 153
            echo "                ";
            if ((isset($context["from_variant"]) || array_key_exists("from_variant", $context))) {
                // line 154
                echo "                    <i class=\"AknIconButton icon-lock\" data-trigger=\"hover\" data-toggle=\"popover\" data-placement=\"right\" data-title=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("pim_enrich.product_value.tooltip.from_variant.title"), "html", null, true);
                echo "\" data-content=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("pim_enrich.product_value.tooltip.from_variant.content"), "html", null, true);
                echo " : ";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["from_variant"] ?? null), "code", []), "html", null, true);
                echo "\" data-container=\"body\"></i>
                ";
            }
            // line 156
            echo "                ";
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
            echo "
            </div>
            ";
            // line 158
            if ((isset($context["info"]) || array_key_exists("info", $context))) {
                // line 159
                echo "                <div>";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["info"] ?? null)), "html", null, true);
                echo "</div>
            ";
            }
            // line 161
            echo "        ";
        }
        // line 162
        echo "    ";
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 169
    public function block_form_errors($context, array $blocks = [])
    {
        ob_start(function () { return ''; });
        // line 170
        echo "    ";
        if ((twig_length_filter($this->env, ($context["errors"] ?? null)) > 0)) {
            // line 171
            echo "        <script type=\"text/javascript\" nonce=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('Akeneo\Platform\Bundle\UIBundle\Twig\ContentSecurityPolicyExtension')->getScriptNonce(), "html", null, true);
            echo "\">
            var el = document.getElementById('";
            // line 172
            echo $this->getAttribute($this, "getRootId", [0 => ($context["form"] ?? null)], "method");
            echo "');

            if (el) {
                el.dispatchEvent(new Event('change'));
            }

        </script>
        ";
            // line 179
            if ($this->getAttribute(($context["form"] ?? null), "parent", [])) {
                // line 180
                echo "            ";
                $context["combinedError"] = "";
                // line 181
                echo "            ";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(($context["errors"] ?? null));
                foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
                    // line 182
                    echo "                ";
                    $context["error"] = (((null === $this->getAttribute($context["error"], "messagePluralization", []))) ? ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute(                    // line 183
$context["error"], "messageTemplate", []), $this->getAttribute($context["error"], "messageParameters", []), "validators")) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->transchoice($this->getAttribute(                    // line 184
$context["error"], "messageTemplate", []), $this->getAttribute($context["error"], "messagePluralization", []), $this->getAttribute($context["error"], "messageParameters", []), "validators")));
                    // line 185
                    echo "                ";
                    $context["combinedError"] = (((($context["combinedError"] ?? null) != "")) ? (((($context["combinedError"] ?? null) . "; ") . $context["error"])) : ($context["error"]));
                    // line 186
                    echo "            ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 187
                echo "            <i class=\"AknIconButton AknIconButton--important icon-warning-sign validation-tooltip\" data-placement=\"right\" data-toggle=\"tooltip\" data-original-title=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["combinedError"] ?? null)), "html", null, true);
                echo "\"></i>
        ";
            } else {
                // line 189
                echo "            ";
                $this->displayParentBlock("form_errors", $context, $blocks);
                echo "
        ";
            }
            // line 191
            echo "    ";
        }
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 194
    public function block_pim_translatable_field_row($context, array $blocks = [])
    {
        // line 195
        echo "    ";
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
        echo "
    ";
        // line 196
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["translation"]) {
            // line 197
            echo "    <div class=\"AknFieldContainer\">
        <div class=\"AknFieldContainer-header\">
            ";
            // line 199
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["translation"], 'label');
            echo "
        </div>
        <div class=\"AknFieldContainer-inputContainer field-input";
            // line 201
            if ((twig_length_filter($this->env, ($context["errors"] ?? null)) > 0)) {
                echo " validation-error";
            }
            echo "\">
            ";
            // line 202
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["translation"], 'widget');
            echo "
            ";
            // line 203
            if ((twig_length_filter($this->env, $this->getAttribute(($context["form"] ?? null), "children", [])) == 0)) {
                // line 204
                echo "                ";
                $this->displayBlock("form_info", $context, $blocks);
                echo "
            ";
            }
            // line 206
            echo "        </div>
        <div class=\"AknFieldContainer-footer\">
            ";
            // line 208
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["translation"], 'errors');
            echo "
        </div>
    </div>
    ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['translation'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
    }

    // line 214
    public function block_pim_enrich_media_row($context, array $blocks = [])
    {
        // line 215
        echo "    ";
        ob_start(function () { return ''; });
        // line 216
        echo "    ";
        $context["empty"] = ( !$this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []) ||  !$this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "key", []));
        // line 217
        echo "    ";
        if ( !((($context["empty"] ?? null) && $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "parent", [], "any", false, true), "vars", [], "any", false, true), "mode", [], "any", true, true)) && ("comparison" == $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "parent", []), "vars", []), "mode", [])))) {
            // line 218
            echo "        <div class=\"AknFormContainer AknFormContainer--withPadding AknFormContainer--centered control-group upload-zone-container\">
            <div class=\"controls AknMediaField\">
                <label class=\"upload-zone file";
            // line 220
            if (($context["empty"] ?? null)) {
                echo " empty";
            }
            if (($context["disabled"] ?? null)) {
                echo " disabled";
            }
            echo "\">
                    ";
            // line 221
            if (( !$this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "parent", [], "any", false, true), "vars", [], "any", false, true), "mode", [], "any", true, true) || ("comparison" != $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "parent", []), "vars", []), "mode", [])))) {
                // line 222
                echo "                        <a class=\"AknMediaField-trashIcon no-hash remove-upload";
                if (($context["empty"] ?? null)) {
                    echo " hide";
                }
                if (($context["disabled"] ?? null)) {
                    echo " disabled";
                }
                echo "\">
                            <i class=\"icon-trash\"></i>
                        </a>
                    ";
            }
            // line 226
            echo "                    <div class=\"upload-info\">
                        ";
            // line 227
            if ( !($context["empty"] ?? null)) {
                // line 228
                echo "                            <a class=\"no-hash upload-preview\" href=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("pim_enrich_media_show", ["filename" => twig_urlencode_filter($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "key", []))]), "html", null, true);
                echo "\" target=\"_blank\" title=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "originalFilename", []), "html", null, true);
                echo "\">
                                <img src=\"/bundles/pimui/images/upload.png\" alt=\"upload icon\" class=\"AknMediaField-uploadIcon upload-preview\">
                            </a>
                            ";
                // line 231
                $context["filename"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "originalFilename", []);
                // line 232
                echo "                            ";
                if ((twig_length_filter($this->env, ($context["filename"] ?? null)) > 20)) {
                    // line 233
                    echo "                                ";
                    $context["filename"] = (twig_slice($this->env, ($context["filename"] ?? null), 0, 17) . "...");
                    // line 234
                    echo "                            ";
                }
                // line 235
                echo "                            <span class=\"upload-filename\" data-empty-title=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Drag and drop a file or click here"), "html", null, true);
                echo "\">";
                if (($context["empty"] ?? null)) {
                    echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Drag and drop a file or click here"), "html", null, true);
                } else {
                    echo twig_escape_filter($this->env, ($context["filename"] ?? null), "html", null, true);
                }
                echo "</span>
                        ";
            } else {
                // line 237
                echo "                            <div class=\"AknMediaField-emptyContainer\">
                                <img src=\"/bundles/pimui/images/upload.png\" alt=\"upload icon\" class=\"AknMediaField-uploadIcon upload-preview\">
                                <span class=\"upload-filename\" data-empty-title=\"";
                // line 239
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Drag and drop a file or click here"), "html", null, true);
                echo "\">";
                if (($context["empty"] ?? null)) {
                    echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Drag and drop a file or click here"), "html", null, true);
                } else {
                    echo twig_escape_filter($this->env, ($context["filename"] ?? null), "html", null, true);
                }
                echo "</span>
                            </div>
                        ";
            }
            // line 242
            echo "                    </div>
                    ";
            // line 243
            if (($context["empty"] ?? null)) {
                // line 244
                echo "                        ";
                echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "uploadedFile", []), 'widget', ["attr" => ["class" => "AknTextField--fileDropZone"]]);
                echo "
                    ";
            } else {
                // line 246
                echo "                        ";
                echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "uploadedFile", []), 'widget', ["attr" => ["class" => "hide", "disabled" => "disabled"]]);
                echo "
                        ";
                // line 247
                echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "removed", []), 'widget', ["attr" => ["class" => "hide"]]);
                echo "
                    ";
            }
            // line 249
            echo "                </label>
                ";
            // line 250
            $this->displayBlock("form_info", $context, $blocks);
            echo "
                ";
            // line 251
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "id", []), 'widget');
            echo "
            </div>
        </div>
        <script type=\"text/javascript\" nonce=\"";
            // line 254
            echo twig_escape_filter($this->env, $this->env->getExtension('Akeneo\Platform\Bundle\UIBundle\Twig\ContentSecurityPolicyExtension')->getScriptNonce(), "html", null, true);
            echo "\">
            require(
                ['pim/fileinput'],
                function(fileinput) {
                    fileinput.init('";
            // line 258
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "uploadedFile", []), "vars", []), "id", []), "html", null, true);
            echo "');
                }
            );
        </script>
    ";
        } else {
            // line 263
            echo "        <div class=\"control-group\">
            <div class=\"controls\">
                <label class=\"upload-zone file empty\">
                    <div class=\"upload-info\">
                        <span class=\"upload-filename\">
                            ";
            // line 268
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("pim_enrich.product.no_compared_media"), "html", null, true);
            echo "
                        </span>
                    </div>
                </label>
            </div>
        </div>
    ";
        }
        // line 275
        echo "
    ";
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 279
    public function block_widget_attributes($context, array $blocks = [])
    {
        // line 280
        ob_start(function () { return ''; });
        // line 281
        echo "    id=\"";
        echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
        echo "\" name=\"";
        echo twig_escape_filter($this->env, ($context["full_name"] ?? null), "html", null, true);
        echo "\"";
        if (($this->getAttribute(($context["attr"] ?? null), "read_only", [], "any", true, true) && ($this->getAttribute(($context["attr"] ?? null), "read_only", []) == true))) {
            echo " readonly=\"readonly\"";
        }
        if (($context["disabled"] ?? null)) {
            echo " disabled=\"disabled\"";
        }
        if ($this->getAttribute(($context["attr"] ?? null), "max_length", [], "any", true, true)) {
            echo " maxlength=\"";
            echo twig_escape_filter($this->env, ($context["max_length"] ?? null), "html", null, true);
            echo "\"";
        }
        if ((isset($context["pattern"]) || array_key_exists("pattern", $context))) {
            echo " pattern=\"";
            echo twig_escape_filter($this->env, ($context["pattern"] ?? null), "html", null, true);
            echo "\"";
        }
        // line 282
        echo "    ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
        foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
            if (twig_in_filter($context["attrname"], [0 => "placeholder", 1 => "title"])) {
                echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
                echo "=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($context["attrvalue"], [], ($context["translation_domain"] ?? null)), "html", null, true);
                echo "\" ";
            } else {
                echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
                echo "=\"";
                echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
                echo "\" ";
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 286
    public function block_switch_widget($context, array $blocks = [])
    {
        // line 287
        ob_start(function () { return ''; });
        // line 288
        echo "    ";
        $context["originalId"] = ($context["id"] ?? null);
        // line 289
        echo "    ";
        $context["id"] = ("input-" . ($context["originalId"] ?? null));
        // line 290
        echo "    ";
        $context["switchId"] = ("switch-" . ($context["originalId"] ?? null));
        // line 291
        echo "    <div id=\"";
        echo twig_escape_filter($this->env, ($context["switchId"] ?? null), "html", null, true);
        echo "\" class=\"switch switch-";
        (($this->getAttribute(($context["attr"] ?? null), "size", [], "any", true, true)) ? (print (twig_escape_filter($this->env, $this->getAttribute(($context["attr"] ?? null), "size", []), "html", null, true))) : (print ("small")));
        echo "\" data-on-label=\"";
        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans((($this->getAttribute(($context["attr"] ?? null), "data-on-label", [], "array", true, true)) ? ($this->getAttribute(($context["attr"] ?? null), "data-on-label", [], "array")) : ("switch_on"))), "html", null, true);
        echo "\" data-off-label=\"";
        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans((($this->getAttribute(($context["attr"] ?? null), "data-off-label", [], "array", true, true)) ? ($this->getAttribute(($context["attr"] ?? null), "data-off-label", [], "array")) : ("switch_off"))), "html", null, true);
        echo "\">
        ";
        // line 292
        if (($context["required"] ?? null)) {
            $context["required"] = false;
        }
        // line 293
        echo "        <input id=\"";
        echo twig_escape_filter($this->env, ($context["originalId"] ?? null), "html", null, true);
        echo "\" type=\"checkbox\" ";
        if ((isset($context["value"]) || array_key_exists("value", $context))) {
            echo " value=\"";
            echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
            echo "\"";
        }
        if (($context["checked"] ?? null)) {
            echo " checked=\"checked\"";
        }
        if (($context["disabled"] ?? null)) {
            echo " disabled=\"disabled\"";
        }
        echo ">
        <input type=\"hidden\" ";
        // line 294
        $this->displayBlock("widget_attributes", $context, $blocks);
        if ((($context["checked"] ?? null) || ($this->getAttribute(($context["attr"] ?? null), "checked", [], "any", true, true) && $this->getAttribute(($context["attr"] ?? null), "checked", [])))) {
            echo " value=\"1\"";
        }
        echo ">
    </div>
    <script type=\"text/javascript\" nonce=\"";
        // line 296
        echo twig_escape_filter($this->env, $this->env->getExtension('Akeneo\Platform\Bundle\UIBundle\Twig\ContentSecurityPolicyExtension')->getScriptNonce(), "html", null, true);
        echo "\">
    require(
        ['jquery'],
        function (\$) {
            'use strict';
            \$(function() {
                \$('#";
        // line 302
        echo twig_escape_filter($this->env, ($context["switchId"] ?? null), "html", null, true);
        echo "').closest('form').on('switch-change', '#";
        echo twig_escape_filter($this->env, ($context["switchId"] ?? null), "html", null, true);
        echo "', function (e, data) {
                    \$('#";
        // line 303
        echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
        echo "').val(+data.value);
                });
            });
        }
    );
    </script>
";
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 312
    public function block_pim_ajax_entity_row($context, array $blocks = [])
    {
        // line 313
        echo "    ";
        $this->displayBlock("form_row_field", $context, $blocks);
        echo "
";
    }

    // line 316
    public function block_pim_ajax_reference_data_row($context, array $blocks = [])
    {
        // line 317
        echo "    ";
        $this->displayBlock("form_row_field", $context, $blocks);
        echo "
";
    }

    // line 320
    public function block_pim_date_widget($context, array $blocks = [])
    {
        // line 321
        echo "    ";
        $context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => ((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (($this->getAttribute(($context["attr"] ?? null), "class", []) . " ")) : ("")) . "datepicker add-on"), "placeholder" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["placeholder"] ?? null))]);
        // line 322
        echo "    ";
        if ($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "disabled", [])) {
            // line 323
            echo "        ";
            $context["attr"] = twig_array_merge(($context["attr"] ?? null), ["disabled" => "disabled"]);
            // line 324
            echo "    ";
        }
        // line 325
        echo "
    ";
        // line 326
        $this->displayBlock("date_widget", $context, $blocks);
        echo "
";
    }

    // line 329
    public function block_pim_number_widget($context, array $blocks = [])
    {
        // line 330
        echo "    ";
        $this->displayBlock("number_widget", $context, $blocks);
        echo "
";
    }

    // line 333
    public function block_oro_acl_privilege_widget($context, array $blocks = [])
    {
        // line 334
        echo "    ";
        ob_start(function () { return ''; });
        // line 335
        echo "        ";
        if (("groups" == $this->getAttribute(($context["privileges_config"] ?? null), "view_type", []))) {
            // line 336
            echo "            ";
            if ((("entity" == $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "extensionKey", [])) && ("(default)" != $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "identity", []), "name", [])))) {
                // line 337
                echo "                ";
                echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute($this->getAttribute(($context["form"] ?? null), "identity", []), "id", []), 'widget');
                echo "
                ";
                // line 338
                echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "permissions", []), 'widget');
                echo "
            ";
            } else {
                // line 340
                echo "                <div class=\"AknAcl AknAcl-item acl-permission";
                echo ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "identity", []), "name", []) == "(default)")) ? (" default-field AknAcl--hide hide") : (""));
                echo "\">
                    ";
                // line 341
                echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "permissions", []), 'widget');
                echo "
                    ";
                // line 342
                echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "identity", []), 'widget');
                echo "
                </div>
            ";
            }
            // line 345
            echo "        ";
        } else {
            // line 346
            echo "            <tr class=\"acl-permission";
            echo ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "identity", []), "name", []) == "(default)")) ? (" default-field hide") : (""));
            echo "\">
                <td>
                    ";
            // line 348
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "identity", []), 'widget');
            echo "
                </td>
                ";
            // line 350
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "permissions", []), 'widget');
            echo "
            </tr>
        ";
        }
        // line 353
        echo "    ";
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
    }

    // line 356
    public function block_oro_acl_permission_widget($context, array $blocks = [])
    {
        // line 357
        echo "    ";
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "name", []), 'widget');
        echo "
    ";
        // line 358
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "accessLevel", []), 'widget');
        echo "
";
    }

    // line 361
    public function block_oro_acl_permission_collection_widget($context, array $blocks = [])
    {
        // line 362
        echo "    ";
        if (("entity" == $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "parent", []), "vars", []), "value", []), "extensionKey", []))) {
            // line 363
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["privileges_config"] ?? null), "permissions", [], "array"));
            foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
                // line 364
                echo "            ";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
                foreach ($context['_seq'] as $context["_key"] => $context["permission"]) {
                    if (($this->getAttribute($this->getAttribute($this->getAttribute($context["permission"], "vars", []), "value", []), "name", []) == $context["field"])) {
                        // line 365
                        echo "                ";
                        $context["additionalClass"] = (((($context["field"] == "ASSIGN") || ("(default)" == $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "parent", []), "vars", []), "value", []), "identity", []), "name", [])))) ? (" default-field hide") : (""));
                        // line 366
                        echo "                ";
                        if (("entity:Akeneo\\UserManagement\\Component\\Model\\Role" == $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "parent", []), "vars", []), "value", []), "identity", []), "id", []))) {
                            // line 367
                            echo "                    ";
                            $context["additionalClass"] = (($context["additionalClass"] ?? null) . " default-field-toggle");
                            // line 368
                            echo "                ";
                        }
                        // line 369
                        echo "                <div class=\"acl-permission";
                        echo twig_escape_filter($this->env, ($context["additionalClass"] ?? null), "html", null, true);
                        echo "\" data-permission=\"";
                        echo twig_escape_filter($this->env, $context["field"], "html", null, true);
                        echo "\">
                    <span>";
                        // line 370
                        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(twig_lower_filter($this->env, ((("oro_security.acl." . $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "parent", []), "vars", []), "value", []), "identity", []), "name", [])) . ".") . $context["field"]))), "html", null, true);
                        echo "</span>
                    ";
                        // line 371
                        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["permission"], 'widget');
                        echo "
                </div>
            ";
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['permission'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 374
                echo "        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 375
            echo "    ";
        } else {
            // line 376
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["privileges_config"] ?? null), "permissions", [], "array"));
            foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
                // line 377
                echo "            ";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
                foreach ($context['_seq'] as $context["_key"] => $context["permission"]) {
                    if (($this->getAttribute($this->getAttribute($this->getAttribute($context["permission"], "vars", []), "value", []), "name", []) == $context["field"])) {
                        // line 378
                        echo "                ";
                        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["permission"], 'widget');
                        echo "
            ";
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['permission'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 380
                echo "        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 381
            echo "    ";
        }
    }

    // line 384
    public function block_pim_acl_access_level_selector_widget($context, array $blocks = [])
    {
        // line 385
        echo "    ";
        $context["iconClass"] = "";
        // line 386
        echo "    ";
        if ($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "checked", [])) {
            // line 387
            echo "        ";
            $context["iconClass"] = "AknSelectButton--selected granted";
            // line 388
            echo "    ";
        } else {
            // line 389
            echo "        ";
            $context["iconClass"] = "non-granted";
            // line 390
            echo "    ";
        }
        // line 391
        echo "    <div class=\"select-button AknAcl-icon AknSelectButton ";
        echo twig_escape_filter($this->env, ($context["iconClass"] ?? null), "html", null, true);
        echo " acl-permission-toggle\"></div>
    ";
        // line 392
        $context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => "hide"]);
        // line 393
        echo "    ";
        $this->displayBlock("checkbox_widget", $context, $blocks);
        echo "
";
    }

    // line 396
    public function block_oro_acl_label_widget($context, array $blocks = [])
    {
        // line 397
        echo "    <span>";
        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["value"] ?? null)), "html", null, true);
        echo "</span>
";
    }

    // line 400
    public function block_pim_async_select_widget($context, array $blocks = [])
    {
        // line 401
        echo "    ";
        if ($this->getAttribute(($context["attr"] ?? null), "data-placeholder", [], "array", true, true)) {
            // line 402
            echo "        ";
            $context["attr"] = twig_array_merge(($context["attr"] ?? null), ["data-placeholder" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute(($context["attr"] ?? null), "data-placeholder", [], "array"))]);
            // line 403
            echo "    ";
        }
        // line 404
        echo "    ";
        $this->displayBlock("hidden_widget", $context, $blocks);
        echo "
";
    }

    // line 407
    public function block_select_family_type_row($context, array $blocks = [])
    {
        // line 408
        echo "    ";
        $this->displayBlock("form_row_field", $context, $blocks);
        echo "
";
    }

    // line 411
    public function block_form_widget_simple($context, array $blocks = [])
    {
        // line 412
        $context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "text")) : ("text"));
        // line 413
        if ($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) {
            // line 414
            echo "        ";
            if (!twig_in_filter("input-", $this->getAttribute(($context["attr"] ?? null), "class", []))) {
                // line 415
                echo "            ";
                $context["class"] = ($this->getAttribute(($context["attr"] ?? null), "class", []) . " AknTextField");
                // line 416
                echo "        ";
            } else {
                // line 417
                echo "            ";
                $context["class"] = $this->getAttribute(($context["attr"] ?? null), "class", []);
                // line 418
                echo "        ";
            }
            // line 419
            echo "    ";
        } else {
            // line 420
            echo "        ";
            $context["class"] = " AknTextField";
            // line 421
            echo "    ";
        }
        // line 422
        echo "    ";
        if (("file" == ($context["type"] ?? null))) {
            // line 423
            echo "        ";
            $context["class"] = (($context["class"] ?? null) . " AknTextField--file");
            // line 424
            echo "    ";
        }
        // line 425
        echo "    ";
        $context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => ($context["class"] ?? null)]);
        // line 426
        echo "    ";
        // line 427
        echo "    <input type=\"";
        echo twig_escape_filter($this->env, ($context["type"] ?? null), "html", null, true);
        echo "\" ";
        $this->displayBlock("widget_attributes", $context, $blocks);
        echo " ";
        if (((($context["value"] ?? null) == "\\") ||  !twig_test_empty(($context["value"] ?? null)))) {
            echo "value=\"";
            echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
            echo "\" ";
        }
        echo "/>";
    }

    // line 430
    public function block_textarea_widget($context, array $blocks = [])
    {
        // line 431
        echo "<textarea class=\"AknTextareaField\" ";
        $this->displayBlock("widget_attributes", $context, $blocks);
        echo ">";
        echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
        echo "</textarea>";
    }

    // line 165
    public function getgetRootId($__form__ = null, ...$__varargs__)
    {
        $context = $this->env->mergeGlobals([
            "form" => $__form__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 166
            (($this->getAttribute(($context["form"] ?? null), "parent", [])) ? (print ($this->getAttribute($this, "getRootId", [0 => $this->getAttribute(($context["form"] ?? null), "parent", [])], "method"))) : (print (twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "id", []), "html", null, true))));
        } catch (\Exception $e) {
            ob_end_clean();

            throw $e;
        } catch (\Throwable $e) {
            ob_end_clean();

            throw $e;
        }

        return ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
    }

    public function getTemplateName()
    {
        return "PimUIBundle:Form:pim-fields.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  1396 => 166,  1384 => 165,  1376 => 431,  1373 => 430,  1359 => 427,  1357 => 426,  1354 => 425,  1351 => 424,  1348 => 423,  1345 => 422,  1342 => 421,  1339 => 420,  1336 => 419,  1333 => 418,  1330 => 417,  1327 => 416,  1324 => 415,  1321 => 414,  1319 => 413,  1317 => 412,  1314 => 411,  1307 => 408,  1304 => 407,  1297 => 404,  1294 => 403,  1291 => 402,  1288 => 401,  1285 => 400,  1278 => 397,  1275 => 396,  1268 => 393,  1266 => 392,  1261 => 391,  1258 => 390,  1255 => 389,  1252 => 388,  1249 => 387,  1246 => 386,  1243 => 385,  1240 => 384,  1235 => 381,  1229 => 380,  1219 => 378,  1213 => 377,  1208 => 376,  1205 => 375,  1199 => 374,  1189 => 371,  1185 => 370,  1178 => 369,  1175 => 368,  1172 => 367,  1169 => 366,  1166 => 365,  1160 => 364,  1155 => 363,  1152 => 362,  1149 => 361,  1143 => 358,  1138 => 357,  1135 => 356,  1130 => 353,  1124 => 350,  1119 => 348,  1113 => 346,  1110 => 345,  1104 => 342,  1100 => 341,  1095 => 340,  1090 => 338,  1085 => 337,  1082 => 336,  1079 => 335,  1076 => 334,  1073 => 333,  1066 => 330,  1063 => 329,  1057 => 326,  1054 => 325,  1051 => 324,  1048 => 323,  1045 => 322,  1042 => 321,  1039 => 320,  1032 => 317,  1029 => 316,  1022 => 313,  1019 => 312,  1007 => 303,  1001 => 302,  992 => 296,  984 => 294,  967 => 293,  963 => 292,  952 => 291,  949 => 290,  946 => 289,  943 => 288,  941 => 287,  938 => 286,  915 => 282,  893 => 281,  891 => 280,  888 => 279,  882 => 275,  872 => 268,  865 => 263,  857 => 258,  850 => 254,  844 => 251,  840 => 250,  837 => 249,  832 => 247,  827 => 246,  821 => 244,  819 => 243,  816 => 242,  804 => 239,  800 => 237,  788 => 235,  785 => 234,  782 => 233,  779 => 232,  777 => 231,  768 => 228,  766 => 227,  763 => 226,  750 => 222,  748 => 221,  739 => 220,  735 => 218,  732 => 217,  729 => 216,  726 => 215,  723 => 214,  703 => 208,  699 => 206,  693 => 204,  691 => 203,  687 => 202,  681 => 201,  676 => 199,  672 => 197,  655 => 196,  650 => 195,  647 => 194,  641 => 191,  635 => 189,  629 => 187,  623 => 186,  620 => 185,  618 => 184,  617 => 183,  615 => 182,  610 => 181,  607 => 180,  605 => 179,  595 => 172,  590 => 171,  587 => 170,  583 => 169,  578 => 162,  575 => 161,  569 => 159,  567 => 158,  561 => 156,  551 => 154,  548 => 153,  542 => 151,  540 => 150,  537 => 149,  534 => 148,  531 => 147,  528 => 146,  521 => 141,  518 => 140,  510 => 139,  506 => 137,  504 => 136,  486 => 135,  483 => 134,  480 => 133,  477 => 132,  474 => 131,  471 => 130,  468 => 129,  465 => 128,  462 => 127,  459 => 126,  456 => 125,  453 => 124,  450 => 123,  447 => 122,  444 => 121,  441 => 120,  438 => 119,  435 => 118,  433 => 117,  430 => 116,  422 => 112,  419 => 111,  416 => 110,  410 => 106,  404 => 104,  402 => 103,  398 => 102,  392 => 101,  387 => 99,  378 => 97,  375 => 96,  366 => 91,  364 => 90,  361 => 89,  352 => 84,  350 => 83,  325 => 82,  322 => 81,  319 => 80,  316 => 79,  313 => 78,  310 => 77,  307 => 76,  304 => 75,  301 => 74,  298 => 73,  295 => 72,  292 => 71,  289 => 70,  286 => 69,  284 => 68,  281 => 67,  276 => 64,  273 => 63,  260 => 62,  257 => 61,  254 => 60,  251 => 59,  246 => 56,  232 => 55,  214 => 53,  211 => 52,  204 => 49,  202 => 48,  197 => 47,  194 => 46,  176 => 45,  173 => 44,  170 => 43,  164 => 39,  155 => 36,  151 => 35,  148 => 34,  144 => 33,  139 => 32,  136 => 31,  133 => 30,  130 => 29,  127 => 28,  124 => 27,  119 => 24,  114 => 21,  112 => 20,  111 => 19,  110 => 18,  109 => 17,  104 => 16,  98 => 14,  95 => 13,  92 => 12,  89 => 11,  86 => 10,  79 => 7,  76 => 6,  73 => 5,  70 => 4,  67 => 3,  57 => 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("", "PimUIBundle:Form:pim-fields.html.twig", "/var/www/html/vendor/akeneo/pim-community-dev/src/Akeneo/Platform/Bundle/UIBundle/Resources/views/Form/pim-fields.html.twig");
    }
}
