public function block_ewz_recaptcha_widget($context, array $blocks = array())
 {
     // line 2
     ob_start();
     // line 3
     echo "    ";
     if ($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "vars", array()), "ewz_recaptcha_enabled", array())) {
         // line 4
         echo "        ";
         if ($this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "options", array(), "any", true, true)) {
             // line 5
             echo "            <script type=\"text/javascript\">\n                var RecaptchaOptions = ";
             // line 6
             echo twig_jsonencode_filter($this->getAttribute(isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr"), "options", array()));
             echo "\n            </script>\n        ";
         }
         // line 9
         echo "        <script src=\"";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "vars", array()), "url_challenge", array()), "html", null, true);
         echo "\" type=\"text/javascript\"></script>\n        <noscript>\n            <iframe src=\"";
         // line 11
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "vars", array()), "url_noscript", array()), "html", null, true);
         echo "\" height=\"300\" width=\"500\"></iframe><br/>\n            <textarea name=\"recaptcha_challenge_field\" rows=\"3\" cols=\"40\"></textarea>\n            <input type=\"hidden\" name=\"recaptcha_response_field\" value=\"manual_challenge\"/>\n        </noscript>\n    ";
     }
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $context = array_merge($this->env->getGlobals(), $context);
     // line 1
     echo twig_jsonencode_filter(array("error" => array("code" => $this->getContext($context, 'status_code'), "message" => $this->getContext($context, 'status_text'))));
     echo "\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 2
     echo "\n";
     // line 3
     $context["option"] = array("class" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "class", array()), "") : "", "height" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "height", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "height", array()), "300px") : "300px", "label" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array()), "") : "", "required" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "required", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "required", array()), false) : false, "errortext" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "error", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "error", array()), "") : "", "info" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "info", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "info", array()), "info.markdown") : "info.markdown");
     // line 11
     echo "\n";
     // line 13
     echo "\n";
     // line 14
     $context["ukkit_conf"] = array("height" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "height", array()), "lblMarkedview" => $this->env->getExtension('Bolt')->trans("field.markdown.label.markedview"), "lblPreview" => $this->env->getExtension('Bolt')->trans("field.markdown.label.preview"), "markdown" => true, "markedOptions" => array("breaks" => false), "toolbar" => array(0 => "bold", 1 => "italic", 2 => "link", 3 => "image", 4 => "blockquote", 5 => "listUl", 6 => "listOl"));
     // line 24
     echo "\n";
     // line 25
     $context["attr_text"] = array("class" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "class", array()), "data_errortext" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "errortext", array()), "data_uk_htmleditor" => twig_jsonencode_filter(isset($context["ukkit_conf"]) ? $context["ukkit_conf"] : null), "id" => isset($context["key"]) ? $context["key"] : null, "name" => isset($context["name"]) ? $context["name"] : null, "required" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "required", array()), "style" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "height", array()) ? "height: " . $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "height", array()) . " !important;" : "");
     // line 34
     echo "\n";
     // line 36
     echo "\n<fieldset class=\"markdown\">\n    <div class=\"col-sm-12\">\n        <label class=\"control-label\">";
     // line 39
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["macro"]) ? $context["macro"] : null, "infopop", array(0 => isset($context["labelkey"]) ? $context["labelkey"] : null, 1 => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "info", array())), "method"), "html", null, true);
     echo "</label>\n        <textarea";
     // line 40
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["macro"]) ? $context["macro"] : null, "attr", array(0 => isset($context["attr_text"]) ? $context["attr_text"] : null), "method"), "html", null, true);
     echo ">";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array(), "any", false, true), "get", array(0 => isset($context["contentkey"]) ? $context["contentkey"] : null), "method", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array(), "any", false, true), "get", array(0 => isset($context["contentkey"]) ? $context["contentkey"] : null), "method"), "") : "", "html", null, true);
     echo "</textarea>\n    </div>\n</fieldset>\n";
 }
 /**
  * This method will JSON encode a variable. We're overriding Twig's default implementation to set some stricter
  * encoding options on text/html/xml requests.
  *
  * @param mixed    $value   The value to JSON encode.
  * @param null|int $options Either null or a bitmask consisting of JSON_HEX_QUOT, JSON_HEX_TAG, JSON_HEX_AMP,
  *                          JSON_HEX_APOS, JSON_NUMERIC_CHECK, JSON_PRETTY_PRINT, JSON_UNESCAPED_SLASHES,
  *                          JSON_FORCE_OBJECT
  *
  * @return mixed The JSON encoded value.
  */
 public function jsonEncodeFilter($value, $options = null)
 {
     if ($options === null && in_array(HeaderHelper::getMimeType(), array('text/html', 'application/xhtml+xml'))) {
         $options = JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_QUOT;
     }
     return twig_jsonencode_filter($value, $options);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "require({\n    shim: {\n        'oro/routes': {\n            deps: ['routing'],\n            init: function(routing) {\n                ";
     // line 6
     if (!$this->getAttribute(isset($context["app"]) ? $context["app"] : null, "debug", array())) {
         // line 7
         echo "                routing.setBaseUrl(";
         echo twig_jsonencode_filter(twig_slice($this->env, $this->env->getExtension('asset')->getAssetUrl(""), 0, -1));
         echo ");\n                ";
     }
     // line 9
     echo "                return routing;\n            }\n        }\n    },\n    map: {\n        '*': {\n            'routing': 'oro/routes'\n        },\n        'oro/routes': {\n            'routing': 'routing'\n        }\n    },\n    paths: {\n    ";
     // line 22
     if ($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "debug", array())) {
         // line 23
         echo "        'oro/routes': '";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fos_js_routing_js", array("callback" => "fos.Router.setData")), "js", null, true);
         echo "'\n    ";
     } else {
         // line 25
         echo "        'oro/routes': '../js/routes'\n    ";
     }
     // line 27
     echo "    }\n});\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"RealTimeMap\" style=\"position:relative; overflow:hidden;\"\n     data-standalone=\"";
     // line 2
     echo twig_escape_filter($this->env, array_key_exists("mapIsStandaloneNotWidget", $context) ? _twig_default_filter(isset($context["mapIsStandaloneNotWidget"]) ? $context["mapIsStandaloneNotWidget"] : $this->getContext($context, "mapIsStandaloneNotWidget"), 0) : 0, "html", null, true);
     echo "\"\n     data-config=\"";
     // line 3
     echo twig_escape_filter($this->env, twig_jsonencode_filter(isset($context["config"]) ? $context["config"] : $this->getContext($context, "config")), "html", null, true);
     echo "\"\n     tabindex=\"0\">\n\n    <div class=\"RealTimeMap_container\">\n        <div class=\"RealTimeMap_map\" style=\"overflow:hidden;\"></div>\n        <div class=\"realTimeMap_overlay\">\n            ";
     // line 9
     if ($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "showFooterMessage", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "showFooterMessage", array()), true) : true) {
         // line 10
         echo "            <span class=\"showing_visits_of\" style=\"display:none;\">";
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountryMap_ShowingVisits")), "html", null, true);
         echo "\n                <span class=\"realTimeMap_timeSpan\" style=\"font-weight:bold;\"></span>\n            </span>\n            ";
     }
     // line 14
     echo "            <span class=\"no_data\" style=\"display:none;\">";
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CoreHome_ThereIsNoDataForThisReport")), "html", null, true);
     echo "</span>\n            <span class=\"loading_data\">";
     // line 15
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_LoadingData")), "html", null, true);
     echo "...</span>\n            <img src=\"plugins/UserCountryMap/images/realtimemap-loading.gif\" style=\"vertical-align:baseline;position:relative;left:-2px;\">\n        </div>\n        ";
     // line 18
     if ($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "showDateTime", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "showDateTime", array()), true) : true) {
         // line 19
         echo "        <div class=\"realTimeMap_overlay realTimeMap_datetime\"></div>\n        ";
     }
     // line 21
     echo "    </div>\n    <div class=\"RealTimeMap_meta\">\n        <span class=\"loadingPiwik\">\n            <img src=\"plugins/Morpheus/images/loading-blue.gif\"> ";
     // line 24
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_LoadingData")), "html", null, true);
     echo "...\n        </span>\n    </div>\n\n</div>\n<script type=\"text/javascript\">UserCountryMap.RealtimeMap.initElements();</script>";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<table ";
     if (array_key_exists("class", $context)) {
         echo "class='";
         echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "html", null, true);
         echo "'";
     }
     echo " >\n    <thead>\n        <tr>\n            <th scope=\"col\">Key</th>\n            <th scope=\"col\">Value</th>\n        </tr>\n    </thead>\n    <tbody>\n        ";
     // line 9
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->getAttribute(isset($context["bag"]) ? $context["bag"] : $this->getContext($context, "bag"), "keys", array())));
     foreach ($context['_seq'] as $context["_key"] => $context["key"]) {
         // line 10
         echo "            <tr>\n                <th>";
         // line 11
         echo twig_escape_filter($this->env, $context["key"], "html", null, true);
         echo "</th>\n                ";
         // line 13
         echo "                <td>";
         echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(isset($context["bag"]) ? $context["bag"] : $this->getContext($context, "bag"), "get", array(0 => $context["key"]), "method"), 64 | 256), "html", null, true);
         echo "</td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 16
     echo "    </tbody>\n</table>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div id=\"fb-root\"></div>\n";
     // line 2
     if (!$this->getContext($context, "async")) {
         // line 3
         echo "<script type=\"text/javascript\" src=\"http://connect.facebook.net/";
         echo twig_escape_filter($this->env, $this->getContext($context, "culture"), "html", null, true);
         echo "/all.js\"></script>\n";
     }
     // line 5
     echo "<script type=\"text/javascript\">\n";
     // line 7
     if ($this->getContext($context, "async")) {
         // line 8
         echo "window.fbAsyncInit = function() {\n";
     }
     // line 10
     echo "  FB.init(";
     echo twig_jsonencode_filter(array("appId" => $this->getContext($context, "appId"), "xfbml" => $this->getContext($context, "xfbml"), "oauth" => $this->getContext($context, "oauth"), "status" => $this->getContext($context, "status"), "cookie" => $this->getContext($context, "cookie"), "logging" => $this->getContext($context, "logging")));
     echo ");\n";
     // line 11
     if ($this->getContext($context, "async")) {
         // line 12
         echo "  ";
         echo $this->getContext($context, "fbAsyncInit");
         echo "\n};\n\n(function() {\n  var e = document.createElement('script');\n  e.src = document.location.protocol + ";
         // line 17
         echo twig_jsonencode_filter(sprintf("//connect.facebook.net/%s/all.js", $this->getContext($context, "culture")));
         echo ";\n  e.async = true;\n  document.getElementById('fb-root').appendChild(e);\n}());\n";
     }
     // line 23
     echo "</script>\n";
 }
 public function block_input_attributes($context, array $blocks = array())
 {
     // line 11
     echo "    type=\"text\"\n    data-grav-field-datetime\n    data-date-formats=\"";
     // line 13
     echo twig_escape_filter($this->env, twig_jsonencode_filter(array("format" => isset($context["js_dateformat"]) ? $context["js_dateformat"] : null)), "html_attr");
     echo "\"\n    ";
     // line 14
     if ($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "min", array())) {
         echo "min=\"";
         echo null === $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "min", array()) ? $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "min", array()) : twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "min", array()), isset($context["php_dateformat"]) ? $context["php_dateformat"] : null);
         echo "\"";
     }
     // line 15
     echo "    ";
     if ($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "max", array())) {
         echo "max=\"";
         echo null === $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "max", array()) ? $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "max", array()) : twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "max", array()), isset($context["php_dateformat"]) ? $context["php_dateformat"] : null);
         echo "\"";
     }
     // line 16
     echo "    ";
     $this->displayParentBlock("input_attributes", $context, $blocks);
     echo "\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"";
     echo twig_escape_filter($this->env, isset($context["cssIdentifier"]) ? $context["cssIdentifier"] : $this->getContext($context, "cssIdentifier"), "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, isset($context["cssClass"]) ? $context["cssClass"] : $this->getContext($context, "cssClass"), "html", null, true);
     echo "\"\n     data-props=\"";
     // line 2
     echo twig_escape_filter($this->env, twig_jsonencode_filter(isset($context["clientSideProperties"]) ? $context["clientSideProperties"] : $this->getContext($context, "clientSideProperties")), "html", null, true);
     echo "\"\n     data-params=\"";
     // line 3
     echo twig_escape_filter($this->env, twig_jsonencode_filter(isset($context["clientSideParameters"]) ? $context["clientSideParameters"] : $this->getContext($context, "clientSideParameters")), "html", null, true);
     echo "\">\n     ";
     // line 4
     $template = $this->env->resolveTemplate($context["implView"]->getTemplateFile());
     $template->display(array_merge($context, $context["implView"]->getTemplateVars(isset($context["implOverride"]) ? $context["implOverride"] : $this->getContext($context, "implOverride"))));
     // line 5
     echo "</div>\n<script>\$(document).ready(function () { require('";
     // line 6
     echo twig_escape_filter($this->env, isset($context["jsNamespace"]) ? $context["jsNamespace"] : $this->getContext($context, "jsNamespace"), "html", null, true);
     echo "').";
     echo twig_escape_filter($this->env, isset($context["jsClass"]) ? $context["jsClass"] : $this->getContext($context, "jsClass"), "html", null, true);
     echo ".initElements(); });</script>";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34 = $this->env->getExtension("native_profiler");
     $__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34->enter($__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "WebProfilerBundle:Profiler:base_js.html.twig"));
     // line 1
     echo "<script>/*<![CDATA[*/\n    ";
     // line 5
     echo "\n    Sfjs = (function() {\n        \"use strict\";\n\n        var classListIsSupported = 'classList' in document.documentElement;\n\n        if (classListIsSupported) {\n            var hasClass = function (el, cssClass) { return el.classList.contains(cssClass); };\n            var removeClass = function(el, cssClass) { el.classList.remove(cssClass); };\n            var addClass = function(el, cssClass) { el.classList.add(cssClass); };\n            var toggleClass = function(el, cssClass) { el.classList.toggle(cssClass); };\n        } else {\n            var hasClass = function (el, cssClass) { return el.className.match(new RegExp('\\\\b' + cssClass + '\\\\b')); };\n            var removeClass = function(el, cssClass) { el.className = el.className.replace(new RegExp('\\\\b' + cssClass + '\\\\b'), ' '); };\n            var addClass = function(el, cssClass) { if (!hasClass(el, cssClass)) { el.className += \" \" + cssClass; } };\n            var toggleClass = function(el, cssClass) { hasClass(el, cssClass) ? removeClass(el, cssClass) : addClass(el, cssClass); };\n        }\n\n        var noop = function() {},\n\n            collectionToArray = function (collection) {\n                var length = collection.length || 0,\n                    results = new Array(length);\n\n                while (length--) {\n                    results[length] = collection[length];\n                }\n\n                return results;\n            },\n\n            profilerStorageKey = 'sf2/profiler/',\n\n            request = function(url, onSuccess, onError, payload, options) {\n                var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');\n                options = options || {};\n                options.maxTries = options.maxTries || 0;\n                xhr.open(options.method || 'GET', url, true);\n                xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n                xhr.onreadystatechange = function(state) {\n                    if (4 !== xhr.readyState) {\n                        return null;\n                    }\n\n                    if (xhr.status == 404 && options.maxTries > 1) {\n                        setTimeout(function(){\n                            options.maxTries--;\n                            request(url, onSuccess, onError, payload, options);\n                        }, 500);\n\n                        return null;\n                    }\n\n                    if (200 === xhr.status) {\n                        (onSuccess || noop)(xhr);\n                    } else {\n                        (onError || noop)(xhr);\n                    }\n                };\n                xhr.send(payload || '');\n            },\n\n            getPreference = function(name) {\n                if (!window.localStorage) {\n                    return null;\n                }\n\n                return localStorage.getItem(profilerStorageKey + name);\n            },\n\n            setPreference = function(name, value) {\n                if (!window.localStorage) {\n                    return null;\n                }\n\n                localStorage.setItem(profilerStorageKey + name, value);\n            },\n\n            requestStack = [],\n\n            renderAjaxRequests = function() {\n                var requestCounter = document.querySelectorAll('.sf-toolbar-ajax-requests');\n                if (!requestCounter.length) {\n                    return;\n                }\n\n                var ajaxToolbarPanel = document.querySelector('.sf-toolbar-block-ajax');\n                var tbodies = document.querySelectorAll('.sf-toolbar-ajax-request-list');\n                var state = 'ok';\n                if (tbodies.length) {\n                    var tbody = tbodies[0];\n\n                    var rows = document.createDocumentFragment();\n\n                    if (requestStack.length) {\n                        for (var i = 0; i < requestStack.length; i++) {\n                            var request = requestStack[i];\n\n                            var row = document.createElement('tr');\n                            rows.appendChild(row);\n\n                            var methodCell = document.createElement('td');\n                            if (request.error) {\n                                methodCell.className = 'sf-ajax-request-error';\n                            }\n                            methodCell.textContent = request.method;\n                            row.appendChild(methodCell);\n\n                            var pathCell = document.createElement('td');\n                            pathCell.className = 'sf-ajax-request-url';\n                            if ('GET' === request.method) {\n                                var pathLink = document.createElement('a');\n                                pathLink.setAttribute('href', request.url);\n                                pathLink.textContent = request.url;\n                                pathCell.appendChild(pathLink);\n                            } else {\n                                pathCell.textContent = request.url;\n                            }\n                            pathCell.setAttribute('title', request.url);\n                            row.appendChild(pathCell);\n\n                            var durationCell = document.createElement('td');\n                            durationCell.className = 'sf-ajax-request-duration';\n\n                            if (request.duration) {\n                                durationCell.textContent = request.duration + \"ms\";\n                            } else {\n                                durationCell.textContent = '-';\n                            }\n                            row.appendChild(durationCell);\n\n                            row.appendChild(document.createTextNode(' '));\n                            var profilerCell = document.createElement('td');\n\n                            if (request.profilerUrl) {\n                                var profilerLink = document.createElement('a');\n                                profilerLink.setAttribute('href', request.profilerUrl);\n                                profilerLink.textContent = request.profile;\n                                profilerCell.appendChild(profilerLink);\n                            } else {\n                                profilerCell.textContent = 'n/a';\n                            }\n\n                            row.appendChild(profilerCell);\n\n                            var requestState = 'ok';\n                            if (request.error) {\n                                requestState = 'error';\n                                if (state != \"loading\" && i > requestStack.length - 4) {\n                                    state = 'error';\n                                }\n                            } else if (request.loading) {\n                                requestState = 'loading';\n                                state = 'loading';\n                            }\n                            row.className = 'sf-ajax-request sf-ajax-request-' + requestState;\n                        }\n\n                        var infoSpan = document.querySelectorAll(\".sf-toolbar-ajax-info\")[0];\n                        var children = collectionToArray(tbody.children);\n                        for (var i = 0; i < children.length; i++) {\n                            tbody.removeChild(children[i]);\n                        }\n                        tbody.appendChild(rows);\n\n                        if (infoSpan) {\n                            var text = requestStack.length + ' AJAX request' + (requestStack.length > 1 ? 's' : '');\n                            infoSpan.textContent = text;\n                        }\n\n                        ajaxToolbarPanel.style.display = 'block';\n                    } else {\n                        ajaxToolbarPanel.style.display = 'none';\n                    }\n                }\n\n                requestCounter[0].textContent = requestStack.length;\n\n                var className = 'sf-toolbar-ajax-requests sf-toolbar-value';\n                requestCounter[0].className = className;\n\n                if (state == 'ok') {\n                    Sfjs.removeClass(ajaxToolbarPanel, 'sf-ajax-request-loading');\n                    Sfjs.removeClass(ajaxToolbarPanel, 'sf-toolbar-status-red');\n                } else if (state == 'error') {\n                    Sfjs.addClass(ajaxToolbarPanel, 'sf-toolbar-status-red');\n                } else {\n                    Sfjs.addClass(ajaxToolbarPanel, 'sf-ajax-request-loading');\n                }\n            };\n\n        var addEventListener;\n\n        var el = document.createElement('div');\n        if (!'addEventListener' in el) {\n            addEventListener = function (element, eventName, callback) {\n                element.attachEvent('on' + eventName, callback);\n            };\n        } else {\n            addEventListener = function (element, eventName, callback) {\n                element.addEventListener(eventName, callback, false);\n            };\n        }\n\n        ";
     // line 209
     if (array_key_exists("excluded_ajax_paths", $context)) {
         // line 210
         echo "            if (window.XMLHttpRequest && XMLHttpRequest.prototype.addEventListener) {\n                var proxied = XMLHttpRequest.prototype.open;\n\n                XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {\n                    var self = this;\n\n                    /* prevent logging AJAX calls to static and inline files, like templates */\n                    var path = url;\n                    if (url.substr(0, 1) === '/') {\n                        if (0 === url.indexOf('";
         // line 219
         echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true);
         echo "')) {\n                            path = url.substr(";
         // line 220
         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true);
         echo ");\n                        }\n                    }\n                    else if (0 === url.indexOf('";
         // line 223
         echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true);
         echo "')) {\n                        path = url.substr(";
         // line 224
         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true);
         echo ");\n                    }\n\n                    if (path.substr(0, 1) === '/' && !path.match(new RegExp(";
         // line 227
         echo twig_jsonencode_filter(isset($context["excluded_ajax_paths"]) ? $context["excluded_ajax_paths"] : $this->getContext($context, "excluded_ajax_paths"));
         echo "))) {\n                        var stackElement = {\n                            loading: true,\n                            error: false,\n                            url: url,\n                            method: method,\n                            start: new Date()\n                        };\n\n                        requestStack.push(stackElement);\n\n                        this.addEventListener('readystatechange', function() {\n                            if (self.readyState == 4) {\n                                stackElement.duration = new Date() - stackElement.start;\n                                stackElement.loading = false;\n                                stackElement.error = self.status < 200 || self.status >= 400;\n                                stackElement.profile = self.getResponseHeader(\"X-Debug-Token\");\n                                stackElement.profilerUrl = self.getResponseHeader(\"X-Debug-Token-Link\");\n\n                                Sfjs.renderAjaxRequests();\n                            }\n                        }, false);\n\n                        Sfjs.renderAjaxRequests();\n                    }\n\n                    proxied.apply(this, Array.prototype.slice.call(arguments));\n                };\n            }\n        ";
     }
     // line 257
     echo "\n        return {\n            hasClass: hasClass,\n\n            removeClass: removeClass,\n\n            addClass: addClass,\n\n            toggleClass: toggleClass,\n\n            getPreference: getPreference,\n\n            setPreference: setPreference,\n\n            addEventListener: addEventListener,\n\n            request: request,\n\n            renderAjaxRequests: renderAjaxRequests,\n\n            load: function(selector, url, onSuccess, onError, options) {\n                var el = document.getElementById(selector);\n\n                if (el && el.getAttribute('data-sfurl') !== url) {\n                    request(\n                        url,\n                        function(xhr) {\n                            el.innerHTML = xhr.responseText;\n                            el.setAttribute('data-sfurl', url);\n                            removeClass(el, 'loading');\n                            (onSuccess || noop)(xhr, el);\n                        },\n                        function(xhr) { (onError || noop)(xhr, el); },\n                        '',\n                        options\n                    );\n                }\n\n                return this;\n            },\n\n            toggle: function(selector, elOn, elOff) {\n                var tmp = elOn.style.display,\n                    el = document.getElementById(selector);\n\n                elOn.style.display = elOff.style.display;\n                elOff.style.display = tmp;\n\n                if (el) {\n                    el.style.display = 'none' === tmp ? 'none' : 'block';\n                }\n\n                return this;\n            },\n\n            createTabs: function() {\n                var tabGroups = document.querySelectorAll('.sf-tabs');\n\n                /* create the tab navigation for each group of tabs */\n                for (var i = 0; i < tabGroups.length; i++) {\n                    var tabs = tabGroups[i].querySelectorAll('.tab');\n                    var tabNavigation = document.createElement('ul');\n                    tabNavigation.className = 'tab-navigation';\n\n                    for (var j = 0; j < tabs.length; j++) {\n                        var tabId = 'tab-' + i + '-' + j;\n                        var tabTitle = tabs[j].querySelector('.tab-title').innerHTML;\n\n                        var tabNavigationItem = document.createElement('li');\n                        tabNavigationItem.setAttribute('data-tab-id', tabId);\n                        if (j == 0) { Sfjs.addClass(tabNavigationItem, 'active'); }\n                        if (Sfjs.hasClass(tabs[j], 'disabled')) { Sfjs.addClass(tabNavigationItem, 'disabled'); }\n                        tabNavigationItem.innerHTML = tabTitle;\n                        tabNavigation.appendChild(tabNavigationItem);\n\n                        var tabContent = tabs[j].querySelector('.tab-content');\n                        tabContent.parentElement.setAttribute('id', tabId);\n                    }\n\n                    tabGroups[i].insertBefore(tabNavigation, tabGroups[i].firstChild);\n                }\n\n                /* display the active tab and add the 'click' event listeners */\n                for (i = 0; i < tabGroups.length; i++) {\n                    tabNavigation = tabGroups[i].querySelectorAll('.tab-navigation li');\n\n                    for (j = 0; j < tabNavigation.length; j++) {\n                        tabId = tabNavigation[j].getAttribute('data-tab-id');\n                        document.getElementById(tabId).querySelector('.tab-title').className = 'hidden';\n\n                        if (Sfjs.hasClass(tabNavigation[j], 'active')) {\n                            document.getElementById(tabId).className = 'block';\n                        } else {\n                            document.getElementById(tabId).className = 'hidden';\n                        }\n\n                        tabNavigation[j].addEventListener('click', function(e) {\n                            var activeTab = e.target || e.srcElement;\n\n                            /* needed because when the tab contains HTML contents, user can click */\n                            /* on any of those elements instead of their parent '<li>' element */\n                            while (activeTab.tagName.toLowerCase() !== 'li') {\n                                activeTab = activeTab.parentNode;\n                            }\n\n                            /* get the full list of tabs through the parent of the active tab element */\n                            var tabNavigation = activeTab.parentNode.children;\n                            for (var k = 0; k < tabNavigation.length; k++) {\n                                var tabId = tabNavigation[k].getAttribute('data-tab-id');\n                                document.getElementById(tabId).className = 'hidden';\n                                Sfjs.removeClass(tabNavigation[k], 'active');\n                            }\n\n                            Sfjs.addClass(activeTab, 'active');\n                            var activeTabId = activeTab.getAttribute('data-tab-id');\n                            document.getElementById(activeTabId).className = 'block';\n                        });\n                    }\n                }\n            },\n\n            createToggles: function() {\n                var toggles = document.querySelectorAll('.sf-toggle');\n\n                for (var i = 0; i < toggles.length; i++) {\n                    var elementSelector = toggles[i].getAttribute('data-toggle-selector');\n                    var element = document.querySelector(elementSelector);\n\n                    Sfjs.addClass(element, 'sf-toggle-content');\n\n                    if (toggles[i].hasAttribute('data-toggle-initial') && toggles[i].getAttribute('data-toggle-initial') == 'display') {\n                        Sfjs.addClass(element, 'sf-toggle-visible');\n                    } else {\n                        Sfjs.addClass(element, 'sf-toggle-hidden');\n                    }\n\n                    Sfjs.addEventListener(toggles[i], 'click', function(e) {\n                        e.preventDefault();\n\n                        var toggle = e.target || e.srcElement;\n\n                        /* needed because when the toggle contains HTML contents, user can click */\n                        /* on any of those elements instead of their parent '.sf-toggle' element */\n                        while (!Sfjs.hasClass(toggle, 'sf-toggle')) {\n                            toggle = toggle.parentNode;\n                        }\n\n                        var element = document.querySelector(toggle.getAttribute('data-toggle-selector'));\n\n                        Sfjs.toggleClass(element, 'sf-toggle-hidden');\n                        Sfjs.toggleClass(element, 'sf-toggle-visible');\n\n                        /* the toggle doesn't change its contents when clicking on it */\n                        if (!toggle.hasAttribute('data-toggle-alt-content')) {\n                            return;\n                        }\n\n                        if (!toggle.hasAttribute('data-toggle-original-content')) {\n                            toggle.setAttribute('data-toggle-original-content', toggle.innerHTML);\n                        }\n\n                        var currentContent = toggle.innerHTML;\n                        var originalContent = toggle.getAttribute('data-toggle-original-content');\n                        var altContent = toggle.getAttribute('data-toggle-alt-content');\n                        toggle.innerHTML = currentContent !== altContent ? altContent : originalContent;\n                    });\n                }\n            }\n        };\n    })();\n\n    Sfjs.addEventListener(window, 'load', function() {\n        Sfjs.createTabs();\n        Sfjs.createToggles();\n    });\n\n/*]]>*/</script>\n";
     $__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34->leave($__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549 = $this->env->getExtension("native_profiler");
     $__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549->enter($__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/base_js.html.twig"));
     // line 1
     echo "<script>/*<![CDATA[*/\n    Sfjs = (function() {\n        \"use strict\";\n\n        var noop = function() {},\n\n            collectionToArray = function (collection) {\n                var length = collection.length || 0,\n                    results = new Array(length);\n\n                while (length--) {\n                    results[length] = collection[length];\n                }\n\n                return results;\n            },\n\n            profilerStorageKey = 'sf2/profiler/',\n\n            request = function(url, onSuccess, onError, payload, options) {\n                var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');\n                options = options || {};\n                options.maxTries = options.maxTries || 0;\n                xhr.open(options.method || 'GET', url, true);\n                xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n                xhr.onreadystatechange = function(state) {\n                    if (4 !== xhr.readyState) {\n                        return null;\n                    }\n\n                    if (xhr.status == 404 && options.maxTries > 1) {\n                        setTimeout(function(){\n                            options.maxTries--;\n                            request(url, onSuccess, onError, payload, options);\n                        }, 500);\n\n                        return null;\n                    }\n\n                    if (200 === xhr.status) {\n                        (onSuccess || noop)(xhr);\n                    } else {\n                        (onError || noop)(xhr);\n                    }\n                };\n                xhr.send(payload || '');\n            },\n\n            hasClass = function(el, klass) {\n                return el.className && el.className.match(new RegExp('\\\\b' + klass + '\\\\b'));\n            },\n\n            removeClass = function(el, klass) {\n                if (el.className) {\n                    el.className = el.className.replace(new RegExp('\\\\b' + klass + '\\\\b'), ' ');\n                }\n            },\n\n            addClass = function(el, klass) {\n                if (!hasClass(el, klass)) {\n                    el.className += \" \" + klass;\n                }\n            },\n\n            getPreference = function(name) {\n                if (!window.localStorage) {\n                    return null;\n                }\n\n                return localStorage.getItem(profilerStorageKey + name);\n            },\n\n            setPreference = function(name, value) {\n                if (!window.localStorage) {\n                    return null;\n                }\n\n                localStorage.setItem(profilerStorageKey + name, value);\n            },\n\n            requestStack = [],\n\n            renderAjaxRequests = function() {\n                var requestCounter = document.querySelectorAll('.sf-toolbar-ajax-requests');\n                if (!requestCounter.length) {\n                    return;\n                }\n\n                var tbodies = document.querySelectorAll('.sf-toolbar-ajax-request-list');\n                var state = 'ok';\n                if (tbodies.length) {\n                    var tbody = tbodies[0];\n\n                    var rows = document.createDocumentFragment();\n\n                    if (requestStack.length) {\n                        for (var i = 0; i < requestStack.length; i++) {\n                            var request = requestStack[i];\n\n                            var row = document.createElement('tr');\n                            rows.appendChild(row);\n\n                            var methodCell = document.createElement('td');\n                            if (request.error) {\n                                methodCell.className = 'sf-ajax-request-error';\n                            }\n                            methodCell.textContent = request.method;\n                            row.appendChild(methodCell);\n\n                            var pathCell = document.createElement('td');\n                            pathCell.className = 'sf-ajax-request-url';\n                            if ('GET' === request.method) {\n                                var pathLink = document.createElement('a');\n                                pathLink.setAttribute('href', request.url);\n                                pathLink.textContent = request.url;\n                                pathCell.appendChild(pathLink);\n                            } else {\n                                pathCell.textContent = request.url;\n                            }\n                            pathCell.setAttribute('title', request.url);\n                            row.appendChild(pathCell);\n\n                            var durationCell = document.createElement('td');\n                            durationCell.className = 'sf-ajax-request-duration';\n\n                            if (request.duration) {\n                                durationCell.textContent = request.duration + \"ms\";\n                            } else {\n                                durationCell.textContent = '-';\n                            }\n                            row.appendChild(durationCell);\n\n                            row.appendChild(document.createTextNode(' '));\n                            var profilerCell = document.createElement('td');\n\n                            if (request.profilerUrl) {\n                                var profilerLink = document.createElement('a');\n                                profilerLink.setAttribute('href', request.profilerUrl);\n                                profilerLink.textContent = request.profile;\n                                profilerCell.appendChild(profilerLink);\n                            } else {\n                                profilerCell.textContent = 'n/a';\n                            }\n\n                            row.appendChild(profilerCell);\n\n                            var requestState = 'ok';\n                            if (request.error) {\n                                requestState = 'error';\n                                if (state != \"loading\" && i > requestStack.length - 4) {\n                                    state = 'error';\n                                }\n                            } else if (request.loading) {\n                                requestState = 'loading';\n                                state = 'loading';\n                            }\n                            row.className = 'sf-ajax-request sf-ajax-request-' + requestState;\n                        }\n\n                        var infoSpan = document.querySelectorAll(\".sf-toolbar-ajax-info\")[0];\n                        var children = collectionToArray(tbody.children);\n                        for (var i = 0; i < children.length; i++) {\n                            tbody.removeChild(children[i]);\n                        }\n                        tbody.appendChild(rows);\n\n                        if (infoSpan) {\n                            var text = requestStack.length + ' call' + (requestStack.length > 1 ? 's' : '');\n                            infoSpan.textContent = text;\n                        }\n                    } else {\n                        var cell = document.createElement('td');\n                        cell.setAttribute('colspan', '4');\n                        cell.textContent = \"No AJAX requests yet.\";\n                        var row = document.createElement('tr');\n                        row.appendChild(cell);\n                        tbody.appendChild(row);\n                    }\n                }\n\n                requestCounter[0].textContent = requestStack.length;\n\n                var className = 'sf-toolbar-ajax-requests sf-toolbar-status';\n                if (state == 'ok') {\n                    className += ' sf-toolbar-status-green';\n                } else if (state == 'error') {\n                    className += ' sf-toolbar-status-red';\n                } else {\n                    className += ' sf-ajax-request-loading';\n                }\n\n                requestCounter[0].className = className;\n            };\n\n        var addEventListener;\n\n        var el = document.createElement('div');\n        if (!'addEventListener' in el) {\n            addEventListener = function (element, eventName, callback) {\n                element.attachEvent('on' + eventName, callback);\n            };\n        } else {\n            addEventListener = function (element, eventName, callback) {\n                element.addEventListener(eventName, callback, false);\n            };\n        }\n\n        ";
     // line 208
     if (array_key_exists("excluded_ajax_paths", $context)) {
         // line 209
         echo "            if (window.XMLHttpRequest && XMLHttpRequest.prototype.addEventListener) {\n                var proxied = XMLHttpRequest.prototype.open;\n\n                XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {\n                    var self = this;\n\n                    /* prevent logging AJAX calls to static and inline files, like templates */\n                    var path = url;\n                    if (url.substr(0, 1) === '/') {\n                        if (0 === url.indexOf('";
         // line 218
         echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true);
         echo "')) {\n                            path = url.substr(";
         // line 219
         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true);
         echo ");\n                        }\n                    }\n                    else if (0 === url.indexOf('";
         // line 222
         echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true);
         echo "')) {\n                        path = url.substr(";
         // line 223
         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true);
         echo ");\n                    }\n\n                    if (path.substr(0, 1) === '/' && !path.match(new RegExp(";
         // line 226
         echo twig_jsonencode_filter(isset($context["excluded_ajax_paths"]) ? $context["excluded_ajax_paths"] : $this->getContext($context, "excluded_ajax_paths"));
         echo "))) {\n                        var stackElement = {\n                            loading: true,\n                            error: false,\n                            url: url,\n                            method: method,\n                            start: new Date()\n                        };\n\n                        requestStack.push(stackElement);\n\n                        this.addEventListener('readystatechange', function() {\n                            if (self.readyState == 4) {\n                                stackElement.duration = new Date() - stackElement.start;\n                                stackElement.loading = false;\n                                stackElement.error = self.status < 200 || self.status >= 400;\n                                stackElement.profile = self.getResponseHeader(\"X-Debug-Token\");\n                                stackElement.profilerUrl = self.getResponseHeader(\"X-Debug-Token-Link\");\n\n                                Sfjs.renderAjaxRequests();\n                            }\n                        }, false);\n\n                        Sfjs.renderAjaxRequests();\n                    }\n\n                    proxied.apply(this, Array.prototype.slice.call(arguments));\n                };\n            }\n        ";
     }
     // line 256
     echo "\n        return {\n            hasClass: hasClass,\n\n            removeClass: removeClass,\n\n            addClass: addClass,\n\n            getPreference: getPreference,\n\n            setPreference: setPreference,\n\n            addEventListener: addEventListener,\n\n            request: request,\n\n            renderAjaxRequests: renderAjaxRequests,\n\n            load: function(selector, url, onSuccess, onError, options) {\n                var el = document.getElementById(selector);\n\n                if (el && el.getAttribute('data-sfurl') !== url) {\n                    request(\n                        url,\n                        function(xhr) {\n                            el.innerHTML = xhr.responseText;\n                            el.setAttribute('data-sfurl', url);\n                            removeClass(el, 'loading');\n                            (onSuccess || noop)(xhr, el);\n                        },\n                        function(xhr) { (onError || noop)(xhr, el); },\n                        '',\n                        options\n                    );\n                }\n\n                return this;\n            },\n\n            toggle: function(selector, elOn, elOff) {\n                var tmp = elOn.style.display,\n                    el = document.getElementById(selector);\n\n                elOn.style.display = elOff.style.display;\n                elOff.style.display = tmp;\n\n                if (el) {\n                    el.style.display = 'none' === tmp ? 'none' : 'block';\n                }\n\n                return this;\n            }\n        }\n    })();\n/*]]>*/</script>\n";
     $__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549->leave($__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $context = array_merge($this->env->getGlobals(), $context);
     // line 1
     echo twig_jsonencode_filter($this->getAttribute($this->getContext($context, 'exception'), "toarray", array(), "any", false));
     echo "\n";
 }
 public function block_input($context, array $blocks = array())
 {
     // line 7
     echo "    ";
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "array", array())) {
         // line 8
         echo "        ";
         $context["name"] = (isset($context["name"]) ? $context["name"] : null) . "._json";
         // line 9
         echo "        ";
         $context["value"] = twig_jsonencode_filter(array_key_exists("value", $context) ? _twig_default_filter(isset($context["value"]) ? $context["value"] : null, array()) : array());
         // line 10
         echo "        ";
     } else {
         // line 11
         echo "        ";
         $context["value"] = twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", ");
         // line 12
         echo "    ";
     }
     // line 13
     echo "\n    <input\n        ";
     // line 16
     echo "        type=\"hidden\"\n        name=\"";
     // line 17
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null)), "html", null, true);
     echo "\"\n        value=\"";
     // line 18
     echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : null, "html", null, true);
     echo "\"\n        ";
     // line 20
     echo "        ";
     $this->displayBlock("global_attributes", $context, $blocks);
     echo "\n    />\n";
 }
    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo twig_jsonencode_filter($this->getAttribute((isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception")), "toarray", array()));
        echo "
";
    }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<ul class=\"g-bookmark-folders fa-ul\">\n    ";
     // line 2
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["folder"]) ? $context["folder"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["bookmarkFolder"]) {
         // line 3
         echo "        <li data-folder=\"";
         echo twig_escape_filter($this->env, twig_jsonencode_filter($context["bookmarkFolder"]), "html_attr");
         echo "\"";
         echo twig_in_filter($this->getAttribute($context["bookmarkFolder"], "pathname", array()), isset($context["active"]) ? $context["active"] : null) ? " class=\"active\"" : "";
         echo "><i class=\"fa-li fa fa-folder-o\"></i> <span class=\"path\" title=\"";
         echo twig_escape_filter($this->env, $this->getAttribute($context["bookmarkFolder"], "filename", array()), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute($context["bookmarkFolder"], "filename", array()), "html", null, true);
         echo "</span></li>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bookmarkFolder'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 5
     echo "</ul>\n";
 }
    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo twig_jsonencode_filter(array("error" => array("code" => (isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code")), "message" => (isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text")))));
        echo "
";
    }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context['__cms_partial_params'] = [];
     echo $this->env->getExtension('CMS')->partialFunction("errors", $context['__cms_partial_params']);
     unset($context['__cms_partial_params']);
     // line 2
     echo "\n";
     // line 3
     echo call_user_func_array($this->env->getFunction('form_open')->getCallable(), array("open", array("request" => "contactForm::onSaveForm", "id" => "rafie_contactform", "enctype" => "multipart/form-data", "method" => "POST", "files" => true)));
     echo "\n<input type=\"hidden\" name=\"fid\" value=\"";
     // line 4
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "id", array()), "html", null, true);
     echo "\"/>\n<input type=\"hidden\" name=\"tid\" value=\"";
     // line 5
     echo twig_escape_filter($this->env, isset($context["mailTemplate"]) ? $context["mailTemplate"] : null, "html", null, true);
     echo "\"/>\n<input type=\"hidden\" name=\"g-recaptcha-response\" value=\"dd\">\n";
     // line 7
     echo isset($context["formHtml"]) ? $context["formHtml"] : null;
     echo "\n    ";
     // line 8
     if (isset($context["gCaptcha"]) ? $context["gCaptcha"] : null) {
         // line 9
         echo "<div class=\"form-group\">\n  <div class=\"g-recaptcha\" data-sitekey=\"";
         // line 10
         echo twig_escape_filter($this->env, isset($context["gCaptcha"]) ? $context["gCaptcha"] : null, "html", null, true);
         echo "\"></div>\n</div>\n";
     }
     // line 13
     echo "<div class=\"form-buttons\">\n  <div class=\"loading-indicator-container\">\n    <button id=\"rafie_saveForm\" class=\"btn btn-light btn-lg mb64\"> Send Message </button>\n  </div>\n</div>\n";
     // line 18
     echo call_user_func_array($this->env->getFunction('form_close')->getCallable(), array("close"));
     echo "\n\n";
     // line 20
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.js"></script>' . PHP_EOL;
     echo '<script src="' . Request::getBasePath() . '/modules/system/assets/js/framework.extras.js"></script>' . PHP_EOL;
     echo '<link href="' . Request::getBasePath() . '/modules/system/assets/css/framework.extras.css" rel="stylesheet">' . PHP_EOL;
     // line 21
     echo "\n<link rel=\"stylesheet\" href=\"";
     // line 22
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "\$/rafie/contactform/assets/css/formcontrol.css"));
     echo "\"/>\n<script src=\"";
     // line 23
     echo $this->env->getExtension('CMS')->themeFilter(array(0 => "\$/rafie/contactform/assets/js/jquery.validate.min.js"));
     echo "\"></script> \n<script>\n";
     // line 25
     if ($this->getAttribute($this->getAttribute(isset($context["this"]) ? $context["this"] : null, "session", array()), "get", array(0 => "error", 1 => false), "method")) {
         // line 26
         echo "    function clearForm() {\n        \$(\"#rafie_contactform\")[0].reset();\n    }//clearForm\n";
     } else {
         // line 30
         echo "    \$(function () {\n        var messages = ";
         // line 31
         echo twig_jsonencode_filter($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "messages", array()));
         echo ",\n            rules = [];\n\n        for (i in messages) {\n            name = messages[i].name;\n            validationType = messages[i].ValidationType;\n            message = messages[i].message;\n\n            rules[name] = {\n                required: message,\n                email: \"Please verify your input\"\n            };\n        }//for\n\n        //\$(\"#rafie_contactform\").validate({messages: rules});\n    });\n    \n";
     }
     // line 49
     echo "</script>";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"jqplot-graph\">\n    <div class=\"piwik-graph\" data-data=\"";
     // line 2
     echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(isset($context["visualization"]) ? $context["visualization"] : $this->getContext($context, "visualization"), "getGraphData", array(0 => isset($context["dataTable"]) ? $context["dataTable"] : $this->getContext($context, "dataTable"), 1 => isset($context["properties"]) ? $context["properties"] : $this->getContext($context, "properties")), "method")), "html", null, true);
     echo "\"></div>\n</div>";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "require({\n    config: {\n        'oro/translator': {\n            messages: '";
     // line 4
     echo twig_escape_filter($this->env, twig_jsonencode_filter(twig_source($this->env, $this->env->getExtension('pim_translations_extension')->getTranslationsFile())), "js", null, true);
     echo "'\n        }\n    }\n});\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "require({\n    baseUrl: ";
     // line 2
     echo twig_jsonencode_filter($this->env->getExtension('asset')->getAssetUrl("bundles"));
     echo "\n});\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_2d36311a75ef2b72c50912444f55ee7555c0b0bdfb5d23820a434dd36e975015 = $this->env->getExtension("native_profiler");
     $__internal_2d36311a75ef2b72c50912444f55ee7555c0b0bdfb5d23820a434dd36e975015->enter($__internal_2d36311a75ef2b72c50912444f55ee7555c0b0bdfb5d23820a434dd36e975015_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "SonataDoctrinePHPCRAdminBundle:Tree:tree.html.twig"));
     // line 11
     echo "\n";
     // line 12
     $this->loadTemplate("CmfTreeBrowserBundle:Base:tree.html.twig", "SonataDoctrinePHPCRAdminBundle:Tree:tree.html.twig", 12)->display($context);
     // line 13
     echo "<script type=\"text/javascript\">\n    \$(document).ready(function() {\n        var treeState = AdminTree.generateTreeStateArray(\"";
     // line 15
     echo twig_escape_filter($this->env, isset($context["selected_node"]) ? $context["selected_node"] : $this->getContext($context, "selected_node"), "html", null, true);
     echo "\");\n        var defaults = ";
     // line 16
     $this->loadTemplate("SonataDoctrinePHPCRAdminBundle:Tree:routing_defaults.html.twig", "SonataDoctrinePHPCRAdminBundle:Tree:tree.html.twig", 16)->display(array_merge($context, array("routing_defaults" => isset($context["routing_defaults"]) ? $context["routing_defaults"] : $this->getContext($context, "routing_defaults"))));
     echo ";\n\n        AdminTree.initTree({\n            \"selector\": \"#tree\",\n            \"rootNode\": \"";
     // line 20
     echo twig_escape_filter($this->env, isset($context["root_node"]) ? $context["root_node"] : $this->getContext($context, "root_node"), "html", null, true);
     echo "\",\n            \"selected\": \"";
     // line 21
     echo twig_escape_filter($this->env, isset($context["selected_node"]) ? $context["selected_node"] : $this->getContext($context, "selected_node"), "html", null, true);
     echo "\",\n            \"labels\": ";
     // line 22
     echo twig_jsonencode_filter($this->getAttribute(isset($context["tree"]) ? $context["tree"] : $this->getContext($context, "tree"), "labels", array()));
     echo ",\n            \"ajax\": {\n                \"children_url\": Routing.generate(\"_cmf_tree_";
     // line 24
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tree"]) ? $context["tree"] : $this->getContext($context, "tree"), "alias", array()), "html", null, true);
     echo "_children\", defaults),\n                \"move_url\": Routing.generate(\"_cmf_tree_";
     // line 25
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tree"]) ? $context["tree"] : $this->getContext($context, "tree"), "alias", array()), "html", null, true);
     echo "_move\", defaults),\n                \"reorder_url\": Routing.generate(\"_cmf_tree_";
     // line 26
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tree"]) ? $context["tree"] : $this->getContext($context, "tree"), "alias", array()), "html", null, true);
     echo "_reorder\", defaults)\n            },\n            \"path\": {\n                \"expanded\":     treeState,\n                \"preloaded\":    treeState\n            },\n            \"types\": ";
     // line 32
     echo twig_jsonencode_filter($this->getAttribute(isset($context["tree"]) ? $context["tree"] : $this->getContext($context, "tree"), "nodeTypes", array()));
     echo ",\n\n            \"routing_defaults\": defaults,\n            \"createInOverlay\": \"";
     // line 35
     echo twig_escape_filter($this->env, isset($context["create_in_overlay"]) ? $context["create_in_overlay"] : $this->getContext($context, "create_in_overlay"), "html", null, true);
     echo "\",\n            \"editInOverlay\": \"";
     // line 36
     echo twig_escape_filter($this->env, isset($context["edit_in_overlay"]) ? $context["edit_in_overlay"] : $this->getContext($context, "edit_in_overlay"), "html", null, true);
     echo "\",\n            \"deleteInOverlay\": \"";
     // line 37
     echo twig_escape_filter($this->env, isset($context["delete_in_overlay"]) ? $context["delete_in_overlay"] : $this->getContext($context, "delete_in_overlay"), "html", null, true);
     echo "\"\n        });\n\n        ";
     // line 40
     if (array_key_exists("confirm_move", $context) && (isset($context["confirm_move"]) ? $context["confirm_move"] : $this->getContext($context, "confirm_move"))) {
         // line 41
         echo "            \$('#tree').on('cmf_tree.move', function(e) {\n                if (!confirm('";
         // line 42
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("confirm_move_node", array(), "SonataDoctrinePHPCRAdmin"), "html", null, true);
         echo "')) {\n                    e.preventDefault();\n                }\n            });\n        ";
     }
     // line 47
     echo "    });\n</script>\n\n<div id=\"tree\"></div>\n";
     $__internal_2d36311a75ef2b72c50912444f55ee7555c0b0bdfb5d23820a434dd36e975015->leave($__internal_2d36311a75ef2b72c50912444f55ee7555c0b0bdfb5d23820a434dd36e975015_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_82f3676842b54c1947b5ea84a705efa22e8f4952d9c9c8944144a30e2e1097a8 = $this->env->getExtension("native_profiler");
     $__internal_82f3676842b54c1947b5ea84a705efa22e8f4952d9c9c8944144a30e2e1097a8->enter($__internal_82f3676842b54c1947b5ea84a705efa22e8f4952d9c9c8944144a30e2e1097a8_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Twig/Exception/error.json.twig"));
     // line 1
     echo twig_jsonencode_filter(array("error" => array("code" => isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code"), "message" => isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text"))));
     echo "\n";
     $__internal_82f3676842b54c1947b5ea84a705efa22e8f4952d9c9c8944144a30e2e1097a8->leave($__internal_82f3676842b54c1947b5ea84a705efa22e8f4952d9c9c8944144a30e2e1097a8_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_3fda09bdc7f0c3b596452d291e58c2c052316f0d1791f3c5a3131ef524fd34ed = $this->env->getExtension("native_profiler");
     $__internal_3fda09bdc7f0c3b596452d291e58c2c052316f0d1791f3c5a3131ef524fd34ed->enter($__internal_3fda09bdc7f0c3b596452d291e58c2c052316f0d1791f3c5a3131ef524fd34ed_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:error.json.twig"));
     // line 1
     echo twig_jsonencode_filter(array("error" => array("code" => isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code"), "message" => isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text"))));
     echo "\n";
     $__internal_3fda09bdc7f0c3b596452d291e58c2c052316f0d1791f3c5a3131ef524fd34ed->leave($__internal_3fda09bdc7f0c3b596452d291e58c2c052316f0d1791f3c5a3131ef524fd34ed_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_93e64d949478d135cd2529e4a9046a222fe32837a32ec27174729ccf994ebcbc = $this->env->getExtension("native_profiler");
     $__internal_93e64d949478d135cd2529e4a9046a222fe32837a32ec27174729ccf994ebcbc->enter($__internal_93e64d949478d135cd2529e4a9046a222fe32837a32ec27174729ccf994ebcbc_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:exception.json.twig"));
     // line 1
     echo twig_jsonencode_filter(array("error" => array("code" => $this->getContext($context, "status_code"), "message" => $this->getContext($context, "status_text"), "exception" => $this->getAttribute($this->getContext($context, "exception"), "toarray", array()))));
     echo "\n";
     $__internal_93e64d949478d135cd2529e4a9046a222fe32837a32ec27174729ccf994ebcbc->leave($__internal_93e64d949478d135cd2529e4a9046a222fe32837a32ec27174729ccf994ebcbc_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_9b14e853f0cab9f1a944ced835bdd17348a66128cc44169567b4945628509879 = $this->env->getExtension("native_profiler");
     $__internal_9b14e853f0cab9f1a944ced835bdd17348a66128cc44169567b4945628509879->enter($__internal_9b14e853f0cab9f1a944ced835bdd17348a66128cc44169567b4945628509879_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:exception.json.twig"));
     // line 1
     echo twig_jsonencode_filter(array("error" => array("code" => isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code"), "message" => isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text"), "exception" => $this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "toarray", array()))));
     echo "\n";
     $__internal_9b14e853f0cab9f1a944ced835bdd17348a66128cc44169567b4945628509879->leave($__internal_9b14e853f0cab9f1a944ced835bdd17348a66128cc44169567b4945628509879_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_3187c3acf8706a8035b6e403a7f60a0d58872ab69b23fbe32f1f0b4eb0fb85d5 = $this->env->getExtension("native_profiler");
     $__internal_3187c3acf8706a8035b6e403a7f60a0d58872ab69b23fbe32f1f0b4eb0fb85d5->enter($__internal_3187c3acf8706a8035b6e403a7f60a0d58872ab69b23fbe32f1f0b4eb0fb85d5_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:error.json.twig"));
     // line 1
     echo twig_jsonencode_filter(array("error" => array("code" => isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code"), "message" => isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text"))));
     echo "\n";
     $__internal_3187c3acf8706a8035b6e403a7f60a0d58872ab69b23fbe32f1f0b4eb0fb85d5->leave($__internal_3187c3acf8706a8035b6e403a7f60a0d58872ab69b23fbe32f1f0b4eb0fb85d5_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_b0260961e76fb8da9ba5e4e8c14a3c8e88fce09b24f5502fab335b9da1fc6d38 = $this->env->getExtension("native_profiler");
     $__internal_b0260961e76fb8da9ba5e4e8c14a3c8e88fce09b24f5502fab335b9da1fc6d38->enter($__internal_b0260961e76fb8da9ba5e4e8c14a3c8e88fce09b24f5502fab335b9da1fc6d38_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Twig/Exception/exception.json.twig"));
     // line 1
     echo twig_jsonencode_filter(array("error" => array("code" => isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code"), "message" => isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text"), "exception" => $this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "toarray", array()))));
     echo "\n";
     $__internal_b0260961e76fb8da9ba5e4e8c14a3c8e88fce09b24f5502fab335b9da1fc6d38->leave($__internal_b0260961e76fb8da9ba5e4e8c14a3c8e88fce09b24f5502fab335b9da1fc6d38_prof);
 }
 public function getelement($tree = null)
 {
     $context = $this->env->mergeGlobals(array("tree" => $tree));
     $blocks = array();
     ob_start();
     try {
         // line 5
         echo "[";
         // line 6
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getContext($context, "tree"));
         $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["element"]) {
             // line 7
             echo "[";
             // line 8
             echo twig_jsonencode_filter($this->getAttribute($this->getContext($context, "element"), 0, array(), "array"));
             echo ",";
             // line 9
             echo $this->getAttribute($this->getContext($context, "element"), 1, array(), "array") ? twig_jsonencode_filter(!$this->getAttribute($this->getContext($context, "element"), 2, array(), "array") ? $this->env->getExtension('sami')->pathForClass($context, $this->getAttribute($this->getContext($context, "element"), 1, array(), "array")) : $this->env->getExtension('sami')->pathForNamespace($context, $this->getAttribute($this->getContext($context, "element"), 1, array(), "array"))) : "";
             echo ",";
             // line 10
             echo twig_jsonencode_filter(!$this->getAttribute($this->getContext($context, "element"), 2, array(), "array") && $this->getAttribute($this->getAttribute($this->getContext($context, "element"), 1, array(), "array"), "parent") ? " < " . $this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "element"), 1, array(), "array"), "parent"), "shortname") : "");
             echo ",\n                ";
             // line 11
             echo $this->getAttribute($this, "element", array(0 => $this->getAttribute($this->getContext($context, "element"), 2, array(), "array")), "method");
             // line 12
             echo "]";
             // line 13
             echo $this->getAttribute($this->getContext($context, "loop"), "last") ? "" : ",";
             ++$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['element'], $context['_parent'], $context['loop']);
         $context = array_merge($_parent, array_intersect_key($context, $_parent));
         // line 15
         echo "        ]";
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return ob_get_clean();
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_673460af7d8df3ca3ada302042000007cbda138b0dcbacd3d712c9866717dd90 = $this->env->getExtension("native_profiler");
     $__internal_673460af7d8df3ca3ada302042000007cbda138b0dcbacd3d712c9866717dd90->enter($__internal_673460af7d8df3ca3ada302042000007cbda138b0dcbacd3d712c9866717dd90_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:error.json.twig"));
     // line 1
     echo twig_jsonencode_filter(array("error" => array("code" => isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code"), "message" => isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text"))));
     echo "\n";
     $__internal_673460af7d8df3ca3ada302042000007cbda138b0dcbacd3d712c9866717dd90->leave($__internal_673460af7d8df3ca3ada302042000007cbda138b0dcbacd3d712c9866717dd90_prof);
 }