<repo_name>GoodLvck/moodle-start<file_sep>/moodledata/localcache/mustache/1620990801/snap/__Mustache_551b9e32158ac232560ab1cade91f404.php
<?php

class __Mustache_551b9e32158ac232560ab1cade91f404 extends Mustache_Template
{
    private $lambdaHelper;

    public function renderInternal(Mustache_Context $context, $indent = '')
    {
        $this->lambdaHelper = new Mustache_LambdaHelper($this->mustache, $context);
        $buffer = '';

        $buffer .= $indent . '<nav class="section_footer">
';
        // 'previous' section
        $value = $context->find('previous');
        $buffer .= $this->section10696abb13f1c7f598e93f4dababd41e($context, $indent, $value);
        // 'next' section
        $value = $context->find('next');
        $buffer .= $this->section6c387c94a7e1693c2407969ec7e0d437($context, $indent, $value);
        $buffer .= $indent . '</nav>
';

        return $buffer;
    }

    private function sectionBf20dcc0ab9509c23a04cd0a689e9dde(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'previoussection, theme_snap';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'previoussection, theme_snap';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section10696abb13f1c7f598e93f4dababd41e(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
    <a class="previous_section {{classes}}" href="#section-{{section}}" section-number="{{section}}">
        <div class="nav_icon"><i class="icon-arrow-left" section-number="{{section}}"></i></div>
        <span class="text"><span class="nav_guide" section-number="{{section}}">{{#str}}previoussection, theme_snap{{/str}}</span><br>{{{title}}}</span>
    </a>
    ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '    <a class="previous_section ';
                $value = $this->resolveValue($context->find('classes'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '" href="#section-';
                $value = $this->resolveValue($context->find('section'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '" section-number="';
                $value = $this->resolveValue($context->find('section'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '">
';
                $buffer .= $indent . '        <div class="nav_icon"><i class="icon-arrow-left" section-number="';
                $value = $this->resolveValue($context->find('section'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '"></i></div>
';
                $buffer .= $indent . '        <span class="text"><span class="nav_guide" section-number="';
                $value = $this->resolveValue($context->find('section'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '">';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->sectionBf20dcc0ab9509c23a04cd0a689e9dde($context, $indent, $value);
                $buffer .= '</span><br>';
                $value = $this->resolveValue($context->find('title'), $context);
                $buffer .= $value;
                $buffer .= '</span>
';
                $buffer .= $indent . '    </a>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section33dfbe9154c2c9bc90b1e9b9a9944fb3(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'nextsection, theme_snap';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'nextsection, theme_snap';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section6c387c94a7e1693c2407969ec7e0d437(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
    <a class="next_section {{classes}}" href="#section-{{section}}" section-number="{{section}}">
        <div class="nav_icon"><i class="icon-arrow-right" section-number="{{section}}"></i></div>
        <span class="text"><span class="nav_guide" section-number="{{section}}">{{#str}}nextsection, theme_snap{{/str}}</span><br>{{{title}}}</span>
    </a>
    ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '    <a class="next_section ';
                $value = $this->resolveValue($context->find('classes'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '" href="#section-';
                $value = $this->resolveValue($context->find('section'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '" section-number="';
                $value = $this->resolveValue($context->find('section'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '">
';
                $buffer .= $indent . '        <div class="nav_icon"><i class="icon-arrow-right" section-number="';
                $value = $this->resolveValue($context->find('section'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '"></i></div>
';
                $buffer .= $indent . '        <span class="text"><span class="nav_guide" section-number="';
                $value = $this->resolveValue($context->find('section'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '">';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section33dfbe9154c2c9bc90b1e9b9a9944fb3($context, $indent, $value);
                $buffer .= '</span><br>';
                $value = $this->resolveValue($context->find('title'), $context);
                $buffer .= $value;
                $buffer .= '</span>
';
                $buffer .= $indent . '    </a>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

}
<file_sep>/moodledata/localcache/mustache/1620990801/snap/__Mustache_97c2d8b26f1974e9778421d2c308c758.php
<?php

class __Mustache_97c2d8b26f1974e9778421d2c308c758 extends Mustache_Template
{
    private $lambdaHelper;

    public function renderInternal(Mustache_Context $context, $indent = '')
    {
        $this->lambdaHelper = new Mustache_LambdaHelper($this->mustache, $context);
        $buffer = '';

        $buffer .= $indent . '<form id="toc-search" onSubmit="return false;">
';
        $buffer .= $indent . '    <input search-enabled="true" id="toc-search-input" type="text" title="';
        // 'str' section
        $value = $context->find('str');
        $buffer .= $this->sectionBec198647490b4fd7cf2a5fed37757ce($context, $indent, $value);
        $buffer .= '" placeholder="';
        // 'str' section
        $value = $context->find('str');
        $buffer .= $this->section9bcc280557ab827fca0c09efda4babd8($context, $indent, $value);
        $buffer .= '" autocomplete="off" />
';
        $buffer .= $indent . '    <ul id="toc-search-results" class="list-unstyled" role="listbox" aria-label="search" aria-relevant="additions"></ul>
';
        $buffer .= $indent . '    <ul role="listbox" id="toc-searchables" aria-hidden="true">
';
        // 'modules' section
        $value = $context->find('modules');
        $buffer .= $this->sectionB92bd59270de630f8b21d77a0cf2ddf1($context, $indent, $value);
        $buffer .= $indent . '    </ul>
';
        $buffer .= $indent . '</form>
';

        return $buffer;
    }

    private function sectionBec198647490b4fd7cf2a5fed37757ce(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'search';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'search';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section9bcc280557ab827fca0c09efda4babd8(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'search, theme_snap';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'search, theme_snap';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section646337e43a5b6fb19d8abc64d59e2ff2(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'notpublished, theme_snap';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'notpublished, theme_snap';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionB92bd59270de630f8b21d77a0cf2ddf1(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
            <li role=option data-id="{{cmid}}">
                <a href="{{url}}" tabindex="0">
                    <img src="{{iconurl}}" alt="" />
                    <span class="sr-only">{{srinfo}}</span>
                    {{{formattedname}}}
                    {{^uservisible}}
                    <span class="linkinfo">
                        {{#str}}notpublished, theme_snap{{/str}}
                    </span>
                    {{/uservisible}}
                </a>
            </li>
        ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '            <li role=option data-id="';
                $value = $this->resolveValue($context->find('cmid'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '">
';
                $buffer .= $indent . '                <a href="';
                $value = $this->resolveValue($context->find('url'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '" tabindex="0">
';
                $buffer .= $indent . '                    <img src="';
                $value = $this->resolveValue($context->find('iconurl'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '" alt="" />
';
                $buffer .= $indent . '                    <span class="sr-only">';
                $value = $this->resolveValue($context->find('srinfo'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '</span>
';
                $buffer .= $indent . '                    ';
                $value = $this->resolveValue($context->find('formattedname'), $context);
                $buffer .= $value;
                $buffer .= '
';
                // 'uservisible' inverted section
                $value = $context->find('uservisible');
                if (empty($value)) {
                    
                    $buffer .= $indent . '                    <span class="linkinfo">
';
                    $buffer .= $indent . '                        ';
                    // 'str' section
                    $value = $context->find('str');
                    $buffer .= $this->section646337e43a5b6fb19d8abc64d59e2ff2($context, $indent, $value);
                    $buffer .= '
';
                    $buffer .= $indent . '                    </span>
';
                }
                $buffer .= $indent . '                </a>
';
                $buffer .= $indent . '            </li>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

}
<file_sep>/moodledata/localcache/mustache/1620990801/snap/__Mustache_a8671e1796cfd4fb01c85600c55590f5.php
<?php

class __Mustache_a8671e1796cfd4fb01c85600c55590f5 extends Mustache_Template
{
    private $lambdaHelper;

    public function renderInternal(Mustache_Context $context, $indent = '')
    {
        $this->lambdaHelper = new Mustache_LambdaHelper($this->mustache, $context);
        $buffer = '';

        $buffer .= $indent . '
';
        // 'js' section
        $value = $context->find('js');
        $buffer .= $this->section33f1e1f1b50095505bd8a10271860fc8($context, $indent, $value);

        return $buffer;
    }

    private function section450fd3995b8cf183ce079ba8703c617b(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = ' guestconsentmessage, tool_policy ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= ' guestconsentmessage, tool_policy ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section0ae3501ccb6c69482d9f0047013ce325(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '&amp;returnurl={{.}}';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= '&amp;returnurl=';
                $value = $this->resolveValue($context->last(), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section72a7f340492fa481f71321222bbde4ef(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '" +
                   "<li>" +
                   "<a href=\\"{{pluginbaseurl}}/view.php?versionid={{id}}{{#returnurl}}&amp;returnurl={{.}}{{/returnurl}}\\" " +
                   "   data-action=\\"view-guest\\" data-versionid=\\"{{id}}\\" data-behalfid=\\"1\\" >" +
                   "{{{name}}}" +
                   "</a>" +
                   "</li>" +
                   "';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= '" +
';
                $buffer .= $indent . '                   "<li>" +
';
                $buffer .= $indent . '                   "<a href=\\"';
                $value = $this->resolveValue($context->find('pluginbaseurl'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '/view.php?versionid=';
                $value = $this->resolveValue($context->find('id'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                // 'returnurl' section
                $value = $context->find('returnurl');
                $buffer .= $this->section0ae3501ccb6c69482d9f0047013ce325($context, $indent, $value);
                $buffer .= '\\" " +
';
                $buffer .= $indent . '                   "   data-action=\\"view-guest\\" data-versionid=\\"';
                $value = $this->resolveValue($context->find('id'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '\\" data-behalfid=\\"1\\" >" +
';
                $buffer .= $indent . '                   "';
                $value = $this->resolveValue($context->find('name'), $context);
                $buffer .= $value;
                $buffer .= '" +
';
                $buffer .= $indent . '                   "</a>" +
';
                $buffer .= $indent . '                   "</li>" +
';
                $buffer .= $indent . '                   "';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section135bb0f329a8bd8199e0b9035aeeebe5(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = ' guestconsent:continue, tool_policy ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= ' guestconsent:continue, tool_policy ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section63ba8bde1fe6728d486e526c4a9243e4(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
                // Get localised messages.
                var textmessage = "{{# str }} guestconsentmessage, tool_policy {{/ str }}" +
                   "<ul>{{#policies}}" +
                   "<li>" +
                   "<a href=\\"{{pluginbaseurl}}/view.php?versionid={{id}}{{#returnurl}}&amp;returnurl={{.}}{{/returnurl}}\\" " +
                   "   data-action=\\"view-guest\\" data-versionid=\\"{{id}}\\" data-behalfid=\\"1\\" >" +
                   "{{{name}}}" +
                   "</a>" +
                   "</li>" +
                   "{{/policies}}" +
                   "</ul>";
                var continuemessage = "{{# str }} guestconsent:continue, tool_policy {{/ str }}";

                // Initialize popup.
                $(document.body).addClass(\'eupopup\');
                if ($(".eupopup").length > 0) {
                    $(document).euCookieLawPopup().init({
                        popupPosition: \'bottom\',
                        popupTitle: \'\',
                        popupText: textmessage,
                        buttonContinueTitle: continuemessage,
                        buttonLearnmoreTitle: \'\',
                        compactStyle: true,
                    });
                }
            ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '                // Get localised messages.
';
                $buffer .= $indent . '                var textmessage = "';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section450fd3995b8cf183ce079ba8703c617b($context, $indent, $value);
                $buffer .= '" +
';
                $buffer .= $indent . '                   "<ul>';
                // 'policies' section
                $value = $context->find('policies');
                $buffer .= $this->section72a7f340492fa481f71321222bbde4ef($context, $indent, $value);
                $buffer .= '" +
';
                $buffer .= $indent . '                   "</ul>";
';
                $buffer .= $indent . '                var continuemessage = "';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section135bb0f329a8bd8199e0b9035aeeebe5($context, $indent, $value);
                $buffer .= '";
';
                $buffer .= $indent . '
';
                $buffer .= $indent . '                // Initialize popup.
';
                $buffer .= $indent . '                $(document.body).addClass(\'eupopup\');
';
                $buffer .= $indent . '                if ($(".eupopup").length > 0) {
';
                $buffer .= $indent . '                    $(document).euCookieLawPopup().init({
';
                $buffer .= $indent . '                        popupPosition: \'bottom\',
';
                $buffer .= $indent . '                        popupTitle: \'\',
';
                $buffer .= $indent . '                        popupText: textmessage,
';
                $buffer .= $indent . '                        buttonContinueTitle: continuemessage,
';
                $buffer .= $indent . '                        buttonLearnmoreTitle: \'\',
';
                $buffer .= $indent . '                        compactStyle: true,
';
                $buffer .= $indent . '                    });
';
                $buffer .= $indent . '                }
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section33f1e1f1b50095505bd8a10271860fc8(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '

require([\'jquery\', \'tool_policy/jquery-eu-cookie-law-popup\', \'tool_policy/policyactions\'], function($, Popup, ActionsMod) {
        // Initialise the guest popup.
        $(document).ready(function() {
            // Only show message if there is some policy related to guests.
            {{#haspolicies}}
                // Get localised messages.
                var textmessage = "{{# str }} guestconsentmessage, tool_policy {{/ str }}" +
                   "<ul>{{#policies}}" +
                   "<li>" +
                   "<a href=\\"{{pluginbaseurl}}/view.php?versionid={{id}}{{#returnurl}}&amp;returnurl={{.}}{{/returnurl}}\\" " +
                   "   data-action=\\"view-guest\\" data-versionid=\\"{{id}}\\" data-behalfid=\\"1\\" >" +
                   "{{{name}}}" +
                   "</a>" +
                   "</li>" +
                   "{{/policies}}" +
                   "</ul>";
                var continuemessage = "{{# str }} guestconsent:continue, tool_policy {{/ str }}";

                // Initialize popup.
                $(document.body).addClass(\'eupopup\');
                if ($(".eupopup").length > 0) {
                    $(document).euCookieLawPopup().init({
                        popupPosition: \'bottom\',
                        popupTitle: \'\',
                        popupText: textmessage,
                        buttonContinueTitle: continuemessage,
                        buttonLearnmoreTitle: \'\',
                        compactStyle: true,
                    });
                }
            {{/haspolicies}}

            // Initialise the JS for the modal window which displays the policy versions.
            ActionsMod.init(\'[data-action="view-guest"]\');
        });
});

';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '
';
                $buffer .= $indent . 'require([\'jquery\', \'tool_policy/jquery-eu-cookie-law-popup\', \'tool_policy/policyactions\'], function($, Popup, ActionsMod) {
';
                $buffer .= $indent . '        // Initialise the guest popup.
';
                $buffer .= $indent . '        $(document).ready(function() {
';
                $buffer .= $indent . '            // Only show message if there is some policy related to guests.
';
                // 'haspolicies' section
                $value = $context->find('haspolicies');
                $buffer .= $this->section63ba8bde1fe6728d486e526c4a9243e4($context, $indent, $value);
                $buffer .= $indent . '
';
                $buffer .= $indent . '            // Initialise the JS for the modal window which displays the policy versions.
';
                $buffer .= $indent . '            ActionsMod.init(\'[data-action="view-guest"]\');
';
                $buffer .= $indent . '        });
';
                $buffer .= $indent . '});
';
                $buffer .= $indent . '
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

}
<file_sep>/moodledata/localcache/mustache/1620990801/snap/__Mustache_855b21983028c98685ef69ccb7c84fb0.php
<?php

class __Mustache_855b21983028c98685ef69ccb7c84fb0 extends Mustache_Template
{
    private $lambdaHelper;

    public function renderInternal(Mustache_Context $context, $indent = '')
    {
        $this->lambdaHelper = new Mustache_LambdaHelper($this->mustache, $context);
        $buffer = '';

        $buffer .= $indent . '<div id="searchinput-navbar-';
        $value = $this->resolveValue($context->find('uniqid'), $context);
        $buffer .= call_user_func($this->mustache->getEscape(), $value);
        $buffer .= '" class="simplesearchform">
';
        $buffer .= $indent . '    <div class="collapse" id="searchform-navbar">
';
        $buffer .= $indent . '        <form autocomplete="off" action="';
        $value = $this->resolveValue($context->find('action'), $context);
        $buffer .= $value;
        $buffer .= '" method="get" accept-charset="utf-8" class="mform form-inline searchform-navbar">
';
        // 'hiddenfields' section
        $value = $context->find('hiddenfields');
        $buffer .= $this->section04b8ae4b53b0a507223620372a841e3e($context, $indent, $value);
        $buffer .= $indent . '            <div class="input-group">
';
        $buffer .= $indent . '                <label for="searchinput-';
        $value = $this->resolveValue($context->find('uniqid'), $context);
        $buffer .= call_user_func($this->mustache->getEscape(), $value);
        $buffer .= '">
';
        $buffer .= $indent . '                    <span class="sr-only">';
        $value = $this->resolveValue($context->find('searchstring'), $context);
        $buffer .= $value;
        $buffer .= '</span>
';
        $buffer .= $indent . '                </label>
';
        $buffer .= $indent . '                    <input type="text"
';
        $buffer .= $indent . '                       id="searchinput-';
        $value = $this->resolveValue($context->find('uniqid'), $context);
        $buffer .= call_user_func($this->mustache->getEscape(), $value);
        $buffer .= '"
';
        $buffer .= $indent . '                       class="form-control withclear"
';
        $buffer .= $indent . '                       placeholder="';
        $value = $this->resolveValue($context->find('searchstring'), $context);
        $buffer .= $value;
        $buffer .= '"
';
        $buffer .= $indent . '                       aria-label="';
        $value = $this->resolveValue($context->find('searchstring'), $context);
        $buffer .= $value;
        $buffer .= '"
';
        $buffer .= $indent . '                       name="';
        $value = $this->resolveValue($context->find('inputname'), $context);
        $buffer .= $value;
        $buffer .= '"
';
        $buffer .= $indent . '                       data-region="input"
';
        $buffer .= $indent . '                       autocomplete="off"
';
        $buffer .= $indent . '                    >
';
        $buffer .= $indent . '                    <a class="btn btn-close"
';
        $buffer .= $indent . '                        data-action="closesearch"
';
        $buffer .= $indent . '                        data-toggle="collapse"
';
        $buffer .= $indent . '                        href="#searchform-navbar"
';
        $buffer .= $indent . '                        role="button"
';
        $buffer .= $indent . '                    >
';
        $buffer .= $indent . '                        ';
        // 'pix' section
        $value = $context->find('pix');
        $buffer .= $this->section01a1cb688132d57fc41f0070a1ef998d($context, $indent, $value);
        $buffer .= '
';
        $buffer .= $indent . '                        <span class="sr-only">';
        // 'str' section
        $value = $context->find('str');
        $buffer .= $this->section256776dc607cdebe9d890b0efd29b5ba($context, $indent, $value);
        $buffer .= '</span>
';
        $buffer .= $indent . '                    </a>
';
        $buffer .= $indent . '                <div class="input-group-append">
';
        $buffer .= $indent . '                    <button type="submit" class="btn btn-submit" data-action="submit">
';
        $buffer .= $indent . '                        ';
        // 'pix' section
        $value = $context->find('pix');
        $buffer .= $this->section31a49b2ab335cdb4725ddb42ed8de96c($context, $indent, $value);
        $buffer .= '
';
        $buffer .= $indent . '                        <span class="sr-only">';
        $value = $this->resolveValue($context->find('searchstring'), $context);
        $buffer .= $value;
        $buffer .= '</span>
';
        $buffer .= $indent . '                    </button>
';
        $buffer .= $indent . '                </div>
';
        $buffer .= $indent . '            </div>
';
        $buffer .= $indent . '        </form>
';
        $buffer .= $indent . '    </div>
';
        $buffer .= $indent . '    <a
';
        $buffer .= $indent . '        class="btn btn-open"
';
        $buffer .= $indent . '        data-toggle="collapse"
';
        $buffer .= $indent . '        data-action="opensearch"
';
        $buffer .= $indent . '        href="#searchform-navbar"
';
        $buffer .= $indent . '        role="button"
';
        $buffer .= $indent . '        aria-expanded="false"
';
        $buffer .= $indent . '        aria-controls="searchform-navbar"
';
        $buffer .= $indent . '    >
';
        $buffer .= $indent . '        ';
        // 'pix' section
        $value = $context->find('pix');
        $buffer .= $this->section31a49b2ab335cdb4725ddb42ed8de96c($context, $indent, $value);
        $buffer .= '
';
        $buffer .= $indent . '        <span class="sr-only">';
        // 'str' section
        $value = $context->find('str');
        $buffer .= $this->sectionEf182a623a7e3d255977cee5b4aa1302($context, $indent, $value);
        $buffer .= '</span>
';
        $buffer .= $indent . '    </a>
';
        $buffer .= $indent . '</div>
';
        $buffer .= $indent . '
';
        // 'js' section
        $value = $context->find('js');
        $buffer .= $this->sectionA81dd799000f8202e6b292154d307518($context, $indent, $value);

        return $buffer;
    }

    private function section04b8ae4b53b0a507223620372a841e3e(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
                <input type="hidden" name="{{ name }}" value="{{ value }}">
            ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '                <input type="hidden" name="';
                $value = $this->resolveValue($context->find('name'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '" value="';
                $value = $this->resolveValue($context->find('value'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '">
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section01a1cb688132d57fc41f0070a1ef998d(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = ' e/cancel, core ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= ' e/cancel, core ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section256776dc607cdebe9d890b0efd29b5ba(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = ' closebuttontitle ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= ' closebuttontitle ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section31a49b2ab335cdb4725ddb42ed8de96c(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = ' a/search, core ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= ' a/search, core ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionEf182a623a7e3d255977cee5b4aa1302(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = ' togglesearch ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= ' togglesearch ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionA81dd799000f8202e6b292154d307518(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
require(
[
    \'jquery\',
],
function(
    $
) {
    var uniqid = "{{uniqid}}";
    var container = $(\'#searchinput-navbar-\' + uniqid);
    var opensearch = container.find(\'[data-action="opensearch"]\');
    var input = container.find(\'[data-region="input"]\');
    var submit = container.find(\'[data-action="submit"]\');

    submit.on(\'click\', function(e) {
        if (input.val() === \'\') {
            e.preventDefault();
        }
    });
    container.on(\'hidden.bs.collapse\', function() {
        opensearch.removeClass(\'d-none\');
        input.val(\'\');
    });
    container.on(\'show.bs.collapse\', function() {
        opensearch.addClass(\'d-none\');
    });
    container.on(\'shown.bs.collapse\', function() {
        input.focus();
    });
});
';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . 'require(
';
                $buffer .= $indent . '[
';
                $buffer .= $indent . '    \'jquery\',
';
                $buffer .= $indent . '],
';
                $buffer .= $indent . 'function(
';
                $buffer .= $indent . '    $
';
                $buffer .= $indent . ') {
';
                $buffer .= $indent . '    var uniqid = "';
                $value = $this->resolveValue($context->find('uniqid'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '";
';
                $buffer .= $indent . '    var container = $(\'#searchinput-navbar-\' + uniqid);
';
                $buffer .= $indent . '    var opensearch = container.find(\'[data-action="opensearch"]\');
';
                $buffer .= $indent . '    var input = container.find(\'[data-region="input"]\');
';
                $buffer .= $indent . '    var submit = container.find(\'[data-action="submit"]\');
';
                $buffer .= $indent . '
';
                $buffer .= $indent . '    submit.on(\'click\', function(e) {
';
                $buffer .= $indent . '        if (input.val() === \'\') {
';
                $buffer .= $indent . '            e.preventDefault();
';
                $buffer .= $indent . '        }
';
                $buffer .= $indent . '    });
';
                $buffer .= $indent . '    container.on(\'hidden.bs.collapse\', function() {
';
                $buffer .= $indent . '        opensearch.removeClass(\'d-none\');
';
                $buffer .= $indent . '        input.val(\'\');
';
                $buffer .= $indent . '    });
';
                $buffer .= $indent . '    container.on(\'show.bs.collapse\', function() {
';
                $buffer .= $indent . '        opensearch.addClass(\'d-none\');
';
                $buffer .= $indent . '    });
';
                $buffer .= $indent . '    container.on(\'shown.bs.collapse\', function() {
';
                $buffer .= $indent . '        input.focus();
';
                $buffer .= $indent . '    });
';
                $buffer .= $indent . '});
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

}
<file_sep>/moodledata/localcache/mustache/1620990801/snap/__Mustache_6f77ec62d4bcb6def6e9cf4ad1102761.php
<?php

class __Mustache_6f77ec62d4bcb6def6e9cf4ad1102761 extends Mustache_Template
{
    private $lambdaHelper;

    public function renderInternal(Mustache_Context $context, $indent = '')
    {
        $this->lambdaHelper = new Mustache_LambdaHelper($this->mustache, $context);
        $buffer = '';

        $buffer .= $indent . '<ol id="chapters" class="chapters ';
        $value = $this->resolveValue($context->find('listlarge'), $context);
        $buffer .= call_user_func($this->mustache->getEscape(), $value);
        $buffer .= '" start="0">
';
        // 'chapters' section
        $value = $context->find('chapters');
        $buffer .= $this->section880d0fb3da7eefd07981be6a9b249f32($context, $indent, $value);
        $buffer .= $indent . '</ol>
';

        return $buffer;
    }

    private function sectionC40dcabf8b9933bed6b3fad0df6ecc25(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
            <a class="chapter-title" section-number="{{section}}" href="{{url}}">{{{title}}}</a>
        ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '            <a class="chapter-title" section-number="';
                $value = $this->resolveValue($context->find('section'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '" href="';
                $value = $this->resolveValue($context->find('url'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '">';
                $value = $this->resolveValue($context->find('title'), $context);
                $buffer .= $value;
                $buffer .= '</a>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section51ca031484bd84ad14ccccc985b7330f(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'current, theme_snap';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'current, theme_snap';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section06bdaf9e532b811d8fb284aed8d3cb8f(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
            <span class="text text-success">
                <small>{{#str}}current, theme_snap{{/str}}</small>
            </span>
        ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '            <span class="text text-success">
';
                $buffer .= $indent . '                <small>';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section51ca031484bd84ad14ccccc985b7330f($context, $indent, $value);
                $buffer .= '</small>
';
                $buffer .= $indent . '            </span>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionFcc7e108e74d4b188d7053215ac1b844(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
            <span class="text {{availabilityclass}}">
                <small class="published-status">{{availabilitystatus}}</small>
            </span>
        ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '            <span class="text ';
                $value = $this->resolveValue($context->find('availabilityclass'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '">
';
                $buffer .= $indent . '                <small class="published-status">';
                $value = $this->resolveValue($context->find('availabilitystatus'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '</small>
';
                $buffer .= $indent . '            </span>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionF0c3cd370929743306d05c2fd8071571(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'completed, completion';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'completed, completion';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section8fce76ab77a6fdc381759b5d578be226(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
                <img class="snap-section-complete" src="{{pixcompleted}}" alt="{{#str}}completed, completion{{/str}}" />
                ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '                <img class="snap-section-complete" src="';
                $value = $this->resolveValue($context->find('pixcompleted'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '" alt="';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->sectionF0c3cd370929743306d05c2fd8071571($context, $indent, $value);
                $buffer .= '" />
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionE41c48cfae31444530bac0efded47723(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = ' progresstotal, completion, { "complete":  {{progress.complete}}, "total": {{progress.total}} } ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= ' progresstotal, completion, { "complete":  ';
                $value = $this->resolveValue($context->findDot('progress.complete'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= ', "total": ';
                $value = $this->resolveValue($context->findDot('progress.total'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= ' } ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section5699ecaf86825548856166264a97b6ea(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
            <span class="text completionstatus outoftotal">
                {{#completed}}
                <img class="snap-section-complete" src="{{pixcompleted}}" alt="{{#str}}completed, completion{{/str}}" />
                {{/completed}}
                <small>
                    {{#str}} progresstotal, completion, { "complete":  {{progress.complete}}, "total": {{progress.total}} } {{/str}}
                </small>
            </span>
        ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= '
';
                $buffer .= $indent . '            <span class="text completionstatus outoftotal">
';
                // 'completed' section
                $value = $context->find('completed');
                $buffer .= $this->section8fce76ab77a6fdc381759b5d578be226($context, $indent, $value);
                $buffer .= $indent . '                <small>
';
                $buffer .= $indent . '                    ';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->sectionE41c48cfae31444530bac0efded47723($context, $indent, $value);
                $buffer .= '
';
                $buffer .= $indent . '                </small>
';
                $buffer .= $indent . '            </span>
';
                $buffer .= $indent . '        ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section0c41b76ccea24f8c8dbe45f97dde2209(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '{{#progress.total}}
            <span class="text completionstatus outoftotal">
                {{#completed}}
                <img class="snap-section-complete" src="{{pixcompleted}}" alt="{{#str}}completed, completion{{/str}}" />
                {{/completed}}
                <small>
                    {{#str}} progresstotal, completion, { "complete":  {{progress.complete}}, "total": {{progress.total}} } {{/str}}
                </small>
            </span>
        {{/progress.total}}';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                // 'progress.total' section
                $value = $context->findDot('progress.total');
                $buffer .= $this->section5699ecaf86825548856166264a97b6ea($context, $indent, $value);
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section880d0fb3da7eefd07981be6a9b249f32(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
    <li class="{{classes}}">
        {{#outputlink}}
            <a class="chapter-title" section-number="{{section}}" href="{{url}}">{{{title}}}</a>
        {{/outputlink}}
        {{^outputlink}}
            <span class="chapter-title" section-number="{{section}}">{{title}}</span>
        {{/outputlink}}
        {{#iscurrent}}
            <span class="text text-success">
                <small>{{#str}}current, theme_snap{{/str}}</small>
            </span>
        {{/iscurrent}}
        {{#availabilitystatus}}
            <span class="text {{availabilityclass}}">
                <small class="published-status">{{availabilitystatus}}</small>
            </span>
        {{/availabilitystatus}}
        {{#progress}}{{#progress.total}}
            <span class="text completionstatus outoftotal">
                {{#completed}}
                <img class="snap-section-complete" src="{{pixcompleted}}" alt="{{#str}}completed, completion{{/str}}" />
                {{/completed}}
                <small>
                    {{#str}} progresstotal, completion, { "complete":  {{progress.complete}}, "total": {{progress.total}} } {{/str}}
                </small>
            </span>
        {{/progress.total}}{{/progress}}
    </li>
    ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '    <li class="';
                $value = $this->resolveValue($context->find('classes'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '">
';
                // 'outputlink' section
                $value = $context->find('outputlink');
                $buffer .= $this->sectionC40dcabf8b9933bed6b3fad0df6ecc25($context, $indent, $value);
                // 'outputlink' inverted section
                $value = $context->find('outputlink');
                if (empty($value)) {
                    
                    $buffer .= $indent . '            <span class="chapter-title" section-number="';
                    $value = $this->resolveValue($context->find('section'), $context);
                    $buffer .= call_user_func($this->mustache->getEscape(), $value);
                    $buffer .= '">';
                    $value = $this->resolveValue($context->find('title'), $context);
                    $buffer .= call_user_func($this->mustache->getEscape(), $value);
                    $buffer .= '</span>
';
                }
                // 'iscurrent' section
                $value = $context->find('iscurrent');
                $buffer .= $this->section06bdaf9e532b811d8fb284aed8d3cb8f($context, $indent, $value);
                // 'availabilitystatus' section
                $value = $context->find('availabilitystatus');
                $buffer .= $this->sectionFcc7e108e74d4b188d7053215ac1b844($context, $indent, $value);
                $buffer .= $indent . '        ';
                // 'progress' section
                $value = $context->find('progress');
                $buffer .= $this->section0c41b76ccea24f8c8dbe45f97dde2209($context, $indent, $value);
                $buffer .= '
';
                $buffer .= $indent . '    </li>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

}
<file_sep>/moodledata/localcache/mustache/1620990801/snap/__Mustache_170a216550939491ff64f0e1c910c570.php
<?php

class __Mustache_170a216550939491ff64f0e1c910c570 extends Mustache_Template
{
    private $lambdaHelper;

    public function renderInternal(Mustache_Context $context, $indent = '')
    {
        $this->lambdaHelper = new Mustache_LambdaHelper($this->mustache, $context);
        $buffer = '';

        // 'formatsupportstoc' section
        $value = $context->find('formatsupportstoc');
        $buffer .= $this->section564c3265a824f97102248787d060fad4($context, $indent, $value);

        return $buffer;
    }

    private function section524c4b822c23d889ad317ab0b43fd811(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'contents, theme_snap';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'contents, theme_snap';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionD1fa73036f0543a3b79d5f3bce2eb2dd(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
        {{> theme_snap/course_toc_chapters }}
    ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                if ($partial = $this->mustache->loadPartial('theme_snap/course_toc_chapters')) {
                    $buffer .= $partial->renderInternal($context, $indent . '        ');
                }
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionA4fc94735f65a144c9398d6a998d88aa(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
        {{> theme_snap/course_toc_footer }}
    ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                if ($partial = $this->mustache->loadPartial('theme_snap/course_toc_footer')) {
                    $buffer .= $partial->renderInternal($context, $indent . '        ');
                }
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section564c3265a824f97102248787d060fad4(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
<nav id="course-toc" class="js-only">
    <div>
        <h2 id="toc-desktop-menu-heading">
             {{#str}}contents, theme_snap{{/str}}
        </h2>
        {{> theme_snap/course_toc_module_search}}
        <a id="toc-mobile-menu-toggle" href="#course-toc"><small class="sr-only"><br>{{#str}}contents, theme_snap{{/str}}"</small></a>
    </div>

    {{#chapters}}
        {{> theme_snap/course_toc_chapters }}
    {{/chapters}}

    {{#footer}}
        {{> theme_snap/course_toc_footer }}
    {{/footer}}
</nav>
';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '<nav id="course-toc" class="js-only">
';
                $buffer .= $indent . '    <div>
';
                $buffer .= $indent . '        <h2 id="toc-desktop-menu-heading">
';
                $buffer .= $indent . '             ';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section524c4b822c23d889ad317ab0b43fd811($context, $indent, $value);
                $buffer .= '
';
                $buffer .= $indent . '        </h2>
';
                if ($partial = $this->mustache->loadPartial('theme_snap/course_toc_module_search')) {
                    $buffer .= $partial->renderInternal($context, $indent . '        ');
                }
                $buffer .= $indent . '        <a id="toc-mobile-menu-toggle" href="#course-toc"><small class="sr-only"><br>';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section524c4b822c23d889ad317ab0b43fd811($context, $indent, $value);
                $buffer .= '"</small></a>
';
                $buffer .= $indent . '    </div>
';
                $buffer .= $indent . '
';
                // 'chapters' section
                $value = $context->find('chapters');
                $buffer .= $this->sectionD1fa73036f0543a3b79d5f3bce2eb2dd($context, $indent, $value);
                $buffer .= $indent . '
';
                // 'footer' section
                $value = $context->find('footer');
                $buffer .= $this->sectionA4fc94735f65a144c9398d6a998d88aa($context, $indent, $value);
                $buffer .= $indent . '</nav>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

}
<file_sep>/moodledata/localcache/mustache/1620990801/snap/__Mustache_816d62e688a09efa5ba7fbcd434facbc.php
<?php

class __Mustache_816d62e688a09efa5ba7fbcd434facbc extends Mustache_Template
{
    public function renderInternal(Mustache_Context $context, $indent = '')
    {
        $buffer = '';

        $buffer .= $indent . '
';
        $buffer .= $indent . '
';
        $buffer .= $indent . '<div class="snap-media-object ';
        $value = $this->resolveValue($context->find('class'), $context);
        $buffer .= call_user_func($this->mustache->getEscape(), $value);
        $buffer .= '" ';
        $value = $this->resolveValue($context->find('attributes'), $context);
        $buffer .= $value;
        $buffer .= '>
';
        $value = $this->resolveValue($context->find('image'), $context);
        $buffer .= $indent . $value;
        $buffer .= '
';
        $buffer .= $indent . '<div class="snap-media-body">
';
        $value = $this->resolveValue($context->find('content'), $context);
        $buffer .= $indent . $value;
        $buffer .= '
';
        $buffer .= $indent . '</div>
';
        $buffer .= $indent . '</div>
';

        return $buffer;
    }
}
<file_sep>/moodledata/localcache/mustache/1620990801/snap/__Mustache_ba0b60dc91a0c4b1978eeabcce51ec87.php
<?php

class __Mustache_ba0b60dc91a0c4b1978eeabcce51ec87 extends Mustache_Template
{
    private $lambdaHelper;

    public function renderInternal(Mustache_Context $context, $indent = '')
    {
        $this->lambdaHelper = new Mustache_LambdaHelper($this->mustache, $context);
        $buffer = '';

        $buffer .= $indent . '
';
        $buffer .= $indent . '<div class="m-y-3 hidden-sm-down"></div>
';
        $buffer .= $indent . '<div class="row snap-login-row"  id="logins">
';
        $buffer .= $indent . '    <div class="snap-login snap-login-option snap-login-cell" id="base-login">
';
        // 'logourl' section
        $value = $context->find('logourl');
        $buffer .= $this->section0486d2ac7b52c0571959db837de5270f($context, $indent, $value);
        // 'logourl' inverted section
        $value = $context->find('logourl');
        if (empty($value)) {
            
            $buffer .= $indent . '        <h2 class="text-center">';
            $value = $this->resolveValue($context->find('sitename'), $context);
            $buffer .= call_user_func($this->mustache->getEscape(), $value);
            $buffer .= '</h2>
';
        }
        $buffer .= $indent . '
';
        // 'error' section
        $value = $context->find('error');
        $buffer .= $this->sectionDb759266208bef41124cc7b308cf8f42($context, $indent, $value);
        $buffer .= $indent . '
';
        $buffer .= $indent . '        <form action="';
        $value = $this->resolveValue($context->find('loginurl'), $context);
        $buffer .= call_user_func($this->mustache->getEscape(), $value);
        $buffer .= '" method="post" id="login" ';
        // 'passwordautocomplete' inverted section
        $value = $context->find('passwordautocomplete');
        if (empty($value)) {
            
            $buffer .= 'autocomplete="off"';
        }
        $buffer .= ' class="snap-custom-form">
';
        $buffer .= $indent . '            <input type="hidden" name="logintoken" value="';
        $value = $this->resolveValue($context->find('logintoken'), $context);
        $buffer .= call_user_func($this->mustache->getEscape(), $value);
        $buffer .= '">
';
        $buffer .= $indent . '            <input id="anchor" type="hidden" name="anchor" value="">
';
        $buffer .= $indent . '            <script>document.getElementById(\'anchor\').value = location.hash;</script>
';
        $buffer .= $indent . '
';
        $buffer .= $indent . '            <label for="username" class="sr-only">
';
        // 'canloginbyemail' inverted section
        $value = $context->find('canloginbyemail');
        if (empty($value)) {
            
            $buffer .= $indent . '                    ';
            // 'str' section
            $value = $context->find('str');
            $buffer .= $this->section27e9419edc620e0e1872d2a6521f1533($context, $indent, $value);
            $buffer .= '
';
        }
        // 'canloginbyemail' section
        $value = $context->find('canloginbyemail');
        $buffer .= $this->sectionFecc44d36b1d26bcf00eabac676276bd($context, $indent, $value);
        $buffer .= $indent . '            </label>
';
        $buffer .= $indent . '            <input type="text" name="username" id="username"
';
        $buffer .= $indent . '                class="form-control"
';
        $buffer .= $indent . '                value="';
        $value = $this->resolveValue($context->find('username'), $context);
        $buffer .= call_user_func($this->mustache->getEscape(), $value);
        $buffer .= '"
';
        $buffer .= $indent . '                placeholder=';
        // 'quote' section
        $value = $context->find('quote');
        $buffer .= $this->section4a2b2050243eb4dff6ce2b11212bbbcb($context, $indent, $value);
        $buffer .= '>
';
        $buffer .= $indent . '            <label for="password" class="sr-only">';
        // 'str' section
        $value = $context->find('str');
        $buffer .= $this->sectionE056be559d6d01a9bd2bf6f760f8e3e3($context, $indent, $value);
        $buffer .= '</label>
';
        $buffer .= $indent . '            <input type="<PASSWORD>" name="password" id="password" value=""
';
        $buffer .= $indent . '                class="form-control"
';
        $buffer .= $indent . '                placeholder=';
        // 'quote' section
        $value = $context->find('quote');
        $buffer .= $this->section1e0c7d916e3932461ff09cf034c710f8($context, $indent, $value);
        $buffer .= '
';
        $buffer .= $indent . '                ';
        // 'passwordautocomplete' inverted section
        $value = $context->find('passwordautocomplete');
        if (empty($value)) {
            
            $buffer .= 'autocomplete="off"';
        }
        $buffer .= '>
';
        $buffer .= $indent . '            <br>
';
        $buffer .= $indent . '            <button type="submit" class="btn btn-primary btn-block" id="loginbtn">';
        // 'str' section
        $value = $context->find('str');
        $buffer .= $this->sectionB15dee8971ab065bf4d6402b60d852be($context, $indent, $value);
        $buffer .= '</button>
';
        $buffer .= $indent . '            <a class="small btn btn-link btn-block" href="';
        $value = $this->resolveValue($context->find('forgotpasswordurl'), $context);
        $buffer .= call_user_func($this->mustache->getEscape(), $value);
        $buffer .= '">';
        // 'str' section
        $value = $context->find('str');
        $buffer .= $this->section6aa95a7e496f5307b40bee7262bd9321($context, $indent, $value);
        $buffer .= '</a>
';
        $buffer .= $indent . '        </form>
';
        $buffer .= $indent . '    </div>
';
        // 'hasidentityproviders' section
        $value = $context->find('hasidentityproviders');
        $buffer .= $this->sectionC8fbbc6d3de2018c761af1a5ffcb271b($context, $indent, $value);
        $buffer .= $indent . '
';
        $buffer .= $indent . '</div>
';
        $buffer .= $indent . '
';
        // 'hasinstructions' section
        $value = $context->find('hasinstructions');
        $buffer .= $this->section1ed41a2d11db8e3eeb7dab3b3808134d($context, $indent, $value);
        // 'cansignup' section
        $value = $context->find('cansignup');
        $buffer .= $this->section1964c3e64426aadf1825924f92acd4d0($context, $indent, $value);
        $buffer .= $indent . '
';
        // 'canloginasguest' section
        $value = $context->find('canloginasguest');
        $buffer .= $this->section2cb06afb5d16bd230c23a2acf04db440($context, $indent, $value);
        $buffer .= $indent . '<span class="snap-log-in-more snap-log-in-loading-spinner"></span>
';
        $buffer .= $indent . '
';
        // 'js' section
        $value = $context->find('js');
        $buffer .= $this->section8ff00f330c8591daeafe93f6afaf5eaa($context, $indent, $value);
        $buffer .= $indent . '
';

        return $buffer;
    }

    private function section0486d2ac7b52c0571959db837de5270f(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
        <h2 class="snap-logo-sitename text-center">{{sitename}}</h2>
        ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '        <h2 class="snap-logo-sitename text-center">';
                $value = $this->resolveValue($context->find('sitename'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '</h2>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionDb759266208bef41124cc7b308cf8f42(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
            <div class="loginerrors">
                <a href="#" id="loginerrormessage" class="accesshide">{{error}}</a>
                <div class="alert alert-danger" role="alert">{{error}}</div>
            </div>
        ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '            <div class="loginerrors">
';
                $buffer .= $indent . '                <a href="#" id="loginerrormessage" class="accesshide">';
                $value = $this->resolveValue($context->find('error'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '</a>
';
                $buffer .= $indent . '                <div class="alert alert-danger" role="alert">';
                $value = $this->resolveValue($context->find('error'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '</div>
';
                $buffer .= $indent . '            </div>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section27e9419edc620e0e1872d2a6521f1533(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = ' username ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= ' username ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section22141a6741c33f407ef6171795337eec(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = ' usernameemail ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= ' usernameemail ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionFecc44d36b1d26bcf00eabac676276bd(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
                    {{#str}} usernameemail {{/str}}
                ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '                    ';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section22141a6741c33f407ef6171795337eec($context, $indent, $value);
                $buffer .= '
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionFea69428308e6a733cfeebf7670bdc01(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'username';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'username';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section983b6843353faa33a83a9ec3069863a3(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'usernameemail';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'usernameemail';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section1cfee3b9563446af7cf73b3dabe83fe5(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '{{#str}}usernameemail{{/str}}';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section983b6843353faa33a83a9ec3069863a3($context, $indent, $value);
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section4a2b2050243eb4dff6ce2b11212bbbcb(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '{{^canloginbyemail}}{{#str}}username{{/str}}{{/canloginbyemail}}{{#canloginbyemail}}{{#str}}usernameemail{{/str}}{{/canloginbyemail}}';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                // 'canloginbyemail' inverted section
                $value = $context->find('canloginbyemail');
                if (empty($value)) {
                    
                    // 'str' section
                    $value = $context->find('str');
                    $buffer .= $this->sectionFea69428308e6a733cfeebf7670bdc01($context, $indent, $value);
                }
                // 'canloginbyemail' section
                $value = $context->find('canloginbyemail');
                $buffer .= $this->section1cfee3b9563446af7cf73b3dabe83fe5($context, $indent, $value);
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionE056be559d6d01a9bd2bf6f760f8e3e3(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = ' password ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= ' password ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section4e50d9b1632f258e8c10be3e2ed759be(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'password';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'password';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section1e0c7d916e3932461ff09cf034c710f8(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '{{#str}}password{{/str}}';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section4e50d9b1632f258e8c10be3e2ed759be($context, $indent, $value);
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionB15dee8971ab065bf4d6402b60d852be(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'login';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'login';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section6aa95a7e496f5307b40bee7262bd9321(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'forgotten';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'forgotten';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionE384f0e9b1fcc321a1a78dba1d43f63f(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = ' potentialidps, auth ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= ' potentialidps, auth ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section5fc38b71bab296fb0efdd08834d72587(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '{{name}}';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $value = $this->resolveValue($context->find('name'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section0a7b5fc76aa4e5986dec1e094e4eb51d(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
                                    <img class="auth-icon" src="{{iconurl}}" onerror="this.style.display=\'none\'"/>
                                ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '                                    <img class="auth-icon" src="';
                $value = $this->resolveValue($context->find('iconurl'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '" onerror="this.style.display=\'none\'"/>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section5985136443d4317aa1c2b657b8f036cc(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = ' /i/permissions, core ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= ' /i/permissions, core ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionF0d5f93c9d8de1ea38d11403069332fa(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
                        <div class="potentialidp">
                            <a href="{{url}}"  class="btn btn-primary btn-block" title={{#quote}}{{name}}{{/quote}}>
                                {{#iconurl}}
                                    <img class="auth-icon" src="{{iconurl}}" onerror="this.style.display=\'none\'"/>
                                {{/iconurl}}
                                {{^iconurl}}
                                    {{#pix}} /i/permissions, core {{/pix}}
                                {{/iconurl}}
                                {{name}}
                            </a>
                        </div>
                    ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '                        <div class="potentialidp">
';
                $buffer .= $indent . '                            <a href="';
                $value = $this->resolveValue($context->find('url'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '"  class="btn btn-primary btn-block" title=';
                // 'quote' section
                $value = $context->find('quote');
                $buffer .= $this->section5fc38b71bab296fb0efdd08834d72587($context, $indent, $value);
                $buffer .= '>
';
                // 'iconurl' section
                $value = $context->find('iconurl');
                $buffer .= $this->section0a7b5fc76aa4e5986dec1e094e4eb51d($context, $indent, $value);
                // 'iconurl' inverted section
                $value = $context->find('iconurl');
                if (empty($value)) {
                    
                    $buffer .= $indent . '                                    ';
                    // 'pix' section
                    $value = $context->find('pix');
                    $buffer .= $this->section5985136443d4317aa1c2b657b8f036cc($context, $indent, $value);
                    $buffer .= '
';
                }
                $buffer .= $indent . '                                ';
                $value = $this->resolveValue($context->find('name'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '
';
                $buffer .= $indent . '                            </a>
';
                $buffer .= $indent . '                        </div>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionC8fbbc6d3de2018c761af1a5ffcb271b(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
        <div class="snap-login snap-login-option snap-login-cell" id="alt-login">
                <h5>{{#str}} potentialidps, auth {{/str}}</h5>
                <div class="potentialidplist">
                    {{#identityproviders}}
                        <div class="potentialidp">
                            <a href="{{url}}"  class="btn btn-primary btn-block" title={{#quote}}{{name}}{{/quote}}>
                                {{#iconurl}}
                                    <img class="auth-icon" src="{{iconurl}}" onerror="this.style.display=\'none\'"/>
                                {{/iconurl}}
                                {{^iconurl}}
                                    {{#pix}} /i/permissions, core {{/pix}}
                                {{/iconurl}}
                                {{name}}
                            </a>
                        </div>
                    {{/identityproviders}}
                </div>
        </div>
    ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '        <div class="snap-login snap-login-option snap-login-cell" id="alt-login">
';
                $buffer .= $indent . '                <h5>';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->sectionE384f0e9b1fcc321a1a78dba1d43f63f($context, $indent, $value);
                $buffer .= '</h5>
';
                $buffer .= $indent . '                <div class="potentialidplist">
';
                // 'identityproviders' section
                $value = $context->find('identityproviders');
                $buffer .= $this->sectionF0d5f93c9d8de1ea38d11403069332fa($context, $indent, $value);
                $buffer .= $indent . '                </div>
';
                $buffer .= $indent . '        </div>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section31b35200530620d18a8896098b070602(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'helpwithlogin, theme_snap';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'helpwithlogin, theme_snap';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section1e09b71e9fcfd1f6d7fa6e2d493f7aaa(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'help, theme_snap, {{#str}}helpwithlogin, theme_snap{{/str}} ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'help, theme_snap, ';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section31b35200530620d18a8896098b070602($context, $indent, $value);
                $buffer .= ' ';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section7a20f6a0c1e5f01649c33230170638b5(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'closebuttontitle';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'closebuttontitle';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section1ed41a2d11db8e3eeb7dab3b3808134d(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
    <div class="js-only snap-login  snap-login-box ">
        <div class="snap-login-instructions">
            <a class="btn btn-primary btn-block iconhelp" href="#" data-toggle="modal" data-target="#login-help-modal">
                {{#str}}helpwithlogin, theme_snap{{/str}} {{#pix}}help, theme_snap, {{#str}}helpwithlogin, theme_snap{{/str}} {{/pix}}
            </a>
            <!-- Modal -->
            <div class="modal fade" id="login-help-modal" tabindex="-1" role="dialog" aria-labelledby="login-help-modal-title" aria-hidden="true">
              <div class="modal-dialog" role="document">
                <div class="modal-content">
                  <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="{{#str}}closebuttontitle{{/str}}">
                      <span aria-hidden="true">&times;</span>
                    </button>
                    <h5 class="modal-title" id="login-help-modal-title">{{#str}}helpwithlogin, theme_snap{{/str}}</h5>
                  </div>
                  <div class="modal-body summary">
                      <br>
                      {{{instructions}}}
                  </div>
                </div>
              </div>
            </div>
        </div>
    </div>
';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '    <div class="js-only snap-login  snap-login-box ">
';
                $buffer .= $indent . '        <div class="snap-login-instructions">
';
                $buffer .= $indent . '            <a class="btn btn-primary btn-block iconhelp" href="#" data-toggle="modal" data-target="#login-help-modal">
';
                $buffer .= $indent . '                ';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section31b35200530620d18a8896098b070602($context, $indent, $value);
                $buffer .= ' ';
                // 'pix' section
                $value = $context->find('pix');
                $buffer .= $this->section1e09b71e9fcfd1f6d7fa6e2d493f7aaa($context, $indent, $value);
                $buffer .= '
';
                $buffer .= $indent . '            </a>
';
                $buffer .= $indent . '            <!-- Modal -->
';
                $buffer .= $indent . '            <div class="modal fade" id="login-help-modal" tabindex="-1" role="dialog" aria-labelledby="login-help-modal-title" aria-hidden="true">
';
                $buffer .= $indent . '              <div class="modal-dialog" role="document">
';
                $buffer .= $indent . '                <div class="modal-content">
';
                $buffer .= $indent . '                  <div class="modal-header">
';
                $buffer .= $indent . '                    <button type="button" class="close" data-dismiss="modal" aria-label="';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section7a20f6a0c1e5f01649c33230170638b5($context, $indent, $value);
                $buffer .= '">
';
                $buffer .= $indent . '                      <span aria-hidden="true">&times;</span>
';
                $buffer .= $indent . '                    </button>
';
                $buffer .= $indent . '                    <h5 class="modal-title" id="login-help-modal-title">';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section31b35200530620d18a8896098b070602($context, $indent, $value);
                $buffer .= '</h5>
';
                $buffer .= $indent . '                  </div>
';
                $buffer .= $indent . '                  <div class="modal-body summary">
';
                $buffer .= $indent . '                      <br>
';
                $buffer .= $indent . '                      ';
                $value = $this->resolveValue($context->find('instructions'), $context);
                $buffer .= $value;
                $buffer .= '
';
                $buffer .= $indent . '                  </div>
';
                $buffer .= $indent . '                </div>
';
                $buffer .= $indent . '              </div>
';
                $buffer .= $indent . '            </div>
';
                $buffer .= $indent . '        </div>
';
                $buffer .= $indent . '    </div>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionB681534bda1faeeb31506c30e72ff16e(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'firsttime';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'firsttime';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section47f819a53e4575a4e7767be1939ab3bf(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'startsignup';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'startsignup';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section1964c3e64426aadf1825924f92acd4d0(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
    <div class="snap-login snap-login-option snap-login-box">
        <h5>{{#str}}firsttime{{/str}}</h5>
        <p><a class="btn btn-primary btn-block" href="{{signupurl}}">{{#str}}startsignup{{/str}}</a></p>
    </div>
';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '    <div class="snap-login snap-login-option snap-login-box">
';
                $buffer .= $indent . '        <h5>';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->sectionB681534bda1faeeb31506c30e72ff16e($context, $indent, $value);
                $buffer .= '</h5>
';
                $buffer .= $indent . '        <p><a class="btn btn-primary btn-block" href="';
                $value = $this->resolveValue($context->find('signupurl'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '">';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section47f819a53e4575a4e7767be1939ab3bf($context, $indent, $value);
                $buffer .= '</a></p>
';
                $buffer .= $indent . '    </div>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section93e4b62aaf677bf7878b06c5ac540671(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'someallowguest';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'someallowguest';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section017c9686023b74877131737c59ff1162(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'loginguest';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'loginguest';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section2cb06afb5d16bd230c23a2acf04db440(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
    <div class="snap-login snap-login-option snap-login-box">
        <h5>{{#str}}someallowguest{{/str}}</h5>
        <form action="{{loginurl}}" method="post" id="guestlogin">
            <input type="hidden" name="username" value="guest" />
            <input type="hidden" name="password" value="<PASSWORD>" />
            <button class="btn btn-secondary btn-block" type="submit">{{#str}}loginguest{{/str}}</button>
        </form>
    </div>
';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '    <div class="snap-login snap-login-option snap-login-box">
';
                $buffer .= $indent . '        <h5>';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section93e4b62aaf677bf7878b06c5ac540671($context, $indent, $value);
                $buffer .= '</h5>
';
                $buffer .= $indent . '        <form action="';
                $value = $this->resolveValue($context->find('loginurl'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '" method="post" id="guestlogin">
';
                $buffer .= $indent . '            <input type="hidden" name="username" value="guest" />
';
                $buffer .= $indent . '            <input type="hidden" name="password" value="<PASSWORD>" />
';
                $buffer .= $indent . '            <button class="btn btn-secondary btn-block" type="submit">';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section017c9686023b74877131737c59ff1162($context, $indent, $value);
                $buffer .= '</button>
';
                $buffer .= $indent . '        </form>
';
                $buffer .= $indent . '    </div>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section87d4cc44cef23dbc2d4678a71be62fe6(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
        $(function() {
            M.util.focus_login_error(Y);
        });
    ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '        $(function() {
';
                $buffer .= $indent . '            M.util.focus_login_error(Y);
';
                $buffer .= $indent . '        });
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionF5611ddd71cb2a428d666e18c4d5ac2e(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
            $(function() {
                M.util.focus_login_form(Y);
            });
        ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '            $(function() {
';
                $buffer .= $indent . '                M.util.focus_login_form(Y);
';
                $buffer .= $indent . '            });
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section8ff00f330c8591daeafe93f6afaf5eaa(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
    require([\'jquery\', \'core/yui\'], function($, Y) {
    {{#error}}
        $(function() {
            M.util.focus_login_error(Y);
        });
    {{/error}}
    {{^error}}
        {{#autofocusform}}
            $(function() {
                M.util.focus_login_form(Y);
            });
        {{/autofocusform}}
    {{/error}}
    });



';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '    require([\'jquery\', \'core/yui\'], function($, Y) {
';
                // 'error' section
                $value = $context->find('error');
                $buffer .= $this->section87d4cc44cef23dbc2d4678a71be62fe6($context, $indent, $value);
                // 'error' inverted section
                $value = $context->find('error');
                if (empty($value)) {
                    
                    // 'autofocusform' section
                    $value = $context->find('autofocusform');
                    $buffer .= $this->sectionF5611ddd71cb2a428d666e18c4d5ac2e($context, $indent, $value);
                }
                $buffer .= $indent . '    });
';
                $buffer .= $indent . '
';
                $buffer .= $indent . '
';
                $buffer .= $indent . '
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

}
<file_sep>/moodledata/localcache/mustache/1620990801/snap/__Mustache_4067297aaf6f07893836b0a77d959666.php
<?php

class __Mustache_4067297aaf6f07893836b0a77d959666 extends Mustache_Template
{
    private $lambdaHelper;

    public function renderInternal(Mustache_Context $context, $indent = '')
    {
        $this->lambdaHelper = new Mustache_LambdaHelper($this->mustache, $context);
        $buffer = '';

        $buffer .= $indent . '
';
        $buffer .= $indent . '<div id="snap-coverimagecontrol">
';
        $buffer .= $indent . '    <label tabindex="0" class="btn btn-sm btn-file btn-secondary state-visible" for="snap-coverfiles"><span>';
        // 'str' section
        $value = $context->find('str');
        $buffer .= $this->section9e28db84f3c37e2aa8e634b114954092($context, $indent, $value);
        $buffer .= '</span>
';
        $buffer .= $indent . '       <input tabindex="-1" id="snap-coverfiles" name="snap-coverfiles[]" type="file" accept="';
        $value = $this->resolveValue($context->find('accepttypes'), $context);
        $buffer .= call_user_func($this->mustache->getEscape(), $value);
        $buffer .= '"/>
';
        $buffer .= $indent . '    </label>
';
        $buffer .= $indent . '    <div id="snap-changecoverimageconfirmation">
';
        $buffer .= $indent . '        <button class="btn btn-sm btn-success ok">';
        // 'str' section
        $value = $context->find('str');
        $buffer .= $this->section85013410d02573b6024cadd85ef4af88($context, $indent, $value);
        $buffer .= '</button>
';
        $buffer .= $indent . '        <button class="btn btn-sm btn-danger cancel">';
        // 'str' section
        $value = $context->find('str');
        $buffer .= $this->section41daf2a5bd82b6e0ae970791683f4776($context, $indent, $value);
        $buffer .= '</button>
';
        $buffer .= $indent . '    </div>
';
        $buffer .= $indent . '</div>
';

        return $buffer;
    }

    private function section9e28db84f3c37e2aa8e634b114954092(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'changecoverimage, theme_snap';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'changecoverimage, theme_snap';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section85013410d02573b6024cadd85ef4af88(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'save, admin';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'save, admin';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section41daf2a5bd82b6e0ae970791683f4776(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'cancel, moodle';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'cancel, moodle';
                $context->pop();
            }
        }
    
        return $buffer;
    }

}
<file_sep>/moodledata/localcache/mustache/1620990801/snap/__Mustache_e4df02a25c9ea25e16e2226092e7ab13.php
<?php

class __Mustache_e4df02a25c9ea25e16e2226092e7ab13 extends Mustache_Template
{
    private $lambdaHelper;

    public function renderInternal(Mustache_Context $context, $indent = '')
    {
        $this->lambdaHelper = new Mustache_LambdaHelper($this->mustache, $context);
        $buffer = '';

        $buffer .= $indent . '<!-- TODO - not sure this is useful as a template seperate from course_toc -->
';
        $buffer .= $indent . '<div class="toc-footer">
';
        // 'canaddnewsection' section
        $value = $context->find('canaddnewsection');
        $buffer .= $this->section5041cfa7d189893a4cb1dd8eeb4705b9($context, $indent, $value);
        $buffer .= $indent . '    <a href="#coursetools" id="snap-course-tools">
';
        $buffer .= $indent . '        <img src="';
        $value = $this->resolveValue($context->find('imgurltools'), $context);
        $buffer .= call_user_func($this->mustache->getEscape(), $value);
        $buffer .= '" class="svg-icon" alt="" />';
        // 'str' section
        $value = $context->find('str');
        $buffer .= $this->sectionEbb4c8c810b5fd1ee97ff6e5fe010457($context, $indent, $value);
        $buffer .= '
';
        $buffer .= $indent . '    </a>
';
        $buffer .= $indent . '</div>
';

        return $buffer;
    }

    private function section108d02d6da01ba4ae126081aa8d9e389(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'addanewsection, theme_snap';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'addanewsection, theme_snap';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function section5041cfa7d189893a4cb1dd8eeb4705b9(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = '
    <a href="#snap-add-new-section" id="snap-new-section">
        <img src="{{imgurladdnewsection}}" class="svg-icon" alt="" />{{#str}}addanewsection, theme_snap{{/str}}
    </a>
    ';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= $indent . '    <a href="#snap-add-new-section" id="snap-new-section">
';
                $buffer .= $indent . '        <img src="';
                $value = $this->resolveValue($context->find('imgurladdnewsection'), $context);
                $buffer .= call_user_func($this->mustache->getEscape(), $value);
                $buffer .= '" class="svg-icon" alt="" />';
                // 'str' section
                $value = $context->find('str');
                $buffer .= $this->section108d02d6da01ba4ae126081aa8d9e389($context, $indent, $value);
                $buffer .= '
';
                $buffer .= $indent . '    </a>
';
                $context->pop();
            }
        }
    
        return $buffer;
    }

    private function sectionEbb4c8c810b5fd1ee97ff6e5fe010457(Mustache_Context $context, $indent, $value)
    {
        $buffer = '';
    
        if (!is_string($value) && is_callable($value)) {
            $source = 'coursetools, theme_snap';
            $result = call_user_func($value, $source, $this->lambdaHelper);
            if (strpos($result, '{{') === false) {
                $buffer .= $result;
            } else {
                $buffer .= $this->mustache
                    ->loadLambda((string) $result)
                    ->renderInternal($context);
            }
        } elseif (!empty($value)) {
            $values = $this->isIterable($value) ? $value : array($value);
            foreach ($values as $value) {
                $context->push($value);
                
                $buffer .= 'coursetools, theme_snap';
                $context->pop();
            }
        }
    
        return $buffer;
    }

}
