import { Component, HostBinding, Input, ViewEncapsulation, } from '@angular/core';
import { BaseDirective } from '../../base.directive';
import * as i0 from "@angular/core";
const _c0 = ["*"];
export class EuiFeedbackMessageComponent extends BaseDirective {
    constructor() {
        super();
        this.type = 'MessageFeedback';
    }
    get cssClasses() {
        return [
            super.getCssClasses('eui-feedback-message'),
            this.styleClass ? this.styleClass : ''
        ].join(' ').trim();
    }
}
/** @nocollapse */ EuiFeedbackMessageComponent.ɵfac = function EuiFeedbackMessageComponent_Factory(t) { return new (t || EuiFeedbackMessageComponent)(); };
/** @nocollapse */ EuiFeedbackMessageComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EuiFeedbackMessageComponent, selectors: [["eui-feedback-message"]], hostVars: 3, hostBindings: function EuiFeedbackMessageComponent_HostBindings(rf, ctx) { if (rf & 2) {
        i0.ɵɵattribute("type", ctx.type);
        i0.ɵɵclassMap(ctx.cssClasses);
    } }, inputs: { styleClass: "styleClass" }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function EuiFeedbackMessageComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵprojectionDef();
        i0.ɵɵprojection(0);
    } }, styles: [".eui-feedback-message{display:flex;font-size:var(--eui-font-size-s);margin-top:var(--eui-spacing-2xs);position:relative;white-space:pre}.eui-feedback-message--info{color:var(--eui-color-info)}.eui-feedback-message--success{color:var(--eui-color-success)}.eui-feedback-message--warning{color:var(--eui-color-warning-darkester-2)}.eui-feedback-message--danger{color:var(--eui-color-danger)}"], encapsulation: 2 });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiFeedbackMessageComponent, [{
        type: Component,
        args: [{
                // tslint:disable-next-line:component-selector
                selector: 'eui-feedback-message',
                styleUrls: ['./styles/_index.scss'],
                template: '<ng-content></ng-content>',
                encapsulation: ViewEncapsulation.None
            }]
    }], function () { return []; }, { cssClasses: [{
            type: HostBinding,
            args: ['class']
        }], styleClass: [{
            type: Input
        }], type: [{
            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