import { Component, ContentChildren, EventEmitter, Input, Output } from '@angular/core';
import { PrimeTemplate } from 'primeng/api';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "primeng/button";
export class SmzDataInfoComponent {
    constructor() {
        this.clicked = new EventEmitter();
    }
    ngOnInit() {
    }
    ngAfterContentInit() {
        this.templates.forEach((item) => {
            switch (item.getType()) {
                case 'actions':
                    this.actionsTemplate = item.template;
                    break;
            }
        });
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: SmzDataInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: SmzDataInfoComponent, selector: "smz-data-info", inputs: { image: "image", message: "message", actions: "actions", callbackInfo: "callbackInfo", callbackLabel: "callbackLabel" }, outputs: { clicked: "clicked" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: "<div class=\"grid justify-center items-center p-4 m-0 h-full w-full text-center\">\r\n  <div class=\"col-10 md:col-8 grid grid-nogutter flex-col items-center justify-center\">\r\n\r\n      <img *ngIf=\"image != null && image !== ''\" [src]=\"image\" class=\"img-fluid\" width=\"60%\" [ngStyle]=\"{ 'max-width': '250px' }\" />\r\n      <h3 class=\"mt-2\">{{ message }}</h3>\r\n      <div *ngIf=\"callbackInfo != null\" class=\"mb-2\" [innerHtml]=\"callbackInfo\"></div>\r\n\r\n      <div class=\"grid grid-nogutter items-center justify-center mt-2 gap-2\">\r\n        <ng-container *ngTemplateOutlet=\"actionsTemplate; context: { $implicit: { } }\"></ng-container>\r\n        <button *ngIf=\"callbackLabel != null\" pButton type=\"button\" class=\"p-button\" [label]=\"callbackLabel\" (click)=\"clicked.emit($event)\"></button>\r\n        <ng-container *ngIf=\"actions\">\r\n          <ng-container *ngFor=\"let action of actions\">\r\n            <button pButton type=\"button\" class=\"p-button\" [label]=\"action.label\" [icon]=\"action.icon\" (click)=\"action.callback($event)\"></button>\r\n          </ng-container>\r\n        </ng-container>\r\n      </div>\r\n\r\n  </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: SmzDataInfoComponent, decorators: [{
            type: Component,
            args: [{ selector: 'smz-data-info', template: "<div class=\"grid justify-center items-center p-4 m-0 h-full w-full text-center\">\r\n  <div class=\"col-10 md:col-8 grid grid-nogutter flex-col items-center justify-center\">\r\n\r\n      <img *ngIf=\"image != null && image !== ''\" [src]=\"image\" class=\"img-fluid\" width=\"60%\" [ngStyle]=\"{ 'max-width': '250px' }\" />\r\n      <h3 class=\"mt-2\">{{ message }}</h3>\r\n      <div *ngIf=\"callbackInfo != null\" class=\"mb-2\" [innerHtml]=\"callbackInfo\"></div>\r\n\r\n      <div class=\"grid grid-nogutter items-center justify-center mt-2 gap-2\">\r\n        <ng-container *ngTemplateOutlet=\"actionsTemplate; context: { $implicit: { } }\"></ng-container>\r\n        <button *ngIf=\"callbackLabel != null\" pButton type=\"button\" class=\"p-button\" [label]=\"callbackLabel\" (click)=\"clicked.emit($event)\"></button>\r\n        <ng-container *ngIf=\"actions\">\r\n          <ng-container *ngFor=\"let action of actions\">\r\n            <button pButton type=\"button\" class=\"p-button\" [label]=\"action.label\" [icon]=\"action.icon\" (click)=\"action.callback($event)\"></button>\r\n          </ng-container>\r\n        </ng-container>\r\n      </div>\r\n\r\n  </div>\r\n</div>" }]
        }], propDecorators: { templates: [{
                type: ContentChildren,
                args: [PrimeTemplate]
            }], image: [{
                type: Input
            }], message: [{
                type: Input
            }], actions: [{
                type: Input
            }], callbackInfo: [{
                type: Input
            }], callbackLabel: [{
                type: Input
            }], clicked: [{
                type: Output
            }] } });
//# sourceMappingURL=data:application/json;base64, 