{% macro item(_args) %}
{% import _self as macros %}
{% set nav = _args.nav %}
{% set tier = _args.tier %}
{% set _linkifier_ = _args._linkifier_ %}
{% set _highlighter_ = _args._highlighter_ %}
{% if nav.hidden is not same as(true) %}
<li
{% if nav.htmlId is not empty %}id="{{ nav.htmlId }}"{% endif %}
class="{% if nav.cssClasses is not empty %}{{ nav.cssClasses }} {% endif %}{% if _highlighter_|call(nav) is same as(true) %}active{% endif %}"
>
<!-- {{ (nav.url is defined and nav.url is not empty) ? nav.url : nav.module }} -->
<a
href="{{ _linkifier_|call(nav) }}"
{% if nav.target is not empty %}target="{{ nav.target }}"{% endif %}
{% if nav.noFollow is same as(true) %}rel="nofollow"{% endif %}
>{{ nav.label }} {% if nav.target == "_blank" -%}<span class="sr-only">(opens in new window)</span>{% endif -%}</a>
{% if nav.hasVisibleChildren %}
{% if nav.children|length > 0 %}
<ul class="cs-side-nav-t{{ tier }}">
{% for child in nav.children %}
{{ macros.item({
nav: child,
tier: (tier + 1),
_linkifier_: _linkifier_,
_highlighter_: _highlighter_
}) }}
{% endfor %}
</ul>
{% endif %}
{% endif %}
</li>
{% endif %}
{% endmacro %}
{% import _self as macros %}
<div class="csw cs-side-nav">
{% if _widget.header is same as(true) %}
<div class="cs-side-nav-heading">
<a href="{{ _linkifier_|call }}">{{ heading }}</a>
</div>
{% endif %}
<ul class="cs-side-nav-t1">
{% for nav in navs %}
{{ macros.item({
nav: nav,
tier: 2,
_linkifier_: _linkifier_,
_highlighter_: _highlighter_
}) }}
{% endfor %}
</ul>
</div>