import { Component } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@ionic/storage-angular";
import * as i2 from "@ionic/angular";
import * as i3 from "primeng/api";
import * as i4 from "primeng/dialog";
import * as i5 from "@ngx-translate/core";
const _c0 = () => ({ width: "45vw" });
const _c1 = () => ({ "1200px": "660px", "992px": "660px", "768px": "660px", "576px": "100vw" });
export class DisclosureComponent {
    constructor(storage) {
        this.storage = storage;
        this.showDisclosure = false;
    }
    async ngOnInit() {
        this.showDisclosure = await this.storage.get('show_disclosure') == 'true';
    }
    updateDisclosureStatus() {
        this.showDisclosure = false;
        this.storage.set('show_disclosure', 'false');
    }
    static { this.ɵfac = function DisclosureComponent_Factory(t) { return new (t || DisclosureComponent)(i0.ɵɵdirectiveInject(i1.Storage)); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DisclosureComponent, selectors: [["app-disclosure"]], decls: 17, vars: 19, consts: [["appendTo", "body", "position", "top", "appendTo", "body", "closeOnEscape", "false", 3, "visible", "modal", "breakpoints", "baseZIndex", "draggable", "resizable", "visibleChange"], [1, "heading"], [1, "ion-padding-top", "full-height"], [1, "ion-text-center"], [1, "ion-text-justify"], ["shape", "round", "type", "submit", "color", "success", 3, "click"], ["slot", "start", "name", "checkmark-sharp"]], template: function DisclosureComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "p-dialog", 0);
            i0.ɵɵlistener("visibleChange", function DisclosureComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.showDisclosure = $event; });
            i0.ɵɵelementStart(1, "h4", 1);
            i0.ɵɵtext(2);
            i0.ɵɵpipe(3, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(4, "div", 2)(5, "div", 3);
            i0.ɵɵtext(6);
            i0.ɵɵpipe(7, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(8, "br");
            i0.ɵɵelementStart(9, "div", 4);
            i0.ɵɵtext(10);
            i0.ɵɵpipe(11, "translate");
            i0.ɵɵelementEnd()();
            i0.ɵɵelementStart(12, "p-footer")(13, "div", 3)(14, "ion-button", 5);
            i0.ɵɵlistener("click", function DisclosureComponent_Template_ion_button_click_14_listener() { return ctx.updateDisclosureStatus(); });
            i0.ɵɵelement(15, "ion-icon", 6);
            i0.ɵɵtext(16, " Ok ");
            i0.ɵɵelementEnd()()()();
        } if (rf & 2) {
            i0.ɵɵstyleMap(i0.ɵɵpureFunction0(17, _c0));
            i0.ɵɵproperty("visible", ctx.showDisclosure)("modal", true)("breakpoints", i0.ɵɵpureFunction0(18, _c1))("baseZIndex", 5000)("draggable", false)("resizable", false);
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 11, "DISCLOSURE"));
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 13, "disclosure.heading"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 15, "disclosure.content"), " ");
        } }, dependencies: [i2.IonButton, i2.IonIcon, i3.Footer, i4.Dialog, i5.TranslatePipe] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DisclosureComponent, [{
        type: Component,
        args: [{ selector: 'app-disclosure', template: "<p-dialog [(visible)]=\"showDisclosure\" [modal]=\"true\" appendTo=\"body\" position=\"top\" [breakpoints]=\"{'1200px': '660px', '992px': '660px', '768px': '660px', '576px': '100vw'}\" [style]=\"{width: '45vw'}\"\r\n[baseZIndex]=\"5000\" [draggable]=\"false\" [resizable]=\"false\" appendTo=\"body\" closeOnEscape=\"false\">\r\n    <h4 class=\"heading\">{{'DISCLOSURE' | translate}}</h4>\r\n    <div class=\"ion-padding-top full-height\">\r\n      <div class=\"ion-text-center\">\r\n        {{'disclosure.heading' | translate}}\r\n      </div>\r\n      <br/>\r\n      <div class=\"ion-text-justify\">\r\n        {{'disclosure.content' | translate}}\r\n      </div>\r\n    </div>\r\n    <p-footer>\r\n      <div class=\"ion-text-center\">\r\n        <ion-button shape=\"round\" type=\"submit\" (click)=\"updateDisclosureStatus()\" color=\"success\">\r\n          <ion-icon slot=\"start\" name=\"checkmark-sharp\"></ion-icon>\r\n          Ok\r\n        </ion-button>\r\n      </div>\r\n    </p-footer>\r\n  </p-dialog>\r\n  " }]
    }], () => [{ type: i1.Storage }], null); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DisclosureComponent, { className: "DisclosureComponent", filePath: "lib\\components\\disclosure\\disclosure.component.ts", lineNumber: 9 }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlzY2xvc3VyZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtcmV1c2EtYXBwLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvZGlzY2xvc3VyZS9kaXNjbG9zdXJlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1yZXVzYS1hcHAtbGliL3NyYy9saWIvY29tcG9uZW50cy9kaXNjbG9zdXJlL2Rpc2Nsb3N1cmUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQzs7Ozs7Ozs7O0FBUWxELE1BQU0sT0FBTyxtQkFBbUI7SUFJOUIsWUFBb0IsT0FBZ0I7UUFBaEIsWUFBTyxHQUFQLE9BQU8sQ0FBUztRQUY3QixtQkFBYyxHQUFHLEtBQUssQ0FBQztJQUVVLENBQUM7SUFFekMsS0FBSyxDQUFDLFFBQVE7UUFDWixJQUFJLENBQUMsY0FBYyxHQUFHLE1BQU0sSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQU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