<?php

/* @websiteWidgets/form_elements/templates/status_message.twig.html */
class __TwigTemplate_b7c15d938bf4904f9d199e457196137a08317e55d22b7737d5ced7f27a576296 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-status_message 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), "getAlignClass", [], "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.status_message\">
    ";
        // line 2
        if ((isset($context["isPreview"]) ? $context["isPreview"] : null)) {
            // line 3
            echo "        <div class=\"moto-widget-cover\"></div>
        ";
            // line 4
            if ($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "__showMessageName", [])) {
                // line 5
                echo "            <div class=\"moto-widget-form_elements-status_message__message\">
            ";
                // line 6
                if (($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "__showMessageName", []) == "statusSending")) {
                    // line 7
                    echo "                <label class=\"moto-widget-form_elements-status_message__message-sending ";
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "statusSendingStyle", []), "html", null, true);
                    echo "\">";
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "statusSendingText", []), "html", null, true);
                    echo "</label>
            ";
                }
                // line 9
                echo "            ";
                if (($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "__showMessageName", []) == "sendingSuccess")) {
                    // line 10
                    echo "                <label class=\"moto-widget-form_elements-status_message__message-sending-success ";
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "sendingSuccessStyle", []), "html", null, true);
                    echo "\">";
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "sendingSuccessText", []), "html", null, true);
                    echo "</label>
            ";
                }
                // line 12
                echo "            ";
                if (($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "__showMessageName", []) == "sendingError")) {
                    // line 13
                    echo "                <label class=\"moto-widget-form_elements-status_message__message-sending-error ";
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "sendingErrorStyle", []), "html", null, true);
                    echo "\">";
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "sendingErrorText", []), "html", null, true);
                    echo "</label>
            ";
                }
                // line 15
                echo "            </div>
            ";
            } else {
                // line 17
                echo "                <div class=\"moto-widget-empty\"></div>
        ";
            }
            // line 19
            echo "    ";
        } else {
            // line 20
            echo "        <div ng-switch=\"\$FORM._\$state\" class=\"moto-widget-form_elements-status_message__message\" data-ng-cloak>
            ";
            // line 21
            if ($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "statusSendingText", [])) {
                // line 22
                echo "            <label ng-switch-when=\"SENDING\" class=\"moto-widget-form_elements-status_message__message-sending ";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "statusSendingStyle", []), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "statusSendingText", []), "html", null, true);
                echo "</label>
            ";
            }
            // line 24
            echo "            ";
            if ($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "sendingSuccessText", [])) {
                // line 25
                echo "            <label ng-switch-when=\"SENDING_SUCCESS\" class=\"moto-widget-form_elements-status_message__message-sending-success ";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "sendingSuccessStyle", []), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "sendingSuccessText", []), "html", null, true);
                echo "</label>
            ";
            }
            // line 27
            echo "            ";
            if ($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "sendingErrorText", [])) {
                // line 28
                echo "            <label ng-switch-when=\"SENDING_ERROR\" class=\"moto-widget-form_elements-status_message__message-sending-error ";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "sendingErrorStyle", []), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "messages", []), "sendingErrorText", []), "html", null, true);
                echo "</label>
            ";
            }
            // line 30
            echo "        </div>
    ";
        }
        // line 32
        echo "</div>";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  122 => 32,  118 => 30,  110 => 28,  107 => 27,  99 => 25,  96 => 24,  88 => 22,  86 => 21,  83 => 20,  80 => 19,  76 => 17,  72 => 15,  64 => 13,  61 => 12,  53 => 10,  50 => 9,  42 => 7,  40 => 6,  37 => 5,  35 => 4,  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/status_message.twig.html", "/data05/c3111787/public_html/brcc.me.uk/mt-includes/widgets/form_elements/templates/status_message.twig.html");
    }
}
