displayBlock('global_attributes', $context, $blocks);
// line 37
echo " >
env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
echo "\" data-type=\"collection\"
";
// line 40
if ($this->getAttribute(($context["field"] ?? null), "selectunique", array())) {
// line 41
echo " data-select-unique=\"";
echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(($context["field"] ?? null), "selectunique", array())), "html_attr");
echo "\"
data-max=\"";
// line 42
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(($context["field"] ?? null), "selectunique", array())), "html", null, true);
echo "\"
";
}
// line 44
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "min", array(), "any", true, true)) {
echo "data-min=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "min", array()), "html", null, true);
echo "\"";
}
// line 45
echo " ";
if (($this->getAttribute(($context["field"] ?? null), "max", array(), "any", true, true) && !$this->getAttribute(($context["field"] ?? null), "selectunique", array()))) {
echo "data-max=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "max", array()), "html", null, true);
echo "\"";
}
// line 46
echo " >
";
// line 47
if (twig_in_filter(($context["fieldControls"] ?? null), array(0 => "top", 1 => "both"))) {
// line 48
echo "
env, ($context["value"] ?? null))) ? (" hidden") : (""));
echo "\">
";
// line 53
if ($this->getAttribute(($context["field"] ?? null), "sortby", array())) {
// line 54
echo "
";
}
// line 57
echo "
";
}
// line 61
echo "
getAttribute(($context["field"] ?? null), "classes", array(), "any", true, true)) {
echo "class=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
echo "\"";
}
echo " data-collection-holder=\"";
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "\"
";
// line 62
if (($this->getAttribute(($context["field"] ?? null), "sort", array()) === false)) {
// line 63
echo " data-collection-nosort
";
}
// line 64
echo ">
";
// line 65
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
// line 66
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["value"] ?? null));
$context['loop'] = array(
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
);
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["key"] => $context["val"]) {
// line 67
echo " ";
$context["itemName"] = ((($context["name"] ?? null)) ? (((($context["name"] ?? null) . ".") . $context["key"])) : ($context["key"]));
// line 68
echo " - env, ($context["itemName"] ?? null), "html", null, true);
echo "\" data-collection-key=\"";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" class=\"";
echo (((( !$this->getAttribute(($context["field"] ?? null), "collapsible", array(), "any", true, true) || $this->getAttribute(($context["field"] ?? null), "collapsible", array())) && $this->getAttribute(($context["field"] ?? null), "collapsed", array()))) ? ("collection-collapsed") : (""));
echo "\">
";
// line 70
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["field"] ?? null), "fields", array()));
$context['loop'] = array(
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
);
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["childName"] => $context["child"]) {
// line 71
echo " ";
if ((is_string($__internal_004f109a1dedba3b99942a2e2f50dedbd8d4e54e41a52c0baf829c07b95da843 = $context["childName"]) && is_string($__internal_588207aa49ca2b7de9a005ace90cc6a700160f109d3bc705e814ac969e54bd49 = ".") && ('' === $__internal_588207aa49ca2b7de9a005ace90cc6a700160f109d3bc705e814ac969e54bd49 || 0 === strpos($__internal_004f109a1dedba3b99942a2e2f50dedbd8d4e54e41a52c0baf829c07b95da843, $__internal_588207aa49ca2b7de9a005ace90cc6a700160f109d3bc705e814ac969e54bd49)))) {
// line 72
echo " ";
$context["childKey"] = twig_trim_filter($context["childName"], ".");
// line 73
echo " ";
$context["childValue"] = $this->getAttribute($context["val"], twig_slice($this->env, $context["childName"], 1, null), array(), "array");
// line 74
echo " ";
$context["childName"] = (($context["itemName"] ?? null) . $context["childName"]);
// line 75
echo " ";
} else {
// line 76
echo " ";
$context["childKey"] = $context["childName"];
// line 77
echo " ";
$context["childValue"] = $this->getAttribute(($context["data"] ?? null), "value", array(0 => (($context["scope"] ?? null) . $context["childName"])), "method");
// line 78
echo " ";
$context["childName"] = twig_replace_filter($context["childName"], array("*" => $context["key"]));
// line 79
echo " ";
}
// line 80
echo " ";
$context["child"] = twig_array_merge($context["child"], array("name" => $context["childName"]));
// line 81
echo "
";
// line 82
if (($this->getAttribute($context["child"], "type", array()) == "key")) {
// line 83
echo " ";
// line 84
$this->loadTemplate("forms/fields/key/key.html.twig", "forms/fields/list/list.html.twig", 84)->display(array_merge($context, array("field" => // line 85
$context["child"], "value" => $context["key"])));
// line 87
echo " ";
} elseif (($this->getAttribute($context["child"], "key", array()) == true)) {
// line 88
echo " ";
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute( // line 89
$context["child"], "type", array())) . "/") . $this->getAttribute($context["child"], "type", array())) . ".html.twig"), 1 => "forms/fields/key/key.html.twig"), "forms/fields/list/list.html.twig", 88)->display(array_merge($context, array("field" => // line 91
$context["child"], "value" => $context["key"])));
// line 93
echo " ";
} elseif ($this->getAttribute($context["child"], "type", array())) {
// line 94
echo " ";
$context["originalValue"] = ($context["childValue"] ?? null);
// line 95
echo " ";
// line 96
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute( // line 97
$context["child"], "type", array())) . "/") . $this->getAttribute($context["child"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "forms/fields/list/list.html.twig", 96)->display(array_merge($context, array("field" => // line 99
$context["child"], "value" => ($context["childValue"] ?? null))));
// line 101
echo " ";
}
// line 102
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['childName'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 103
echo "
";
// line 104
if (( !$this->getAttribute(($context["field"] ?? null), "collapsible", array(), "any", true, true) || $this->getAttribute(($context["field"] ?? null), "collapsible", array()))) {
// line 105
echo " getAttribute(($context["field"] ?? null), "collapsed", array())) ? ("right") : ("down"));
echo "\" data-action=\"";
echo (($this->getAttribute(($context["field"] ?? null), "collapsed", array())) ? ("expand") : ("collapse"));
echo "\">
";
}
// line 108
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['val'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 112
echo " ";
}
// line 113
echo "
";
// line 114
if (twig_in_filter(($context["fieldControls"] ?? null), array(0 => "bottom", 1 => "both"))) {
// line 115
echo "
";
// line 116
if (( !$this->getAttribute(($context["field"] ?? null), "collapsible", array(), "any", true, true) || $this->getAttribute(($context["field"] ?? null), "collapsible", array()))) {
// line 117
echo "
";
}
// line 122
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "sortby", array())) {
// line 123
echo "
";
}
// line 126
echo "
";
}
// line 131
$context["itemName"] = ((($context["name"] ?? null)) ? ((($context["name"] ?? null) . ".*")) : ("*"));
// line 132
echo "
env, twig_replace_filter( $this->renderBlock("__internal_fa367a566ec58bda83f7abdb372be4a69271c84232c5182b50529b9a3a7d944c", $context, $blocks), array(" " => " ", "
" => " ")), "html_attr");
// line 178
echo "\">
env, ($context["name"] ?? null), "html", null, true);
echo "\">