<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
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;

/* @PimUser/Role/update.html.twig */
class __TwigTemplate_e8eeea1ed181deb7fad76dfd043e69ae extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
            'head_script' => [$this, 'block_head_script'],
            'content' => [$this, 'block_content'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        $macros["elements"] = $this->macros["elements"] = $this->loadTemplate("@PimUI/Default/page_elements.html.twig", "@PimUser/Role/update.html.twig", 1)->unwrap();
        // line 2
        $macros["dataGrid"] = $this->macros["dataGrid"] = $this->loadTemplate("@PimDataGrid/macros.html.twig", "@PimUser/Role/update.html.twig", 2)->unwrap();
        // line 3
        $macros["UI"] = $this->macros["UI"] = $this->loadTemplate("@PimUI/macros.html.twig", "@PimUser/Role/update.html.twig", 3)->unwrap();
        // line 4
        yield "
";
        // line 5
        yield from $this->unwrap()->yieldBlock('head_script', $context, $blocks);
        // line 65
        yield "
";
        // line 66
        $context["entityId"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 66), "value", [], "any", false, false, false, 66), "id", [], "any", false, false, false, 66);
        // line 67
        yield "
";
        // line 68
        yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
        return; yield '';
    }

    // line 5
    public function block_head_script($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 6
        yield "    <script type=\"text/javascript\" nonce=\"";
        yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Akeneo\Platform\Bundle\UIBundle\Twig\ContentSecurityPolicyExtension']->getScriptNonce(), "html", null, true);
        yield "\">
        require(
            ['jquery', 'pim/security-context'],
            function (\$, securityContext) {
                'use strict';

                securityContext.initialize();
                \$(function() {
                    var decorateTabs = function() {
                        \$('.AknVerticalNavtab').find('.AknVerticalNavtab-link').each(function() {
                            var \$target = \$(\$(this).attr('href'));
                            var hasGranted = \$target.find('.acl-permission:not(.default-field) .select-button.granted').length;
                            var hasNonGranted = \$target.find('.acl-permission:not(.default-field) .select-button.non-granted').length;
                            var iconClass = 'non-granted'
                            if (hasGranted && 0 === hasNonGranted) {
                                iconClass = 'AknSelectButton--selected granted';
                            } else if (hasGranted) {
                                iconClass = 'AknSelectButton--partial partial';
                            }
                            var \$icon = \$(this).find('.select-button').first();
                            \$icon.removeClass('AknSelectButton--selected AknSelectButton--partial granted partial non-granted').addClass(iconClass);
                        });
                    };

                    var togglePermission = function(\$icon, callback) {
                        if (\$icon.parent().hasClass('default-field-toggle')) {
                            var permission = \$icon.parent().data('permission');
                            var \$defaultIcon = \$('.default-field[data-permission=\"' + permission + '\"]').find('.' + (\$icon.hasClass('granted') ? 'granted' : 'non-granted'));
                            \$defaultIcon.toggleClass('icon-ok granted').toggleClass('icon-remove non-granted');
                            var \$defaultInput = \$defaultIcon.siblings('input[type=\"checkbox\"]').eq(0);
                            \$defaultInput.prop('checked', !\$defaultInput.is(':checked'));
                        }

                        \$icon.toggleClass('AknSelectButton--selected granted non-granted');
                        var \$input = \$icon.siblings('input[type=\"checkbox\"]').eq(0);
                        \$input.prop('checked', !\$input.is(':checked')).trigger('change');
                        (callback || \$.noop)();
                    };

                    \$('.acl-permission .select-button').on('click', function() {
                        togglePermission(\$(this), decorateTabs)
                    });

                    \$('.AknVerticalNavtab').on('click', '.select-button', function() {
                        var classToToggle = \$(this).hasClass('AknSelectButton--selected') ? 'granted' : 'non-granted';
                        var \$target = \$(\$(this).closest('.AknVerticalNavtab-link').attr('href'));
                        \$target.find('.acl-permission:not(.default-field) .' + classToToggle).each(function() {
                            togglePermission(\$(this));
                        });
                        decorateTabs();
                    });

                    decorateTabs();
                });
            }
        );
        require('pim/page-title').set({'role': '";
        // line 62
        yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 62), "value", [], "any", false, false, false, 62), "label", [], "any", false, false, false, 62), "html", null, true);
        yield "'});
    </script>
";
        return; yield '';
    }

    // line 68
    public function block_content($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 69
        yield "<div class=\"AknDefault-mainContent\">
    ";
        // line 70
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start', ["action" => ((        // line 71
($context["entityId"] ?? null)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pim_user_role_update", ["id" => ($context["entityId"] ?? null)])) : ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pim_user_role_create"))), "attr" => ["class" => "form-tabbed", "data-updated-title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("confirmation.leave"), "data-updated-message" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("confirmation.discard changes", ["%entity%" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("role.title")])]]);
        // line 77
        yield "

        ";
        // line 79
        $context["title"] = ((($context["entityId"] ?? null)) ? ((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("pim_common.edit") . " - ") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 79), "value", [], "any", false, false, false, 79), "label", [], "any", false, false, false, 79))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("pim_common.create")));
        // line 80
        yield "
        ";
        // line 81
        $context["buttons"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 82
            yield "            ";
            if (($context["entityId"] ?? null)) {
                // line 83
                yield "                <div class=\"AknSecondaryActions AknDropdown AknButtonList-item secondary-actions\">
                    <div class=\"AknSecondaryActions-button dropdown-button\" data-toggle=\"dropdown\"></div>
                    <div class=\"AknDropdown-menu AknDropdown-menu--right\">
                        <div class=\"AknDropdown-menuTitle\">";
                // line 86
                yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("other_actions"), "html", null, true);
                yield "</div>
                        ";
                // line 87
                yield CoreExtension::callMacro($macros["elements"], "macro_deleteLink", [$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pim_user_role_delete", ["id" =>                 // line 88
($context["entityId"] ?? null)]), "pim_user_role_remove", $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pim_user_role_index"), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("pim_user_management.entity.role.module.delete.confirm"), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("flash.role.removed"), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("confirmation.delete"), "AknDropdown-menuLink delete", $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Roles")], 87, $context, $this->getSourceContext());
                // line 96
                yield "
                    </div>
                </div>
            ";
            }
            // line 100
            yield "            ";
            yield CoreExtension::callMacro($macros["elements"], "macro_submitBtn", ["", "ok", "AknButtonList-item"], 100, $context, $this->getSourceContext());
            yield "
        ";
        })() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 102
        yield "
        ";
        // line 103
        yield CoreExtension::callMacro($macros["elements"], "macro_page_header", [["title" =>         // line 105
($context["title"] ?? null), "buttons" =>         // line 106
($context["buttons"] ?? null), "state" => CoreExtension::callMacro($macros["elements"], "macro_updated", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,         // line 107
($context["form"] ?? null), "vars", [], "any", false, false, false, 107), "id", [], "any", false, false, false, 107)], 107, $context, $this->getSourceContext())]], 103, $context, $this->getSourceContext());
        // line 109
        yield "

        ";
        // line 111
        $context["tabs"] = ["pim_user.roles.tab.general"];
        // line 112
        yield "        ";
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::getArrayKeysFilter(($context["privilegesConfig"] ?? null)));
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 113
            yield "            ";
            $context["tabs"] = Twig\Extension\CoreExtension::arrayMerge(($context["tabs"] ?? null), [("pim_user.roles.tab." . $context["item"])]);
            // line 114
            yield "        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 115
        yield "        ";
        $context["tabs"] = Twig\Extension\CoreExtension::arrayMerge(($context["tabs"] ?? null), ["pim_user.roles.tab.users"]);
        // line 116
        yield "
            ";
        // line 117
        yield CoreExtension::callMacro($macros["elements"], "macro_form_navbar", [($context["tabs"] ?? null), ""], 117, $context, $this->getSourceContext());
        yield "
            <div class=\"tab-content oro-tab-form\">

                ";
        // line 120
        yield CoreExtension::callMacro($macros["elements"], "macro_form_errors", [($context["form"] ?? null)], 120, $context, $this->getSourceContext());
        yield "

                <div class=\"tab-pane active\" id=\"pim_user-roles-tab-general\">
                    <div class=\"tabsections\">
                        <div class=\"tabsection\">
                            <div class=\"AknTabContainer-content tabsection-content\">
                                <div class=\"AknFormContainer AknFormContainer--withPadding\">
                                    ";
        // line 127
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "label", [], "any", false, false, false, 127), 'row');
        yield "
                                    ";
        // line 128
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "owner", [], "any", true, true, false, 128)) {
            // line 129
            yield "                                        ";
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "owner", [], "any", false, false, false, 129), 'row', ["attr" => ["class" => "hide"]]);
            yield "
                                    ";
        }
        // line 131
        yield "                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                ";
        // line 137
        $context["groups"] = $this->extensions['Akeneo\UserManagement\Bundle\Twig\AclGroupsExtension']->getAclGroups();
        // line 138
        yield "                ";
        $context["groupNames"] = $this->extensions['Akeneo\UserManagement\Bundle\Twig\AclGroupsExtension']->getAclGroupNames();
        // line 139
        yield "
                ";
        // line 140
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["privilegesConfig"] ?? null));
        foreach ($context['_seq'] as $context["privilegeBlock"] => $context["privilegeConfig"]) {
            // line 141
            yield "                    ";
            if (CoreExtension::getAttribute($this->env, $this->source, ($context["groups"] ?? null), $context["privilegeBlock"], [], "array", true, true, false, 141)) {
                // line 142
                yield "                        <div class=\"tab-pane\" id=\"pim_user-roles-tab-";
                yield Twig\Extension\EscaperExtension::escape($this->env, $context["privilegeBlock"], "html", null, true);
                yield "\">
                        <div class=\"tabs-left\">
                            ";
                // line 144
                if (("groups" == CoreExtension::getAttribute($this->env, $this->source, $context["privilegeConfig"], "view_type", [], "any", false, false, false, 144))) {
                    // line 145
                    yield "                                <ul class=\"AknVerticalNavtab AknVerticalNavtab--condensed\">
                                    <li class=\"AknVerticalNavtab-item AknVerticalNavtab-header\"></li>
                                    ";
                    // line 147
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable((($__internal_compile_0 = ($context["groups"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[$context["privilegeBlock"]] ?? null) : 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["group"]) {
                        // line 148
                        yield "                                        <li class=\"AknVerticalNavtab-item tab";
                        yield (((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 148) == 1)) ? (" active") : (""));
                        yield "\">
                                            <a class=\"AknVerticalNavtab-link\" href=\"#tabs-";
                        // line 149
                        yield Twig\Extension\EscaperExtension::escape($this->env, Twig\Extension\CoreExtension::lowerFilter($this->env, Twig\Extension\CoreExtension::replaceFilter(CoreExtension::getAttribute($this->env, $this->source, $context["group"], "name", [], "any", false, false, false, 149), [" " => "-", "." => "-"])), "html", null, true);
                        yield "\" data-toggle=\"tab\">
                                                <span class=\"AknAcl\">
                                                    <div class=\"select-button AknAcl-icon AknSelectButton AknSelectButton--selected granted\"></div>
                                                    <span>";
                        // line 152
                        yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["group"], "name", [], "any", false, false, false, 152)), "html", null, true);
                        yield "</span>
                                                </span>
                                            </a>
                                        </li>
                                    ";
                        ++$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['group'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 157
                    yield "                                    ";
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::reverseFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, (($__internal_compile_1 = ($context["form"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[$context["privilegeBlock"]] ?? null) : null), "children", [], "any", false, false, false, 157)));
                    foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
                        // line 158
                        yield "                                    ";
                        if (((!CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 158), "value", [], "any", false, false, false, 158), "group", [], "any", false, false, false, 158), (($__internal_compile_2 = ($context["groups"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[$context["privilegeBlock"]] ?? null) : null)) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 158), "value", [], "any", false, false, false, 158), "extensionKey", [], "any", false, false, false, 158) == "entity")) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 158), "value", [], "any", false, false, false, 158), "identity", [], "any", false, false, false, 158), "name", [], "any", false, false, false, 158) != "(default)"))) {
                            // line 159
                            yield "                                        ";
                            $context["groupName"] = ("oro_security.acl_group." . Twig\Extension\CoreExtension::lowerFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 159), "value", [], "any", false, false, false, 159), "identity", [], "any", false, false, false, 159), "name", [], "any", false, false, false, 159)));
                            // line 160
                            yield "                                        <li class=\"AknVerticalNavtab-item tab\">
                                            <a class=\"AknVerticalNavtab-link\" href=\"#tabs-";
                            // line 161
                            yield Twig\Extension\EscaperExtension::escape($this->env, Twig\Extension\CoreExtension::replaceFilter(($context["groupName"] ?? null), [" " => "-", "." => "-"]), "html", null, true);
                            yield "\" data-toggle=\"tab\">
                                                <span class=\"AknAcl\">
                                                    <div class=\"select-button AknAcl-icon AknSelectButton AknSelectButton--selected granted\"></div>
                                                    <span>";
                            // line 164
                            yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["groupName"] ?? null)), "html", null, true);
                            yield "</span>
                                                </span>
                                            </a>
                                        </li>
                                    ";
                        }
                        // line 169
                        yield "                                    ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 170
                    yield "                                    ";
                    if (("action" == $context["privilegeBlock"])) {
                        // line 171
                        yield "                                        <li class=\"AknVerticalNavtab-item tab\">
                                            <a class=\"AknVerticalNavtab-link\" href=\"#tabs-group-system\" data-toggle=\"tab\">
                                                <span class=\"AknAcl\">
                                                    <div class=\"select-button AknAcl-icon AknSelectButton AknSelectButton--selected granted\"></div>
                                                    <span>";
                        // line 175
                        yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("System"), "html", null, true);
                        yield "</span>
                                                </span>
                                            </a>
                                        </li>
                                    ";
                    }
                    // line 180
                    yield "                                </ul>
                                <div class=\"AknTabContainer-content AknTabContainer--withPadding tab-content\">
                                    ";
                    // line 182
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable((($__internal_compile_3 = ($context["groups"] ?? null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3[$context["privilegeBlock"]] ?? null) : null));
                    foreach ($context['_seq'] as $context["_key"] => $context["group"]) {
                        // line 183
                        yield "                                        <div id=\"tabs-";
                        yield Twig\Extension\EscaperExtension::escape($this->env, Twig\Extension\CoreExtension::lowerFilter($this->env, Twig\Extension\CoreExtension::replaceFilter(CoreExtension::getAttribute($this->env, $this->source, $context["group"], "name", [], "any", false, false, false, 183), [" " => "-", "." => "-"])), "html", null, true);
                        yield "\" class=\"tab-pane fullheight\">
                                            <div class=\"AknTabHeader\">
                                                <h3 class=\"AknTabHeader-title AknTabHeader-small\">";
                        // line 185
                        yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["group"], "name", [], "any", false, false, false, 185)), "html", null, true);
                        yield "</h3>
                                            </div>
                                            <div class=\"AknFormContainer AknFormContainer--withPadding acl-group\">
                                                ";
                        // line 188
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::arrayFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, (($__internal_compile_4 = ($context["form"] ?? null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4[$context["privilegeBlock"]] ?? null) : null), "children", [], "any", false, false, false, 188), function ($__child__) use ($context, $macros) { $context["child"] = $__child__; return (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 188), "value", [], "any", false, false, false, 188), "group", [], "any", false, false, false, 188) == CoreExtension::getAttribute($this->env, $this->source, $context["group"], "name", [], "any", false, false, false, 188)); }));
                        foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
                            // line 189
                            yield "                                                    ";
                            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
                            yield "
                                                ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 191
                        yield "                                            </div>
                                        </div>
                                    ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['group'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 194
                    yield "                                    ";
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (($__internal_compile_5 = ($context["form"] ?? null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5[$context["privilegeBlock"]] ?? null) : null), "children", [], "any", false, false, false, 194));
                    foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
                        // line 195
                        yield "                                    ";
                        if (((!CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 195), "value", [], "any", false, false, false, 195), "group", [], "any", false, false, false, 195), ($context["groups"] ?? null)) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 195), "value", [], "any", false, false, false, 195), "extensionKey", [], "any", false, false, false, 195) == "entity")) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 195), "value", [], "any", false, false, false, 195), "identity", [], "any", false, false, false, 195), "name", [], "any", false, false, false, 195) != "(default)"))) {
                            // line 196
                            yield "                                        ";
                            $context["groupName"] = ("oro_security.acl_group." . Twig\Extension\CoreExtension::lowerFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 196), "value", [], "any", false, false, false, 196), "identity", [], "any", false, false, false, 196), "name", [], "any", false, false, false, 196)));
                            // line 197
                            yield "                                        <div id=\"tabs-";
                            yield Twig\Extension\EscaperExtension::escape($this->env, Twig\Extension\CoreExtension::replaceFilter(($context["groupName"] ?? null), [" " => "-", "." => "-"]), "html", null, true);
                            yield "\" class=\"tab-pane fullheight\">
                                            <div class=\"AknTabHeader\">
                                                <h3 class=\"AknTabHeader-title\">";
                            // line 199
                            yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["groupName"] ?? null)), "html", null, true);
                            yield "</h3>
                                            </div>
                                            <div class=\"AknFormContainer AknFormContainer--withPadding acl-group\">
                                                ";
                            // line 202
                            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
                            yield "
                                            </div>
                                        </div>
                                    ";
                        }
                        // line 206
                        yield "                                    ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 207
                    yield "                                    ";
                    if (("action" == $context["privilegeBlock"])) {
                        // line 208
                        yield "                                        <div id=\"tabs-group-system\" class=\"tab-pane fullheight\">
                                            <div class=\"AknTabHeader\">
                                                <h3 class=\"AknTabHeader-title\">";
                        // line 210
                        yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("System"), "html", null, true);
                        yield "</h3>
                                            </div>
                                            <div class=\"AknFormContainer AknFormContainer--withPadding acl-group\">
                                                ";
                        // line 213
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (($__internal_compile_6 = ($context["form"] ?? null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6[$context["privilegeBlock"]] ?? null) : null), "children", [], "any", false, false, false, 213));
                        foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
                            // line 214
                            yield "                                                ";
                            if ((!CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 214), "value", [], "any", false, false, false, 214), "group", [], "any", false, false, false, 214), ($context["groupNames"] ?? null)) && ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 214), "value", [], "any", false, false, false, 214), "extensionKey", [], "any", false, false, false, 214) != "entity") || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 214), "value", [], "any", false, false, false, 214), "identity", [], "any", false, false, false, 214), "name", [], "any", false, false, false, 214) == "(default)")))) {
                                // line 215
                                yield "                                                    ";
                                yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
                                yield "
                                                ";
                            }
                            // line 217
                            yield "                                                ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 218
                        yield "                                            </div>
                                        </div>
                                    ";
                    }
                    // line 221
                    yield "                                </div>
                            </div>
                        ";
                } else {
                    // line 224
                    yield "                            ";
                    yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((($__internal_compile_7 = ($context["form"] ?? null)) && is_array($__internal_compile_7) || $__internal_compile_7 instanceof ArrayAccess ? ($__internal_compile_7[$context["privilegeBlock"]] ?? null) : null), 'widget');
                    yield "
                        ";
                }
                // line 226
                yield "                    </div>
                    ";
            }
            // line 228
            yield "                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['privilegeBlock'], $context['privilegeConfig'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 229
        yield "
                <div class=\"AknTabContainer-content tab-pane\" id=\"pim_user-roles-tab-users\">
                    ";
        // line 231
        yield CoreExtension::callMacro($macros["dataGrid"], "macro_renderGrid", ["pim-role-user-grid", ["role_id" => ($context["entityId"] ?? null)]], 231, $context, $this->getSourceContext());
        yield "
                    ";
        // line 232
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "appendUsers", [], "any", false, false, false, 232), 'widget', ["id" => "roleAppendUsers"]);
        yield "
                    ";
        // line 233
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "removeUsers", [], "any", false, false, false, 233), 'widget', ["id" => "roleRemoveUsers"]);
        yield "
                </div>
        </div>

    ";
        // line 237
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        yield "

    <script nonce=\"";
        // line 239
        yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Akeneo\Platform\Bundle\UIBundle\Twig\ContentSecurityPolicyExtension']->getScriptNonce(), "html", null, true);
        yield "\">
        require(
            [
                'pim/common/breadcrumbs',
                'pim/fetcher-registry',
                'pim/form-builder'
            ],
            function(
                Breadcrumbs,
                FetcherRegistry,
                FormBuilder
            ) {
                \$(function() {
                    var breadcrumbs = new Breadcrumbs({
                        config: {
                            tab: 'pim-menu-system',
                            item: 'pim-menu-system-user-role'
                        }
                    });
                    breadcrumbs.configure().then(function () {
                        breadcrumbs.render();
                        \$('*[data-drop-zone=\"breadcrumbs\"]').append(breadcrumbs.\$el);
                    });

                    FetcherRegistry.initialize().done(function () {
                        FormBuilder.build('pim-menu-user-navigation').then(function (form) {
                            \$('.user-menu').append(form.el);
                            form.render();
                        }.bind(this));
                    });
                });
            }
        );
    </script>
</div>
";
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "@PimUser/Role/update.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  538 => 239,  533 => 237,  526 => 233,  522 => 232,  518 => 231,  514 => 229,  508 => 228,  504 => 226,  498 => 224,  493 => 221,  488 => 218,  482 => 217,  476 => 215,  473 => 214,  469 => 213,  463 => 210,  459 => 208,  456 => 207,  450 => 206,  443 => 202,  437 => 199,  431 => 197,  428 => 196,  425 => 195,  420 => 194,  412 => 191,  403 => 189,  399 => 188,  393 => 185,  387 => 183,  383 => 182,  379 => 180,  371 => 175,  365 => 171,  362 => 170,  356 => 169,  348 => 164,  342 => 161,  339 => 160,  336 => 159,  333 => 158,  328 => 157,  309 => 152,  303 => 149,  298 => 148,  281 => 147,  277 => 145,  275 => 144,  269 => 142,  266 => 141,  262 => 140,  259 => 139,  256 => 138,  254 => 137,  246 => 131,  240 => 129,  238 => 128,  234 => 127,  224 => 120,  218 => 117,  215 => 116,  212 => 115,  206 => 114,  203 => 113,  198 => 112,  196 => 111,  192 => 109,  190 => 107,  189 => 106,  188 => 105,  187 => 103,  184 => 102,  178 => 100,  172 => 96,  170 => 88,  169 => 87,  165 => 86,  160 => 83,  157 => 82,  155 => 81,  152 => 80,  150 => 79,  146 => 77,  144 => 71,  143 => 70,  140 => 69,  136 => 68,  128 => 62,  68 => 6,  64 => 5,  59 => 68,  56 => 67,  54 => 66,  51 => 65,  49 => 5,  46 => 4,  44 => 3,  42 => 2,  40 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@PimUser/Role/update.html.twig", "/var/www/html/pim/vendor/akeneo/pim-community-dev/src/Akeneo/UserManagement/Bundle/Resources/views/Role/update.html.twig");
    }
}
