var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Component, Input } from '@angular/core';
var AlertComponent = /** @class */ (function () {
    function AlertComponent() {
        this.type = AlertComponent_1.TYPE_WARNING;
        this.showIcon = true;
    }
    AlertComponent_1 = AlertComponent;
    var AlertComponent_1;
    AlertComponent.TYPE_WARNING = 'warning';
    AlertComponent.TYPE_CONFIRMATION = 'confirmation';
    AlertComponent.TYPE_SUCCESS = 'success';
    __decorate([
        Input(),
        __metadata("design:type", String)
    ], AlertComponent.prototype, "type", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Object)
    ], AlertComponent.prototype, "showIcon", void 0);
    AlertComponent = AlertComponent_1 = __decorate([
        Component({
            selector: 'cut-alert',
            template: "\n    <div class=\"alert alert-{{type}}\" role=\"alert\">\n      <div class=\"alert-container\">\n        <i class=\"icon {{type | cutAlertIconClass}}\" role=\"presentation\" [attr.aria-hidden]=\"!showIcon\" *ngIf=\"showIcon\"></i>\n        <div class=\"alert-message\" data-ng-transclude>\n          <ng-content></ng-content>\n        </div>\n      </div>\n    </div>\n  ",
            styles: ["\n    .alert:after{content:'';display:table;clear:both}.alert{color:#fff;padding:10px;font-size:16px;line-height:1.25}.alert-error{background-color:#df3034}.alert-warning{background-color:#912b88}.alert-success,.alert-confirmation{background-color:#006435}.alert-success .icon-tick,.alert-confirmation .icon-tick{height:20px;width:20px;background-size:cover}.alert-message{color:#fff;display:table-cell;font-weight:bold}.alert-message a,.alert-message a:visited{color:#fff;text-decoration:underline}.alert .icon{display:table-cell;vertical-align:top}.alert .icon+.alert-message{padding-left:10px}\n  "]
        })
    ], AlertComponent);
    return AlertComponent;
}());
export { AlertComponent };
//# sourceMappingURL=alert.component.js.map