<?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::macros.html.twig */
class __TwigTemplate_8bf26aea558545baa78499e702ecc10ea6b6fe0a646f5d94f95c2124087b349e extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 24
        echo "
";
        // line 41
        echo "
";
        // line 85
        echo "
";
        // line 103
        echo "
";
        // line 116
        echo "
";
        // line 134
        echo "
";
        // line 163
        echo "
";
        // line 246
        echo "
";
    }

    // line 9
    public function getattribute_data($__value__ = null, $__additionalData__ = null, ...$__varargs__)
    {
        $context = $this->env->mergeGlobals([
            "value" => $__value__,
            "additionalData" => $__additionalData__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 10
            echo "        ";
            if ( !$this->getAttribute(($context["value"] ?? null), "value", [], "any", true, true)) {
                // line 11
                echo "            <div class=\"AknTextField AknTextField--disabled\">";
                echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
                echo "</div>
        ";
            } else {
                // line 13
                echo "            <div class=\"AknTextField AknTextField--disabled\">";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["value"] ?? null), "value", []), "html", null, true);
                echo "</div>
            <div class=\"AknFieldContainer-iconsContainer\">";
                // line 14
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute(($context["value"] ?? null), "hint", [])), "html", null, true);
                echo "</div>
        ";
            }
            // line 16
            echo "        ";
            if (twig_length_filter($this->env, ($context["additionalData"] ?? null))) {
                // line 17
                echo "            ";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["additionalData"] ?? null), "data", []));
                foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
                    // line 18
                    echo "                <div class=\"AknFieldContainer-iconsContainer\">";
                    echo twig_escape_filter($this->env, $this->getAttribute($context["data"], $this->getAttribute(($context["additionalData"] ?? null), "field", [])), "html", null, true);
                    echo "</div>
            ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['data'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 20
                echo "        ";
            }
            // line 21
            echo "    ";
        } 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());
    }

    // line 8
    public function getattibuteRow($__title__ = null, $__value__ = null, $__additionalData__ = null, ...$__varargs__)
    {
        $context = $this->env->mergeGlobals([
            "title" => $__title__,
            "value" => $__value__,
            "additionalData" => $__additionalData__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 9
            echo "    ";
            // line 22
            echo "    ";
            echo $this->getAttribute($this, "renderAttribute", [0 => ($context["title"] ?? null), 1 => $this->getAttribute($this, "attribute_data", [0 => ($context["value"] ?? null), 1 => ($context["additionalData"] ?? null)], "method")], "method");
            echo "
";
        } 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());
    }

    // line 31
    public function getrenderAttribute($__title__ = null, $__data__ = null, ...$__varargs__)
    {
        $context = $this->env->mergeGlobals([
            "title" => $__title__,
            "data" => $__data__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 32
            echo "    <div class=\"AknFieldContainer\">
        <div class=\"AknFieldContainer-header\">
            <label class=\"AknFieldContainer-label control-label\">";
            // line 34
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["title"] ?? null)), "html", null, true);
            echo "</label>
        </div>
        <div class=\"AknFieldContainer-inputContainer\">
            ";
            // line 37
            echo ($context["data"] ?? null);
            echo "
        </div>
    </div>
";
        } 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());
    }

    // line 55
    public function getdeleteButton($__parameters__ = null, ...$__varargs__)
    {
        $context = $this->env->mergeGlobals([
            "parameters" => $__parameters__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 56
            echo "    <a href=\"javascript: void(0);\" class=\"";
            (($this->getAttribute(($context["parameters"] ?? null), "aCss", [], "any", true, true)) ? (print (twig_escape_filter($this->env, $this->getAttribute(($context["parameters"] ?? null), "aCss", []), "html", null, true))) : (print ("")));
            echo "\"
        ";
            // line 57
            if ($this->getAttribute(($context["parameters"] ?? null), "id", [], "any", true, true)) {
                // line 58
                echo "            id=\"";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["parameters"] ?? null), "id", []), "html", null, true);
                echo "\"
        ";
            }
            // line 60
            echo "        ";
            if ($this->getAttribute(($context["parameters"] ?? null), "dataId", [], "any", true, true)) {
                // line 61
                echo "            data-id=\"";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["parameters"] ?? null), "dataId", []), "html", null, true);
                echo "\"
        ";
            }
            // line 63
            echo "   data-message=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute(($context["parameters"] ?? null), "dataMessage", [])), "html", null, true);
            echo "\"
   data-success-message=\"";
            // line 64
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans((($this->getAttribute(($context["parameters"] ?? null), "successMessage", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["parameters"] ?? null), "successMessage", []), "Item deleted")) : ("Item deleted"))), "html", null, true);
            echo "\"
        ";
            // line 65
            if ($this->getAttribute(($context["parameters"] ?? null), "dataUrl", [], "any", true, true)) {
                // line 66
                echo "            data-url=\"";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["parameters"] ?? null), "dataUrl", []), "html", null, true);
                echo "\"
        ";
            }
            // line 68
            echo "        ";
            if ($this->getAttribute(($context["parameters"] ?? null), "dataRedirect", [], "any", true, true)) {
                // line 69
                echo "            data-redirect=\"";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["parameters"] ?? null), "dataRedirect", []), "html", null, true);
                echo "\"
        ";
            }
            // line 71
            echo "        ";
            if ($this->getAttribute(($context["parameters"] ?? null), "data", [], "any", true, true)) {
                // line 72
                echo "            ";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["parameters"] ?? null), "data", []));
                foreach ($context['_seq'] as $context["dataItemName"] => $context["dataItemValue"]) {
                    // line 73
                    echo "                data-";
                    echo twig_escape_filter($this->env, $context["dataItemName"], "html", null, true);
                    echo "=\"";
                    echo $context["dataItemValue"];
                    echo "\"
            ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['dataItemName'], $context['dataItemValue'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 75
                echo "        ";
            }
            // line 76
            echo "        ";
            if ($this->getAttribute(($context["parameters"] ?? null), "title", [], "any", true, true)) {
                // line 77
                echo "            title=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute(($context["parameters"] ?? null), "title", [])), "html", null, true);
                echo "\"
        ";
            }
            // line 79
            echo "        ";
            if ($this->getAttribute(($context["parameters"] ?? null), "subTitle", [], "any", true, true)) {
                // line 80
                echo "            data-subtitle=\"";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["parameters"] ?? null), "subTitle", []), "html", null, true);
                echo "\"
        ";
            }
            // line 82
            echo "        >";
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute(($context["parameters"] ?? null), "label", [])), "html", null, true);
            // line 83
            echo "</a>
";
        } 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());
    }

    // line 95
    public function getbuttonType($__parameters__ = null, ...$__varargs__)
    {
        $context = $this->env->mergeGlobals([
            "parameters" => $__parameters__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 96
            echo "    <button
            type=\"";
            // line 97
            echo twig_escape_filter($this->env, $this->getAttribute(($context["parameters"] ?? null), "type", []), "html", null, true);
            echo "\"
            class=\"AknButton";
            // line 98
            if ($this->getAttribute(($context["parameters"] ?? null), "class", [], "any", true, true)) {
                echo " ";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["parameters"] ?? null), "class", []), "html", null, true);
            }
            if ($this->getAttribute(($context["parameters"] ?? null), "action", [], "any", true, true)) {
                echo " action-button";
            }
            echo "\"
            ";
            // line 99
            if ($this->getAttribute(($context["parameters"] ?? null), "action", [], "any", true, true)) {
                echo "data-action=\"";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["parameters"] ?? null), "action", []), "html", null, true);
                echo "\"";
            }
            echo ">
        ";
            // line 100
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute(($context["parameters"] ?? null), "label", [])), "html", null, true);
            echo "
    </button>
";
        } 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());
    }

    // line 104
    public function getsaveAndStayButton($__acl__ = "", $__label__ = "Save", ...$__varargs__)
    {
        $context = $this->env->mergeGlobals([
            "acl" => $__acl__,
            "label" => $__label__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 105
            echo "    ";
            if ((twig_test_empty(($context["acl"] ?? null)) || $this->env->getExtension('Oro\Bundle\SecurityBundle\Twig\OroSecurityExtension')->checkResourceIsGranted(($context["acl"] ?? null)))) {
                // line 106
                echo "        ";
                echo $this->getAttribute($this, "buttonType", [0 => ["type" => "button", "class" => "AknButton--apply AknButtonList-item", "label" =>                 // line 109
($context["label"] ?? null), "action" => "save_and_stay", "iClass" => "icon-ok"]], "method");
                // line 113
                echo "
    ";
            }
        } 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());
    }

    // line 124
    public function getscrollSubblock($__title__ = null, $__data__ = null, $__isForm__ = null, $__class__ = null, ...$__varargs__)
    {
        $context = $this->env->mergeGlobals([
            "title" => $__title__,
            "data" => $__data__,
            "isForm" => $__isForm__,
            "class" => $__class__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 125
            echo "    <div class=\"tabsection\">
        ";
            // line 126
            if (twig_length_filter($this->env, ($context["title"] ?? null))) {
                echo "<div class=\"tabsection-title\">";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["title"] ?? null)), "html", null, true);
                echo "</div>";
            }
            // line 127
            echo "        <div class=\"tabsection-content ";
            echo twig_escape_filter($this->env, ($context["class"] ?? null), "html", null, true);
            echo "\">
            ";
            // line 128
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["data"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["dataBlock"]) {
                // line 129
                echo "                ";
                echo $context["dataBlock"];
                echo "
            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['dataBlock'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 131
            echo "        </div>
    </div>
";
        } 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());
    }

    // line 149
    public function getscrollBlock($__blockId__ = null, $__title__ = null, $__subblocks__ = null, $__isForm__ = null, $__contentAttributes__ = null, $__useSubBlockDivider__ = null, $__isActive__ = null, ...$__varargs__)
    {
        $context = $this->env->mergeGlobals([
            "blockId" => $__blockId__,
            "title" => $__title__,
            "subblocks" => $__subblocks__,
            "isForm" => $__isForm__,
            "contentAttributes" => $__contentAttributes__,
            "useSubBlockDivider" => $__useSubBlockDivider__,
            "isActive" => $__isActive__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 150
            echo "    <div id=\"";
            echo twig_escape_filter($this->env, ($context["blockId"] ?? null), "html", null, true);
            echo "\" class=\"tab-pane ";
            if (($context["isActive"] ?? null)) {
                echo "active";
            }
            echo "\">
        <div class=\"tabsections\">
            ";
            // line 152
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["subblocks"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["subblock"]) {
                // line 153
                echo "                ";
                echo $this->getAttribute($this, "scrollSubblock", [0 => ((twig_length_filter($this->env, $this->getAttribute(                // line 154
$context["subblock"], "title", []))) ? ($this->getAttribute($context["subblock"], "title", [])) : (null)), 1 => $this->getAttribute(                // line 155
$context["subblock"], "data", []), 2 =>                 // line 156
($context["isForm"] ?? null), 3 => (($this->getAttribute(                // line 157
$context["subblock"], "class", [], "any", true, true)) ? ($this->getAttribute($context["subblock"], "class", [])) : (""))], "method");
                // line 158
                echo "
            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subblock'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 160
            echo "        </div>
    </div>
";
        } 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());
    }

    // line 187
    public function getscrollData($__dataTarget__ = null, $__data__ = null, $__form__ = null, ...$__varargs__)
    {
        $context = $this->env->mergeGlobals([
            "dataTarget" => $__dataTarget__,
            "data" => $__data__,
            "form" => $__form__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 188
            echo "    ";
            if (((isset($context["form"]) || array_key_exists("form", $context)) && ($context["form"] ?? null))) {
                // line 189
                echo "        ";
                $context["isForm"] = true;
                // line 190
                echo "    ";
            } else {
                // line 191
                echo "        ";
                $context["isForm"] = false;
                // line 192
                echo "    ";
            }
            // line 193
            echo "
    ";
            // line 194
            $context["dataBlocks"] = $this->getAttribute(($context["data"] ?? null), "dataBlocks", []);
            // line 195
            echo "
    <div class=\"AknTabContainer\">
        <div id=\"";
            // line 197
            echo twig_escape_filter($this->env, ($context["dataTarget"] ?? null), "html", null, true);
            echo "\" class=\"AknHorizontalNavtab scrollspy-nav\">
            <div class=\"navbar-inner\">
                <div class=\"row-fluid\">
                    <ul class=\"AknHorizontalNavtab-list nav nav-tabs\">
                        ";
            // line 201
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["dataBlocks"] ?? 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["navElement"]) {
                // line 202
                echo "                            <li class=\"AknHorizontalNavtab-item ";
                if ($this->getAttribute($context["loop"], "first", [])) {
                    echo " AknHorizontalNavtab-item--active active ";
                }
                echo "\">
                                <a class=\"AknHorizontalNavtab-link\" href=\"#scroll-";
                // line 203
                echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", []), "html", null, true);
                echo "\" data-toggle=\"tab\">";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute($context["navElement"], "title", [])), "html", null, true);
                echo "</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['navElement'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 206
            echo "                    </ul>
                </div>
            </div>
        </div>

        <div class=\"AknTabContainer-content\">
            <div class=\"row-fluid tab-content ";
            // line 212
            if (($context["isForm"] ?? null)) {
                echo " form-container";
            }
            echo "\">
                ";
            // line 213
            if (($this->getAttribute(($context["data"] ?? null), "formErrors", [], "any", true, true) && twig_length_filter($this->env, $this->getAttribute(($context["data"] ?? null), "formErrors", [])))) {
                // line 214
                echo "                    <div class=\"customer-info-actions container-fluid alert-wrap\">
                        <div class=\"alert alert-error\">
                            <button class=\"close\" type=\"button\" data-dismiss=\"alert\" data-target=\".alert-wrap\">×</button>
                            ";
                // line 217
                echo $this->getAttribute(($context["data"] ?? null), "formErrors", []);
                echo "
                        </div>
                    </div>
                ";
            }
            // line 221
            echo "                ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["dataBlocks"] ?? 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["scrollBlock"]) {
                // line 222
                echo "                    ";
                echo $this->getAttribute($this, "scrollBlock", [0 => ("scroll-" . $this->getAttribute(                // line 223
$context["loop"], "index", [])), 1 => $this->getAttribute(                // line 224
$context["scrollBlock"], "title", []), 2 => $this->getAttribute(                // line 225
$context["scrollBlock"], "subblocks", []), 3 =>                 // line 226
($context["isForm"] ?? null), 4 => (($this->getAttribute(                // line 227
$context["scrollBlock"], "content_attr", [], "any", true, true)) ? ($this->getAttribute($context["scrollBlock"], "content_attr", [])) : (null)), 5 => (($this->getAttribute(                // line 228
$context["scrollBlock"], "useSubBlockDivider", [], "any", true, true)) ? ($this->getAttribute($context["scrollBlock"], "useSubBlockDivider", [])) : (true)), 6 => $this->getAttribute(                // line 229
$context["loop"], "first", [])], "method");
                // line 230
                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['_key'], $context['scrollBlock'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 232
            echo "                ";
            if (($this->getAttribute(($context["data"] ?? null), "hiddenData", [], "any", true, true) || ($context["isForm"] ?? null))) {
                // line 233
                echo "                    <div class=\"hide\">
                        ";
                // line 234
                if ($this->getAttribute(($context["data"] ?? null), "hiddenData", [], "any", true, true)) {
                    // line 235
                    echo "                            ";
                    echo $this->getAttribute(($context["data"] ?? null), "hiddenData", []);
                    echo "
                        ";
                }
                // line 237
                echo "                        ";
                if (($context["isForm"] ?? null)) {
                    // line 238
                    echo "                            ";
                    echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest');
                    echo "
                        ";
                }
                // line 240
                echo "                    </div>
                ";
            }
            // line 242
            echo "            </div>
        </div>
    </div>
";
        } 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());
    }

    // line 253
    public function getattributes($__attr__ = null, $__excludes__ = null, ...$__varargs__)
    {
        $context = $this->env->mergeGlobals([
            "attr" => $__attr__,
            "excludes" => $__excludes__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 254
            echo "    ";
            ob_start(function () { return ''; });
            // line 255
            echo "        ";
            $context["attr"] = (((isset($context["attr"]) || array_key_exists("attr", $context))) ? (_twig_default_filter(($context["attr"] ?? null), [])) : ([]));
            // line 256
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
            foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
                if (( !(isset($context["excludes"]) || array_key_exists("excludes", $context)) ||  !$this->getAttribute(($context["excludes"] ?? null), $context["attrname"], [], "array", true, true))) {
                    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;
            // line 257
            echo "    ";
            echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
        } 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::macros.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  777 => 257,  755 => 256,  752 => 255,  749 => 254,  736 => 253,  718 => 242,  714 => 240,  708 => 238,  705 => 237,  699 => 235,  697 => 234,  694 => 233,  691 => 232,  676 => 230,  674 => 229,  673 => 228,  672 => 227,  671 => 226,  670 => 225,  669 => 224,  668 => 223,  666 => 222,  648 => 221,  641 => 217,  636 => 214,  634 => 213,  628 => 212,  620 => 206,  601 => 203,  594 => 202,  577 => 201,  570 => 197,  566 => 195,  564 => 194,  561 => 193,  558 => 192,  555 => 191,  552 => 190,  549 => 189,  546 => 188,  532 => 187,  515 => 160,  508 => 158,  506 => 157,  505 => 156,  504 => 155,  503 => 154,  501 => 153,  497 => 152,  487 => 150,  469 => 149,  452 => 131,  443 => 129,  439 => 128,  434 => 127,  428 => 126,  425 => 125,  410 => 124,  393 => 113,  391 => 109,  389 => 106,  386 => 105,  373 => 104,  355 => 100,  347 => 99,  337 => 98,  333 => 97,  330 => 96,  318 => 95,  302 => 83,  299 => 82,  293 => 80,  290 => 79,  284 => 77,  281 => 76,  278 => 75,  267 => 73,  262 => 72,  259 => 71,  253 => 69,  250 => 68,  244 => 66,  242 => 65,  238 => 64,  233 => 63,  227 => 61,  224 => 60,  218 => 58,  216 => 57,  211 => 56,  199 => 55,  180 => 37,  174 => 34,  170 => 32,  157 => 31,  139 => 22,  137 => 9,  123 => 8,  108 => 21,  105 => 20,  96 => 18,  91 => 17,  88 => 16,  83 => 14,  78 => 13,  72 => 11,  69 => 10,  56 => 9,  51 => 246,  48 => 163,  45 => 134,  42 => 116,  39 => 103,  36 => 85,  33 => 41,  30 => 24,);
    }

    /** @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::macros.html.twig", "/var/www/html/vendor/akeneo/pim-community-dev/src/Akeneo/Platform/Bundle/UIBundle/Resources/views/macros.html.twig");
    }
}
