var/cache/dev/twig/db/dbf1c41de8f622f3b2c3e540cc672c0f.php line 55

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @WebProfiler/Collector/form.html.twig */
  14. class __TwigTemplate_ec5a943ce58c12c73c3fc9a6134ca1b4 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'toolbar' => [$this'block_toolbar'],
  24.             'menu' => [$this'block_menu'],
  25.             'head' => [$this'block_head'],
  26.             'panel' => [$this'block_panel'],
  27.         ];
  28.         $macros["_self"] = $this->macros["_self"] = $this;
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "@WebProfiler/Profiler/layout.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Collector/form.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Collector/form.html.twig"));
  42.         // line 3
  43.         $macros["__internal_parse_1"] = $this->macros["__internal_parse_1"] = $this;
  44.         // line 1
  45.         $this->parent $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig""@WebProfiler/Collector/form.html.twig"1);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 5
  53.     public function block_toolbar($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  60.         // line 6
  61.         echo "    ";
  62.         if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'6$this->source); })()), "data", [], "any"falsefalsefalse6), "nb_errors", [], "any"falsefalsefalse6) > 0) || twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'6$this->source); })()), "data", [], "any"falsefalsefalse6), "forms", [], "any"falsefalsefalse6)))) {
  63.             // line 7
  64.             echo "        ";
  65.             $context["status_color"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'7$this->source); })()), "data", [], "any"falsefalsefalse7), "nb_errors", [], "any"falsefalsefalse7)) ? ("red") : (""));
  66.             // line 8
  67.             echo "        ";
  68.             ob_start();
  69.             // line 9
  70.             echo "            ";
  71.             echo twig_source($this->env"@WebProfiler/Icon/form.svg");
  72.             echo "
  73.             <span class=\"sf-toolbar-value\">
  74.                 ";
  75.             // line 11
  76.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'11$this->source); })()), "data", [], "any"falsefalsefalse11), "nb_errors", [], "any"falsefalsefalse11)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'11$this->source); })()), "data", [], "any"falsefalsefalse11), "nb_errors", [], "any"falsefalsefalse11)) : (twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'11$this->source); })()), "data", [], "any"falsefalsefalse11), "forms", [], "any"falsefalsefalse11)))), "html"nulltrue);
  77.             echo "
  78.             </span>
  79.         ";
  80.             $context["icon"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  81.             // line 14
  82.             echo "
  83.         ";
  84.             // line 15
  85.             ob_start();
  86.             // line 16
  87.             echo "            <div class=\"sf-toolbar-info-piece\">
  88.                 <b>Number of forms</b>
  89.                 <span class=\"sf-toolbar-status\">";
  90.             // line 18
  91.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'18$this->source); })()), "data", [], "any"falsefalsefalse18), "forms", [], "any"falsefalsefalse18)), "html"nulltrue);
  92.             echo "</span>
  93.             </div>
  94.             <div class=\"sf-toolbar-info-piece\">
  95.                 <b>Number of errors</b>
  96.                 <span class=\"sf-toolbar-status sf-toolbar-status-";
  97.             // line 22
  98.             echo (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'22$this->source); })()), "data", [], "any"falsefalsefalse22), "nb_errors", [], "any"falsefalsefalse22) > 0)) ? ("red") : (""));
  99.             echo "\">";
  100.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'22$this->source); })()), "data", [], "any"falsefalsefalse22), "nb_errors", [], "any"falsefalsefalse22), "html"nulltrue);
  101.             echo "</span>
  102.             </div>
  103.         ";
  104.             $context["text"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  105.             // line 25
  106.             echo "
  107.         ";
  108.             // line 26
  109.             echo twig_include($this->env$context"@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => (isset($context["profiler_url"]) || array_key_exists("profiler_url"$context) ? $context["profiler_url"] : (function () { throw new RuntimeError('Variable "profiler_url" does not exist.'26$this->source); })()), "status" => (isset($context["status_color"]) || array_key_exists("status_color"$context) ? $context["status_color"] : (function () { throw new RuntimeError('Variable "status_color" does not exist.'26$this->source); })())]);
  110.             echo "
  111.     ";
  112.         }
  113.         
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  115.         
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117.     }
  118.     // line 30
  119.     public function block_menu($context, array $blocks = [])
  120.     {
  121.         $macros $this->macros;
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  126.         // line 31
  127.         echo "    <span class=\"label label-status-";
  128.         echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'31$this->source); })()), "data", [], "any"falsefalsefalse31), "nb_errors", [], "any"falsefalsefalse31)) ? ("error") : (""));
  129.         echo " ";
  130.         echo ((twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'31$this->source); })()), "data", [], "any"falsefalsefalse31), "forms", [], "any"falsefalsefalse31))) ? ("disabled") : (""));
  131.         echo "\">
  132.         <span class=\"icon\">";
  133.         // line 32
  134.         echo twig_source($this->env"@WebProfiler/Icon/form.svg");
  135.         echo "</span>
  136.         <strong>Forms</strong>
  137.         ";
  138.         // line 34
  139.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'34$this->source); })()), "data", [], "any"falsefalsefalse34), "nb_errors", [], "any"falsefalsefalse34) > 0)) {
  140.             // line 35
  141.             echo "            <span class=\"count\">
  142.                 <span>";
  143.             // line 36
  144.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'36$this->source); })()), "data", [], "any"falsefalsefalse36), "nb_errors", [], "any"falsefalsefalse36), "html"nulltrue);
  145.             echo "</span>
  146.             </span>
  147.         ";
  148.         }
  149.         // line 39
  150.         echo "    </span>
  151. ";
  152.         
  153.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  154.         
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  156.     }
  157.     // line 42
  158.     public function block_head($context, array $blocks = [])
  159.     {
  160.         $macros $this->macros;
  161.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  163.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  165.         // line 43
  166.         echo "    ";
  167.         $this->displayParentBlock("head"$context$blocks);
  168.         echo "
  169.     <style>
  170.         #tree-menu {
  171.             float: left;
  172.             padding-right: 10px;
  173.             width: 220px;
  174.         }
  175.         #tree-menu ul {
  176.             list-style: none;
  177.             margin: 0;
  178.             padding-left: 0;
  179.         }
  180.         #tree-menu li {
  181.             margin: 0;
  182.             padding: 0;
  183.             width: 100%;
  184.         }
  185.         #tree-menu .empty {
  186.             border: 0;
  187.             box-shadow: none !important;
  188.             padding: 0;
  189.         }
  190.         #tree-details-container {
  191.             border-left: 1px solid var(--table-border-color);
  192.             margin-left: 230px;
  193.             padding-left: 20px;
  194.         }
  195.         .tree-details {
  196.             padding-bottom: 40px;
  197.         }
  198.         .tree-details h3 {
  199.             font-size: 18px;
  200.             position: relative;
  201.         }
  202.         .toggle-icon {
  203.             display: inline-block;
  204.             background: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' data-icon-name='icon-tabler-square-plus' width='24' height='24' viewBox='0 0 24 24' stroke-width='2px' stroke='currentColor' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'%3E%3C/path%3E%3Crect x='4' y='4' width='16' height='16' rx='2'%3E%3C/rect%3E%3Cline x1='9' y1='12' x2='15' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='9' x2='12' y2='15'%3E%3C/line%3E%3C/svg%3E\") no-repeat;
  205.             background-size: 18px 18px;
  206.         }
  207.         .closed .toggle-icon, .closed.toggle-icon {
  208.             background-position: bottom left;
  209.         }
  210.         .toggle-icon.empty {
  211.             background-image: none;
  212.         }
  213.         .tree .tree-inner {
  214.             cursor: pointer;
  215.             padding: 5px 7px 5px 22px;
  216.             position: relative;
  217.             overflow: hidden;
  218.             text-overflow: ellipsis;
  219.         }
  220.         .tree .toggle-button {
  221.             width: 16px;
  222.             height: 16px;
  223.             margin-left: -18px;
  224.         }
  225.         .tree .toggle-icon {
  226.             width: 18px;
  227.             height: 18px;
  228.             vertical-align: bottom;
  229.         }
  230.         .tree .toggle-icon.empty {
  231.             width: 5px;
  232.             height: 5px;
  233.             position: absolute;
  234.             top: 50%;
  235.             margin-top: -2px;
  236.             margin-left: -13px;
  237.         }
  238.         .tree .tree-inner {
  239.             border-radius: 4px;
  240.         }
  241.         .tree ul ul .tree-inner {
  242.             padding-left: 32px;
  243.         }
  244.         .tree ul ul ul .tree-inner {
  245.             padding-left: 48px;
  246.         }
  247.         .tree ul ul ul ul .tree-inner {
  248.             padding-left: 64px;
  249.         }
  250.         .tree ul ul ul ul ul .tree-inner {
  251.             padding-left: 72px;
  252.         }
  253.         .tree .tree-inner:hover {
  254.             background: var(--gray-200);
  255.         }
  256.         .tree .tree-inner.active, .tree .tree-inner.active:hover {
  257.             background: var(--tree-active-background);
  258.             font-weight: bold;
  259.         }
  260.         .tree-details .toggle-icon {
  261.             width: 16px;
  262.             height: 16px;
  263.             /* vertically center the button */
  264.             position: absolute;
  265.             top: 50%;
  266.             margin-top: -9px;
  267.             margin-left: 6px;
  268.         }
  269.         .badge-error {
  270.             float: right;
  271.             background: var(--background-error);
  272.             color: #FFF;
  273.             padding: 1px 4px;
  274.             font-size: 10px;
  275.             font-weight: bold;
  276.             vertical-align: middle;
  277.         }
  278.         .has-error {
  279.             color: var(--color-error);
  280.         }
  281.         .errors h3 {
  282.             color: var(--color-error);
  283.         }
  284.         .errors th {
  285.             background: var(--background-error);
  286.             color: #FFF;
  287.         }
  288.         .errors .toggle-icon {
  289.             background-color: var(--background-error);
  290.         }
  291.         h3 a, h3 a:hover, h3 a:focus {
  292.             color: inherit;
  293.             text-decoration: inherit;
  294.         }
  295.     </style>
  296. ";
  297.         
  298.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  299.         
  300.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  301.     }
  302.     // line 176
  303.     public function block_panel($context, array $blocks = [])
  304.     {
  305.         $macros $this->macros;
  306.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  307.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  308.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  309.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  310.         // line 177
  311.         echo "    <h2>Forms</h2>
  312.     ";
  313.         // line 179
  314.         if (twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'179$this->source); })()), "data", [], "any"falsefalsefalse179), "forms", [], "any"falsefalsefalse179))) {
  315.             // line 180
  316.             echo "        <div id=\"tree-menu\" class=\"tree\">
  317.             <ul>
  318.             ";
  319.             // line 182
  320.             $context['_parent'] = $context;
  321.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'182$this->source); })()), "data", [], "any"falsefalsefalse182), "forms", [], "any"falsefalsefalse182));
  322.             foreach ($context['_seq'] as $context["formName"] => $context["formData"]) {
  323.                 // line 183
  324.                 echo "                ";
  325.                 echo twig_call_macro($macros["__internal_parse_1"], "macro_form_tree_entry", [$context["formName"], $context["formData"], true], 183$context$this->getSourceContext());
  326.                 echo "
  327.             ";
  328.             }
  329.             $_parent $context['_parent'];
  330.             unset($context['_seq'], $context['_iterated'], $context['formName'], $context['formData'], $context['_parent'], $context['loop']);
  331.             $context array_intersect_key($context$_parent) + $_parent;
  332.             // line 185
  333.             echo "            </ul>
  334.         </div>
  335.         <div id=\"tree-details-container\">
  336.             ";
  337.             // line 189
  338.             $context['_parent'] = $context;
  339.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'189$this->source); })()), "data", [], "any"falsefalsefalse189), "forms", [], "any"falsefalsefalse189));
  340.             $context['loop'] = [
  341.               'parent' => $context['_parent'],
  342.               'index0' => 0,
  343.               'index'  => 1,
  344.               'first'  => true,
  345.             ];
  346.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  347.                 $length count($context['_seq']);
  348.                 $context['loop']['revindex0'] = $length 1;
  349.                 $context['loop']['revindex'] = $length;
  350.                 $context['loop']['length'] = $length;
  351.                 $context['loop']['last'] = === $length;
  352.             }
  353.             foreach ($context['_seq'] as $context["formName"] => $context["formData"]) {
  354.                 // line 190
  355.                 echo "                ";
  356.                 echo twig_call_macro($macros["__internal_parse_1"], "macro_form_tree_details", [$context["formName"], $context["formData"], twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'190$this->source); })()), "data", [], "any"falsefalsefalse190), "forms_by_hash", [], "any"falsefalsefalse190), twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse190)], 190$context$this->getSourceContext());
  357.                 echo "
  358.             ";
  359.                 ++$context['loop']['index0'];
  360.                 ++$context['loop']['index'];
  361.                 $context['loop']['first'] = false;
  362.                 if (isset($context['loop']['length'])) {
  363.                     --$context['loop']['revindex0'];
  364.                     --$context['loop']['revindex'];
  365.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  366.                 }
  367.             }
  368.             $_parent $context['_parent'];
  369.             unset($context['_seq'], $context['_iterated'], $context['formName'], $context['formData'], $context['_parent'], $context['loop']);
  370.             $context array_intersect_key($context$_parent) + $_parent;
  371.             // line 192
  372.             echo "        </div>
  373.     ";
  374.         } else {
  375.             // line 194
  376.             echo "        <div class=\"empty empty-panel\">
  377.             <p>No forms were submitted for this request.</p>
  378.         </div>
  379.     ";
  380.         }
  381.         // line 198
  382.         echo "
  383.     <script>
  384.     function Toggler(storage) {
  385.         \"use strict\";
  386.         var STORAGE_KEY = 'sf_toggle_data',
  387.             states = {},
  388.             isCollapsed = function (button) {
  389.                 return Sfjs.hasClass(button, 'closed');
  390.             },
  391.             isExpanded = function (button) {
  392.                 return !isCollapsed(button);
  393.             },
  394.             expand = function (button) {
  395.                 var targetId = button.dataset.toggleTargetId,
  396.                     target = document.getElementById(targetId);
  397.                 if (!target) {
  398.                     throw \"Toggle target \" + targetId + \" does not exist\";
  399.                 }
  400.                 if (isCollapsed(button)) {
  401.                     Sfjs.removeClass(button, 'closed');
  402.                     Sfjs.removeClass(target, 'hidden');
  403.                     states[targetId] = 1;
  404.                     storage.setItem(STORAGE_KEY, states);
  405.                 }
  406.             },
  407.             collapse = function (button) {
  408.                 var targetId = button.dataset.toggleTargetId,
  409.                     target = document.getElementById(targetId);
  410.                 if (!target) {
  411.                     throw \"Toggle target \" + targetId + \" does not exist\";
  412.                 }
  413.                 if (isExpanded(button)) {
  414.                     Sfjs.addClass(button, 'closed');
  415.                     Sfjs.addClass(target, 'hidden');
  416.                     states[targetId] = 0;
  417.                     storage.setItem(STORAGE_KEY, states);
  418.                 }
  419.             },
  420.             toggle = function (button) {
  421.                 if (Sfjs.hasClass(button, 'closed')) {
  422.                     expand(button);
  423.                 } else {
  424.                     collapse(button);
  425.                 }
  426.             },
  427.             initButtons = function (buttons) {
  428.                 states = storage.getItem(STORAGE_KEY, {});
  429.                 // must be an object, not an array or anything else
  430.                 // `typeof` returns \"object\" also for arrays, so the following
  431.                 // check must be done
  432.                 // see http://stackoverflow.com/questions/4775722/check-if-object-is-array
  433.                 if ('[object Object]' !== Object.prototype.toString.call(states)) {
  434.                     states = {};
  435.                 }
  436.                 for (var i = 0, l = buttons.length; i < l; ++i) {
  437.                     var targetId = buttons[i].dataset.toggleTargetId,
  438.                         target = document.getElementById(targetId);
  439.                     if (!target) {
  440.                         throw \"Toggle target \" + targetId + \" does not exist\";
  441.                     }
  442.                     // correct the initial state of the button
  443.                     if (Sfjs.hasClass(target, 'hidden')) {
  444.                         Sfjs.addClass(buttons[i], 'closed');
  445.                     }
  446.                     // attach listener for expanding/collapsing the target
  447.                     clickHandler(buttons[i], toggle);
  448.                     if (states.hasOwnProperty(targetId)) {
  449.                         // open or collapse based on stored data
  450.                         if (0 === states[targetId]) {
  451.                             collapse(buttons[i]);
  452.                         } else {
  453.                             expand(buttons[i]);
  454.                         }
  455.                     }
  456.                 }
  457.             };
  458.         return {
  459.             initButtons: initButtons,
  460.             toggle: toggle,
  461.             isExpanded: isExpanded,
  462.             isCollapsed: isCollapsed,
  463.             expand: expand,
  464.             collapse: collapse
  465.         };
  466.     }
  467.     function JsonStorage(storage) {
  468.         var setItem = function (key, data) {
  469.                 storage.setItem(key, JSON.stringify(data));
  470.             },
  471.             getItem = function (key, defaultValue) {
  472.                 var data = storage.getItem(key);
  473.                 if (null !== data) {
  474.                     try {
  475.                         return JSON.parse(data);
  476.                     } catch(e) {
  477.                     }
  478.                 }
  479.                 return defaultValue;
  480.             };
  481.         return {
  482.             setItem: setItem,
  483.             getItem: getItem
  484.         };
  485.     }
  486.     function TabView() {
  487.         \"use strict\";
  488.         var activeTab = null,
  489.             activeTarget = null,
  490.             select = function (tab) {
  491.                 var targetId = tab.dataset.tabTargetId,
  492.                     target = document.getElementById(targetId);
  493.                 if (!target) {
  494.                     throw \"Tab target \" + targetId + \" does not exist\";
  495.                 }
  496.                 if (activeTab) {
  497.                     Sfjs.removeClass(activeTab, 'active');
  498.                 }
  499.                 if (activeTarget) {
  500.                     Sfjs.addClass(activeTarget, 'hidden');
  501.                 }
  502.                 Sfjs.addClass(tab, 'active');
  503.                 Sfjs.removeClass(target, 'hidden');
  504.                 activeTab = tab;
  505.                 activeTarget = target;
  506.             },
  507.             initTabs = function (tabs) {
  508.                 for (var i = 0, l = tabs.length; i < l; ++i) {
  509.                     var targetId = tabs[i].dataset.tabTargetId,
  510.                         target = document.getElementById(targetId);
  511.                     if (!target) {
  512.                         throw \"Tab target \" + targetId + \" does not exist\";
  513.                     }
  514.                     clickHandler(tabs[i], select);
  515.                     Sfjs.addClass(target, 'hidden');
  516.                 }
  517.                 if (tabs.length > 0) {
  518.                     select(tabs[0]);
  519.                 }
  520.             };
  521.         return {
  522.             initTabs: initTabs,
  523.             select: select
  524.         };
  525.     }
  526.     var tabTarget = new TabView(),
  527.         toggler = new Toggler(new JsonStorage(sessionStorage)),
  528.         clickHandler = function (element, callback) {
  529.             Sfjs.addEventListener(element, 'click', function (e) {
  530.                 if (!e) {
  531.                     e = window.event;
  532.                 }
  533.                 callback(this);
  534.                 if (e.preventDefault) {
  535.                     e.preventDefault();
  536.                 } else {
  537.                     e.returnValue = false;
  538.                 }
  539.                 e.stopPropagation();
  540.                 return false;
  541.             });
  542.         };
  543.     tabTarget.initTabs(document.querySelectorAll('.tree .tree-inner'));
  544.     toggler.initButtons(document.querySelectorAll('.toggle-button'));
  545.     </script>
  546. ";
  547.         
  548.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  549.         
  550.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  551.     }
  552.     // line 418
  553.     public function macro_form_tree_entry($__name__ null$__data__ null$__is_root__ null, ...$__varargs__)
  554.     {
  555.         $macros $this->macros;
  556.         $context $this->env->mergeGlobals([
  557.             "name" => $__name__,
  558.             "data" => $__data__,
  559.             "is_root" => $__is_root__,
  560.             "varargs" => $__varargs__,
  561.         ]);
  562.         $blocks = [];
  563.         ob_start();
  564.         try {
  565.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  566.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""form_tree_entry"));
  567.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  568.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""form_tree_entry"));
  569.             // line 419
  570.             echo "    ";
  571.             $macros["tree"] = $this;
  572.             // line 420
  573.             echo "    ";
  574.             $context["has_error"] = (twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "errors", [], "any"truetruefalse420) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'420$this->source); })()), "errors", [], "any"falsefalsefalse420)) > 0));
  575.             // line 421
  576.             echo "    <li>
  577.         <div class=\"tree-inner\" data-tab-target-id=\"";
  578.             // line 422
  579.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'422$this->source); })()), "id", [], "any"falsefalsefalse422), "html"nulltrue);
  580.             echo "-details\" title=\"";
  581.             echo twig_escape_filter($this->env, ((array_key_exists("name"$context)) ? (_twig_default_filter((isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'422$this->source); })()), "(no name)")) : ("(no name)")), "html"nulltrue);
  582.             echo "\">
  583.             ";
  584.             // line 423
  585.             if ((isset($context["has_error"]) || array_key_exists("has_error"$context) ? $context["has_error"] : (function () { throw new RuntimeError('Variable "has_error" does not exist.'423$this->source); })())) {
  586.                 // line 424
  587.                 echo "                <div class=\"badge-error\">";
  588.                 echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'424$this->source); })()), "errors", [], "any"falsefalsefalse424)), "html"nulltrue);
  589.                 echo "</div>
  590.             ";
  591.             }
  592.             // line 426
  593.             echo "
  594.             ";
  595.             // line 427
  596.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'427$this->source); })()), "children", [], "any"falsefalsefalse427))) {
  597.                 // line 428
  598.                 echo "                <a class=\"toggle-button\" data-toggle-target-id=\"";
  599.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'428$this->source); })()), "id", [], "any"falsefalsefalse428), "html"nulltrue);
  600.                 echo "-children\" href=\"#\"><span class=\"toggle-icon\"></span></a>
  601.             ";
  602.             } else {
  603.                 // line 430
  604.                 echo "                <div class=\"toggle-icon empty\"></div>
  605.             ";
  606.             }
  607.             // line 432
  608.             echo "
  609.             <span ";
  610.             // line 433
  611.             if (((isset($context["has_error"]) || array_key_exists("has_error"$context) ? $context["has_error"] : (function () { throw new RuntimeError('Variable "has_error" does not exist.'433$this->source); })()) || ((twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "has_children_error", [], "any"truetruefalse433)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "has_children_error", [], "any"falsefalsefalse433), false)) : (false)))) {
  612.                 echo "class=\"has-error\"";
  613.             }
  614.             echo ">
  615.                 ";
  616.             // line 434
  617.             echo twig_escape_filter($this->env, ((array_key_exists("name"$context)) ? (_twig_default_filter((isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'434$this->source); })()), "(no name)")) : ("(no name)")), "html"nulltrue);
  618.             echo "
  619.             </span>
  620.         </div>
  621.         ";
  622.             // line 438
  623.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'438$this->source); })()), "children", [], "any"falsefalsefalse438))) {
  624.                 // line 439
  625.                 echo "            <ul id=\"";
  626.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'439$this->source); })()), "id", [], "any"falsefalsefalse439), "html"nulltrue);
  627.                 echo "-children\" ";
  628.                 if (( !(isset($context["is_root"]) || array_key_exists("is_root"$context) ? $context["is_root"] : (function () { throw new RuntimeError('Variable "is_root" does not exist.'439$this->source); })()) &&  !((twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "has_children_error", [], "any"truetruefalse439)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "has_children_error", [], "any"falsefalsefalse439), false)) : (false)))) {
  629.                     echo "class=\"hidden\"";
  630.                 }
  631.                 echo ">
  632.                 ";
  633.                 // line 440
  634.                 $context['_parent'] = $context;
  635.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'440$this->source); })()), "children", [], "any"falsefalsefalse440));
  636.                 foreach ($context['_seq'] as $context["childName"] => $context["childData"]) {
  637.                     // line 441
  638.                     echo "                    ";
  639.                     echo twig_call_macro($macros["tree"], "macro_form_tree_entry", [$context["childName"], $context["childData"], false], 441$context$this->getSourceContext());
  640.                     echo "
  641.                 ";
  642.                 }
  643.                 $_parent $context['_parent'];
  644.                 unset($context['_seq'], $context['_iterated'], $context['childName'], $context['childData'], $context['_parent'], $context['loop']);
  645.                 $context array_intersect_key($context$_parent) + $_parent;
  646.                 // line 443
  647.                 echo "            </ul>
  648.         ";
  649.             }
  650.             // line 445
  651.             echo "    </li>
  652. ";
  653.             
  654.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  655.             
  656.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  657.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  658.         } finally {
  659.             ob_end_clean();
  660.         }
  661.     }
  662.     // line 448
  663.     public function macro_form_tree_details($__name__ null$__data__ null$__forms_by_hash__ null$__show__ null, ...$__varargs__)
  664.     {
  665.         $macros $this->macros;
  666.         $context $this->env->mergeGlobals([
  667.             "name" => $__name__,
  668.             "data" => $__data__,
  669.             "forms_by_hash" => $__forms_by_hash__,
  670.             "show" => $__show__,
  671.             "varargs" => $__varargs__,
  672.         ]);
  673.         $blocks = [];
  674.         ob_start();
  675.         try {
  676.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  677.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""form_tree_details"));
  678.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  679.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""form_tree_details"));
  680.             // line 449
  681.             echo "    ";
  682.             $macros["tree"] = $this;
  683.             // line 450
  684.             echo "    <div class=\"tree-details";
  685.             if ( !((array_key_exists("show"$context)) ? (_twig_default_filter((isset($context["show"]) || array_key_exists("show"$context) ? $context["show"] : (function () { throw new RuntimeError('Variable "show" does not exist.'450$this->source); })()), false)) : (false))) {
  686.                 echo " hidden";
  687.             }
  688.             echo "\" ";
  689.             if (twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "id", [], "any"truetruefalse450)) {
  690.                 echo "id=\"";
  691.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'450$this->source); })()), "id", [], "any"falsefalsefalse450), "html"nulltrue);
  692.                 echo "-details\"";
  693.             }
  694.             echo ">
  695.         <h2>";
  696.             // line 451
  697.             echo twig_escape_filter($this->env, ((array_key_exists("name"$context)) ? (_twig_default_filter((isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'451$this->source); })()), "(no name)")) : ("(no name)")), "html"nulltrue);
  698.             echo "</h2>
  699.         ";
  700.             // line 452
  701.             if (twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "type_class", [], "any"truetruefalse452)) {
  702.                 // line 453
  703.                 echo "            <div class=\"form-type-class\">
  704.                 <span class=\"form-type-class-label\">Form type:</span>
  705.                 ";
  706.                 // line 455
  707.                 echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'455$this->source); })()), "type_class", [], "any"falsefalsefalse455));
  708.                 echo "
  709.             </div>
  710.         ";
  711.             }
  712.             // line 458
  713.             echo "
  714.         ";
  715.             // line 459
  716.             $context["form_has_errors"] =  !twig_test_empty((((twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "errors", [], "any"truetruefalse459) &&  !(null === twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "errors", [], "any"falsefalsefalse459)))) ? (twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "errors", [], "any"falsefalsefalse459)) : ([])));
  717.             // line 460
  718.             echo "        <div class=\"sf-tabs\">
  719.             <div class=\"tab ";
  720.             // line 461
  721.             echo (((isset($context["form_has_errors"]) || array_key_exists("form_has_errors"$context) ? $context["form_has_errors"] : (function () { throw new RuntimeError('Variable "form_has_errors" does not exist.'461$this->source); })())) ? ("active") : ("disabled"));
  722.             echo "\">
  723.                 <h3 class=\"tab-title\">Errors</h3>
  724.                 <div class=\"tab-content\">
  725.                     ";
  726.             // line 465
  727.             echo twig_call_macro($macros["_self"], "macro_render_form_errors", [(isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'465$this->source); })())], 465$context$this->getSourceContext());
  728.             echo "
  729.                 </div>
  730.             </div>
  731.             <div class=\"tab ";
  732.             // line 469
  733.             echo (( !(isset($context["form_has_errors"]) || array_key_exists("form_has_errors"$context) ? $context["form_has_errors"] : (function () { throw new RuntimeError('Variable "form_has_errors" does not exist.'469$this->source); })())) ? ("active") : (""));
  734.             echo "\">
  735.                 <h3 class=\"tab-title\">Default Data</h3>
  736.                 <div class=\"tab-content\">
  737.                     ";
  738.             // line 473
  739.             echo twig_call_macro($macros["_self"], "macro_render_form_default_data", [(isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'473$this->source); })())], 473$context$this->getSourceContext());
  740.             echo "
  741.                 </div>
  742.             </div>
  743.             <div class=\"tab ";
  744.             // line 477
  745.             echo ((twig_test_empty((((twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "submitted_data", [], "any"truetruefalse477) &&  !(null === twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "submitted_data", [], "any"falsefalsefalse477)))) ? (twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "submitted_data", [], "any"falsefalsefalse477)) : ([])))) ? ("disabled") : (""));
  746.             echo "\">
  747.                 <h3 class=\"tab-title\">Submitted Data</h3>
  748.                 <div class=\"tab-content\">
  749.                     ";
  750.             // line 481
  751.             echo twig_call_macro($macros["_self"], "macro_render_form_submitted_data", [(isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'481$this->source); })())], 481$context$this->getSourceContext());
  752.             echo "
  753.                 </div>
  754.             </div>
  755.             <div class=\"tab ";
  756.             // line 485
  757.             echo ((twig_test_empty((((twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "passed_options", [], "any"truetruefalse485) &&  !(null === twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "passed_options", [], "any"falsefalsefalse485)))) ? (twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "passed_options", [], "any"falsefalsefalse485)) : ([])))) ? ("disabled") : (""));
  758.             echo "\">
  759.                 <h3 class=\"tab-title\">Passed Options</h3>
  760.                 <div class=\"tab-content\">
  761.                     ";
  762.             // line 489
  763.             echo twig_call_macro($macros["_self"], "macro_render_form_passed_options", [(isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'489$this->source); })())], 489$context$this->getSourceContext());
  764.             echo "
  765.                 </div>
  766.             </div>
  767.             <div class=\"tab ";
  768.             // line 493
  769.             echo ((twig_test_empty((((twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "resolved_options", [], "any"truetruefalse493) &&  !(null === twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "resolved_options", [], "any"falsefalsefalse493)))) ? (twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "resolved_options", [], "any"falsefalsefalse493)) : ([])))) ? ("disabled") : (""));
  770.             echo "\">
  771.                 <h3 class=\"tab-title\">Resolved Options</h3>
  772.                 <div class=\"tab-content\">
  773.                     ";
  774.             // line 497
  775.             echo twig_call_macro($macros["_self"], "macro_render_form_resolved_options", [(isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'497$this->source); })())], 497$context$this->getSourceContext());
  776.             echo "
  777.                 </div>
  778.             </div>
  779.             <div class=\"tab ";
  780.             // line 501
  781.             echo ((twig_test_empty((((twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "view_vars", [], "any"truetruefalse501) &&  !(null === twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "view_vars", [], "any"falsefalsefalse501)))) ? (twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "view_vars", [], "any"falsefalsefalse501)) : ([])))) ? ("disabled") : (""));
  782.             echo "\">
  783.                 <h3 class=\"tab-title\">View Vars</h3>
  784.                 <div class=\"tab-content\">
  785.                     ";
  786.             // line 505
  787.             echo twig_call_macro($macros["_self"], "macro_render_form_view_variables", [(isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'505$this->source); })())], 505$context$this->getSourceContext());
  788.             echo "
  789.                 </div>
  790.             </div>
  791.         </div>
  792.     </div>
  793.     ";
  794.             // line 511
  795.             $context['_parent'] = $context;
  796.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'511$this->source); })()), "children", [], "any"falsefalsefalse511));
  797.             foreach ($context['_seq'] as $context["childName"] => $context["childData"]) {
  798.                 // line 512
  799.                 echo "        ";
  800.                 echo twig_call_macro($macros["tree"], "macro_form_tree_details", [$context["childName"], $context["childData"], (isset($context["forms_by_hash"]) || array_key_exists("forms_by_hash"$context) ? $context["forms_by_hash"] : (function () { throw new RuntimeError('Variable "forms_by_hash" does not exist.'512$this->source); })())], 512$context$this->getSourceContext());
  801.                 echo "
  802.     ";
  803.             }
  804.             $_parent $context['_parent'];
  805.             unset($context['_seq'], $context['_iterated'], $context['childName'], $context['childData'], $context['_parent'], $context['loop']);
  806.             $context array_intersect_key($context$_parent) + $_parent;
  807.             
  808.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  809.             
  810.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  811.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  812.         } finally {
  813.             ob_end_clean();
  814.         }
  815.     }
  816.     // line 516
  817.     public function macro_render_form_errors($__data__ null, ...$__varargs__)
  818.     {
  819.         $macros $this->macros;
  820.         $context $this->env->mergeGlobals([
  821.             "data" => $__data__,
  822.             "varargs" => $__varargs__,
  823.         ]);
  824.         $blocks = [];
  825.         ob_start();
  826.         try {
  827.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  828.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_form_errors"));
  829.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  830.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_form_errors"));
  831.             // line 517
  832.             echo "    ";
  833.             if ((twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "errors", [], "any"truetruefalse517) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'517$this->source); })()), "errors", [], "any"falsefalsefalse517)) > 0))) {
  834.                 // line 518
  835.                 echo "        <div class=\"errors\">
  836.             <h3>
  837.                 <a class=\"toggle-button\" data-toggle-target-id=\"";
  838.                 // line 520
  839.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'520$this->source); })()), "id", [], "any"falsefalsefalse520), "html"nulltrue);
  840.                 echo "-errors\" href=\"#\">
  841.                     Errors <span class=\"toggle-icon\"></span>
  842.                 </a>
  843.             </h3>
  844.             <table id=\"";
  845.                 // line 525
  846.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'525$this->source); })()), "id", [], "any"falsefalsefalse525), "html"nulltrue);
  847.                 echo "-errors\">
  848.                 <thead>
  849.                 <tr>
  850.                     <th>Message</th>
  851.                     <th>Origin</th>
  852.                     <th>Cause</th>
  853.                 </tr>
  854.                 </thead>
  855.                 <tbody>
  856.                 ";
  857.                 // line 534
  858.                 $context['_parent'] = $context;
  859.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'534$this->source); })()), "errors", [], "any"falsefalsefalse534));
  860.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  861.                     // line 535
  862.                     echo "                    <tr>
  863.                         <td>";
  864.                     // line 536
  865.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["error"], "message", [], "any"falsefalsefalse536), "html"nulltrue);
  866.                     echo "</td>
  867.                         <td>
  868.                             ";
  869.                     // line 538
  870.                     if (twig_test_empty(twig_get_attribute($this->env$this->source$context["error"], "origin", [], "any"falsefalsefalse538))) {
  871.                         // line 539
  872.                         echo "                                <em>This form.</em>
  873.                             ";
  874.                     } elseif ( !twig_get_attribute($this->env$this->source,                     // line 540
  875. ($context["forms_by_hash"] ?? null), twig_get_attribute($this->env$this->source$context["error"], "origin", [], "any"falsefalsefalse540), [], "array"truetruefalse540)) {
  876.                         // line 541
  877.                         echo "                                <em>Unknown.</em>
  878.                             ";
  879.                     } else {
  880.                         // line 543
  881.                         echo "                                ";
  882.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["forms_by_hash"]) || array_key_exists("forms_by_hash"$context) ? $context["forms_by_hash"] : (function () { throw new RuntimeError('Variable "forms_by_hash" does not exist.'543$this->source); })()), twig_get_attribute($this->env$this->source$context["error"], "origin", [], "any"falsefalsefalse543), [], "array"falsefalsefalse543), "name", [], "any"falsefalsefalse543), "html"nulltrue);
  883.                         echo "
  884.                             ";
  885.                     }
  886.                     // line 545
  887.                     echo "                        </td>
  888.                         <td>
  889.                             ";
  890.                     // line 547
  891.                     if (twig_get_attribute($this->env$this->source$context["error"], "trace", [], "any"falsefalsefalse547)) {
  892.                         // line 548
  893.                         echo "                                <span class=\"newline\">Caused by:</span>
  894.                                 ";
  895.                         // line 549
  896.                         $context['_parent'] = $context;
  897.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["error"], "trace", [], "any"falsefalsefalse549));
  898.                         foreach ($context['_seq'] as $context["_key"] => $context["stacked"]) {
  899.                             // line 550
  900.                             echo "                                    ";
  901.                             echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env$context["stacked"]);
  902.                             echo "
  903.                                 ";
  904.                         }
  905.                         $_parent $context['_parent'];
  906.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stacked'], $context['_parent'], $context['loop']);
  907.                         $context array_intersect_key($context$_parent) + $_parent;
  908.                         // line 552
  909.                         echo "                            ";
  910.                     } else {
  911.                         // line 553
  912.                         echo "                                <em>Unknown.</em>
  913.                             ";
  914.                     }
  915.                     // line 555
  916.                     echo "                        </td>
  917.                     </tr>
  918.                 ";
  919.                 }
  920.                 $_parent $context['_parent'];
  921.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  922.                 $context array_intersect_key($context$_parent) + $_parent;
  923.                 // line 558
  924.                 echo "                </tbody>
  925.             </table>
  926.         </div>
  927.     ";
  928.             } else {
  929.                 // line 562
  930.                 echo "        <div class=\"empty\">
  931.             <p>This form has no errors.</p>
  932.         </div>
  933.     ";
  934.             }
  935.             
  936.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  937.             
  938.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  939.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  940.         } finally {
  941.             ob_end_clean();
  942.         }
  943.     }
  944.     // line 568
  945.     public function macro_render_form_default_data($__data__ null, ...$__varargs__)
  946.     {
  947.         $macros $this->macros;
  948.         $context $this->env->mergeGlobals([
  949.             "data" => $__data__,
  950.             "varargs" => $__varargs__,
  951.         ]);
  952.         $blocks = [];
  953.         ob_start();
  954.         try {
  955.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  956.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_form_default_data"));
  957.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  958.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_form_default_data"));
  959.             // line 569
  960.             echo "    ";
  961.             if (twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "default_data", [], "any"truetruefalse569)) {
  962.                 // line 570
  963.                 echo "        <table>
  964.             <thead>
  965.             <tr>
  966.                 <th width=\"180\">Property</th>
  967.                 <th>Value</th>
  968.             </tr>
  969.             </thead>
  970.             <tbody>
  971.             <tr>
  972.                 <th class=\"font-normal\" scope=\"row\">Model Format</th>
  973.                 <td>
  974.                     ";
  975.                 // line 581
  976.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["data"] ?? null), "default_data", [], "any"falsetruefalse581), "model", [], "any"truetruefalse581)) {
  977.                     // line 582
  978.                     echo "                        ";
  979.                     echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'582$this->source); })()), "default_data", [], "any"falsefalsefalse582), "seek", [=> "model"], "method"falsefalsefalse582));
  980.                     echo "
  981.                     ";
  982.                 } else {
  983.                     // line 584
  984.                     echo "                        <em class=\"font-normal text-muted\">same as normalized format</em>
  985.                     ";
  986.                 }
  987.                 // line 586
  988.                 echo "                </td>
  989.             </tr>
  990.             <tr>
  991.                 <th class=\"font-normal\" scope=\"row\">Normalized Format</th>
  992.                 <td>";
  993.                 // line 590
  994.                 echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'590$this->source); })()), "default_data", [], "any"falsefalsefalse590), "seek", [=> "norm"], "method"falsefalsefalse590));
  995.                 echo "</td>
  996.             </tr>
  997.             <tr>
  998.                 <th class=\"font-normal\" scope=\"row\">View Format</th>
  999.                 <td>
  1000.                     ";
  1001.                 // line 595
  1002.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["data"] ?? null), "default_data", [], "any"falsetruefalse595), "view", [], "any"truetruefalse595)) {
  1003.                     // line 596
  1004.                     echo "                        ";
  1005.                     echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'596$this->source); })()), "default_data", [], "any"falsefalsefalse596), "seek", [=> "view"], "method"falsefalsefalse596));
  1006.                     echo "
  1007.                     ";
  1008.                 } else {
  1009.                     // line 598
  1010.                     echo "                        <em class=\"font-normal text-muted\">same as normalized format</em>
  1011.                     ";
  1012.                 }
  1013.                 // line 600
  1014.                 echo "                </td>
  1015.             </tr>
  1016.             </tbody>
  1017.         </table>
  1018.     ";
  1019.             } else {
  1020.                 // line 605
  1021.                 echo "        <div class=\"empty\">
  1022.             <p>This form has default data defined.</p>
  1023.         </div>
  1024.     ";
  1025.             }
  1026.             
  1027.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1028.             
  1029.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1030.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  1031.         } finally {
  1032.             ob_end_clean();
  1033.         }
  1034.     }
  1035.     // line 611
  1036.     public function macro_render_form_submitted_data($__data__ null, ...$__varargs__)
  1037.     {
  1038.         $macros $this->macros;
  1039.         $context $this->env->mergeGlobals([
  1040.             "data" => $__data__,
  1041.             "varargs" => $__varargs__,
  1042.         ]);
  1043.         $blocks = [];
  1044.         ob_start();
  1045.         try {
  1046.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1047.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_form_submitted_data"));
  1048.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1049.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_form_submitted_data"));
  1050.             // line 612
  1051.             echo "    ";
  1052.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["data"] ?? null), "submitted_data", [], "any"falsetruefalse612), "norm", [], "any"truetruefalse612)) {
  1053.                 // line 613
  1054.                 echo "        <table>
  1055.             <thead>
  1056.             <tr>
  1057.                 <th width=\"180\">Property</th>
  1058.                 <th>Value</th>
  1059.             </tr>
  1060.             </thead>
  1061.             <tbody>
  1062.             <tr>
  1063.                 <th class=\"font-normal\" scope=\"row\">View Format</th>
  1064.                 <td>
  1065.                     ";
  1066.                 // line 624
  1067.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["data"] ?? null), "submitted_data", [], "any"falsetruefalse624), "view", [], "any"truetruefalse624)) {
  1068.                     // line 625
  1069.                     echo "                        ";
  1070.                     echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'625$this->source); })()), "submitted_data", [], "any"falsefalsefalse625), "seek", [=> "view"], "method"falsefalsefalse625));
  1071.                     echo "
  1072.                     ";
  1073.                 } else {
  1074.                     // line 627
  1075.                     echo "                        <em class=\"font-normal text-muted\">same as normalized format</em>
  1076.                     ";
  1077.                 }
  1078.                 // line 629
  1079.                 echo "                </td>
  1080.             </tr>
  1081.             <tr>
  1082.                 <th class=\"font-normal\" scope=\"row\">Normalized Format</th>
  1083.                 <td>";
  1084.                 // line 633
  1085.                 echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'633$this->source); })()), "submitted_data", [], "any"falsefalsefalse633), "seek", [=> "norm"], "method"falsefalsefalse633));
  1086.                 echo "</td>
  1087.             </tr>
  1088.             <tr>
  1089.                 <th class=\"font-normal\" scope=\"row\">Model Format</th>
  1090.                 <td>
  1091.                     ";
  1092.                 // line 638
  1093.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["data"] ?? null), "submitted_data", [], "any"falsetruefalse638), "model", [], "any"truetruefalse638)) {
  1094.                     // line 639
  1095.                     echo "                        ";
  1096.                     echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'639$this->source); })()), "submitted_data", [], "any"falsefalsefalse639), "seek", [=> "model"], "method"falsefalsefalse639));
  1097.                     echo "
  1098.                     ";
  1099.                 } else {
  1100.                     // line 641
  1101.                     echo "                        <em class=\"font-normal text-muted\">same as normalized format</em>
  1102.                     ";
  1103.                 }
  1104.                 // line 643
  1105.                 echo "                </td>
  1106.             </tr>
  1107.             </tbody>
  1108.         </table>
  1109.     ";
  1110.             } else {
  1111.                 // line 648
  1112.                 echo "        <div class=\"empty\">
  1113.             <p>This form was not submitted.</p>
  1114.         </div>
  1115.     ";
  1116.             }
  1117.             
  1118.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1119.             
  1120.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1121.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  1122.         } finally {
  1123.             ob_end_clean();
  1124.         }
  1125.     }
  1126.     // line 654
  1127.     public function macro_render_form_passed_options($__data__ null, ...$__varargs__)
  1128.     {
  1129.         $macros $this->macros;
  1130.         $context $this->env->mergeGlobals([
  1131.             "data" => $__data__,
  1132.             "varargs" => $__varargs__,
  1133.         ]);
  1134.         $blocks = [];
  1135.         ob_start();
  1136.         try {
  1137.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1138.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_form_passed_options"));
  1139.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1140.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_form_passed_options"));
  1141.             // line 655
  1142.             echo "    ";
  1143.             if ( !twig_test_empty((((twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "passed_options", [], "any"truetruefalse655) &&  !(null === twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "passed_options", [], "any"falsefalsefalse655)))) ? (twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "passed_options", [], "any"falsefalsefalse655)) : ([])))) {
  1144.                 // line 656
  1145.                 echo "        <table>
  1146.             <thead>
  1147.             <tr>
  1148.                 <th width=\"180\">Option</th>
  1149.                 <th>Passed Value</th>
  1150.                 <th>Resolved Value</th>
  1151.             </tr>
  1152.             </thead>
  1153.             <tbody>
  1154.             ";
  1155.                 // line 665
  1156.                 $context['_parent'] = $context;
  1157.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'665$this->source); })()), "passed_options", [], "any"falsefalsefalse665));
  1158.                 foreach ($context['_seq'] as $context["option"] => $context["value"]) {
  1159.                     // line 666
  1160.                     echo "                <tr>
  1161.                     <th>";
  1162.                     // line 667
  1163.                     echo twig_escape_filter($this->env$context["option"], "html"nulltrue);
  1164.                     echo "</th>
  1165.                     <td>";
  1166.                     // line 668
  1167.                     echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env$context["value"]);
  1168.                     echo "</td>
  1169.                     <td>
  1170.                         ";
  1171.                     // line 671
  1172.                     echo "                        ";
  1173.                     $context["option_value"] = ((twig_get_attribute($this->env$this->source$context["value"], "value", [], "any"truetruefalse671)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["value"], "value", [], "any"falsefalsefalse671), $context["value"])) : ($context["value"]));
  1174.                     // line 672
  1175.                     echo "                        ";
  1176.                     $context["resolved_option_value"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["data"] ?? null), "resolved_options", [], "any"falsetruefalse672), $context["option"], [], "array"falsetruefalse672), "value", [], "any"truetruefalse672)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["data"] ?? null), "resolved_options", [], "any"falsetruefalse672), $context["option"], [], "array"falsetruefalse672), "value", [], "any"falsefalsefalse672), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'672$this->source); })()), "resolved_options", [], "any"falsefalsefalse672), $context["option"], [], "array"falsefalsefalse672))) : (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'672$this->source); })()), "resolved_options", [], "any"falsefalsefalse672), $context["option"], [], "array"falsefalsefalse672)));
  1177.                     // line 673
  1178.                     echo "                        ";
  1179.                     if (((isset($context["resolved_option_value"]) || array_key_exists("resolved_option_value"$context) ? $context["resolved_option_value"] : (function () { throw new RuntimeError('Variable "resolved_option_value" does not exist.'673$this->source); })()) == (isset($context["option_value"]) || array_key_exists("option_value"$context) ? $context["option_value"] : (function () { throw new RuntimeError('Variable "option_value" does not exist.'673$this->source); })()))) {
  1180.                         // line 674
  1181.                         echo "                            <em class=\"font-normal text-muted\">same as passed value</em>
  1182.                         ";
  1183.                     } else {
  1184.                         // line 676
  1185.                         echo "                            ";
  1186.                         echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'676$this->source); })()), "resolved_options", [], "any"falsefalsefalse676), "seek", [=> $context["option"]], "method"falsefalsefalse676));
  1187.                         echo "
  1188.                         ";
  1189.                     }
  1190.                     // line 678
  1191.                     echo "                    </td>
  1192.                 </tr>
  1193.             ";
  1194.                 }
  1195.                 $_parent $context['_parent'];
  1196.                 unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
  1197.                 $context array_intersect_key($context$_parent) + $_parent;
  1198.                 // line 681
  1199.                 echo "            </tbody>
  1200.         </table>
  1201.     ";
  1202.             } else {
  1203.                 // line 684
  1204.                 echo "        <div class=\"empty\">
  1205.             <p>No options were passed when constructing this form.</p>
  1206.         </div>
  1207.     ";
  1208.             }
  1209.             
  1210.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1211.             
  1212.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1213.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  1214.         } finally {
  1215.             ob_end_clean();
  1216.         }
  1217.     }
  1218.     // line 690
  1219.     public function macro_render_form_resolved_options($__data__ null, ...$__varargs__)
  1220.     {
  1221.         $macros $this->macros;
  1222.         $context $this->env->mergeGlobals([
  1223.             "data" => $__data__,
  1224.             "varargs" => $__varargs__,
  1225.         ]);
  1226.         $blocks = [];
  1227.         ob_start();
  1228.         try {
  1229.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1230.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_form_resolved_options"));
  1231.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1232.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_form_resolved_options"));
  1233.             // line 691
  1234.             echo "    <table>
  1235.         <thead>
  1236.         <tr>
  1237.             <th width=\"180\">Option</th>
  1238.             <th>Value</th>
  1239.         </tr>
  1240.         </thead>
  1241.         <tbody>
  1242.         ";
  1243.             // line 699
  1244.             $context['_parent'] = $context;
  1245.             $context['_seq'] = twig_ensure_traversable((((twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "resolved_options", [], "any"truetruefalse699) &&  !(null === twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "resolved_options", [], "any"falsefalsefalse699)))) ? (twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "resolved_options", [], "any"falsefalsefalse699)) : ([])));
  1246.             foreach ($context['_seq'] as $context["option"] => $context["value"]) {
  1247.                 // line 700
  1248.                 echo "            <tr>
  1249.                 <th scope=\"row\">";
  1250.                 // line 701
  1251.                 echo twig_escape_filter($this->env$context["option"], "html"nulltrue);
  1252.                 echo "</th>
  1253.                 <td>";
  1254.                 // line 702
  1255.                 echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env$context["value"]);
  1256.                 echo "</td>
  1257.             </tr>
  1258.         ";
  1259.             }
  1260.             $_parent $context['_parent'];
  1261.             unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
  1262.             $context array_intersect_key($context$_parent) + $_parent;
  1263.             // line 705
  1264.             echo "        </tbody>
  1265.     </table>
  1266. ";
  1267.             
  1268.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1269.             
  1270.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1271.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  1272.         } finally {
  1273.             ob_end_clean();
  1274.         }
  1275.     }
  1276.     // line 709
  1277.     public function macro_render_form_view_variables($__data__ null, ...$__varargs__)
  1278.     {
  1279.         $macros $this->macros;
  1280.         $context $this->env->mergeGlobals([
  1281.             "data" => $__data__,
  1282.             "varargs" => $__varargs__,
  1283.         ]);
  1284.         $blocks = [];
  1285.         ob_start();
  1286.         try {
  1287.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1288.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_form_view_variables"));
  1289.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1290.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_form_view_variables"));
  1291.             // line 710
  1292.             echo "    <table>
  1293.         <thead>
  1294.         <tr>
  1295.             <th width=\"180\">Variable</th>
  1296.             <th>Value</th>
  1297.         </tr>
  1298.         </thead>
  1299.         <tbody>
  1300.         ";
  1301.             // line 718
  1302.             $context['_parent'] = $context;
  1303.             $context['_seq'] = twig_ensure_traversable((((twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "view_vars", [], "any"truetruefalse718) &&  !(null === twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "view_vars", [], "any"falsefalsefalse718)))) ? (twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "view_vars", [], "any"falsefalsefalse718)) : ([])));
  1304.             foreach ($context['_seq'] as $context["variable"] => $context["value"]) {
  1305.                 // line 719
  1306.                 echo "            <tr>
  1307.                 <th scope=\"row\">";
  1308.                 // line 720
  1309.                 echo twig_escape_filter($this->env$context["variable"], "html"nulltrue);
  1310.                 echo "</th>
  1311.                 <td>";
  1312.                 // line 721
  1313.                 echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env$context["value"]);
  1314.                 echo "</td>
  1315.             </tr>
  1316.         ";
  1317.             }
  1318.             $_parent $context['_parent'];
  1319.             unset($context['_seq'], $context['_iterated'], $context['variable'], $context['value'], $context['_parent'], $context['loop']);
  1320.             $context array_intersect_key($context$_parent) + $_parent;
  1321.             // line 724
  1322.             echo "        </tbody>
  1323.     </table>
  1324. ";
  1325.             
  1326.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1327.             
  1328.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1329.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  1330.         } finally {
  1331.             ob_end_clean();
  1332.         }
  1333.     }
  1334.     public function getTemplateName()
  1335.     {
  1336.         return "@WebProfiler/Collector/form.html.twig";
  1337.     }
  1338.     public function isTraitable()
  1339.     {
  1340.         return false;
  1341.     }
  1342.     public function getDebugInfo()
  1343.     {
  1344.         return array (  1487 => 724,  1478 => 721,  1474 => 720,  1471 => 719,  1467 => 718,  1457 => 710,  1438 => 709,  1421 => 705,  1412 => 702,  1408 => 701,  1405 => 700,  1401 => 699,  1391 => 691,  1372 => 690,  1353 => 684,  1348 => 681,  1340 => 678,  1334 => 676,  1330 => 674,  1327 => 673,  1324 => 672,  1321 => 671,  1316 => 668,  1312 => 667,  1309 => 666,  1305 => 665,  1294 => 656,  1291 => 655,  1272 => 654,  1253 => 648,  1246 => 643,  1242 => 641,  1236 => 639,  1234 => 638,  1226 => 633,  1220 => 629,  1216 => 627,  1210 => 625,  1208 => 624,  1195 => 613,  1192 => 612,  1173 => 611,  1154 => 605,  1147 => 600,  1143 => 598,  1137 => 596,  1135 => 595,  1127 => 590,  1121 => 586,  1117 => 584,  1111 => 582,  1109 => 581,  1096 => 570,  1093 => 569,  1074 => 568,  1055 => 562,  1049 => 558,  1041 => 555,  1037 => 553,  1034 => 552,  1025 => 550,  1021 => 549,  1018 => 548,  1016 => 547,  1012 => 545,  1006 => 543,  1002 => 541,  1000 => 540,  997 => 539,  995 => 538,  990 => 536,  987 => 535,  983 => 534,  971 => 525,  963 => 520,  959 => 518,  956 => 517,  937 => 516,  915 => 512,  911 => 511,  902 => 505,  895 => 501,  888 => 497,  881 => 493,  874 => 489,  867 => 485,  860 => 481,  853 => 477,  846 => 473,  839 => 469,  832 => 465,  825 => 461,  822 => 460,  820 => 459,  817 => 458,  811 => 455,  807 => 453,  805 => 452,  801 => 451,  788 => 450,  785 => 449,  763 => 448,  747 => 445,  743 => 443,  734 => 441,  730 => 440,  721 => 439,  719 => 438,  712 => 434,  706 => 433,  703 => 432,  699 => 430,  693 => 428,  691 => 427,  688 => 426,  682 => 424,  680 => 423,  674 => 422,  671 => 421,  668 => 420,  665 => 419,  644 => 418,  416 => 198,  410 => 194,  406 => 192,  389 => 190,  372 => 189,  366 => 185,  357 => 183,  353 => 182,  349 => 180,  347 => 179,  343 => 177,  333 => 176,  190 => 43,  180 => 42,  169 => 39,  163 => 36,  160 => 35,  158 => 34,  153 => 32,  146 => 31,  136 => 30,  123 => 26,  120 => 25,  112 => 22,  105 => 18,  101 => 16,  99 => 15,  96 => 14,  90 => 11,  84 => 9,  81 => 8,  78 => 7,  75 => 6,  65 => 5,  54 => 1,  52 => 3,  39 => 1,);
  1345.     }
  1346.     public function getSourceContext()
  1347.     {
  1348.         return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  1349. {% from _self import form_tree_entry, form_tree_details %}
  1350. {% block toolbar %}
  1351.     {% if collector.data.nb_errors > 0 or collector.data.forms|length %}
  1352.         {% set status_color = collector.data.nb_errors ? 'red' %}
  1353.         {% set icon %}
  1354.             {{ source('@WebProfiler/Icon/form.svg') }}
  1355.             <span class=\"sf-toolbar-value\">
  1356.                 {{ collector.data.nb_errors ?: collector.data.forms|length }}
  1357.             </span>
  1358.         {% endset %}
  1359.         {% set text %}
  1360.             <div class=\"sf-toolbar-info-piece\">
  1361.                 <b>Number of forms</b>
  1362.                 <span class=\"sf-toolbar-status\">{{ collector.data.forms|length }}</span>
  1363.             </div>
  1364.             <div class=\"sf-toolbar-info-piece\">
  1365.                 <b>Number of errors</b>
  1366.                 <span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.data.nb_errors > 0 ? 'red' }}\">{{ collector.data.nb_errors }}</span>
  1367.             </div>
  1368.         {% endset %}
  1369.         {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
  1370.     {% endif %}
  1371. {% endblock %}
  1372. {% block menu %}
  1373.     <span class=\"label label-status-{{ collector.data.nb_errors ? 'error' }} {{ collector.data.forms is empty ? 'disabled' }}\">
  1374.         <span class=\"icon\">{{ source('@WebProfiler/Icon/form.svg') }}</span>
  1375.         <strong>Forms</strong>
  1376.         {% if collector.data.nb_errors > 0 %}
  1377.             <span class=\"count\">
  1378.                 <span>{{ collector.data.nb_errors }}</span>
  1379.             </span>
  1380.         {% endif %}
  1381.     </span>
  1382. {% endblock %}
  1383. {% block head %}
  1384.     {{ parent() }}
  1385.     <style>
  1386.         #tree-menu {
  1387.             float: left;
  1388.             padding-right: 10px;
  1389.             width: 220px;
  1390.         }
  1391.         #tree-menu ul {
  1392.             list-style: none;
  1393.             margin: 0;
  1394.             padding-left: 0;
  1395.         }
  1396.         #tree-menu li {
  1397.             margin: 0;
  1398.             padding: 0;
  1399.             width: 100%;
  1400.         }
  1401.         #tree-menu .empty {
  1402.             border: 0;
  1403.             box-shadow: none !important;
  1404.             padding: 0;
  1405.         }
  1406.         #tree-details-container {
  1407.             border-left: 1px solid var(--table-border-color);
  1408.             margin-left: 230px;
  1409.             padding-left: 20px;
  1410.         }
  1411.         .tree-details {
  1412.             padding-bottom: 40px;
  1413.         }
  1414.         .tree-details h3 {
  1415.             font-size: 18px;
  1416.             position: relative;
  1417.         }
  1418.         .toggle-icon {
  1419.             display: inline-block;
  1420.             background: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' data-icon-name='icon-tabler-square-plus' width='24' height='24' viewBox='0 0 24 24' stroke-width='2px' stroke='currentColor' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'%3E%3C/path%3E%3Crect x='4' y='4' width='16' height='16' rx='2'%3E%3C/rect%3E%3Cline x1='9' y1='12' x2='15' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='9' x2='12' y2='15'%3E%3C/line%3E%3C/svg%3E\") no-repeat;
  1421.             background-size: 18px 18px;
  1422.         }
  1423.         .closed .toggle-icon, .closed.toggle-icon {
  1424.             background-position: bottom left;
  1425.         }
  1426.         .toggle-icon.empty {
  1427.             background-image: none;
  1428.         }
  1429.         .tree .tree-inner {
  1430.             cursor: pointer;
  1431.             padding: 5px 7px 5px 22px;
  1432.             position: relative;
  1433.             overflow: hidden;
  1434.             text-overflow: ellipsis;
  1435.         }
  1436.         .tree .toggle-button {
  1437.             width: 16px;
  1438.             height: 16px;
  1439.             margin-left: -18px;
  1440.         }
  1441.         .tree .toggle-icon {
  1442.             width: 18px;
  1443.             height: 18px;
  1444.             vertical-align: bottom;
  1445.         }
  1446.         .tree .toggle-icon.empty {
  1447.             width: 5px;
  1448.             height: 5px;
  1449.             position: absolute;
  1450.             top: 50%;
  1451.             margin-top: -2px;
  1452.             margin-left: -13px;
  1453.         }
  1454.         .tree .tree-inner {
  1455.             border-radius: 4px;
  1456.         }
  1457.         .tree ul ul .tree-inner {
  1458.             padding-left: 32px;
  1459.         }
  1460.         .tree ul ul ul .tree-inner {
  1461.             padding-left: 48px;
  1462.         }
  1463.         .tree ul ul ul ul .tree-inner {
  1464.             padding-left: 64px;
  1465.         }
  1466.         .tree ul ul ul ul ul .tree-inner {
  1467.             padding-left: 72px;
  1468.         }
  1469.         .tree .tree-inner:hover {
  1470.             background: var(--gray-200);
  1471.         }
  1472.         .tree .tree-inner.active, .tree .tree-inner.active:hover {
  1473.             background: var(--tree-active-background);
  1474.             font-weight: bold;
  1475.         }
  1476.         .tree-details .toggle-icon {
  1477.             width: 16px;
  1478.             height: 16px;
  1479.             /* vertically center the button */
  1480.             position: absolute;
  1481.             top: 50%;
  1482.             margin-top: -9px;
  1483.             margin-left: 6px;
  1484.         }
  1485.         .badge-error {
  1486.             float: right;
  1487.             background: var(--background-error);
  1488.             color: #FFF;
  1489.             padding: 1px 4px;
  1490.             font-size: 10px;
  1491.             font-weight: bold;
  1492.             vertical-align: middle;
  1493.         }
  1494.         .has-error {
  1495.             color: var(--color-error);
  1496.         }
  1497.         .errors h3 {
  1498.             color: var(--color-error);
  1499.         }
  1500.         .errors th {
  1501.             background: var(--background-error);
  1502.             color: #FFF;
  1503.         }
  1504.         .errors .toggle-icon {
  1505.             background-color: var(--background-error);
  1506.         }
  1507.         h3 a, h3 a:hover, h3 a:focus {
  1508.             color: inherit;
  1509.             text-decoration: inherit;
  1510.         }
  1511.     </style>
  1512. {% endblock %}
  1513. {% block panel %}
  1514.     <h2>Forms</h2>
  1515.     {% if collector.data.forms|length %}
  1516.         <div id=\"tree-menu\" class=\"tree\">
  1517.             <ul>
  1518.             {% for formName, formData in collector.data.forms %}
  1519.                 {{ form_tree_entry(formName, formData, true) }}
  1520.             {% endfor %}
  1521.             </ul>
  1522.         </div>
  1523.         <div id=\"tree-details-container\">
  1524.             {% for formName, formData in collector.data.forms %}
  1525.                 {{ form_tree_details(formName, formData, collector.data.forms_by_hash, loop.first) }}
  1526.             {% endfor %}
  1527.         </div>
  1528.     {% else %}
  1529.         <div class=\"empty empty-panel\">
  1530.             <p>No forms were submitted for this request.</p>
  1531.         </div>
  1532.     {% endif %}
  1533.     <script>
  1534.     function Toggler(storage) {
  1535.         \"use strict\";
  1536.         var STORAGE_KEY = 'sf_toggle_data',
  1537.             states = {},
  1538.             isCollapsed = function (button) {
  1539.                 return Sfjs.hasClass(button, 'closed');
  1540.             },
  1541.             isExpanded = function (button) {
  1542.                 return !isCollapsed(button);
  1543.             },
  1544.             expand = function (button) {
  1545.                 var targetId = button.dataset.toggleTargetId,
  1546.                     target = document.getElementById(targetId);
  1547.                 if (!target) {
  1548.                     throw \"Toggle target \" + targetId + \" does not exist\";
  1549.                 }
  1550.                 if (isCollapsed(button)) {
  1551.                     Sfjs.removeClass(button, 'closed');
  1552.                     Sfjs.removeClass(target, 'hidden');
  1553.                     states[targetId] = 1;
  1554.                     storage.setItem(STORAGE_KEY, states);
  1555.                 }
  1556.             },
  1557.             collapse = function (button) {
  1558.                 var targetId = button.dataset.toggleTargetId,
  1559.                     target = document.getElementById(targetId);
  1560.                 if (!target) {
  1561.                     throw \"Toggle target \" + targetId + \" does not exist\";
  1562.                 }
  1563.                 if (isExpanded(button)) {
  1564.                     Sfjs.addClass(button, 'closed');
  1565.                     Sfjs.addClass(target, 'hidden');
  1566.                     states[targetId] = 0;
  1567.                     storage.setItem(STORAGE_KEY, states);
  1568.                 }
  1569.             },
  1570.             toggle = function (button) {
  1571.                 if (Sfjs.hasClass(button, 'closed')) {
  1572.                     expand(button);
  1573.                 } else {
  1574.                     collapse(button);
  1575.                 }
  1576.             },
  1577.             initButtons = function (buttons) {
  1578.                 states = storage.getItem(STORAGE_KEY, {});
  1579.                 // must be an object, not an array or anything else
  1580.                 // `typeof` returns \"object\" also for arrays, so the following
  1581.                 // check must be done
  1582.                 // see http://stackoverflow.com/questions/4775722/check-if-object-is-array
  1583.                 if ('[object Object]' !== Object.prototype.toString.call(states)) {
  1584.                     states = {};
  1585.                 }
  1586.                 for (var i = 0, l = buttons.length; i < l; ++i) {
  1587.                     var targetId = buttons[i].dataset.toggleTargetId,
  1588.                         target = document.getElementById(targetId);
  1589.                     if (!target) {
  1590.                         throw \"Toggle target \" + targetId + \" does not exist\";
  1591.                     }
  1592.                     // correct the initial state of the button
  1593.                     if (Sfjs.hasClass(target, 'hidden')) {
  1594.                         Sfjs.addClass(buttons[i], 'closed');
  1595.                     }
  1596.                     // attach listener for expanding/collapsing the target
  1597.                     clickHandler(buttons[i], toggle);
  1598.                     if (states.hasOwnProperty(targetId)) {
  1599.                         // open or collapse based on stored data
  1600.                         if (0 === states[targetId]) {
  1601.                             collapse(buttons[i]);
  1602.                         } else {
  1603.                             expand(buttons[i]);
  1604.                         }
  1605.                     }
  1606.                 }
  1607.             };
  1608.         return {
  1609.             initButtons: initButtons,
  1610.             toggle: toggle,
  1611.             isExpanded: isExpanded,
  1612.             isCollapsed: isCollapsed,
  1613.             expand: expand,
  1614.             collapse: collapse
  1615.         };
  1616.     }
  1617.     function JsonStorage(storage) {
  1618.         var setItem = function (key, data) {
  1619.                 storage.setItem(key, JSON.stringify(data));
  1620.             },
  1621.             getItem = function (key, defaultValue) {
  1622.                 var data = storage.getItem(key);
  1623.                 if (null !== data) {
  1624.                     try {
  1625.                         return JSON.parse(data);
  1626.                     } catch(e) {
  1627.                     }
  1628.                 }
  1629.                 return defaultValue;
  1630.             };
  1631.         return {
  1632.             setItem: setItem,
  1633.             getItem: getItem
  1634.         };
  1635.     }
  1636.     function TabView() {
  1637.         \"use strict\";
  1638.         var activeTab = null,
  1639.             activeTarget = null,
  1640.             select = function (tab) {
  1641.                 var targetId = tab.dataset.tabTargetId,
  1642.                     target = document.getElementById(targetId);
  1643.                 if (!target) {
  1644.                     throw \"Tab target \" + targetId + \" does not exist\";
  1645.                 }
  1646.                 if (activeTab) {
  1647.                     Sfjs.removeClass(activeTab, 'active');
  1648.                 }
  1649.                 if (activeTarget) {
  1650.                     Sfjs.addClass(activeTarget, 'hidden');
  1651.                 }
  1652.                 Sfjs.addClass(tab, 'active');
  1653.                 Sfjs.removeClass(target, 'hidden');
  1654.                 activeTab = tab;
  1655.                 activeTarget = target;
  1656.             },
  1657.             initTabs = function (tabs) {
  1658.                 for (var i = 0, l = tabs.length; i < l; ++i) {
  1659.                     var targetId = tabs[i].dataset.tabTargetId,
  1660.                         target = document.getElementById(targetId);
  1661.                     if (!target) {
  1662.                         throw \"Tab target \" + targetId + \" does not exist\";
  1663.                     }
  1664.                     clickHandler(tabs[i], select);
  1665.                     Sfjs.addClass(target, 'hidden');
  1666.                 }
  1667.                 if (tabs.length > 0) {
  1668.                     select(tabs[0]);
  1669.                 }
  1670.             };
  1671.         return {
  1672.             initTabs: initTabs,
  1673.             select: select
  1674.         };
  1675.     }
  1676.     var tabTarget = new TabView(),
  1677.         toggler = new Toggler(new JsonStorage(sessionStorage)),
  1678.         clickHandler = function (element, callback) {
  1679.             Sfjs.addEventListener(element, 'click', function (e) {
  1680.                 if (!e) {
  1681.                     e = window.event;
  1682.                 }
  1683.                 callback(this);
  1684.                 if (e.preventDefault) {
  1685.                     e.preventDefault();
  1686.                 } else {
  1687.                     e.returnValue = false;
  1688.                 }
  1689.                 e.stopPropagation();
  1690.                 return false;
  1691.             });
  1692.         };
  1693.     tabTarget.initTabs(document.querySelectorAll('.tree .tree-inner'));
  1694.     toggler.initButtons(document.querySelectorAll('.toggle-button'));
  1695.     </script>
  1696. {% endblock %}
  1697. {% macro form_tree_entry(name, data, is_root) %}
  1698.     {% import _self as tree %}
  1699.     {% set has_error = data.errors is defined and data.errors|length > 0 %}
  1700.     <li>
  1701.         <div class=\"tree-inner\" data-tab-target-id=\"{{ data.id }}-details\" title=\"{{ name|default('(no name)') }}\">
  1702.             {% if has_error %}
  1703.                 <div class=\"badge-error\">{{ data.errors|length }}</div>
  1704.             {% endif %}
  1705.             {% if data.children is not empty %}
  1706.                 <a class=\"toggle-button\" data-toggle-target-id=\"{{ data.id }}-children\" href=\"#\"><span class=\"toggle-icon\"></span></a>
  1707.             {% else %}
  1708.                 <div class=\"toggle-icon empty\"></div>
  1709.             {% endif %}
  1710.             <span {% if has_error or data.has_children_error|default(false) %}class=\"has-error\"{% endif %}>
  1711.                 {{ name|default('(no name)') }}
  1712.             </span>
  1713.         </div>
  1714.         {% if data.children is not empty %}
  1715.             <ul id=\"{{ data.id }}-children\" {% if not is_root and not data.has_children_error|default(false) %}class=\"hidden\"{% endif %}>
  1716.                 {% for childName, childData in data.children %}
  1717.                     {{ tree.form_tree_entry(childName, childData, false) }}
  1718.                 {% endfor %}
  1719.             </ul>
  1720.         {% endif %}
  1721.     </li>
  1722. {% endmacro %}
  1723. {% macro form_tree_details(name, data, forms_by_hash, show) %}
  1724.     {% import _self as tree %}
  1725.     <div class=\"tree-details{% if not show|default(false) %} hidden{% endif %}\" {% if data.id is defined %}id=\"{{ data.id }}-details\"{% endif %}>
  1726.         <h2>{{ name|default('(no name)') }}</h2>
  1727.         {% if data.type_class is defined %}
  1728.             <div class=\"form-type-class\">
  1729.                 <span class=\"form-type-class-label\">Form type:</span>
  1730.                 {{ profiler_dump(data.type_class) }}
  1731.             </div>
  1732.         {% endif %}
  1733.         {% set form_has_errors = data.errors ?? [] is not empty %}
  1734.         <div class=\"sf-tabs\">
  1735.             <div class=\"tab {{ form_has_errors ? 'active' : 'disabled' }}\">
  1736.                 <h3 class=\"tab-title\">Errors</h3>
  1737.                 <div class=\"tab-content\">
  1738.                     {{ _self.render_form_errors(data) }}
  1739.                 </div>
  1740.             </div>
  1741.             <div class=\"tab {{ not form_has_errors ? 'active' }}\">
  1742.                 <h3 class=\"tab-title\">Default Data</h3>
  1743.                 <div class=\"tab-content\">
  1744.                     {{ _self.render_form_default_data(data) }}
  1745.                 </div>
  1746.             </div>
  1747.             <div class=\"tab {{ data.submitted_data ?? [] is empty ? 'disabled' }}\">
  1748.                 <h3 class=\"tab-title\">Submitted Data</h3>
  1749.                 <div class=\"tab-content\">
  1750.                     {{ _self.render_form_submitted_data(data) }}
  1751.                 </div>
  1752.             </div>
  1753.             <div class=\"tab {{ data.passed_options ?? [] is empty ? 'disabled' }}\">
  1754.                 <h3 class=\"tab-title\">Passed Options</h3>
  1755.                 <div class=\"tab-content\">
  1756.                     {{ _self.render_form_passed_options(data) }}
  1757.                 </div>
  1758.             </div>
  1759.             <div class=\"tab {{ data.resolved_options ?? [] is empty ? 'disabled' }}\">
  1760.                 <h3 class=\"tab-title\">Resolved Options</h3>
  1761.                 <div class=\"tab-content\">
  1762.                     {{ _self.render_form_resolved_options(data) }}
  1763.                 </div>
  1764.             </div>
  1765.             <div class=\"tab {{ data.view_vars ?? [] is empty ? 'disabled' }}\">
  1766.                 <h3 class=\"tab-title\">View Vars</h3>
  1767.                 <div class=\"tab-content\">
  1768.                     {{ _self.render_form_view_variables(data) }}
  1769.                 </div>
  1770.             </div>
  1771.         </div>
  1772.     </div>
  1773.     {% for childName, childData in data.children %}
  1774.         {{ tree.form_tree_details(childName, childData, forms_by_hash) }}
  1775.     {% endfor %}
  1776. {% endmacro %}
  1777. {% macro render_form_errors(data) %}
  1778.     {% if data.errors is defined and data.errors|length > 0 %}
  1779.         <div class=\"errors\">
  1780.             <h3>
  1781.                 <a class=\"toggle-button\" data-toggle-target-id=\"{{ data.id }}-errors\" href=\"#\">
  1782.                     Errors <span class=\"toggle-icon\"></span>
  1783.                 </a>
  1784.             </h3>
  1785.             <table id=\"{{ data.id }}-errors\">
  1786.                 <thead>
  1787.                 <tr>
  1788.                     <th>Message</th>
  1789.                     <th>Origin</th>
  1790.                     <th>Cause</th>
  1791.                 </tr>
  1792.                 </thead>
  1793.                 <tbody>
  1794.                 {% for error in data.errors %}
  1795.                     <tr>
  1796.                         <td>{{ error.message }}</td>
  1797.                         <td>
  1798.                             {% if error.origin is empty %}
  1799.                                 <em>This form.</em>
  1800.                             {% elseif forms_by_hash[error.origin] is not defined %}
  1801.                                 <em>Unknown.</em>
  1802.                             {% else %}
  1803.                                 {{ forms_by_hash[error.origin].name }}
  1804.                             {% endif %}
  1805.                         </td>
  1806.                         <td>
  1807.                             {% if error.trace %}
  1808.                                 <span class=\"newline\">Caused by:</span>
  1809.                                 {% for stacked in error.trace %}
  1810.                                     {{ profiler_dump(stacked) }}
  1811.                                 {% endfor %}
  1812.                             {% else %}
  1813.                                 <em>Unknown.</em>
  1814.                             {% endif %}
  1815.                         </td>
  1816.                     </tr>
  1817.                 {% endfor %}
  1818.                 </tbody>
  1819.             </table>
  1820.         </div>
  1821.     {% else %}
  1822.         <div class=\"empty\">
  1823.             <p>This form has no errors.</p>
  1824.         </div>
  1825.     {% endif %}
  1826. {% endmacro %}
  1827. {% macro render_form_default_data(data) %}
  1828.     {% if data.default_data is defined %}
  1829.         <table>
  1830.             <thead>
  1831.             <tr>
  1832.                 <th width=\"180\">Property</th>
  1833.                 <th>Value</th>
  1834.             </tr>
  1835.             </thead>
  1836.             <tbody>
  1837.             <tr>
  1838.                 <th class=\"font-normal\" scope=\"row\">Model Format</th>
  1839.                 <td>
  1840.                     {% if data.default_data.model is defined %}
  1841.                         {{ profiler_dump(data.default_data.seek('model')) }}
  1842.                     {% else %}
  1843.                         <em class=\"font-normal text-muted\">same as normalized format</em>
  1844.                     {% endif %}
  1845.                 </td>
  1846.             </tr>
  1847.             <tr>
  1848.                 <th class=\"font-normal\" scope=\"row\">Normalized Format</th>
  1849.                 <td>{{ profiler_dump(data.default_data.seek('norm')) }}</td>
  1850.             </tr>
  1851.             <tr>
  1852.                 <th class=\"font-normal\" scope=\"row\">View Format</th>
  1853.                 <td>
  1854.                     {% if data.default_data.view is defined %}
  1855.                         {{ profiler_dump(data.default_data.seek('view')) }}
  1856.                     {% else %}
  1857.                         <em class=\"font-normal text-muted\">same as normalized format</em>
  1858.                     {% endif %}
  1859.                 </td>
  1860.             </tr>
  1861.             </tbody>
  1862.         </table>
  1863.     {% else %}
  1864.         <div class=\"empty\">
  1865.             <p>This form has default data defined.</p>
  1866.         </div>
  1867.     {% endif %}
  1868. {% endmacro %}
  1869. {% macro render_form_submitted_data(data) %}
  1870.     {% if data.submitted_data.norm is defined %}
  1871.         <table>
  1872.             <thead>
  1873.             <tr>
  1874.                 <th width=\"180\">Property</th>
  1875.                 <th>Value</th>
  1876.             </tr>
  1877.             </thead>
  1878.             <tbody>
  1879.             <tr>
  1880.                 <th class=\"font-normal\" scope=\"row\">View Format</th>
  1881.                 <td>
  1882.                     {% if data.submitted_data.view is defined %}
  1883.                         {{ profiler_dump(data.submitted_data.seek('view')) }}
  1884.                     {% else %}
  1885.                         <em class=\"font-normal text-muted\">same as normalized format</em>
  1886.                     {% endif %}
  1887.                 </td>
  1888.             </tr>
  1889.             <tr>
  1890.                 <th class=\"font-normal\" scope=\"row\">Normalized Format</th>
  1891.                 <td>{{ profiler_dump(data.submitted_data.seek('norm')) }}</td>
  1892.             </tr>
  1893.             <tr>
  1894.                 <th class=\"font-normal\" scope=\"row\">Model Format</th>
  1895.                 <td>
  1896.                     {% if data.submitted_data.model is defined %}
  1897.                         {{ profiler_dump(data.submitted_data.seek('model')) }}
  1898.                     {% else %}
  1899.                         <em class=\"font-normal text-muted\">same as normalized format</em>
  1900.                     {% endif %}
  1901.                 </td>
  1902.             </tr>
  1903.             </tbody>
  1904.         </table>
  1905.     {% else %}
  1906.         <div class=\"empty\">
  1907.             <p>This form was not submitted.</p>
  1908.         </div>
  1909.     {% endif %}
  1910. {% endmacro %}
  1911. {% macro render_form_passed_options(data) %}
  1912.     {% if data.passed_options ?? [] is not empty %}
  1913.         <table>
  1914.             <thead>
  1915.             <tr>
  1916.                 <th width=\"180\">Option</th>
  1917.                 <th>Passed Value</th>
  1918.                 <th>Resolved Value</th>
  1919.             </tr>
  1920.             </thead>
  1921.             <tbody>
  1922.             {% for option, value in data.passed_options %}
  1923.                 <tr>
  1924.                     <th>{{ option }}</th>
  1925.                     <td>{{ profiler_dump(value) }}</td>
  1926.                     <td>
  1927.                         {# values can be stubs #}
  1928.                         {% set option_value = value.value|default(value) %}
  1929.                         {% set resolved_option_value = data.resolved_options[option].value|default(data.resolved_options[option]) %}
  1930.                         {% if resolved_option_value == option_value %}
  1931.                             <em class=\"font-normal text-muted\">same as passed value</em>
  1932.                         {% else %}
  1933.                             {{ profiler_dump(data.resolved_options.seek(option)) }}
  1934.                         {% endif %}
  1935.                     </td>
  1936.                 </tr>
  1937.             {% endfor %}
  1938.             </tbody>
  1939.         </table>
  1940.     {% else %}
  1941.         <div class=\"empty\">
  1942.             <p>No options were passed when constructing this form.</p>
  1943.         </div>
  1944.     {% endif %}
  1945. {% endmacro %}
  1946. {% macro render_form_resolved_options(data) %}
  1947.     <table>
  1948.         <thead>
  1949.         <tr>
  1950.             <th width=\"180\">Option</th>
  1951.             <th>Value</th>
  1952.         </tr>
  1953.         </thead>
  1954.         <tbody>
  1955.         {% for option, value in data.resolved_options ?? [] %}
  1956.             <tr>
  1957.                 <th scope=\"row\">{{ option }}</th>
  1958.                 <td>{{ profiler_dump(value) }}</td>
  1959.             </tr>
  1960.         {% endfor %}
  1961.         </tbody>
  1962.     </table>
  1963. {% endmacro %}
  1964. {% macro render_form_view_variables(data) %}
  1965.     <table>
  1966.         <thead>
  1967.         <tr>
  1968.             <th width=\"180\">Variable</th>
  1969.             <th>Value</th>
  1970.         </tr>
  1971.         </thead>
  1972.         <tbody>
  1973.         {% for variable, value in data.view_vars ?? [] %}
  1974.             <tr>
  1975.                 <th scope=\"row\">{{ variable }}</th>
  1976.                 <td>{{ profiler_dump(value) }}</td>
  1977.             </tr>
  1978.         {% endfor %}
  1979.         </tbody>
  1980.     </table>
  1981. {% endmacro %}
  1982. ""@WebProfiler/Collector/form.html.twig""/home/bestofi/bestof/vendor/symfony/web-profiler-bundle/Resources/views/Collector/form.html.twig");
  1983.     }
  1984. }