<?php

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

/* _layouts/components/global-sidebar */
class __TwigTemplate_eb55f4252d0df2a3497756fd1cbdc647 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
        ];
        $this->sandbox = $this->extensions[SandboxExtension::class];
        $this->checkSecurity();
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        craft\helpers\Template::beginProfile("template", "_layouts/components/global-sidebar");
        // line 1
        yield "<header id=\"global-sidebar\" class=\"sidebar\">
    ";
        // line 2
        ob_start();
        // line 9
        yield "        <div id=\"site-icon\">
            ";
        // line 10
        if ((isset($context["hasSystemIcon"]) || array_key_exists("hasSystemIcon", $context) ? $context["hasSystemIcon"] : (function () { throw new RuntimeError('Variable "hasSystemIcon" does not exist.', 10, $this->source); })())) {
            // line 11
            yield "                <img src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 11, $this->source); })()), "rebrand", [], "any", false, false, true, 11), "icon", [], "any", false, false, true, 11), "url", [], "any", false, false, true, 11), 11, $this->source), "html", null, true);
            yield "\" alt=\"\">
            ";
        } else {
            // line 13
            yield "                ";
            yield $this->extensions['craft\web\twig\Extension']->attrFilter($this->extensions['craft\web\twig\Extension']->svgFunction("@appicons/c-outline.svg", null, true), ["aria" => ["hidden" => "true"]]);
            // line 15
            yield "
            ";
        }
        // line 17
        yield "        </div>
        <div id=\"system-name\">
            <span class=\"h2\">";
        // line 19
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["systemName"]) || array_key_exists("systemName", $context) ? $context["systemName"] : (function () { throw new RuntimeError('Variable "systemName" does not exist.', 19, $this->source); })()), 19, $this->source), "html", null, true);
        yield "</span>
        </div>
    ";
        echo craft\helpers\Html::tag(((        // line 2
(isset($context["siteUrl"]) || array_key_exists("siteUrl", $context) ? $context["siteUrl"] : (function () { throw new RuntimeError('Variable "siteUrl" does not exist.', 2, $this->source); })())) ? ("a") : ("div")), ob_get_clean(), ["id" => "system-info", "href" => (((        // line 4
array_key_exists("siteUrl", $context) &&  !(null === $context["siteUrl"]))) ? ($context["siteUrl"]) : (false)), "rel" => ((        // line 5
(isset($context["siteUrl"]) || array_key_exists("siteUrl", $context) ? $context["siteUrl"] : (function () { throw new RuntimeError('Variable "siteUrl" does not exist.', 5, $this->source); })())) ? ("noopener") : (false)), "target" => ((        // line 6
(isset($context["siteUrl"]) || array_key_exists("siteUrl", $context) ? $context["siteUrl"] : (function () { throw new RuntimeError('Variable "siteUrl" does not exist.', 6, $this->source); })())) ? ("_blank") : (false)), "title" => ((        // line 7
(isset($context["siteUrl"]) || array_key_exists("siteUrl", $context) ? $context["siteUrl"] : (function () { throw new RuntimeError('Variable "siteUrl" does not exist.', 7, $this->source); })())) ? ($this->extensions['craft\web\twig\Extension']->translateFilter("View site", "app")) : (false))]);
        // line 22
        yield "
    <nav id=\"nav\" aria-label=\"";
        // line 23
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['craft\web\twig\Extension']->translateFilter("Primary", "app"), "html", null, true);
        yield "\">
        <ul>
            ";
        // line 25
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 25, $this->source); })()), "cp", [], "any", false, false, true, 25), "nav", [], "method", false, false, true, 25));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 26
            yield "                ";
            $context["itemAttributes"] = ["id" => craft\helpers\Template::attribute($this->env, $this->source,             // line 27
$context["item"], "id", [], "any", false, false, true, 27), "class" => ((craft\helpers\Template::attribute($this->env, $this->source,             // line 28
$context["item"], "subnav", [], "any", false, false, true, 28)) ? ("has-subnav") : (""))];
            // line 30
            yield "                ";
            $context["linkAttributes"] = ["href" => craft\helpers\UrlHelper::url($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source,             // line 31
$context["item"], "url", [], "any", false, false, true, 31), 31, $this->source)), "class" => ((craft\helpers\Template::attribute($this->env, $this->source,             // line 32
$context["item"], "sel", [], "any", false, false, true, 32)) ? ("sel") : ("")), "aria" => ["current" => (((craft\helpers\Template::attribute($this->env, $this->source,             // line 34
$context["item"], "sel", [], "any", false, false, true, 34) &&  !craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "subnav", [], "any", false, false, true, 34))) ? ("page") : (false)), "label" => (((craft\helpers\Template::attribute($this->env, $this->source,             // line 35
$context["item"], "ariaLabel", [], "any", true, true, true, 35) &&  !(null === craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "ariaLabel", [], "any", false, false, true, 35)))) ? (craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "ariaLabel", [], "any", false, false, true, 35)) : (false))]];
            // line 38
            yield "                <li ";
            yield craft\helpers\Html::renderTagAttributes($this->sandbox->ensureToStringAllowed((isset($context["itemAttributes"]) || array_key_exists("itemAttributes", $context) ? $context["itemAttributes"] : (function () { throw new RuntimeError('Variable "itemAttributes" does not exist.', 38, $this->source); })()), 38, $this->source));
            yield ">
                    <a ";
            // line 39
            yield craft\helpers\Html::renderTagAttributes($this->sandbox->ensureToStringAllowed((isset($context["linkAttributes"]) || array_key_exists("linkAttributes", $context) ? $context["linkAttributes"] : (function () { throw new RuntimeError('Variable "linkAttributes" does not exist.', 39, $this->source); })()), 39, $this->source));
            yield ">
                        <span class=\"icon icon-mask\" aria-hidden=\"true\">";
            // line 41
            if (craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "icon", [], "any", true, true, true, 41)) {
                // line 42
                yield $this->extensions['craft\web\twig\Extension']->svgFunction($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "icon", [], "any", false, false, true, 42), 42, $this->source), true, true);
            } elseif (craft\helpers\Template::attribute($this->env, $this->source,             // line 43
$context["item"], "fontIcon", [], "any", true, true, true, 43)) {
                // line 44
                yield "<span data-icon=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "fontIcon", [], "any", false, false, true, 44), 44, $this->source), "html", null, true);
                yield "\"></span>";
            } else {
                // line 46
                yield from $this->loadTemplate("_includes/defaulticon.svg.twig", "_layouts/components/global-sidebar", 46)->unwrap()->yield(CoreExtension::merge($context, ["label" => craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, true, 46)]));
            }
            // line 48
            yield "</span>

                        <span class=\"label\">";
            // line 50
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, true, 50), 50, $this->source), "html", null, true);
            yield "</span>";
            // line 52
            if (( !craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "sel", [], "any", false, false, true, 52) && craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "badgeCount", [], "any", false, false, true, 52))) {
                // line 53
                yield "<span class=\"badge\" aria-hidden=\"true\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['craft\web\twig\Extension']->numberFilter($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "badgeCount", [], "any", false, false, true, 53), 53, $this->source), 0), "html", null, true);
                yield "</span>
                            ";
                // line 54
                yield $this->extensions['craft\web\twig\Extension']->tagFunction("span", ["class" => "visually-hidden", "data" => ["notification" => true], "text" => $this->extensions['craft\web\twig\Extension']->translateFilter("{num, number} {num, plural, =1{notification} other{notifications}}", "app", ["num" => $this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source,                 // line 60
$context["item"], "badgeCount", [], "any", false, false, true, 60), 60, $this->source)])]);
            }
            // line 64
            yield "</a>
                    ";
            // line 65
            if (craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "subnav", [], "any", false, false, true, 65)) {
                // line 66
                yield "                        <ul class=\"subnav\">
                            ";
                // line 67
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "subnav", [], "any", false, false, true, 67));
                $context['loop'] = [
                  'parent' => $context['_parent'],
                  'index0' => 0,
                  'index'  => 1,
                  'first'  => true,
                ];
                if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                    $length = count($context['_seq']);
                    $context['loop']['revindex0'] = $length - 1;
                    $context['loop']['revindex'] = $length;
                    $context['loop']['length'] = $length;
                    $context['loop']['last'] = 1 === $length;
                }
                foreach ($context['_seq'] as $context["itemId"] => $context["item"]) {
                    // line 68
                    yield "                                ";
                    $context["itemIsSelected"] = ((                    // line 69
array_key_exists("selectedSubnavItem", $context) && ((isset($context["selectedSubnavItem"]) || array_key_exists("selectedSubnavItem", $context) ? $context["selectedSubnavItem"] : (function () { throw new RuntimeError('Variable "selectedSubnavItem" does not exist.', 69, $this->source); })()) == $context["itemId"])) || ( !                    // line 70
array_key_exists("selectedSubnavItem", $context) && craft\helpers\Template::attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, true, 70)));
                    // line 72
                    $context["linkAttributes"] = ["href" => craft\helpers\UrlHelper::url($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source,                     // line 73
$context["item"], "url", [], "any", false, false, true, 73), 73, $this->source)), "class" => [((                    // line 75
(isset($context["itemIsSelected"]) || array_key_exists("itemIsSelected", $context) ? $context["itemIsSelected"] : (function () { throw new RuntimeError('Variable "itemIsSelected" does not exist.', 75, $this->source); })())) ? ("sel") : ("")), (((((craft\helpers\Template::attribute($this->env, $this->source,                     // line 76
$context["item"], "external", [], "any", true, true, true, 76) &&  !(null === craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "external", [], "any", false, false, true, 76)))) ? (craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "external", [], "any", false, false, true, 76)) : (false))) ? ("external") : (""))], "target" => (((((craft\helpers\Template::attribute($this->env, $this->source,                     // line 78
$context["item"], "external", [], "any", true, true, true, 78) &&  !(null === craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "external", [], "any", false, false, true, 78)))) ? (craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "external", [], "any", false, false, true, 78)) : (false))) ? ("_blank") : ("")), "aria" => ["current" => ((                    // line 80
(isset($context["itemIsSelected"]) || array_key_exists("itemIsSelected", $context) ? $context["itemIsSelected"] : (function () { throw new RuntimeError('Variable "itemIsSelected" does not exist.', 80, $this->source); })())) ? ("page") : (false)), "label" => (((craft\helpers\Template::attribute($this->env, $this->source,                     // line 81
$context["item"], "ariaLabel", [], "any", true, true, true, 81) &&  !(null === craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "ariaLabel", [], "any", false, false, true, 81)))) ? (craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "ariaLabel", [], "any", false, false, true, 81)) : (false))]];
                    // line 84
                    yield "
                                <li>
                                    <a ";
                    // line 86
                    yield craft\helpers\Html::renderTagAttributes($this->sandbox->ensureToStringAllowed((isset($context["linkAttributes"]) || array_key_exists("linkAttributes", $context) ? $context["linkAttributes"] : (function () { throw new RuntimeError('Variable "linkAttributes" does not exist.', 86, $this->source); })()), 86, $this->source));
                    yield ">
                                        ";
                    // line 87
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, true, 87), 87, $this->source), "html", null, true);
                    // line 89
                    if (( !(isset($context["itemIsSelected"]) || array_key_exists("itemIsSelected", $context) ? $context["itemIsSelected"] : (function () { throw new RuntimeError('Variable "itemIsSelected" does not exist.', 89, $this->source); })()) && craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "badgeCount", [], "any", true, true, true, 89))) {
                        // line 90
                        yield "<span class=\"badge\" aria-hidden=\"true\">";
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['craft\web\twig\Extension']->numberFilter($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source, $context["item"], "badgeCount", [], "any", false, false, true, 90), 90, $this->source), 0), "html", null, true);
                        yield "</span>
                                            ";
                        // line 91
                        yield $this->extensions['craft\web\twig\Extension']->tagFunction("span", ["class" => "visually-hidden", "data" => ["notification" => true], "text" => $this->extensions['craft\web\twig\Extension']->translateFilter("{num, number} {num, plural, =1{notification} other{notifications}}", "app", ["num" => $this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source,                         // line 97
$context["item"], "badgeCount", [], "any", false, false, true, 97), 97, $this->source)])]);
                    }
                    // line 101
                    yield "</a>
                                </li>
                            ";
                    ++$context['loop']['index0'];
                    ++$context['loop']['index'];
                    $context['loop']['first'] = false;
                    if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
                        --$context['loop']['revindex0'];
                        --$context['loop']['revindex'];
                        $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['itemId'], $context['item'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 104
                yield "                        </ul>
                    ";
            }
            // line 106
            yield "                </li>
            ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 108
        yield "        </ul>
    </nav>

    ";
        // line 111
        if ((craft\helpers\Template::attribute($this->env, $this->source, (isset($context["currentUser"]) || array_key_exists("currentUser", $context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.', 111, $this->source); })()), "admin", [], "any", false, false, true, 111) && (isset($context["devMode"]) || array_key_exists("devMode", $context) ? $context["devMode"] : (function () { throw new RuntimeError('Variable "devMode" does not exist.', 111, $this->source); })()))) {
            // line 112
            yield "        ";
            $context["devModeText"] = $this->extensions['craft\web\twig\Extension']->translateFilter("Craft CMS is running in Dev Mode.", "app");
            // line 113
            yield "        <div id=\"devmode\">
            ";
            // line 114
            yield $this->extensions['craft\web\twig\Extension']->tagFunction("span", ["class" => "visually-hidden", "text" => $this->sandbox->ensureToStringAllowed(            // line 116
(isset($context["devModeText"]) || array_key_exists("devModeText", $context) ? $context["devModeText"] : (function () { throw new RuntimeError('Variable "devModeText" does not exist.', 116, $this->source); })()), 116, $this->source)]);
            // line 117
            yield "
        </div>
    ";
        }
        // line 120
        yield "</header>
";
        craft\helpers\Template::endProfile("template", "_layouts/components/global-sidebar");
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "_layouts/components/global-sidebar";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  276 => 120,  271 => 117,  269 => 116,  268 => 114,  265 => 113,  262 => 112,  260 => 111,  255 => 108,  240 => 106,  236 => 104,  220 => 101,  217 => 97,  216 => 91,  211 => 90,  209 => 89,  207 => 87,  203 => 86,  199 => 84,  197 => 81,  196 => 80,  195 => 78,  194 => 76,  193 => 75,  192 => 73,  191 => 72,  189 => 70,  188 => 69,  186 => 68,  169 => 67,  166 => 66,  164 => 65,  161 => 64,  158 => 60,  157 => 54,  152 => 53,  150 => 52,  147 => 50,  143 => 48,  140 => 46,  135 => 44,  133 => 43,  131 => 42,  129 => 41,  125 => 39,  120 => 38,  118 => 35,  117 => 34,  116 => 32,  115 => 31,  113 => 30,  111 => 28,  110 => 27,  108 => 26,  91 => 25,  86 => 23,  83 => 22,  81 => 7,  80 => 6,  79 => 5,  78 => 4,  77 => 2,  72 => 19,  68 => 17,  64 => 15,  61 => 13,  55 => 11,  53 => 10,  50 => 9,  48 => 2,  45 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("<header id=\"global-sidebar\" class=\"sidebar\">
    {% tag siteUrl ? 'a' : 'div' with {
        id: 'system-info',
        href: siteUrl ?? false,
        rel: siteUrl ? 'noopener' : false,
        target: siteUrl ? '_blank' : false,
        title: siteUrl ? 'View site'|t('app') : false,
    } %}
        <div id=\"site-icon\">
            {% if hasSystemIcon %}
                <img src=\"{{ craft.rebrand.icon.url }}\" alt=\"\">
            {% else %}
                {{ svg('@appicons/c-outline.svg', namespace=true)|attr({
                    aria: {hidden: 'true'},
                }) }}
            {% endif %}
        </div>
        <div id=\"system-name\">
            <span class=\"h2\">{{ systemName }}</span>
        </div>
    {% endtag %}

    <nav id=\"nav\" aria-label=\"{{ 'Primary'|t('app') }}\">
        <ul>
            {% for item in craft.cp.nav() %}
                {% set itemAttributes = {
                    id: item.id,
                    class: item.subnav ? 'has-subnav',
                } %}
                {% set linkAttributes = {
                    href: url(item.url),
                    class: item.sel ? 'sel',
                    aria: {
                        current: item.sel and not item.subnav ? 'page' : false,
                        label: item.ariaLabel ?? false,
                    },
                } %}
                <li {{ attr(itemAttributes) }}>
                    <a {{ attr(linkAttributes) }}>
                        <span class=\"icon icon-mask\" aria-hidden=\"true\">
                            {%- if item.icon is defined -%}
                                {{ svg(item.icon, sanitize=true, namespace=true) }}
                            {%- elseif item.fontIcon is defined -%}
                                <span data-icon=\"{{ item.fontIcon }}\"></span>
                            {%- else -%}
                                {% include \"_includes/defaulticon.svg.twig\" with { label: item.label } %}
                            {%- endif -%}
                        </span>

                        <span class=\"label\">{{ item.label }}</span>

                        {%- if not item.sel and item.badgeCount -%}
                            <span class=\"badge\" aria-hidden=\"true\">{{ item.badgeCount|number(decimals=0) }}</span>
                            {{ tag('span', {
                                class: 'visually-hidden',
                                data: {
                                    notification: true,
                                },
                                text: '{num, number} {num, plural, =1{notification} other{notifications}}'|t('app', {
                                    num: item.badgeCount,
                                }),
                            }) }}
                        {%- endif -%}
                    </a>
                    {% if item.subnav %}
                        <ul class=\"subnav\">
                            {% for itemId, item in item.subnav %}
                                {% set itemIsSelected = (
                                    (selectedSubnavItem is defined and selectedSubnavItem == itemId) or
                                    (selectedSubnavItem is not defined and loop.first)
                                ) -%}
                                {% set linkAttributes = {
                                    href: url(item.url),
                                    class: [
                                        itemIsSelected ? 'sel',
                                        (item.external ?? false) ? 'external',
                                    ],
                                    target: (item.external ?? false) ? '_blank',
                                    aria: {
                                        current: itemIsSelected ? 'page' : false,
                                        label: item.ariaLabel ?? false,
                                    },
                                } %}

                                <li>
                                    <a {{ attr(linkAttributes) }}>
                                        {{ item.label }}

                                        {%- if not itemIsSelected and item.badgeCount is defined -%}
                                            <span class=\"badge\" aria-hidden=\"true\">{{ item.badgeCount|number(decimals=0) }}</span>
                                            {{ tag('span', {
                                                class: 'visually-hidden',
                                                data: {
                                                    notification: true,
                                                },
                                                text: '{num, number} {num, plural, =1{notification} other{notifications}}'|t('app', {
                                                    num: item.badgeCount,
                                                }),
                                            }) }}
                                        {%- endif -%}
                                    </a>
                                </li>
                            {% endfor %}
                        </ul>
                    {% endif %}
                </li>
            {% endfor %}
        </ul>
    </nav>

    {% if currentUser.admin and devMode %}
        {% set devModeText = 'Craft CMS is running in Dev Mode.'|t('app') %}
        <div id=\"devmode\">
            {{ tag('span', {
                class: 'visually-hidden',
                text: devModeText
            }) }}
        </div>
    {% endif %}
</header>
", "_layouts/components/global-sidebar", "/Users/nodata/nodata.local/_controlnocontrol/sites/hjhs.ca/www/craft/vendor/craftcms/cms/src/templates/_layouts/components/global-sidebar.twig");
    }
    
    public function checkSecurity()
    {
        static $tags = ["tag" => 2, "if" => 10, "for" => 25, "set" => 26, "include" => 46];
        static $filters = ["t" => 7, "escape" => 11, "attr" => 13, "number" => 53];
        static $functions = ["svg" => 13, "url" => 31, "attr" => 38, "tag" => 54];

        try {
            $this->sandbox->checkSecurity(
                ['tag', 'if', 'for', 'set', 'include'],
                ['t', 'escape', 'attr', 'number'],
                ['svg', 'url', 'attr', 'tag'],
                $this->source
            );
        } catch (SecurityError $e) {
            $e->setSourceContext($this->source);

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

            throw $e;
        }

    }
}
