<?php

/* @websiteWidgets/form_elements/templates/textarea.twig.html */
class __TwigTemplate_bf66e127e4cc586bf38f65bd7cdf087b516a8711c69c7c578d5c3add43403968 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 "\" 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-textarea 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 "\" data-widget=\"form_elements.textarea\">
    ";
        // line 2
        if ((isset($context["isPreview"]) ? $context["isPreview"] : null)) {
            // line 3
            echo "        <div class=\"moto-widget-cover\"></div>
    ";
        }
        // line 5
        echo "    <div class=\"moto-form__element moto-form__element_textarea\" 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 class=\"moto-form__field\">
            <textarea class=\"moto-form__field-control moto-form__field-control_textarea\"
                      name=\"";
        // line 8
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getFieldName", [], "method"), "html", null, true);
        echo "\"
                      ng-model=\"message['";
        // line 9
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getFieldName", [], "method"), "html", null, true);
        echo "']\"
                      ng-change=\"onFieldChanged('";
        // line 10
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getFieldName", [], "method"), "html", null, true);
        echo "')\"
                      placeholder=\"";
        // line 11
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "placeholder", []), "html", null, true);
        echo "\"
                      ";
        // line 12
        if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "validation", []), "stringLength", []), "allowMin", [])) {
            echo " ng-minlength=\"";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "validation", []), "stringLength", []), "minValue", []), "html", null, true);
            echo "\"";
        }
        // line 13
        echo "                      ";
        if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "validation", []), "stringLength", []), "allowMax", [])) {
            echo " ng-maxlength=\"";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "validation", []), "stringLength", []), "maxValue", []), "html", null, true);
            echo "\"";
        }
        // line 14
        echo "                      ";
        if ($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "validation", []), "required", [])) {
            echo " required";
        }
        echo "></textarea>
        </div>
        ";
        // line 16
        if ($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "description", []), "text", [])) {
            echo "<div class=\"moto-form__field-description ";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "description", []), "style", []), "html", null, true);
            echo " ";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getAlignClass", [0 => "moto-align-", 1 => "description.align"], "method"), "html", null, true);
            echo "\">";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "description", []), "text", []), "html", null, true);
            echo "</div>";
        }
        // line 17
        echo "        ";
        if ((isset($context["isPreview"]) ? $context["isPreview"] : null)) {
            // line 18
            echo "            <div class=\"moto-form__errors moto-form__errors_only-first\"></div>
        ";
        } else {
            // line 20
            echo "            <div data-moto-form-errors class=\"moto-form__errors moto-form__errors_only-first\"
                 data-field-name=\"";
            // line 21
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getFieldName", [], "method"), "html", null, true);
            echo "\"
                 data-field-type=\"";
            // line 22
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getFieldType", [], "method"), "html", null, true);
            echo "\"
                 data-rules=\"";
            // line 23
            echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getValidationRules", [], "method")), "html", null, true);
            echo "\"
                 data-form=\"\$FORM\"></div>
        ";
        }
        // line 26
        echo "        <style type=\"text/css\">
            ";
        // line 27
        $context["styles"] = $this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "styles", []);
        // line 28
        echo "            ";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["StyleHelper"]) ? $context["StyleHelper"] : null), "generateLessFromArray", [0 => $this->getAttribute($this->getAttribute((isset($context["styles"]) ? $context["styles"] : null), "desktop", []), "base", []), 1 => (("#" . $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getWidgetId", [], "method")) . " .moto-form__field-control_textarea")], "method"), "html", null, true);
        echo "
            @media screen and (max-width: ";
        // line 29
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["StyleHelper"]) ? $context["StyleHelper"] : null), "getConstant", [0 => "const_media_tablet_max_width"], "method"), "html", null, true);
        echo ") {
                ";
        // line 30
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["StyleHelper"]) ? $context["StyleHelper"] : null), "generateLessFromArray", [0 => $this->getAttribute($this->getAttribute((isset($context["styles"]) ? $context["styles"] : null), "tablet", []), "base", []), 1 => (("#" . $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getWidgetId", [], "method")) . " .moto-form__field-control_textarea")], "method"), "html", null, true);
        echo "
            }
            @media screen and (max-width: ";
        // line 32
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["StyleHelper"]) ? $context["StyleHelper"] : null), "getConstant", [0 => "const_media_mobile-h_max_width"], "method"), "html", null, true);
        echo ") {
                ";
        // line 33
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["StyleHelper"]) ? $context["StyleHelper"] : null), "generateLessFromArray", [0 => $this->getAttribute($this->getAttribute((isset($context["styles"]) ? $context["styles"] : null), "mobile-h", [], "array"), "base", []), 1 => (("#" . $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getWidgetId", [], "method")) . " .moto-form__field-control_textarea")], "method"), "html", null, true);
        echo "
            }
            @media screen and (max-width: ";
        // line 35
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["StyleHelper"]) ? $context["StyleHelper"] : null), "getConstant", [0 => "const_media_mobile-v_max_width"], "method"), "html", null, true);
        echo ") {
                ";
        // line 36
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["StyleHelper"]) ? $context["StyleHelper"] : null), "generateLessFromArray", [0 => $this->getAttribute($this->getAttribute((isset($context["styles"]) ? $context["styles"] : null), "mobile-v", [], "array"), "base", []), 1 => (("#" . $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getWidgetId", [], "method")) . " .moto-form__field-control_textarea")], "method"), "html", null, true);
        echo "
            }
        </style>
    </div>
</div>";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  148 => 36,  144 => 35,  139 => 33,  135 => 32,  130 => 30,  126 => 29,  121 => 28,  119 => 27,  116 => 26,  110 => 23,  106 => 22,  102 => 21,  99 => 20,  95 => 18,  92 => 17,  82 => 16,  74 => 14,  67 => 13,  61 => 12,  57 => 11,  53 => 10,  49 => 9,  45 => 8,  36 => 5,  32 => 3,  30 => 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/textarea.twig.html", "/data05/c3111787/public_html/brcc.me.uk/mt-includes/widgets/form_elements/templates/textarea.twig.html");
    }
}
