<?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/multipleshorttext/answer.twig */
class __TwigTemplate_df255f41bb249a31ff0e6d4496ca554d44ae9a2af21b34261e6395935d52441a 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 9
        echo "<!-- Multiple Shor Text -->

<!-- answer -->
<ul class=\"";
        // line 12
        echo $this->sandbox->ensureToStringAllowed(($context["coreClass"] ?? null), 12, $this->source);
        echo " list-unstyled form-horizontal\" role=\"group\" aria-labelledby=\"ls-question-text-";
        echo $this->sandbox->ensureToStringAllowed(($context["basename"] ?? null), 12, $this->source);
        echo "\">
    ";
        // line 13
        if (twig_test_empty(($context["aRows"] ?? null))) {
            // line 14
            echo "        ";
            $this->loadTemplate("survey/questions/answer/multipleshorttext/empty.twig", "/survey/questions/answer/multipleshorttext/answer.twig", 14)->display($context);
            // line 15
            echo "    ";
        } else {
            // line 16
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["aRows"] ?? null));
            $context['loop'] = [
              '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["aRow"]) {
                // line 17
                echo "            ";
                $context["rowTemplate"] = ((twig_get_attribute($this->env, $this->source, $context["aRow"], "textarea", [], "any", false, false, true, 17)) ? ("survey/questions/answer/multipleshorttext/rows/answer_row_textarea.twig") : ("survey/questions/answer/multipleshorttext/rows/answer_row_inputtext.twig"));
                // line 18
                echo "            ";
                $this->loadTemplate(($context["rowTemplate"] ?? null), "/survey/questions/answer/multipleshorttext/answer.twig", 18)->display(twig_array_merge($context, $context["aRow"]));
                // line 19
                echo "        ";
                ++$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['aRow'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 20
            echo "    ";
        }
        // line 21
        echo "
</ul>
<!-- end of answer -->
";
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  99 => 21,  96 => 20,  82 => 19,  79 => 18,  76 => 17,  58 => 16,  55 => 15,  52 => 14,  50 => 13,  44 => 12,  39 => 9,);
    }

    public function getSourceContext()
    {
        return new Source("", "/survey/questions/answer/multipleshorttext/answer.twig", "/home/mbsinsight/mbs-test.insightlink.com.au/application/views/survey/questions/answer/multipleshorttext/answer.twig");
    }
    
    public function checkSecurity()
    {
        static $tags = array("if" => 13, "include" => 14, "for" => 16, "set" => 17);
        static $filters = array();
        static $functions = array();

        try {
            $this->sandbox->checkSecurity(
                ['if', 'include', 'for', 'set'],
                [],
                []
            );
        } 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;
        }

    }
}
