import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation, } from '@angular/core';
import * as i0 from "@angular/core";
function NavItemUlComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainer(0);
} }
function NavItemUlComponent_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "div", 7);
} }
function NavItemUlComponent_div_2_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 8);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const group_r4 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", group_r4.title, " ");
} }
function NavItemUlComponent_div_2_ng_container_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainer(0);
} }
const _c0 = function (a0) { return { $implicit: a0 }; };
function NavItemUlComponent_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 4);
    i0.ɵɵtemplate(1, NavItemUlComponent_div_2_div_1_Template, 1, 0, "div", 5);
    i0.ɵɵtemplate(2, NavItemUlComponent_div_2_div_2_Template, 2, 1, "div", 6);
    i0.ɵɵtemplate(3, NavItemUlComponent_div_2_ng_container_3_Template, 1, 0, "ng-container", 1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const group_r4 = ctx.$implicit;
    const i_r5 = ctx.index;
    i0.ɵɵnextContext();
    const _r2 = i0.ɵɵreference(4);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", i_r5);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", group_r4.title);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0.ɵɵpureFunction1(4, _c0, group_r4.items));
} }
function NavItemUlComponent_ng_template_3_acl_nav_item_li_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "acl-nav-item-li", 10);
} if (rf & 2) {
    const item_r12 = ctx.$implicit;
    i0.ɵɵproperty("item", item_r12);
} }
function NavItemUlComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵtemplate(0, NavItemUlComponent_ng_template_3_acl_nav_item_li_0_Template, 1, 1, "acl-nav-item-li", 9);
} if (rf & 2) {
    const items_r10 = ctx.$implicit;
    const ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngForOf", items_r10)("ngForTrackBy", ctx_r3.trackByKey);
} }
export class NavItemUlComponent {
    trackByKey(_, item) {
        return item.key;
    }
}
NavItemUlComponent.ɵfac = function NavItemUlComponent_Factory(t) { return new (t || NavItemUlComponent)(); };
NavItemUlComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavItemUlComponent, selectors: [["acl-nav-item-ul"]], inputs: { items: "items", groups: "groups" }, decls: 5, vars: 5, consts: [[1, "acl-nav-item-ul"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["class", "acl-nav-item-group", 4, "ngFor", "ngForOf"], ["li", ""], [1, "acl-nav-item-group"], ["class", "split", 4, "ngIf"], ["class", "acl-nav-item-group__title", 4, "ngIf"], [1, "split"], [1, "acl-nav-item-group__title"], [3, "item", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "item"]], template: function NavItemUlComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "div", 0);
        i0.ɵɵtemplate(1, NavItemUlComponent_ng_container_1_Template, 1, 0, "ng-container", 1);
        i0.ɵɵtemplate(2, NavItemUlComponent_div_2_Template, 4, 6, "div", 2);
        i0.ɵɵelementEnd();
        i0.ɵɵtemplate(3, NavItemUlComponent_ng_template_3_Template, 1, 2, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
    } if (rf & 2) {
        const _r2 = i0.ɵɵreference(4);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c0, ctx.items));
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngForOf", ctx.groups);
    } }, styles: [".acl-nav-item-group{position:relative}.acl-nav-item-group__title{color:rgb(var(--aui-color-n-5));font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);padding-left:20px;padding-bottom:6px;word-break:keep-all;white-space:nowrap}.acl-nav-item-group+.acl-nav-item-group{padding-top:22px}.acl-nav-item-group .split{width:100%;border-bottom:1px solid rgb(var(--aui-color-n-8));transform:translateY(-11px);display:none}.acl-nav-menu.collapse .split{display:block}acl-nav-item-li{display:block}\n"], encapsulation: 2, changeDetection: 0 });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavItemUlComponent, [{
        type: Component,
        args: [{ selector: 'acl-nav-item-ul', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, template: "<div class=\"acl-nav-item-ul\">\n  <ng-container\n    *ngTemplateOutlet=\"li; context: { $implicit: items }\"\n  ></ng-container>\n\n  <div\n    *ngFor=\"let group of groups; index as i\"\n    class=\"acl-nav-item-group\"\n  >\n    <div\n      *ngIf=\"i\"\n      class=\"split\"\n    ></div>\n    <div\n      *ngIf=\"group.title\"\n      class=\"acl-nav-item-group__title\"\n    >\n      {{ group.title }}\n    </div>\n    <ng-container\n      *ngTemplateOutlet=\"li; context: { $implicit: group.items }\"\n    ></ng-container>\n  </div>\n</div>\n\n<ng-template\n  #li\n  let-items\n>\n  <acl-nav-item-li\n    *ngFor=\"let item of items; trackBy: trackByKey\"\n    [item]=\"item\"\n  ></acl-nav-item-li>\n</ng-template>\n", styles: [".acl-nav-item-group{position:relative}.acl-nav-item-group__title{color:rgb(var(--aui-color-n-5));font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);padding-left:20px;padding-bottom:6px;word-break:keep-all;white-space:nowrap}.acl-nav-item-group+.acl-nav-item-group{padding-top:22px}.acl-nav-item-group .split{width:100%;border-bottom:1px solid rgb(var(--aui-color-n-8));transform:translateY(-11px);display:none}.acl-nav-menu.collapse .split{display:block}acl-nav-item-li{display:block}\n"] }]
    }], null, { items: [{
            type: Input
        }], groups: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2LWl0ZW0tdWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21tb24vc3JjL3BhZ2Utc2NhZmZvbGQvbmF2aWdhdGlvbi9uYXYtbWVudS9uYXYtaXRlbS11bC9uYXYtaXRlbS11bC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbW1vbi9zcmMvcGFnZS1zY2FmZm9sZC9uYXZpZ2F0aW9uL25hdi1tZW51L25hdi1pdGVtLXVsL25hdi1pdGVtLXVsLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULEtBQUssRUFDTCxpQkFBaUIsR0FDbEIsTUFBTSxlQUFlLENBQUM7OztJQ0pyQix3QkFFZ0I7OztJQU1kLHlCQUdPOzs7SUFDUCw4QkFHQztJQUNDLFlBQ0Y7SUFBQSxpQkFBTTs7O0lBREosZUFDRjtJQURFLCtDQUNGOzs7SUFDQSx3QkFFZ0I7Ozs7SUFoQmxCLDhCQUdDO0lBQ0MseUVBR087SUFDUCx5RUFLTTtJQUNOLDJGQUVnQjtJQUNsQixpQkFBTTs7Ozs7O0lBWkQsZUFBTztJQUFQLDJCQUFPO0lBSVAsZUFBaUI7SUFBakIscUNBQWlCO0lBTWpCLGVBQXNCO0lBQXRCLHNDQUFzQix1RUFBQTs7O0lBUzNCLHNDQUdtQjs7O0lBRGpCLCtCQUFhOzs7SUFGZix5R0FHbUI7Ozs7SUFGQSxtQ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