import { Component, EventEmitter, HostBinding, Input, Output } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@softpak/frontend-components-ng/dist/frontend-components-ng";
export class SpaToasterComponent {
    constructor() {
        this.hostClass = true;
        this.spaClose = new EventEmitter();
    }
    doCloseMessage(id) {
        this.spaClose.emit(id);
    }
}
SpaToasterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaToasterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
SpaToasterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: SpaToasterComponent, selector: "spa-toaster", inputs: { messages: "messages" }, outputs: { spaClose: "spaClose" }, host: { properties: { "class.spa-toasts-displayer": "this.hostClass" } }, ngImport: i0, template: `<spn-alert
        *ngFor="let message of messages"
        [spfAutoclose]="message.autoClose"
        [spfCloseable]="message.closeable"
        [spfSeverity]="message.severity"
        [spfTitle]="message.title"
        (spfClose)="doCloseMessage(message.id)">{{message.message}}</spn-alert>`, isInline: true, styles: [":host(.spa-toasts-displayer){display:block;position:fixed;bottom:85px;left:0;right:0;margin:0 auto;width:80%;z-index:500}spn-alert+spn-alert{margin-top:6px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.SpnAlert, selector: "spn-alert", inputs: ["spfAutoclose", "spfCloseable", "spfHideTitle", "spfMarginTop", "spfSeverity", "spfTitle"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaToasterComponent, decorators: [{
            type: Component,
            args: [{ selector: 'spa-toaster', template: `<spn-alert
        *ngFor="let message of messages"
        [spfAutoclose]="message.autoClose"
        [spfCloseable]="message.closeable"
        [spfSeverity]="message.severity"
        [spfTitle]="message.title"
        (spfClose)="doCloseMessage(message.id)">{{message.message}}</spn-alert>`, styles: [":host(.spa-toasts-displayer){display:block;position:fixed;bottom:85px;left:0;right:0;margin:0 auto;width:80%;z-index:500}spn-alert+spn-alert{margin-top:6px}\n"] }]
        }], propDecorators: { hostClass: [{
                type: HostBinding,
                args: ['class.spa-toasts-displayer']
            }], messages: [{
                type: Input
            }], spaClose: [{
                type: Output
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BhLXRvYXN0ZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL3NwYS10b2FzdGVyL3NyYy9zcGEtdG9hc3Rlci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNILFNBQVMsRUFDVCxZQUFZLEVBQ1osV0FBVyxFQUNYLEtBQUssRUFDTCxNQUFNLEVBQ1QsTUFBTSxlQUFlLENBQUM7Ozs7QUE2QnZCLE1BQU0sT0FBTyxtQkFBbUI7SUExQmhDO1FBMkIrQyxjQUFTLEdBQUcsSUFBSSxDQUFDO1FBRWxELGFBQVEsR0FBeUIsSUFBSSxZQUFZLEVBQVUsQ0FBQztLQU16RTtJQUpVLGNBQWMsQ0FBQyxFQUFVO1FBQzVCLElBQUksQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQzNCLENBQUM7O2dIQVBRLG1CQUFtQjtvR0FBbkIsbUJBQW1CLGtNQXhCbEI7Ozs7OztnRkFNa0U7MkZBa0JuRSxtQkFBbUI7a0JBMUIvQixTQUFTOytCQUNJLGFBQWEsWUFDYjs7Ozs7O2dGQU1rRTs4QkFtQmpDLFNBQVM7c0JBQW5ELFdBQVc7dUJBQUMsNEJBQTRCO2dCQUNoQyxRQUFRO3NCQUFoQixLQUFLO2dCQUNJLF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