(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "@angular/core"], factory);
    }
})(function (require, exports) {
    "use strict";
    /**
     * @fileoverview added by tsickle
     * Generated from: lib/AlertControllerComponent.ts
     * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
     */
    Object.defineProperty(exports, "__esModule", { value: true });
    var core_1 = require("@angular/core");
    var AlertControllerComponent = /** @class */ (function () {
        function AlertControllerComponent() {
            this._newError = new core_1.EventEmitter();
        }
        /**
         * @param {?} error
         * @return {?}
         */
        AlertControllerComponent.prototype.addError = /**
         * @param {?} error
         * @return {?}
         */
        function (error) {
            var _this = this;
            this._newError.emit(error);
            setTimeout((/**
             * @param {?} i
             * @return {?}
             */
            function (i) {
                _this._newError.emit(null);
            }), 4000);
        };
        /**
         * @return {?}
         */
        AlertControllerComponent.prototype.ngOnInit = /**
         * @return {?}
         */
        function () {
            var _this = this;
            this._newError.subscribe((/**
             * @param {?} i
             * @return {?}
             */
            function (i) {
                _this.message = i;
            }));
        };
        AlertControllerComponent.decorators = [
            { type: core_1.Component, args: [{
                        selector: 'lib-leaflet-map-alert',
                        template: "<div *ngIf=\"message\" class=\"alert alert-danger alert-dismissible\" role=\"alert\">\n              {{message}}\n              <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">\n                <span aria-hidden=\"true\">&times;</span>\n              </button>\n            </div>"
                    }] }
        ];
        /** @nocollapse */
        AlertControllerComponent.ctorParameters = function () { return []; };
        return AlertControllerComponent;
    }());
    exports.AlertControllerComponent = AlertControllerComponent;
    if (false) {
        /** @type {?} */
        AlertControllerComponent.prototype.message;
        /** @type {?} */
        AlertControllerComponent.prototype._newError;
    }
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWxlcnRDb250cm9sbGVyQ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