// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to
//  deal in the Software without restriction, including without limitation the
//  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
//  sell copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
import { Component, Input, ViewEncapsulation } from "@angular/core";
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "../../../divider/divider.component";
/** @ignore */
export class MenuGroupComponent {
    stopClickPropagation(event) {
        event.stopPropagation();
    }
}
MenuGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MenuGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
MenuGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: MenuGroupComponent, selector: "nui-menu-group", inputs: { header: "header" }, host: { attributes: { "role": "group" } }, ngImport: i0, template: `
        <ng-container *ngIf="header">
            <div
                class="nui-menu-item nui-menu-item--header"
                (click)="stopClickPropagation($event)"
            >
                {{ header }}
            </div>
        </ng-container>
        <ng-content></ng-content>
        <div
            (click)="stopClickPropagation($event)"
            class="nui-menu-group-divider--container"
        >
            <nui-divider size="extra-small"></nui-divider>
        </div>
    `, isInline: true, styles: [".nui-menu .nui-menu-group-divider--container,.nui-menu-popup .nui-menu-group-divider--container,.nui-menu-popup-host .nui-menu-group-divider--container{overflow:auto}.nui-menu nui-menu-group:last-child .nui-menu-group-divider--container,.nui-menu-popup nui-menu-group:last-child .nui-menu-group-divider--container,.nui-menu-popup-host nui-menu-group:last-child .nui-menu-group-divider--container{display:none}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.DividerComponent, selector: "nui-divider", inputs: ["isVertical", "size"] }], encapsulation: i0.ViewEncapsulation.None });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MenuGroupComponent, decorators: [{
            type: Component,
            args: [{ selector: "nui-menu-group", template: `
        <ng-container *ngIf="header">
            <div
                class="nui-menu-item nui-menu-item--header"
                (click)="stopClickPropagation($event)"
            >
                {{ header }}
            </div>
        </ng-container>
        <ng-content></ng-content>
        <div
            (click)="stopClickPropagation($event)"
            class="nui-menu-group-divider--container"
        >
            <nui-divider size="extra-small"></nui-divider>
        </div>
    `, encapsulation: ViewEncapsulation.None, host: { role: "group" }, styles: [".nui-menu .nui-menu-group-divider--container,.nui-menu-popup .nui-menu-group-divider--container,.nui-menu-popup-host .nui-menu-group-divider--container{overflow:auto}.nui-menu nui-menu-group:last-child .nui-menu-group-divider--container,.nui-menu-popup nui-menu-group:last-child .nui-menu-group-divider--container,.nui-menu-popup-host nui-menu-group:last-child .nui-menu-group-divider--container{display:none}\n"] }]
        }], propDecorators: { header: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS1ncm91cC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGliL21l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zPVwibnVpLW1lbnUtZ3JvdXAtZGl2aWRlci0tY29udGFpbmVyXCJcbiAgICAgICAgPlxuICAgICAgICAgICAgPG51aS1kaXZpZGVyIHNpemU9XCJleHRyYS1zbWFsbFwiPjwvbnVpLWRpdmlkZXI+XG4gICAgICAgIDwvZGl2PlxuICAgIGAsXG4gICAgc3R5bGVVcmxzOiBbXCIuL21lbnUtZ3JvdXAuY29tcG9uZW50Lmxlc3NcIl0sXG4gICAgZW5jYXBzdWxhdGlvbjogVmlld0VuY2Fwc3VsYXRpb24uTm9uZSxcbiAgICBob3N0OiB7IHJvbGU6IFwiZ3JvdXBcIiB9LFxufSlcbmV4cG9ydCBjbGFzcyBNZW51R3JvdXBDb21wb25lbnQge1xuICAgIEBJbnB1dCgpIGhlYWRlcj86IHN0cmluZztcblxuICAgIHB1YmxpYyBzdG9wQ2xpY2tQcm9wYWdhdGlvbihldmVudDogTW91c2VFdmVudCk6IHZvaWQge1xuICAgICAgICBldmVudC5zdG9wUHJvcGFnYXRpb24oKTtcbiAgICB9XG59XG4iXX0=