import { Component, ViewEncapsulation } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "../../dynamicdialog/dynamicdialog-ref";
import * as i2 from "../../models/smz-dialogs";
import * as i3 from "../../services/smz-dialogs-visibility.service";
import * as i4 from "@angular/common";
import * as i5 from "@angular/flex-layout/extended";
import * as i6 from "../../../../common/modules/inject-content/inject-component.directive";
import * as i7 from "primeng/messages";
import * as i8 from "../../../../common/pipes/templates.pipe";
export class DialogContentManagerComponent {
    constructor(refService, config, visibility) {
        this.refService = refService;
        this.config = config;
        this.visibility = visibility;
    }
    ngOnInit() {
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: DialogContentManagerComponent, deps: [{ token: i1.DynamicDialogRef }, { token: i2.SmzDynamicDialogConfig }, { token: i3.SmzDialogsVisibilityService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: DialogContentManagerComponent, selector: "smz-dialog-content-manager", ngImport: i0, template: "<div class=\"smz-dialog-content smz_form_grid_container\" [ngClass]=\"config.data.contentClass\">\r\n\r\n    <div class=\"container\">\r\n        <div [ngClass]=\"config.data.featureContainerClass ?? 'grid grid-nogutter items-start justify-start'\">\r\n\r\n            <!-- <p-progressBar *ngIf=\"config.data._context.isLoading\" mode=\"indeterminate\" [ngStyle]=\"{ 'width': '100%;' }\" styleClass=\"dialog-loading\"></p-progressBar> -->\r\n            <p-messages [(value)]=\"config.data._context.apiErrors\" [enableService]=\"false\" [ngStyle]=\"{ 'width': '100%;' }\" styleClass=\"dialog-messages\"></p-messages>\r\n\r\n            <ng-container *ngFor=\"let feature of config.data._context.injectables\">\r\n                <div class=\"col\" [ngClass]=\"(feature.template != null ? feature.template : config.data._context.featureTemplate) | setTemplateClasses : ['row']\">\r\n                    <ng-container *ngIf=\"feature.visibilityDependsOn != null\">\r\n                            <ng-container *ngIf=\"(visibility.observers[feature.componentId + feature.component.name].visibility$ | async) as visibilityState\">\r\n                                <ng-container *ngIf=\"!feature.visibilityDependsOn.reversed === visibilityState.state || feature.visibilityDependsOn.reversed === !visibilityState.state\">\r\n                                    <ng-template [appInjectComponent]=\"feature\" [context]=\"config.data._context\"></ng-template>\r\n                                </ng-container>\r\n                            </ng-container>\r\n                    </ng-container>\r\n                    <ng-container *ngIf=\"feature.visibilityDependsOn == null\">\r\n                        <ng-template [appInjectComponent]=\"feature\" [context]=\"config.data._context\"></ng-template>\r\n                    </ng-container>\r\n                </div>\r\n\r\n            </ng-container>\r\n\r\n        </div>\r\n    </div>\r\n\r\n</div>", styles: [":root{--smz-dialog-padding: 1em}smz-general-dialog p-toolbar .ui-toolbar{background-color:unset;border:unset;padding:var(--smz-dialog-padding)}smz-general-dialog .smz-dialog-container{position:absolute;top:var(--smz-dialog-padding);left:var(--smz-dialog-padding);right:var(--smz-dialog-padding);bottom:calc(var(--smz-dialog-padding) * 4);overflow:scroll}smz-general-dialog .smz-dialog-footer{position:absolute;bottom:0;left:0;right:0;z-index:auto}smz-general-dialog .smz_dialog_disabled{-webkit-user-select:none!important;user-select:none!important;pointer-events:none!important;filter:brightness(70%)!important}smz-general-dialog .smz-group-right{float:right}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i5.DefaultClassDirective, selector: "  [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl],  [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl],  [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "directive", type: i5.DefaultStyleDirective, selector: "  [ngStyle],  [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl],  [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl],  [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "directive", type: i6.InjectComponentDirective, selector: "[appInjectComponent]", inputs: ["appInjectComponent", "context"] }, { kind: "component", type: i7.Messages, selector: "p-messages", inputs: ["value", "closable", "style", "styleClass", "enableService", "key", "escape", "severity", "showTransitionOptions", "hideTransitionOptions"], outputs: ["valueChange", "onClose"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i8.SetTemplateClassesPipe, name: "setTemplateClasses" }], encapsulation: i0.ViewEncapsulation.None }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: DialogContentManagerComponent, decorators: [{
            type: Component,
            args: [{ selector: 'smz-dialog-content-manager', encapsulation: ViewEncapsulation.None, template: "<div class=\"smz-dialog-content smz_form_grid_container\" [ngClass]=\"config.data.contentClass\">\r\n\r\n    <div class=\"container\">\r\n        <div [ngClass]=\"config.data.featureContainerClass ?? 'grid grid-nogutter items-start justify-start'\">\r\n\r\n            <!-- <p-progressBar *ngIf=\"config.data._context.isLoading\" mode=\"indeterminate\" [ngStyle]=\"{ 'width': '100%;' }\" styleClass=\"dialog-loading\"></p-progressBar> -->\r\n            <p-messages [(value)]=\"config.data._context.apiErrors\" [enableService]=\"false\" [ngStyle]=\"{ 'width': '100%;' }\" styleClass=\"dialog-messages\"></p-messages>\r\n\r\n            <ng-container *ngFor=\"let feature of config.data._context.injectables\">\r\n                <div class=\"col\" [ngClass]=\"(feature.template != null ? feature.template : config.data._context.featureTemplate) | setTemplateClasses : ['row']\">\r\n                    <ng-container *ngIf=\"feature.visibilityDependsOn != null\">\r\n                            <ng-container *ngIf=\"(visibility.observers[feature.componentId + feature.component.name].visibility$ | async) as visibilityState\">\r\n                                <ng-container *ngIf=\"!feature.visibilityDependsOn.reversed === visibilityState.state || feature.visibilityDependsOn.reversed === !visibilityState.state\">\r\n                                    <ng-template [appInjectComponent]=\"feature\" [context]=\"config.data._context\"></ng-template>\r\n                                </ng-container>\r\n                            </ng-container>\r\n                    </ng-container>\r\n                    <ng-container *ngIf=\"feature.visibilityDependsOn == null\">\r\n                        <ng-template [appInjectComponent]=\"feature\" [context]=\"config.data._context\"></ng-template>\r\n                    </ng-container>\r\n                </div>\r\n\r\n            </ng-container>\r\n\r\n        </div>\r\n    </div>\r\n\r\n</div>", styles: [":root{--smz-dialog-padding: 1em}smz-general-dialog p-toolbar .ui-toolbar{background-color:unset;border:unset;padding:var(--smz-dialog-padding)}smz-general-dialog .smz-dialog-container{position:absolute;top:var(--smz-dialog-padding);left:var(--smz-dialog-padding);right:var(--smz-dialog-padding);bottom:calc(var(--smz-dialog-padding) * 4);overflow:scroll}smz-general-dialog .smz-dialog-footer{position:absolute;bottom:0;left:0;right:0;z-index:auto}smz-general-dialog .smz_dialog_disabled{-webkit-user-select:none!important;user-select:none!important;pointer-events:none!important;filter:brightness(70%)!important}smz-general-dialog .smz-group-right{float:right}\n"] }]
        }], ctorParameters: () => [{ type: i1.DynamicDialogRef }, { type: i2.SmzDynamicDialogConfig }, { type: i3.SmzDialogsVisibilityService }] });
//# sourceMappingURL=data:application/json;base64, 