import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@ionic/angular";
import * as i2 from "primeng/button";
import * as i3 from "primeng/api";
import * as i4 from "primeng/tooltip";
import * as i5 from "primeng/overlaypanel";
import * as i6 from "primeng/ripple";
import * as i7 from "@ngx-translate/core";
function HelpComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ion-label", 4);
    i0.ɵɵelement(1, "span", 5);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(2, 1, ctx_r1.msg), i0.ɵɵsanitizeHtml);
} }
export class HelpComponent {
    constructor() { }
    ngOnInit() {
    }
    static { this.ɵfac = function HelpComponent_Factory(t) { return new (t || HelpComponent)(); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HelpComponent, selectors: [["app-help"]], inputs: { msg: "msg", tooltip: "tooltip" }, decls: 4, vars: 1, consts: [["showCloseIcon", "true"], ["op", ""], ["pTemplate", "", "style", "background: cornsilk;"], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-question-circle", 1, "p-button-raised", 3, "pTooltip", "click"], ["color", "dark"], [2, "font-size", "small", 3, "innerHTML"]], template: function HelpComponent_Template(rf, ctx) { if (rf & 1) {
            const _r2 = i0.ɵɵgetCurrentView();
            i0.ɵɵelementStart(0, "p-overlayPanel", 0, 1);
            i0.ɵɵtemplate(2, HelpComponent_ng_template_2_Template, 3, 3, "ng-template", 2);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(3, "button", 3);
            i0.ɵɵlistener("click", function HelpComponent_Template_button_click_3_listener($event) { i0.ɵɵrestoreView(_r2); const _r0 = i0.ɵɵreference(1); return i0.ɵɵresetView(_r0.toggle($event)); });
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("pTooltip", ctx.tooltip ? ctx.tooltip : "What is this?");
        } }, dependencies: [i1.IonLabel, i2.ButtonDirective, i3.PrimeTemplate, i4.Tooltip, i5.OverlayPanel, i6.Ripple, i7.TranslatePipe], styles: ["button[_ngcontent-%COMP%]{border-top-left-radius:0!important;border-bottom-left-radius:0!important}button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:1.5rem!important}"] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HelpComponent, [{
        type: Component,
        args: [{ selector: 'app-help', template: "<p-overlayPanel #op showCloseIcon=\"true\">\r\n    <ng-template pTemplate style=\"background: cornsilk;\">\r\n      <ion-label color=\"dark\">\r\n        <span [innerHTML]=\"msg | translate\" style=\"font-size: small;\"></span>\r\n      </ion-label>\r\n    </ng-template>\r\n</p-overlayPanel>\r\n<button type=\"button\" pButton pRipple icon=\"pi pi-question-circle\" \r\n         (click)=\"op.toggle($event)\" class=\"p-button-raised\"\r\n        [pTooltip]=\"tooltip ? tooltip : 'What is this?'\"></button>", styles: ["button{border-top-left-radius:0!important;border-bottom-left-radius:0!important}button>span{font-size:1.5rem!important}\n"] }]
    }], () => [], { msg: [{
            type: Input,
            args: ["msg"]
        }], tooltip: [{
            type: Input,
            args: ["tooltip"]
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HelpComponent, { className: "HelpComponent", filePath: "lib\\components\\help\\help.component.ts", lineNumber: 8 }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtcmV1c2EtYXBwLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvaGVscC9oZWxwLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uL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