/**
 * @packageDocumentation
 * @module notification
 */
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
import * as i0 from "@angular/core";
function FeedbackNotificationComponent_main_0_pre_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "pre", 4);
} if (rf & 2) {
    const ctx_r3 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("innerHTML", ctx_r3.content, i0.ɵɵsanitizeHtml);
} }
function FeedbackNotificationComponent_main_0_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "div", 4);
} if (rf & 2) {
    const ctx_r4 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("innerHTML", ctx_r4.content, i0.ɵɵsanitizeHtml);
} }
function FeedbackNotificationComponent_main_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "main");
    i0.ɵɵtemplate(1, FeedbackNotificationComponent_main_0_pre_1_Template, 1, 1, "pre", 3);
    i0.ɵɵtemplate(2, FeedbackNotificationComponent_main_0_div_2_Template, 1, 1, "div", 3);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.pre);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r0.pre);
} }
function FeedbackNotificationComponent_button_2_Template(rf, ctx) { if (rf & 1) {
    const _r6 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 5);
    i0.ɵɵlistener("click", function FeedbackNotificationComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.onPrimary.emit()); });
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r1.primary), " ");
} }
function FeedbackNotificationComponent_button_3_Template(rf, ctx) { if (rf & 1) {
    const _r8 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 6);
    i0.ɵɵlistener("click", function FeedbackNotificationComponent_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.onSecondary.emit()); });
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r2.secondary), " ");
} }
export class FeedbackNotificationComponent {
    constructor() {
        // eslint-disable-next-line @angular-eslint/no-output-on-prefix
        this.onPrimary = new EventEmitter();
        // eslint-disable-next-line @angular-eslint/no-output-on-prefix
        this.onSecondary = new EventEmitter();
    }
}
FeedbackNotificationComponent.ɵfac = function FeedbackNotificationComponent_Factory(t) { return new (t || FeedbackNotificationComponent)(); };
FeedbackNotificationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FeedbackNotificationComponent, selectors: [["ng-component"]], inputs: { primary: "primary", secondary: "secondary", content: "content", pre: "pre" }, outputs: { onPrimary: "onPrimary", onSecondary: "onSecondary" }, decls: 4, vars: 3, consts: [[4, "ngIf"], ["aui-button", "primary", "type", "button", "size", "mini", 3, "click", 4, "ngIf"], ["aui-button", "default", "type", "button", "size", "mini", 3, "click", 4, "ngIf"], [3, "innerHTML", 4, "ngIf"], [3, "innerHTML"], ["aui-button", "primary", "type", "button", "size", "mini", 3, "click"], ["aui-button", "default", "type", "button", "size", "mini", 3, "click"]], template: function FeedbackNotificationComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵtemplate(0, FeedbackNotificationComponent_main_0_Template, 3, 2, "main", 0);
        i0.ɵɵelementStart(1, "footer");
        i0.ɵɵtemplate(2, FeedbackNotificationComponent_button_2_Template, 3, 3, "button", 1);
        i0.ɵɵtemplate(3, FeedbackNotificationComponent_button_3_Template, 3, 3, "button", 2);
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵproperty("ngIf", ctx.content);
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("ngIf", ctx.primary);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.secondary);
    } }, styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;max-height:150px}main[_ngcontent-%COMP%]{display:flex;flex:1;overflow:hidden}main[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;overflow:auto}footer[_ngcontent-%COMP%]{padding-top:12px}"], changeDetection: 0 });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FeedbackNotificationComponent, [{
        type: Component,
        args: [{ preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<main *ngIf=\"content\">\n  <pre\n    *ngIf=\"pre\"\n    [innerHTML]=\"content\"\n  ></pre>\n  <div\n    *ngIf=\"!pre\"\n    [innerHTML]=\"content\"\n  ></div>\n</main>\n<footer>\n  <button\n    *ngIf=\"primary\"\n    aui-button=\"primary\"\n    type=\"button\"\n    size=\"mini\"\n    (click)=\"onPrimary.emit()\"\n  >\n    {{ primary | translate }}\n  </button>\n  <button\n    *ngIf=\"secondary\"\n    aui-button=\"default\"\n    type=\"button\"\n    size=\"mini\"\n    (click)=\"onSecondary.emit()\"\n  >\n    {{ secondary | translate }}\n  </button>\n</footer>\n", styles: [":host{display:flex;flex-direction:column;max-height:150px}main{display:flex;flex:1;overflow:hidden}main>*{flex:1;overflow:auto}footer{padding-top:12px}\n"] }]
    }], null, { primary: [{
            type: Input
        }], secondary: [{
            type: Input
        }], content: [{
            type: Input
        }], pre: [{
            type: Input
        }], 
    // eslint-disable-next-line @angular-eslint/no-output-on-prefix
    onPrimary: [{
            type: Output
        }], 
    // eslint-disable-next-line @angular-eslint/no-output-on-prefix
    onSecondary: [{
            type: Output
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21tb24vc3JjL25vdGlmaWNhdGlvbi9mZWVkYmFjay1ub3RpZmljYXRpb24vY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21tb24vc3JjL25vdGlmaWNhdGlvbi9mZWVkYmFjay1ub3RpZmljYXRpb24vdGVtcGxhdGUuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFFSCxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxZQUFZLEVBQ1osS0FBSyxFQUNMLE1BQU0sR0FDUCxNQUFNLGVBQWUsQ0FBQzs7O0lDVnJCLHlCQUdPOzs7SUFETCw2REFBcUI7OztJQUV2Qix5QkFHTzs7O0lBREwsNkRBQXFCOzs7SUFQekIsNEJBQXNCO0lBQ3BCLHFGQUdPO0lBQ1AscUZBR087SUFDVCxpQkFBTzs7O0lBUEYsZUFBUztJQUFULGlDQUFTO0lBSVQsZUFBVTtJQUFWLGtDQUFVOzs7O0lBS2IsaUNBTUM7SUFEQyw2S0FBUyxlQUFBLHVCQUFnQixDQUFBLElBQUM7SUFFMUIsWUFDRjs7SUFBQSxpQkFBUzs7O0lBRFAsZUFDRjtJQURFLHFFQUNGOzs7O0lBQ0EsaUNBTUM7SUFEQyw2S0FBUyxlQUFBLHlCQUFrQixDQUFBLElBQUM7SUFFNUIsWUFDRjs7SUFBQSxpQkFBUzs7O0lBRFAsZUFDRjtJQURFLHVFQUNGOztBRFRGLE1BQU0sT0FBTyw2QkFBNkI7SUFOMUM7UUFvQkUsK0RBQStEO1F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