/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input } from '@angular/core';
import { NotificationService } from '../notification.service';
export class ToastsComponent {
    /**
     * @param {?} notificationService
     */
    constructor(notificationService) {
        this.notificationService = notificationService;
        this.duration = 3000;
    }
    /**
     * @param {?} toast
     * @return {?}
     */
    remove(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 = () => [
    { type: NotificationService }
];
ToastsComponent.propDecorators = {
    duration: [{ type: Input }]
};
if (false) {
    /** @type {?} */
    ToastsComponent.prototype.duration;
    /** @type {?} */
    ToastsComponent.prototype.notificationService;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3RzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BiaWRpL2NvbW1vbi1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibGliL21vZHVsZXMvbm90aWZpY2F0aW9uL3RvYXN0cy90b2FzdHMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQU85RCxNQUFNLE9BQU8sZUFBZTs7OztJQUcxQixZQUFvQixtQkFBd0M7UUFBeEMsd0JBQ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