/* eslint-disable @angular-eslint/no-input-rename */
import { ChangeDetectionStrategy, Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
function NgxMenuContentComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "img", 3);
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵattribute("src", ctx_r0.icon, i0.ɵɵsanitizeUrl);
} }
function NgxMenuContentComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵprojection(0);
} }
const _c0 = ["*"];
export class NgxMenuContentComponent {
    constructor() {
        this.icon = null;
        this.noMargin = null;
        this.alignCenter = null;
    }
    get class() {
        const cssClasses = `${this.noMargin === null ? '' : 'content-phrase'}`;
        return this.icon === null ? cssClasses : `icon-place ${cssClasses}`;
    }
}
/** @nocollapse */ NgxMenuContentComponent.ɵfac = function NgxMenuContentComponent_Factory(t) { return new (t || NgxMenuContentComponent)(); };
/** @nocollapse */ NgxMenuContentComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: NgxMenuContentComponent, selectors: [["ngx-menu-content"]], hostVars: 2, hostBindings: function NgxMenuContentComponent_HostBindings(rf, ctx) { if (rf & 2) {
        i0.ɵɵclassMap(ctx.class);
    } }, inputs: { icon: "icon", noMargin: ["no-margin", "noMargin"], alignCenter: ["align-center", "alignCenter"] }, ngContentSelectors: _c0, decls: 5, vars: 8, consts: [[1, "content"], [3, "ngIf", "ngIfElse"], ["content", ""], ["alt", "img"]], template: function NgxMenuContentComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵprojectionDef();
        i0.ɵɵelementStart(0, "div")(1, "div", 0);
        i0.ɵɵtemplate(2, NgxMenuContentComponent_ng_template_2_Template, 1, 1, "ng-template", 1);
        i0.ɵɵtemplate(3, NgxMenuContentComponent_ng_template_3_Template, 1, 0, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
        i0.ɵɵelementEnd()();
    } if (rf & 2) {
        const _r1 = i0.ɵɵreference(4);
        i0.ɵɵclassProp("context-menu__content-place", ctx.icon === null)("context-menu__icon-place", ctx.icon !== null);
        i0.ɵɵadvance(1);
        i0.ɵɵclassProp("align-center", ctx.alignCenter !== null);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", (ctx.icon == null ? null : ctx.icon.length) > 0)("ngIfElse", _r1);
    } }, directives: [i1.NgIf], encapsulation: 2, changeDetection: 0 });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgxMenuContentComponent, [{
        type: Component,
        args: [{ selector: 'ngx-menu-content', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div\n    [class.context-menu__content-place]=\"icon === null\"\n    [class.context-menu__icon-place]=\"icon !== null\"\n>\n    <div\n        class=\"content\"\n        [class.align-center]=\"alignCenter !== null\"\n    >\n        <ng-template\n            [ngIf]=\"icon?.length! > 0\"\n            [ngIfElse]=\"content\"\n        >\n            <img\n                alt=\"img\"\n                [attr.src]=\"icon\"\n            />\n        </ng-template>\n        <ng-template #content>\n            <ng-content></ng-content>\n        </ng-template>\n    </div>\n</div>\n" }]
    }], null, { icon: [{
            type: Input
        }], noMargin: [{
            type: Input,
            args: ['no-margin']
        }], alignCenter: [{
            type: Input,
            args: ['align-center']
        }], class: [{
            type: HostBinding,
            args: ['class']
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW1lbnUtY29udGVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay92aXJ0dWFsLXRhYmxlL3NyYy9jb21wb25lbnRzL25neC1jb250ZXh0LW1lbnUvbmd4LWNvbnRleHQtbWVudS1pdGVtL25neC1tZW51LWNvbnRlbnQtcGxhY2Uvbmd4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gIDwvbmctdGVtcGxhdGU+XG4gICAgICAgIDxuZy10ZW1wbGF0ZSAjY29udGVudD5cbiAgICAgICAgICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiAgICAgICAgPC9uZy10ZW1wbGF0ZT5cbiAgICA8L2Rpdj5cbjwvZGl2PlxuIl19