<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* /survey/questions/answer/shortfreetext/text/item.twig */
class __TwigTemplate_6fe4ca6535e2fdfa168ada915c07e08c42041719ef1914bf0b2455189836469b extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
        $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
        $this->checkSecurity();
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 17
        echo "
<!-- answer -->
";
        // line 19
        if (($context["withColumn"] ?? null)) {
            // line 20
            echo "<div class='";
            echo $this->sandbox->ensureToStringAllowed(($context["coreClass"] ?? null), 20, $this->source);
            echo " row'>
    <div class=\"";
            // line 21
            echo $this->sandbox->ensureToStringAllowed(($context["extraclass"] ?? null), 21, $this->source);
            echo "\">
";
        } else {
            // line 23
            echo "<div class='";
            echo $this->sandbox->ensureToStringAllowed(($context["coreClass"] ?? null), 23, $this->source);
            echo " ";
            echo $this->sandbox->ensureToStringAllowed(($context["extraclass"] ?? null), 23, $this->source);
            echo "'>
";
        }
        // line 25
        echo "    ";
        if (((0 !== twig_compare(($context["prefix"] ?? null), "")) || (0 !== twig_compare(($context["suffix"] ?? null), "")))) {
            // line 26
            echo "        <div class=\"ls-input-group\">
    ";
        }
        // line 28
        echo "        <!-- Prefix -->
        ";
        // line 29
        if ((0 !== twig_compare(($context["prefix"] ?? null), ""))) {
            // line 30
            echo "            <div class='ls-input-group-extra prefix-text prefix'>";
            echo LS_Twig_Extension::processString($this->sandbox->ensureToStringAllowed(($context["prefix"] ?? null), 30, $this->source));
            echo "</div>
        ";
        }
        // line 32
        echo "
        <!-- Input -->
        <input
            class=\"form-control ";
        // line 35
        echo $this->sandbox->ensureToStringAllowed(($context["kpclass"] ?? null), 35, $this->source);
        echo "\"
            type=\"text\"
            name=\"";
        // line 37
        echo $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 37, $this->source);
        echo "\"
            id=\"answer";
        // line 38
        echo $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 38, $this->source);
        echo "\"
            value=\"";
        // line 39
        echo $this->sandbox->ensureToStringAllowed(($context["dispVal"] ?? null), 39, $this->source);
        echo "\"
            placeholder=\"";
        // line 40
        echo LS_Twig_Extension::flatString(LS_Twig_Extension::processString($this->sandbox->ensureToStringAllowed(($context["placeholder"] ?? null), 40, $this->source), 1), 1);
        echo "\"
            ";
        // line 41
        if (($context["inputsize"] ?? null)) {
            echo "size=\"";
            echo $this->sandbox->ensureToStringAllowed(($context["inputsize"] ?? null), 41, $this->source);
            echo "\" ";
        }
        // line 42
        echo "            ";
        if (($context["maxlength"] ?? null)) {
            echo "maxlength=\"";
            echo $this->sandbox->ensureToStringAllowed(($context["maxlength"] ?? null), 42, $this->source);
            echo "\" ";
        }
        // line 43
        echo "            ";
        if (($context["numberonly"] ?? null)) {
            echo "data-number=\"1\" ";
        }
        // line 44
        echo "            aria-labelledby=\"ls-question-text-";
        echo $this->sandbox->ensureToStringAllowed(($context["basename"] ?? null), 44, $this->source);
        echo "\"
        />

        <!-- Suffix -->
        ";
        // line 48
        if (($context["suffix"] ?? null)) {
            // line 49
            echo "            <div class='ls-input-group-extra suffix-text suffix'>";
            echo LS_Twig_Extension::processString($this->sandbox->ensureToStringAllowed(($context["suffix"] ?? null), 49, $this->source));
            echo "</div>
        ";
        }
        // line 51
        echo "    ";
        if (((0 !== twig_compare(($context["prefix"] ?? null), "")) || (0 !== twig_compare(($context["suffix"] ?? null), "")))) {
            // line 52
            echo "        </div>
    ";
        }
        // line 54
        if (($context["withColumn"] ?? null)) {
            // line 55
            echo "    </div>
</div>

";
        } else {
            // line 59
            echo "</div>
";
        }
        // line 61
        echo "
<!-- end of answer -->
";
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "/survey/questions/answer/shortfreetext/text/item.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  160 => 61,  156 => 59,  150 => 55,  148 => 54,  144 => 52,  141 => 51,  135 => 49,  133 => 48,  125 => 44,  120 => 43,  113 => 42,  107 => 41,  103 => 40,  99 => 39,  95 => 38,  91 => 37,  86 => 35,  81 => 32,  75 => 30,  73 => 29,  70 => 28,  66 => 26,  63 => 25,  55 => 23,  50 => 21,  45 => 20,  43 => 19,  39 => 17,);
    }

    public function getSourceContext()
    {
        return new Source("", "/survey/questions/answer/shortfreetext/text/item.twig", "/home/mbsinsight/mbs.insightlink.com.au/application/views/survey/questions/answer/shortfreetext/text/item.twig");
    }
    
    public function checkSecurity()
    {
        static $tags = array("if" => 19);
        static $filters = array();
        static $functions = array("processString" => 30, "flatString" => 40);

        try {
            $this->sandbox->checkSecurity(
                ['if'],
                [],
                ['processString', 'flatString']
            );
        } catch (SecurityError $e) {
            $e->setSourceContext($this->source);

            if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
                $e->setTemplateLine($tags[$e->getTagName()]);
            } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
                $e->setTemplateLine($filters[$e->getFilterName()]);
            } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
                $e->setTemplateLine($functions[$e->getFunctionName()]);
            }

            throw $e;
        }

    }
}
