/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input } from '@angular/core';
import { NotificationService } from '../notification.service';
var ToastsComponent = /** @class */ (function () {
    function ToastsComponent(notificationService) {
        this.notificationService = notificationService;
        this.duration = 3000;
    }
    /**
     * @param {?} toast
     * @return {?}
     */
    ToastsComponent.prototype.remove = /**
     * @param {?} toast
     * @return {?}
     */
    function (toast) {
        this.notificationService.hideToast(toast);
    };
    ToastsComponent.decorators = [
        { type: Component, args: [{
                    selector: 'bidi-toasts',
                    template: "<div class=\"toast-container\">\n  <bidi-toast\n    *ngFor=\"let notification of notificationService.toastsList$ | async\"\n    [notification]=\"notification\"\n    [duration]=\"duration\"\n    (remove)=\"remove($event)\"\n  ></bidi-toast>\n</div>\n",
                    styles: [".toast-container{position:fixed;top:inherit;left:inherit;right:0;bottom:0;width:340px}"]
                }] }
    ];
    /** @nocollapse */
    ToastsComponent.ctorParameters = function () { return [
        { type: NotificationService }
    ]; };
    ToastsComponent.propDecorators = {
        duration: [{ type: Input }]
    };
    return ToastsComponent;
}());
export { ToastsComponent };
if (false) {
    /** @type {?} */
    ToastsComponent.prototype.duration;
    /** @type {?} */
    ToastsComponent.prototype.notificationService;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3RzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BiaWRpL2NvbW1vbi1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibGliL21vZHVsZXMvbm90aWZpY2F0aW9uL3RvYXN0cy90b2FzdHMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx5QkFBeUIs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