import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "../../services/util/util.service";
import * as i2 from "@angular/common";
import * as i3 from "primeng/messages";
import * as i4 from "../footer/footer.component";
function ContentComponent_p_messages_1_Template(rf, ctx) { if (rf & 1) {
    const _r3 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "p-messages", 3);
    i0.ɵɵlistener("valueChange", function ContentComponent_p_messages_1_Template_p_messages_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.util.msgs = $event); });
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("value", ctx_r0.util.msgs);
} }
function ContentComponent_app_footer_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "app-footer", 4);
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵproperty("showHelp", ctx_r1.showHelp);
} }
const _c0 = ["*"];
export class ContentComponent {
    constructor(util) {
        this.util = util;
        this.showError = true;
        this.hideFooter = false;
        this.showHelp = false;
    }
    ngOnInit() {
    }
    static { this.ɵfac = function ContentComponent_Factory(t) { return new (t || ContentComponent)(i0.ɵɵdirectiveInject(i1.UtilService)); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContentComponent, selectors: [["app-content"]], inputs: { showError: "showError", hideFooter: "hideFooter", showHelp: "showHelp" }, ngContentSelectors: _c0, decls: 4, vars: 2, consts: [["ion-fixed", ""], [3, "value", "valueChange", 4, "ngIf"], [3, "showHelp", 4, "ngIf"], [3, "value", "valueChange"], [3, "showHelp"]], template: function ContentComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵprojectionDef();
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵtemplate(1, ContentComponent_p_messages_1_Template, 1, 1, "p-messages", 1);
            i0.ɵɵprojection(2);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(3, ContentComponent_app_footer_3_Template, 1, 1, "app-footer", 2);
        } if (rf & 2) {
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", false);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.hideFooter);
        } }, dependencies: [i2.NgIf, i3.Messages, i4.FooterComponent], styles: ["[ion-fixed][_ngcontent-%COMP%]{min-height:calc(100% - 159px)}.kore-chat-window[_ngcontent-%COMP%]{padding-bottom:100px}"] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContentComponent, [{
        type: Component,
        args: [{ selector: 'app-content', template: "<div ion-fixed>\r\n    <p-messages [(value)]=\"util.msgs\" *ngIf=\"false\"></p-messages>\r\n    <ng-content ></ng-content>\r\n</div>\r\n<app-footer *ngIf=\"!hideFooter\" [showHelp]=\"showHelp\"></app-footer>\r\n  ", styles: ["[ion-fixed]{min-height:calc(100% - 159px)}.kore-chat-window{padding-bottom:100px}\n"] }]
    }], () => [{ type: i1.UtilService }], { showError: [{
            type: Input,
            args: ['showError']
        }], hideFooter: [{
            type: Input,
            args: ['hideFooter']
        }], showHelp: [{
            type: Input,
            args: ['showHelp']
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ContentComponent, { className: "ContentComponent", filePath: "lib\\components\\content\\content.component.ts", lineNumber: 9 }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtcmV1c2EtYXBwLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvY29udGVudC9jb250ZW50LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1yZXVzYS1hcHAtbGliL3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