<?php

/* @websiteWidgets/form_elements/templates/recaptcha.twig.html */
class __TwigTemplate_6f5f0a3e6f0d53420a640a1d4e83b6154746e2a1a260c873b2c37cc7faa9d25a extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        echo "<div data-widget-id=\"";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getWidgetId", [], "method"), "html", null, true);
        echo "\" class=\"moto-widget moto-widget-form_elements-recaptcha moto-preset-";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getCurrentPreset", [], "method"), "html", null, true);
        echo " ";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getSpacing", [0 => "classes"], "method"), "html", null, true);
        echo " ";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getAlignClass", [], "method"), "html", null, true);
        echo "\" data-widget=\"form_elements.recaptcha\" data-field-name=\"";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getFieldName", [], "method"), "html", null, true);
        echo "\">
    ";
        // line 2
        if ((isset($context["isPreview"]) ? $context["isPreview"] : null)) {
            // line 3
            echo "    <div class=\"moto-widget-cover\"></div>
    <div class=\"moto-widget-empty\"></div>
    ";
        } else {
            // line 6
            echo "    <div class=\"moto-form__element moto-form__element_recaptcha\" ng-class=\"{'moto-form__element_invalid' : (\$FORM.\$submitted || \$FORM['";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getFieldName", [], "method"), "html", null, true);
            echo "'].\$touched) && \$FORM['";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getFieldName", [], "method"), "html", null, true);
            echo "'].\$invalid}\">
        <div vc-recaptcha on-create=\"setWidgetId(widgetId)\" ng-model=\"message['";
            // line 7
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getFieldName", [], "method"), "html", null, true);
            echo "']\" data-key=\"'";
            echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getIntegrationSiteKey", [], "method", true, true)) ? (_twig_default_filter($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getIntegrationSiteKey", [], "method"), "EMPTY")) : ("EMPTY")), "html", null, true);
            echo "'\" data-theme=\"";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "theme", []), "html", null, true);
            echo "\" data-size=\"";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "size", []), "html", null, true);
            echo "\"></div>
        <input type=\"hidden\" name=\"";
            // line 8
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getFieldName", [], "method"), "html", null, true);
            echo "\" ng-change=\"onFieldChanged('";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getFieldName", [], "method"), "html", null, true);
            echo "')\" ng-model=\"message['";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getFieldName", [], "method"), "html", null, true);
            echo "']\" required>
        <div data-moto-form-errors class=\"moto-form__errors moto-form__errors_only-first\" data-field-name=\"";
            // line 9
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getFieldName", [], "method"), "html", null, true);
            echo "\" data-form=\"\$FORM\"></div>
    </div>
    ";
        }
        // line 12
        echo "</div>";
    }

    public function getTemplateName()
    {
        return "@websiteWidgets/form_elements/templates/recaptcha.twig.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  70 => 12,  64 => 9,  56 => 8,  46 => 7,  39 => 6,  34 => 3,  32 => 2,  19 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Twig_Source("", "@websiteWidgets/form_elements/templates/recaptcha.twig.html", "/data05/c3111787/public_html/brcc.me.uk/mt-includes/widgets/form_elements/templates/recaptcha.twig.html");
    }
}
