/**
 * @fileoverview added by tsickle
 * Generated from: components/toaster/toaster-container.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
/*
 MIT License

 Copyright (c) 2019 Temainfo Sistemas

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
 */
import { Component, Input } from '@angular/core';
export class TlToasterContainer {
    constructor() {
        this.position = 'top-right';
        this.width = '400px';
    }
    /**
     * @return {?}
     */
    getWidth() {
        return parseInt(this.width, 10) / 2 + 'px';
    }
}
TlToasterContainer.decorators = [
    { type: Component, args: [{
                selector: 'tl-toaster-container',
                template: "<div [class]=\"'ui-toaster-container ' + position\"\n     [ngStyle]=\"\n     {'left' : position === 'bottom-center' || position === 'top-center' ? 'calc( 50% - ' + getWidth() + ' ) ' : null }\">\n    <ng-container *ngFor=\"let item of toasterService.getListToasters()\">\n      <div class=\"ui-toaster\" *ngIf=\"!item.closed\">\n        <tl-toaster [title]=\"item.title\"\n                    [color]=\"item.color\"\n                    [showIcon]=\"item.showIcon\"\n                    [toasterID]=\"item.id\"\n                    [width]=\"item.width\"\n                    [time]=\"item.time\"\n                    [progress]=\"item.progress\"\n                    [icon]=\"item.icon\"\n                    [message]=\"item.message\"\n                    [height]=\"item.height\">\n        </tl-toaster>\n      </div>\n    </ng-container>\n</div>\n",
                styles: [".ui-toaster-container{position:fixed;z-index:100000!important}.ui-toaster-container.top-right{right:0;top:0}.ui-toaster-container.top-center{top:0}.ui-toaster-container.top-left{left:0;top:0}.ui-toaster-container.bottom-right{bottom:0;right:0}.ui-toaster-container.bottom-left{bottom:0;left:0}.ui-toaster-container.bottom-center{bottom:0;left:50%}"]
            }] }
];
/** @nocollapse */
TlToasterContainer.ctorParameters = () => [];
TlToasterContainer.propDecorators = {
    position: [{ type: Input }],
    width: [{ type: Input }]
};
if (false) {
    /** @type {?} */
    TlToasterContainer.prototype.position;
    /** @type {?} */
    TlToasterContainer.prototype.width;
    /** @type {?} */
    TlToasterContainer.prototype.toasterService;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3Rlci1jb250YWluZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy90cnVseS11aS9zcmMvY29tcG9uZW50cy90b2FzdGVyL3RvYXN0ZXItY29udGFpbmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBcUJBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBU2pELE1BQU0sT0FBTyxrQkFBa0I7SUFRN0I7UUFOUyxhQUFRLEdBQUcsV0FBVyxDQUFDO1FBRXZCLFVBQUssR0FBRyxPQUFPLENBQUM7SUFJVixDQUFDOzs7O0lBRWhCLFFBQVE7UUFDTixPQUFPLFFBQVEsQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQ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