/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
 */
import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { ComponentCreator } from '../core/component-creator';
import { MessageContainerComponent } from './message-container/message-container.component';
import { ComponentCreatorBase } from '../core/component-creator-base';
import * as i0 from "@angular/core";
import * as i1 from "./public-api";
import * as i2 from "../core/component-creator-base";
var AtMessageContainerService = /** @class */ (function (_super) {
    tslib_1.__extends(AtMessageContainerService, _super);
    function AtMessageContainerService(component_base) {
        var _this = _super.call(this, component_base, MessageContainerComponent) || this;
        _this.component_base = component_base;
        _this.messageComponentRef = _this.create();
        return _this;
    }
    /**
     * @param {?} config
     * @return {?}
     */
    AtMessageContainerService.prototype.addMessage = /**
     * @param {?} config
     * @return {?}
     */
    function (config) {
        this.messageComponentRef.instance.addMessage(config);
    };
    AtMessageContainerService.decorators = [
        { type: Injectable, args: [{
                    providedIn: 'root'
                },] }
    ];
    /** @nocollapse */
    AtMessageContainerService.ctorParameters = function () { return [
        { type: ComponentCreatorBase }
    ]; };
    /** @nocollapse */ AtMessageContainerService.ngInjectableDef = i0.defineInjectable({ factory: function AtMessageContainerService_Factory() { return new i1.AtMessageContainerService(i0.inject(i2.ComponentCreatorBase)); }, token: i1.AtMessageContainerService, providedIn: "root" });
    return AtMessageContainerService;
}(ComponentCreator));
export { AtMessageContainerService };
if (false) {
    /** @type {?} */
    AtMessageContainerService.prototype.messageComponentRef;
    /** @type {?} */
    AtMessageContainerService.prototype.component_base;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXQtbWVzc2FnZS1jb250YWluZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2F0LW5nLyIsInNvdXJjZXMiOlsibWVzc2FnZS9hdC1tZXNzYWdlLWNvbnRhaW5lci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBT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